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

Function onLastTrip

pyvrp/cpp/search/SwapTails.cpp:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace
10{
11bool onLastTrip(pyvrp::search::Route::Node *node)
12{
13 auto const *route = node->route();
14 return node->trip() + 1 == route->numTrips();
15}
16} // namespace
17
18pyvrp::Cost SwapTails::evaluate(Route::Node *U,

Callers 1

evaluateMethod · 0.85

Calls 3

tripMethod · 0.80
routeMethod · 0.45
numTripsMethod · 0.45

Tested by

no test coverage detected