pub struct ProblemObjective { /* private fields */ }Expand description
A hierarchical multi objective for vehicle routing problem.
Implementations
sourceimpl ProblemObjective
impl ProblemObjective
sourcepub fn new(objectives: Vec<Vec<TargetObjective>>) -> Self
pub fn new(objectives: Vec<Vec<TargetObjective>>) -> Self
Creates an instance of InsertionObjective.
Trait Implementations
sourceimpl Default for ProblemObjective
impl Default for ProblemObjective
sourceimpl MultiObjective for ProblemObjective
impl MultiObjective for ProblemObjective
sourceimpl Objective for ProblemObjective
impl Objective for ProblemObjective
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
sourceimpl Shuffled for ProblemObjective
impl Shuffled for ProblemObjective
sourcefn get_shuffled(&self, random: &(dyn Random + Send + Sync)) -> Self
fn get_shuffled(&self, random: &(dyn Random + Send + Sync)) -> Self
Returns a new instance of ObjectiveCost with shuffled objectives.
impl HeuristicObjective for ProblemObjective
Auto Trait Implementations
impl !RefUnwindSafe for ProblemObjective
impl Send for ProblemObjective
impl Sync for ProblemObjective
impl Unpin for ProblemObjective
impl !UnwindSafe for ProblemObjective
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