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: DurationMoving duration limit.
moving_distance: DistanceMoving 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
sourceimpl Clone for ThresholdPolicy
impl Clone for ThresholdPolicy
sourcefn clone(&self) -> ThresholdPolicy
fn clone(&self) -> ThresholdPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for ThresholdPolicy
impl Send for ThresholdPolicy
impl Sync for ThresholdPolicy
impl Unpin for ThresholdPolicy
impl UnwindSafe for ThresholdPolicy
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more