Skip to content

Commit

Permalink
Update bound data after P&D insertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoupey committed Feb 11, 2025
1 parent 27ce742 commit 31476a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/algorithms/heuristics/heuristics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,13 @@ inline Eval fill_route(const Input& input,
unassigned.erase(best_job_rank);
unassigned.erase(best_job_rank + 1);
keep_going = true;

unassigned_costs.update_max_edge(input, route);
unassigned_costs.update_min_costs(input, unassigned, best_job.index());
unassigned_costs
.update_min_costs(input,
unassigned,
input.jobs[best_job_rank + 1].index());
}

route_eval += best_eval;
Expand Down

0 comments on commit 31476a7

Please sign in to comment.