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

Method finalise

pyvrp/cpp/LoadSegment.h:116–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116LoadSegment LoadSegment::finalise(Load capacity) const
117{
118 return {0, 0, 0, excessLoad(capacity)};
119}
120
121LoadSegment::LoadSegment(Load delivery, Load pickup, Load load, Load excessLoad)
122 : delivery_(delivery), pickup_(pickup), load_(load), excessLoad_(excessLoad)

Callers 3

test_finaliseFunction · 0.95
excessLoadMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_finaliseFunction · 0.76