public sealed class OptimizeToursResponse : IMessage<OptimizeToursResponse>, IEquatable<OptimizeToursResponse>, IDeepCloneable<OptimizeToursResponse>, IBufferMessage, IMessage
Response after solving a tour optimization problem containing the routes followed by each vehicle, the shipments which have been skipped and the overall cost of the solution.
Implements
IMessage<OptimizeToursResponse>, IEquatable<OptimizeToursResponse>, IDeepCloneable<OptimizeToursResponse>, IBufferMessage, IMessageNamespace
Google.Cloud.Optimization.V1Assembly
Google.Cloud.Optimization.V1.dll
Constructors
OptimizeToursResponse()
public OptimizeToursResponse()
OptimizeToursResponse(OptimizeToursResponse)
public OptimizeToursResponse(OptimizeToursResponse other)
Parameter | |
---|---|
Name | Description |
other | OptimizeToursResponse |
Properties
Metrics
public OptimizeToursResponse.Types.Metrics Metrics { get; set; }
Duration, distance and usage metrics for this solution.
Property Value | |
---|---|
Type | Description |
OptimizeToursResponse.Types.Metrics |
RequestLabel
public string RequestLabel { get; set; }
Copy of the [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label], if a label was specified in the request.
Property Value | |
---|---|
Type | Description |
String |
Routes
public RepeatedField<ShipmentRoute> Routes { get; }
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.
Property Value | |
---|---|
Type | Description |
RepeatedField<ShipmentRoute> |
SkippedShipments
public RepeatedField<SkippedShipment> SkippedShipments { get; }
The list of all shipments skipped.
Property Value | |
---|---|
Type | Description |
RepeatedField<SkippedShipment> |
TotalCost
[Obsolete]
public double TotalCost { get; set; }
Deprecated: Use [Metrics.total_cost][] instead. Total cost of the solution. This takes into account all costs: costs per per hour and travel hour, fixed vehicle costs, unperformed shipment penalty costs, global duration cost, etc.
Property Value | |
---|---|
Type | Description |
Double |
ValidationErrors
public RepeatedField<OptimizeToursValidationError> ValidationErrors { get; }
List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError] message.
Property Value | |
---|---|
Type | Description |
RepeatedField<OptimizeToursValidationError> |