pub trait Termination<S: PlanningSolution, D: ScoreDirector<S>>: Send + Debug {
// Required method
fn is_terminated(&self, solver_scope: &SolverScope<'_, S, D>) -> bool;
}Expand description
Trait for determining when to stop solving.
§Type Parameters
S- The planning solution typeD- The score director type
Required Methods§
Sourcefn is_terminated(&self, solver_scope: &SolverScope<'_, S, D>) -> bool
fn is_terminated(&self, solver_scope: &SolverScope<'_, S, D>) -> bool
Returns true if solving should terminate.