Trait vrp_core::models::FeatureConstraint
source · pub trait FeatureConstraint {
// Required methods
fn evaluate(
&self,
move_ctx: &MoveContext<'_>
) -> Option<ConstraintViolation>;
fn merge(&self, source: Job, candidate: Job) -> Result<Job, ViolationCode>;
}
Expand description
Defines feature constraint behavior.
Required Methods§
sourcefn evaluate(&self, move_ctx: &MoveContext<'_>) -> Option<ConstraintViolation>
fn evaluate(&self, move_ctx: &MoveContext<'_>) -> Option<ConstraintViolation>
Evaluates hard constraints violations.