Class OptimizeToursResponse (1.3.2)

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.


routes MutableSequence[]
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[]
The list of all shipments skipped.
validation_errors MutableSequence[]
List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message.
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.



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

Overall metrics, aggregated over all routes.