pub trait Termination<S: PlanningSolution, D: Director<S>, BestCb: BestSolutionCallback<S> = ()>: Send + Debug {
// Required method
fn is_terminated(
&self,
solver_scope: &SolverScope<'_, S, D, BestCb>,
) -> bool;
// Provided method
fn install_inphase_limits(
&self,
_solver_scope: &mut SolverScope<'_, S, D, BestCb>,
) { ... }
}Expand description
Trait for determining when to stop solving.
§Type Parameters
S- The planning solution typeD- The score director typeBestCb- The best-solution callback type (default())