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

Method endLate

pyvrp/cpp/DurationSegment.h:303–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303Duration DurationSegment::endLate() const
304{
305 auto const tripDuration = duration() - cumDuration_;
306 auto const tripTimeWarp = timeWarp() - cumTimeWarp_;
307 auto const netDuration = tripDuration - tripTimeWarp;
308 return netDuration > std::numeric_limits<Duration>::max() - startLate()
309 ? std::numeric_limits<Duration>::max()
310 : startLate() + netDuration;
311}
312
313DurationSegment::DurationSegment(Duration duration,
314 Duration timeWarp,

Callers 1

finaliseBackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected