pub fn create_tour_compactness_feature(
    name: &str,
    jobs: Arc<Jobs>,
    job_radius: usize,
    state_key: StateKey,
    thresholds: Option<(usize, f64)>
) -> Result<Feature, GenericError>
Expand description

Creates a feature which tries to keep routes compact by reducing amount of jobs in their neighbourhood served by different routes.

job_radius controls amount of jobs checked in neighbourhood of a tested one.

thresholds parameter specifies (min_threshold, min_distance) pair of thresholds used to relax objective in favor of less prioritized ones.