Skip to content

Commit 2716faa

Browse files
committed
fix bugs
1 parent f1ae49f commit 2716faa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library/sched/shop/schedule/JobShopTransportSchedule.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ namespace sched::shop {
3333

3434
std::ranges::sort(processing_tasks, [](const JobShopTask& lhs, const JobShopTask& rhs) {
3535
// also check operations to handle operations with processing time of 0 (like orb07)
36-
return std::tie(lhs.completion, lhs.operation.index) < std::tie(rhs.completion, rhs.operation.index);
36+
return std::tie(lhs.start, lhs.completion, lhs.operation.index) < std::tie(rhs.start, rhs.completion, rhs.operation.index);
3737
});
3838

3939
std::ranges::sort(transportation_tasks, [](const TransportationTask& lhs, const TransportationTask& rhs) {
40-
return lhs.completion < rhs.completion;
40+
return std::tie(lhs.start, lhs.completion) < std::tie(rhs.start, rhs.completion);
4141
});
4242

4343
uint32_t index = 0;

0 commit comments

Comments
 (0)