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

Method numTrips

pyvrp/cpp/Solution.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52size_t Solution::numRoutes() const { return routes_.size(); }
53
54size_t Solution::numTrips() const
55{
56 return std::accumulate(routes_.begin(),
57 routes_.end(),
58 0,
59 [](size_t count, auto const &route)
60 { return count + route.numTrips(); });
61}
62
63size_t Solution::numClients() const { return numClients_; }
64

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected