Trait vrp_core::models::problem::FeatureConstraint
source · pub trait FeatureConstraint {
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.