Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
namespace
10
{
11
bool onLastTrip(pyvrp::search::Route::Node *node)
12
{
13
auto const *route = node->route();
14
return node->trip() + 1 == route->numTrips();
15
}
16
} // namespace
17
18
pyvrp::Cost SwapTails::evaluate(Route::Node *U,
Callers
1
evaluate
Method · 0.85
Calls
3
trip
Method · 0.80
route
Method · 0.45
numTrips
Method · 0.45
Tested by
no test coverage detected