EarlinessTardiness

  • 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.

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.