Class OptimizeToursResponse.Types.Metrics
Overall metrics, aggregated over all routes.
Implements
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class OptimizeToursResponse.Types.Metrics : IMessage<OptimizeToursResponse.Types.Metrics>, IEquatable<OptimizeToursResponse.Types.Metrics>, IDeepCloneable<OptimizeToursResponse.Types.Metrics>, IBufferMessage, IMessage
Constructors
Metrics()
Declaration
public Metrics()
Metrics(Metrics)
Declaration
public Metrics(OptimizeToursResponse.Types.Metrics other)
Parameters
Type | Name | Description |
---|---|---|
OptimizeToursResponse.Types.Metrics | other |
Properties
AggregatedRouteMetrics
Aggregated over the routes. Each metric is the sum (or max, for loads) over all [ShipmentRoute.metrics][google.maps.routeoptimization.v1.ShipmentRoute.metrics] fields of the same name.
Declaration
public AggregatedMetrics AggregatedRouteMetrics { get; set; }
Property Value
Type | Description |
---|---|
AggregatedMetrics |
Costs
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.
Declaration
public MapField<string, double> Costs { get; }
Property Value
Type | Description |
---|---|
MapField<string, double> |
EarliestVehicleStartTime
The earliest start time for a used vehicle, computed as the minimum over all used vehicles of [ShipmentRoute.vehicle_start_time][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_start_time].
Declaration
public Timestamp EarliestVehicleStartTime { get; set; }
Property Value
Type | Description |
---|---|
Timestamp |
LatestVehicleEndTime
The latest end time for a used vehicle, computed as the maximum over all used vehicles of [ShipmentRoute.vehicle_end_time][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_end_time].
Declaration
public Timestamp LatestVehicleEndTime { get; set; }
Property Value
Type | Description |
---|---|
Timestamp |
SkippedMandatoryShipmentCount
Number of mandatory shipments skipped.
Declaration
public int SkippedMandatoryShipmentCount { get; set; }
Property Value
Type | Description |
---|---|
int |
TotalCost
Total cost of the solution. The sum of all values in the costs map.
Declaration
public double TotalCost { get; set; }
Property Value
Type | Description |
---|---|
double |
UsedVehicleCount
Number of vehicles used. Note: if a vehicle route is empty and [Vehicle.used_if_route_is_empty][google.maps.routeoptimization.v1.Vehicle.used_if_route_is_empty] is true, the vehicle is considered used.
Declaration
public int UsedVehicleCount { get; set; }
Property Value
Type | Description |
---|---|
int |