Skip to content

Commit

Permalink
Update docs and model for tour compactness
Browse files Browse the repository at this point in the history
  • Loading branch information
reinterpretcat committed Aug 26, 2023
1 parent 1e1837c commit d87c4c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/concepts/pragmatic/problem/objectives.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions vrp-pragmatic/src/format/problem/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d87c4c4

Please sign in to comment.