pub struct Objective {
pub distance: f64,
pub vehicles: f64,
pub time: f64,
}Expand description
Weights of the linear objective cost = w_d·distance + w_v·vehicles + w_t·time.
The default is pure distance minimisation (distance = 1, the rest 0),
which is what the classic VRPTW benchmarks score against.
Fields§
§distance: f64Weight on total travelled distance.
vehicles: f64Weight on the number of vehicles (routes) used.
time: f64Weight on total elapsed time (travel + wait + service).
Implementations§
Trait Implementations§
impl Copy for Objective
impl StructuralPartialEq for Objective
Auto Trait Implementations§
impl Freeze for Objective
impl RefUnwindSafe for Objective
impl Send for Objective
impl Sync for Objective
impl Unpin for Objective
impl UnsafeUnpin for Objective
impl UnwindSafe for Objective
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more