Skip to content

Commit

Permalink
Favor pickups over breaks in order_choice.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoupey committed Sep 3, 2020
1 parent 9824c80 commit 809bd20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/structures/vroom/tw_route.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@ OrderChoice TWRoute::order_choice(const Job& j,
// In case where both ordering options are doable based on timing
// constraints, we pick the ordering minimizing earliest end date
// for sequence.
if (j.type == JOB_TYPE::PICKUP) {
oc.add_job_first = true;
return oc;
}

if (break_then_job_end < job_then_break_end) {
oc.add_break_first = true;
} else if (break_then_job_end == job_then_break_end) {
Expand Down

0 comments on commit 809bd20

Please sign in to comment.