Skip to main content

solverforge_cvrp/
lib.rs

1/* CVRP domain helpers for SolverForge.
2
3Provides `ProblemData`, `MatrixDistanceMeter`, `MatrixIntraDistanceMeter`,
4the `VrpSolution` trait, and route hook functions for Clarke-Wright and k-opt
5construction phases.
6*/
7
8mod helpers;
9mod meters;
10mod problem_data;
11mod solution;
12
13pub use helpers::{
14    depot_for_entity, get_route, replace_route, route_distance, route_feasible, route_metric_class,
15};
16pub use meters::{MatrixDistanceMeter, MatrixIntraDistanceMeter};
17pub use problem_data::ProblemData;
18pub use solution::VrpSolution;
19
20#[cfg(test)]
21mod tests;