# Class OptimizeToursResponse (1.15.0)

1.15.0 (latest) 1.14.0 1.13.0 1.12.0 1.11.2 1.10.0 1.9.1 1.8.5 1.7.0 1.6.0 1.5.0 1.4.3 1.3.2 1.2.0 1.1.3 1.0.1 0.1.1

    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[https://docs.cloud.google.com/python/docs/reference/optimization/latest/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[https://docs.cloud.google.com/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.SkippedShipment]` The list of all shipments skipped. |
| `validation_errors` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/optimization/latest/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` | `https://docs.cloud.google.com/python/docs/reference/optimization/latest/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.