Skip to content

Commit

Permalink
Increase ruin limits
Browse files Browse the repository at this point in the history
  • Loading branch information
reinterpretcat committed Mar 25, 2024
1 parent 289501e commit ae18047
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ All notable changes to this project will be documented in this file.

* GitHub sponsors functionality


### Fixed

* Fix issue in `fast-service` objective (#144)
Expand All @@ -18,6 +17,7 @@ All notable changes to this project will be documented in this file.

* fix clippy warnings
* minor refactorings
* increase limits for ruin methods


## [v1.23.0]- 2023-12-22
Expand Down
4 changes: 2 additions & 2 deletions vrp-core/src/solver/search/ruin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ impl RemovalLimits {
let jobs_size = problem.jobs.size() as f64;

let min_activities = ((jobs_size * 0.05) as usize).clamp(1, 8);
let max_activities = ((jobs_size * 0.3) as usize).clamp(2, 24);
let max_activities = ((jobs_size * 0.5) as usize).clamp(8, 48);

Self { removed_activities_range: min_activities..max_activities, affected_routes_range: 2..4 }
Self { removed_activities_range: min_activities..max_activities, affected_routes_range: 2..5 }
}
}

Expand Down

0 comments on commit ae18047

Please sign in to comment.