MCPcopy Index your code
hub / github.com/PyVRP/PyVRP / location

Method location

pyvrp/cpp/ProblemData.h:811–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809ProblemData::Location::operator Depot const &() const { return *depot; }
810
811ProblemData::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
819Matrix<Distance> const &ProblemData::distanceMatrix(size_t profile) const
820{

Callers 15

plot_coordinatesFunction · 0.80
plot_solutionFunction · 0.80
plot_route_scheduleFunction · 0.80
PYBIND11_MODULEFunction · 0.80
SolutionMethod · 0.80
makeScheduleMethod · 0.80
RouteMethod · 0.80
TripMethod · 0.80
durationMethod · 0.80

Calls 1

sizeMethod · 0.45