| 466 | } |
| 467 | |
| 468 | size_t ProblemData::VehicleType::maxTrips() const |
| 469 | { |
| 470 | // When maxReloads is at its maximum size, maxReloads + 1 wraps around to 0, |
| 471 | // and then std::max() ensures we still return a reasonable value. |
| 472 | return reloadDepots.empty() ? 1 : std::max(maxReloads, maxReloads + 1); |
| 473 | } |
| 474 | |
| 475 | bool ProblemData::VehicleType::operator==(VehicleType const &other) const |
| 476 | { |