Skip to main content

Crate solverforge_cvrp

Crate solverforge_cvrp 

Source

Structs§

MatrixDistanceMeter
MatrixIntraDistanceMeter
ProblemData
Immutable problem data shared by all vehicles.

Traits§

VrpSolution
Trait implemented by a planning solution that holds a fleet of vehicles, each carrying a *const ProblemData pointer and a list of visited stops.

Functions§

capacity
depot_for_cw
depot_for_entity
distance
Distance between two element indices using the first vehicle’s data pointer.
element_load
get_route
Returns a cloned snapshot of the route for entity entity_idx.
is_kopt_feasible
K-opt feasibility gate: returns true if the route satisfies all time-window constraints. The entity_idx parameter is ignored — time windows are uniform across vehicles.
is_time_feasible
Returns true if the route satisfies all time-window constraints.
replace_route
Replaces the current route for entity entity_idx.