solverforge_cvrp/problem_data.rs
1/// Immutable problem data shared by all vehicles.
2///
3/// Stored via raw pointer in each vehicle so the framework can clone vehicles
4/// freely during local search without copying matrices.
5#[derive(Clone, Debug)]
6pub struct ProblemData {
7 pub capacity: i64,
8 pub depot: usize,
9 pub demands: Vec<i32>,
10 pub distance_matrix: Vec<Vec<i64>>,
11 pub time_windows: Vec<(i64, i64)>,
12 pub service_durations: Vec<i64>,
13 pub travel_times: Vec<Vec<i64>>,
14 pub vehicle_departure_time: i64,
15}