[−][src]Trait vrp_core::refinement::objectives::ObjectiveCost
Specifies objective cost type.
Required methods
fn value(&self) -> Cost
Returns absolute value of objective.
fn cmp_relaxed(
&self,
other: &Box<dyn ObjectiveCost + Send + Sync>
) -> (Ordering, Ordering)
&self,
other: &Box<dyn ObjectiveCost + Send + Sync>
) -> (Ordering, Ordering)
Compares objectives costs together, returns (actual, relaxed) ordering.
fn clone_box(&self) -> Box<dyn ObjectiveCost + Send + Sync>
Clones objective cost.
fn as_any(&self) -> &dyn Any
Returns objective cost as Any.