Page Summary
-
Soft constraints define costs associated with shipments arriving or departing earlier or later than the desired time window.
-
maximumEarlinessandmaximumTardinessfields specify the maximum allowable deviations from the target arrival/departure time. -
earlinessCostandtardinessCostfields, usingFunction1Dobjects, determine the cost incurred for early or late shipments, respectively. -
These cost functions allow for flexibility in delivery schedules by penalizing deviations rather than imposing strict time window constraints.
Cost functions due to a shipment arriving/departing sooner or later than required (soft constraints).
| JSON representation |
|---|
{ "maximumEarliness": string, "maximumTardiness": string, "earlinessCost": { object ( |
| Fields | |
|---|---|
maximum |
Optional. Maximum allowable earliness. Useful only with costs. A duration in seconds with up to nine fractional digits, ending with ' |
maximum |
Optional. Maximum allowable tardiness. Useful only with costs. A duration in seconds with up to nine fractional digits, ending with ' |
earliness |
Optional. Cost of earliness. Unset iff no cost for earliness. |
tardiness |
Optional. Cost of tardiness. Unset iff no cost for tardiness. |