Enum vrp_core::construction::clustering::vicinity::ServingPolicy
source · pub enum ServingPolicy {
Original {
parking: f64,
},
Multiplier {
multiplier: f64,
parking: f64,
},
Fixed {
value: f64,
parking: f64,
},
}
Expand description
Specifies service time policy.
Variants§
Original
Keep original service time.
Multiplier
Fields
Correct service time by some multiplier.
Fixed
Use fixed value for all clustered jobs.
Implementations§
source§impl ServingPolicy
impl ServingPolicy
sourcepub fn get_parking(&self) -> f64
pub fn get_parking(&self) -> f64
Gets parking time.
Trait Implementations§
source§impl Clone for ServingPolicy
impl Clone for ServingPolicy
source§fn clone(&self) -> ServingPolicy
fn clone(&self) -> ServingPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ServingPolicy
impl Send for ServingPolicy
impl Sync for ServingPolicy
impl Unpin for ServingPolicy
impl UnwindSafe for ServingPolicy
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