Class OptimizeToursResponse (2.0.0-beta01)

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.

Inheritance

Object > OptimizeToursResponse

Namespace

Google.Cloud.Optimization.V1

Assembly

Google.Cloud.Optimization.V1.dll

Constructors

OptimizeToursResponse()

public OptimizeToursResponse()

OptimizeToursResponse(OptimizeToursResponse)

public OptimizeToursResponse(OptimizeToursResponse other)
Parameter
NameDescription
otherOptimizeToursResponse

Properties

Metrics

public OptimizeToursResponse.Types.Metrics Metrics { get; set; }

Duration, distance and usage metrics for this solution.

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
RepeatedField<ShipmentRoute>

SkippedShipments

public RepeatedField<SkippedShipment> SkippedShipments { get; }

The list of all shipments skipped.

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
RepeatedField<OptimizeToursValidationError>