Class ShipmentTypeIncompatibility (1.7.0rc0)

ShipmentTypeIncompatibility(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specifies incompatibilties between shipments depending on their shipment_type. The appearance of incompatible shipments on the same route is restricted based on the incompatibility mode.

Attributes

NameDescription
types MutableSequence[str]
List of incompatible types. Two shipments having different shipment_types among those listed are "incompatible".
incompatibility_mode google.cloud.optimization_v1.types.ShipmentTypeIncompatibility.IncompatibilityMode
Mode applied to the incompatibility.

Classes

IncompatibilityMode

IncompatibilityMode(value)

Modes defining how the appearance of incompatible shipments are restricted on the same route.

Values: INCOMPATIBILITY_MODE_UNSPECIFIED (0): Unspecified incompatibility mode. This value should never be used. NOT_PERFORMED_BY_SAME_VEHICLE (1): In this mode, two shipments with incompatible types can never share the same vehicle. NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY (2): For two shipments with incompatible types with the NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY incompatibility mode:

    -  If both are pickups only (no deliveries) or deliveries
       only (no pickups), they cannot share the same vehicle at
       all.
    -  If one of the shipments has a delivery and the other a
       pickup, the two shipments can share the same vehicle iff
       the former shipment is delivered before the latter is
       picked up.