Struct vrp_core::models::problem::ObjectiveCost [−][src]
pub struct ObjectiveCost { /* fields omitted */ }Expand description
A hierarchical multi objective for vehicle routing problem.
Implementations
impl ObjectiveCost[src]
impl ObjectiveCost[src]pub fn new(objectives: Vec<Vec<TargetObjective>>) -> Self[src]
pub fn new(objectives: Vec<Vec<TargetObjective>>) -> Self[src]Creates an instance of ObjectiveCost.
Trait Implementations
impl Default for ObjectiveCost[src]
impl Default for ObjectiveCost[src]impl MultiObjective for ObjectiveCost[src]
impl MultiObjective for ObjectiveCost[src]fn objectives<'a>(&'a self) -> Box<dyn Iterator<Item = &TargetObjective> + 'a>[src]
fn objectives<'a>(&'a self) -> Box<dyn Iterator<Item = &TargetObjective> + 'a>[src]Returns collection of objective functions.
impl Objective for ObjectiveCost[src]
impl Objective for ObjectiveCost[src]type Solution = InsertionContext
type Solution = InsertionContextThe solution value type that we define the objective on.
fn total_order(&self, a: &Self::Solution, b: &Self::Solution) -> Ordering[src]
fn total_order(&self, a: &Self::Solution, b: &Self::Solution) -> Ordering[src]An objective defines a total ordering between any two solution values. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ObjectiveCost
impl Send for ObjectiveCost
impl Sync for ObjectiveCost
impl Unpin for ObjectiveCost
impl !UnwindSafe for ObjectiveCost
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,