Struct vrp_core::construction::clustering::vicinity::ThresholdPolicy
source · pub struct ThresholdPolicy {
pub moving_duration: Duration,
pub moving_distance: Distance,
pub min_shared_time: Option<Duration>,
pub smallest_time_window: Option<f64>,
pub max_jobs_per_cluster: Option<usize>,
}
Expand description
Defines a various thresholds to control cluster size.
Fields§
§moving_duration: Duration
Moving duration limit.
moving_distance: Distance
Moving distance limit.
Minimum shared time for jobs (non-inclusive).
smallest_time_window: Option<f64>
The smallest time window of the cluster after service time shrinking.
max_jobs_per_cluster: Option<usize>
The maximum amount of jobs per cluster.
Trait Implementations§
source§impl Clone for ThresholdPolicy
impl Clone for ThresholdPolicy
source§fn clone(&self) -> ThresholdPolicy
fn clone(&self) -> ThresholdPolicy
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 ThresholdPolicy
impl Send for ThresholdPolicy
impl Sync for ThresholdPolicy
impl Unpin for ThresholdPolicy
impl UnwindSafe for ThresholdPolicy
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