| 809 | ProblemData::Location::operator Depot const &() const { return *depot; } |
| 810 | |
| 811 | ProblemData::Location ProblemData::location(size_t idx) const |
| 812 | { |
| 813 | assert(idx < numLocations()); |
| 814 | return idx < depots_.size() |
| 815 | ? Location{.depot = &depots_[idx]} |
| 816 | : Location{.client = &clients_[idx - depots_.size()]}; |
| 817 | } |
| 818 | |
| 819 | Matrix<Distance> const &ProblemData::distanceMatrix(size_t profile) const |
| 820 | { |