Skip to content

delayObject

Defines how predicted arrival times generate lateness costs during optimisation, minimising late arrival penalties.

{
"cost": <real> | null,
"costLimit": <real> | null,
"fromEarliest": <bool>,
"planningElasticity": { "allow": timeInterval, "every": timeInterval } | null,
}
cost real
Initial cost per minute when arrival equals the stop’s latest arrival plus the start time.
earlyPeriod timeInterval
Exponential factor modifying the late cost when arrival is earlier than the latest arrival plus start.
latePeriod timeInterval
Exponential factor governing cost growth after the latest arrival plus start.
start timeInterval
Offset from the latest arrival at which delay cost begins to accrue (may be negative).
timeLimit timeInterval
Time cap beyond which the lateness cost no longer increases.
costLimit real
Cost cap on the accrued lateness penalty.
fromEarliest bool default false
Measure the delay from the earliest time rather than the latest.
planningElasticity { "allow": timeInterval, "every": timeInterval }
Permits `allow` of additional lateness for every `every` of planning horizon.