MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / maxTrips

Method maxTrips

pyvrp/cpp/ProblemData.cpp:468–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468size_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
475bool ProblemData::VehicleType::operator==(VehicleType const &other) const
476{

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected