Class AggregatedMetrics (1.4.3)

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

Aggregated metrics for ShipmentRoute (resp. for OptimizeToursResponse over all Transition and/or Visit (resp. over all ShipmentRoute) elements.

Attributes

NameDescription
performed_shipment_count int
Number of shipments performed. Note that a pickup and delivery pair only counts once.
travel_duration google.protobuf.duration_pb2.Duration
Total travel duration for a route or a solution.
wait_duration google.protobuf.duration_pb2.Duration
Total wait duration for a route or a solution.
delay_duration google.protobuf.duration_pb2.Duration
Total delay duration for a route or a solution.
break_duration google.protobuf.duration_pb2.Duration
Total break duration for a route or a solution.
visit_duration google.protobuf.duration_pb2.Duration
Total visit duration for a route or a solution.
total_duration google.protobuf.duration_pb2.Duration
The total duration should be equal to the sum of all durations above. For routes, it also corresponds to: :: ShipmentRoute.vehicle_end_time - ShipmentRoute.vehicle_start_time
travel_distance_meters float
Total travel distance for a route or a solution.
max_loads MutableMapping[str, google.cloud.optimization_v1.types.ShipmentRoute.VehicleLoad]
Maximum load achieved over the entire route (resp. solution), for each of the quantities on this route (resp. solution), computed as the maximum over all Transition.vehicle_loads (resp. ShipmentRoute.metrics.max_loads.
costs MutableMapping[str, float]
Deprecated: Use ShipmentRoute.route_costs and OptimizeToursResponse.Metrics.costs instead.
total_cost float
Deprecated: Use ShipmentRoute.route_total_cost and OptimizeToursResponse.Metrics.total_cost instead.

Classes

CostsEntry

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

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

MaxLoadsEntry

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

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.