Specifies details of unperformed shipments in a solution. For
trivial cases and/or if we are able to identify the cause for
skipping, we report the reason here.
Attributes
Name
Description
index
int
The index corresponds to the index of the shipment in the
source ShipmentModel.
label
str
Copy of the corresponding
Shipment.label,
if specified in the Shipment.
If we can explain why the shipment was skipped, reasons will be
listed here. If the reason is not the same for all vehicles,
reason will have more than 1 element. A skipped shipment cannot
have duplicate reasons, i.e. where all fields are the same except
for example_vehicle_index. Example:
The skipped shipment is incompatible with all vehicles. The reasons
may be different for all vehicles but at least one vehicle's
"Apples" capacity would be exceeded (including vehicle 1), at least
one vehicle's "Pears" capacity would be exceeded (including vehicle
3) and at least one vehicle's distance limit would be exceeded
(including vehicle 1).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Class SkippedShipment (1.11.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.2 (latest)](/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.11.0](/python/docs/reference/optimization/1.11.0/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.10.0](/python/docs/reference/optimization/1.10.0/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.9.1](/python/docs/reference/optimization/1.9.1/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.8.5](/python/docs/reference/optimization/1.8.5/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.7.0](/python/docs/reference/optimization/1.7.0/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.6.0](/python/docs/reference/optimization/1.6.0/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.5.0](/python/docs/reference/optimization/1.5.0/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.4.3](/python/docs/reference/optimization/1.4.3/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.3.2](/python/docs/reference/optimization/1.3.2/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.2.0](/python/docs/reference/optimization/1.2.0/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.1.3](/python/docs/reference/optimization/1.1.3/google.cloud.optimization_v1.types.SkippedShipment)\n- [1.0.1](/python/docs/reference/optimization/1.0.1/google.cloud.optimization_v1.types.SkippedShipment)\n- [0.1.1](/python/docs/reference/optimization/0.1.1/google.cloud.optimization_v1.types.SkippedShipment) \n\n SkippedShipment(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nSpecifies details of unperformed shipments in a solution. For\ntrivial cases and/or if we are able to identify the cause for\nskipping, we report the reason here.\n\nClasses\n-------\n\n### Reason\n\n Reason(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nIf we can explain why the shipment was skipped, reasons will be\nlisted here. If the reason is not the same for all vehicles,\n`reason` will have more than 1 element. A skipped shipment cannot\nhave duplicate reasons, i.e. where all fields are the same except\nfor `example_vehicle_index`. Example:\n\n::\n\nreasons {\ncode: DEMAND_EXCEEDS_VEHICLE_CAPACITY\nexample_vehicle_index: 1\nexample_exceeded_capacity_type: \"Apples\"\n}\nreasons {\ncode: DEMAND_EXCEEDS_VEHICLE_CAPACITY\nexample_vehicle_index: 3\nexample_exceeded_capacity_type: \"Pears\"\n}\nreasons {\ncode: CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT\nexample_vehicle_index: 1\n}\n\nThe skipped shipment is incompatible with all vehicles. The reasons\nmay be different for all vehicles but at least one vehicle's\n\"Apples\" capacity would be exceeded (including vehicle 1), at least\none vehicle's \"Pears\" capacity would be exceeded (including vehicle\n3) and at least one vehicle's distance limit would be exceeded\n(including vehicle 1).\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]