Cloud Optimization v1 API - Class OptimizeToursResponse.Types.Metrics (2.0.0)

public sealed class 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.

Inheritance

Object > OptimizeToursResponse.Types.Metrics

Namespace

Google.Cloud.Optimization.V1

Assembly

Google.Cloud.Optimization.V1.dll

Constructors

Metrics()

public Metrics()

Metrics(OptimizeToursResponse.Types.Metrics)

public Metrics(OptimizeToursResponse.Types.Metrics other)
Parameter
NameDescription
otherOptimizeToursResponse.Types.Metrics

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
TypeDescription
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
TypeDescription
MapField<String, Double>

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
TypeDescription
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
TypeDescription
Timestamp

SkippedMandatoryShipmentCount

public int SkippedMandatoryShipmentCount { get; set; }

Number of mandatory shipments skipped.

Property Value
TypeDescription
Int32

TotalCost

public double TotalCost { get; set; }

Total cost of the solution. The sum of all values in the costs map.

Property Value
TypeDescription
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
TypeDescription
Int32