Cloud Optimization v1 API - Class OptimizeToursResponse (2.6.0)

public sealed class OptimizeToursResponse : IMessage<OptimizeToursResponse>, IEquatable<OptimizeToursResponse>, IDeepCloneable<OptimizeToursResponse>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Optimization v1 API class OptimizeToursResponse.

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
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
OptimizeToursResponseTypesMetrics

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
RepeatedFieldShipmentRoute

SkippedShipments

public RepeatedField<SkippedShipment> SkippedShipments { get; }

The list of all shipments skipped.

Property Value
Type Description
RepeatedFieldSkippedShipment

TotalCost

[Obsolete]
public double TotalCost { get; set; }

Deprecated: Use [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.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
RepeatedFieldOptimizeToursValidationError