Skip to content

Commit

Permalink
Increase leg selection thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
reinterpretcat committed Sep 28, 2024
1 parent 7e356e5 commit 1f08b96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vrp-core/src/construction/heuristics/selectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ impl LegSelection {
Self::Stochastic(random) => {
let gen_usize = |min: i32, max: i32| random.uniform_int(min, max) as usize;
let greedy_threshold = match job {
Job::Single(_) => gen_usize(12, 24),
Job::Multi(_) => gen_usize(8, 16),
Job::Single(_) => gen_usize(32, 48),
Job::Multi(_) => gen_usize(16, 32),
};

let total_legs = route_ctx.route().tour.legs().size_hint().0;
Expand Down

0 comments on commit 1f08b96

Please sign in to comment.