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