From d87c4c4fac946ce4800eab1a8eb9d08f3a9d976d Mon Sep 17 00:00:00 2001 From: reinterpretcat Date: Sat, 26 Aug 2023 10:41:29 +0200 Subject: [PATCH] Update docs and model for tour compactness --- docs/src/concepts/pragmatic/problem/objectives.md | 1 + vrp-pragmatic/src/format/problem/model.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/src/concepts/pragmatic/problem/objectives.md b/docs/src/concepts/pragmatic/problem/objectives.md index 00ee5ebc6..148ab15c9 100644 --- a/docs/src/concepts/pragmatic/problem/objectives.md +++ b/docs/src/concepts/pragmatic/problem/objectives.md @@ -55,6 +55,7 @@ These objectives provide some extra control on job assignment: * `compact-tour`: controls how tour is shaped by limiting amount of shared jobs, assigned in different routes, for a given job' neighbourhood. It has the following mandatory parameters: * `options`: options to relax objective: + - `jobRadius`: a radius of neighbourhood, minimum is 1 - `threshold`: a minimum shared jobs to count - `distance`: a minimum relative distance between counts when comparing different solutions. This objective is supposed to be on the same level within cost ones. diff --git a/vrp-pragmatic/src/format/problem/model.rs b/vrp-pragmatic/src/format/problem/model.rs index 6e87fa938..e45b5c401 100644 --- a/vrp-pragmatic/src/format/problem/model.rs +++ b/vrp-pragmatic/src/format/problem/model.rs @@ -659,6 +659,7 @@ pub struct BalanceOptions { /// Specifies tour compactness options to relax impact of objective. #[derive(Clone, Deserialize, Debug, Serialize)] +#[serde(rename_all = "camelCase")] pub struct CompactOptions { /// Specifies radius of neighbourhood. Min is 1. pub job_radius: usize,