Function vrp_core::models::problem::create_matrix_transport_cost_with_fallback
source ยท pub fn create_matrix_transport_cost_with_fallback<T: TransportFallback + 'static>(
costs: Vec<MatrixData>,
fallback: T,
) -> Result<Arc<dyn TransportCost + Send + Sync>, GenericError>
Expand description
Creates time agnostic or time aware routing costs based on matrix data passed using a fallback function for unknown route.