Struct vrp_core::solver::objectives::TotalRoutes
source · [−]pub struct TotalRoutes { /* private fields */ }Expand description
An objective function which controls total amount of routes.
Implementations
sourceimpl TotalRoutes
impl TotalRoutes
sourcepub fn new_minimized() -> Self
pub fn new_minimized() -> Self
Creates an instance of TotalRoutes with fleet minimization as a target.
sourcepub fn new_maximized() -> Self
pub fn new_maximized() -> Self
Creates an instance of TotalRoutes with fleet maximization as a target.
Trait Implementations
sourceimpl Default for TotalRoutes
impl Default for TotalRoutes
sourceimpl Objective for TotalRoutes
impl Objective for TotalRoutes
type Solution = InsertionContext
type Solution = InsertionContext
The solution value type that we define the objective on.
sourcefn total_order(&self, a: &Self::Solution, b: &Self::Solution) -> Ordering
fn total_order(&self, a: &Self::Solution, b: &Self::Solution) -> Ordering
An objective defines a total ordering between any two solution values. Read more
Auto Trait Implementations
impl RefUnwindSafe for TotalRoutes
impl Send for TotalRoutes
impl Sync for TotalRoutes
impl Unpin for TotalRoutes
impl UnwindSafe for TotalRoutes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more