Class OptimizeToursResponse (1.10.0)

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

Response after solving a tour optimization problem containing the routes followed by each vehicle, the shipments which have been skipped and the overall cost of the solution.

Attributes

Name Description
routes MutableSequence[google.cloud.optimization_v1.types.ShipmentRoute]
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.
request_label str
Copy of the OptimizeToursRequest.label, if a label was specified in the request.
skipped_shipments MutableSequence[google.cloud.optimization_v1.types.SkippedShipment]
The list of all shipments skipped.
validation_errors MutableSequence[google.cloud.optimization_v1.types.OptimizeToursValidationError]
List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message.
metrics google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics
Duration, distance and usage metrics for this solution.
total_cost float
Deprecated: Use Metrics.total_cost instead. Total cost of the solution. This takes into account all costs: costs per per hour and travel hour, fixed vehicle costs, unperformed shipment penalty costs, global duration cost, etc.

Classes

Metrics

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

Overall metrics, aggregated over all routes.