int
Number of vehicles used. Note: if a vehicle route is empty
and
Vehicle.used_if_route_is_empty
is true, the vehicle is considered used.
earliest_vehicle_start_time
google.protobuf.timestamp_pb2.Timestamp
The earliest start time for a used vehicle, computed as the
minimum over all used vehicles of
ShipmentRoute.vehicle_start_time.
latest_vehicle_end_time
google.protobuf.timestamp_pb2.Timestamp
The latest end time for a used vehicle, computed as the
maximum over all used vehicles of
ShipmentRoute.vehicle_end_time.
costs
MutableMapping[str, float]
Cost of the solution, broken down by cost-related request
fields. The keys are proto paths, relative to the input
OptimizeToursRequest, e.g. "model.shipments.pickups.cost",
and the values are the total cost generated by the
corresponding cost field, aggregated over the whole
solution. In other words,
costs["model.shipments.pickups.cost"] is the sum of all
pickup costs over the solution. All costs defined in the
model are reported in detail here with the exception of
costs related to TransitionAttributes that are only reported
in an aggregated way as of 2022/01.
total_cost
float
Total cost of the solution. The sum of all
values in the costs map.
[[["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 Metrics (1.11.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.2 (latest)](/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.11.0](/python/docs/reference/optimization/1.11.0/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.10.0](/python/docs/reference/optimization/1.10.0/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.9.1](/python/docs/reference/optimization/1.9.1/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.8.5](/python/docs/reference/optimization/1.8.5/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.7.0](/python/docs/reference/optimization/1.7.0/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.6.0](/python/docs/reference/optimization/1.6.0/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.5.0](/python/docs/reference/optimization/1.5.0/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.4.3](/python/docs/reference/optimization/1.4.3/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.3.2](/python/docs/reference/optimization/1.3.2/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.2.0](/python/docs/reference/optimization/1.2.0/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.1.3](/python/docs/reference/optimization/1.1.3/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [1.0.1](/python/docs/reference/optimization/1.0.1/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics)\n- [0.1.1](/python/docs/reference/optimization/0.1.1/google.cloud.optimization_v1.types.OptimizeToursResponse.Metrics) \n\n Metrics(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nOverall metrics, aggregated over all routes.\n\nClasses\n-------\n\n### CostsEntry\n\n CostsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe abstract base class for a message."]]