Function vrp_core::construction::features::create_shared_resource_feature
source · pub fn create_shared_resource_feature<T>(
name: &str,
total_jobs: usize,
code: ViolationCode,
resource_key: StateKey,
interval_fn: SharedResourceIntervalFn,
resource_capacity_fn: SharedResourceCapacityFn<T>,
resource_demand_fn: SharedResourceDemandFn<T>
) -> Result<Feature, GenericError>
Expand description
Creates a feature which provides a way to define and use time independent, shared across multiple routes resource. It is a hard constraint.