[][src]Trait vrp_core::refinement::objectives::Objective

pub trait Objective {
    fn estimate_cost(
        &self,
        refinement_ctx: &mut RefinementContext,
        insertion_ctx: &InsertionContext
    ) -> ObjectiveCostType;
fn is_goal_satisfied(
        &self,
        refinement_ctx: &mut RefinementContext,
        insertion_ctx: &InsertionContext
    ) -> Option<bool>; }

Encapsulates objective function behaviour.

Required methods

fn estimate_cost(
    &self,
    refinement_ctx: &mut RefinementContext,
    insertion_ctx: &InsertionContext
) -> ObjectiveCostType

Estimates cost for given problem and solution.

fn is_goal_satisfied(
    &self,
    refinement_ctx: &mut RefinementContext,
    insertion_ctx: &InsertionContext
) -> Option<bool>

Checks whether given solution satisfies objective. Returns None if objective goal is not set.

Loading content...

Implementors

impl Objective for MultiObjective[src]

impl Objective for TotalRoutes[src]

impl Objective for TotalTransportCost[src]

impl Objective for TotalUnassignedJobs[src]

Loading content...