EarlinessTardiness
Stay organized with collections
Save and categorize content based on your preferences.
Cost functions due to a shipment arriving/departing sooner or later than required (soft constraints).
JSON representation |
{
"maximumEarliness": string,
"maximumTardiness": string,
"earlinessCost": {
object (Function1D )
},
"tardinessCost": {
object (Function1D )
}
} |
Fields |
maximumEarliness |
string (Duration format)
Optional. Maximum allowable earliness. Useful only with costs. A duration in seconds with up to nine fractional digits, ending with 's '. Example: "3.5s" .
|
maximumTardiness |
string (Duration format)
Optional. Maximum allowable tardiness. Useful only with costs. A duration in seconds with up to nine fractional digits, ending with 's '. Example: "3.5s" .
|
earlinessCost |
object (Function1D )
Optional. Cost of earliness. Unset iff no cost for earliness.
|
tardinessCost |
object (Function1D )
Optional. Cost of tardiness. Unset iff no cost for tardiness.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[[["Soft constraints define costs associated with shipments arriving or departing earlier or later than the desired time window."],["`maximumEarliness` and `maximumTardiness` fields specify the maximum allowable deviations from the target arrival/departure time."],["`earlinessCost` and `tardinessCost` fields, using `Function1D` objects, 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."]]],["This data defines cost functions for shipments arriving or departing outside the desired timeframe. `maximumEarliness` and `maximumTardiness` specify the allowable time deviations in seconds. The `earlinessCost` and `tardinessCost` fields, using a `Function1D` object, outline the associated costs for early or late arrival/departure. These costs are optional and can be omitted if there is no cost. Each value is described in a specific time format.\n"]]