Cloud Optimization V1 API - Class Google::Cloud::Optimization::V1::OptimizeToursResponse (v0.8.2)

Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#metrics

def metrics() -> ::Google::Cloud::Optimization::V1::OptimizeToursResponse::Metrics
Returns

#metrics=

def metrics=(value) -> ::Google::Cloud::Optimization::V1::OptimizeToursResponse::Metrics
Parameter
Returns

#request_label

def request_label() -> ::String
Returns

#request_label=

def request_label=(value) -> ::String
Parameter
Returns

#routes

def routes() -> ::Array<::Google::Cloud::Optimization::V1::ShipmentRoute>
Returns

#routes=

def routes=(value) -> ::Array<::Google::Cloud::Optimization::V1::ShipmentRoute>
Parameter
Returns

#skipped_shipments

def skipped_shipments() -> ::Array<::Google::Cloud::Optimization::V1::SkippedShipment>
Returns

#skipped_shipments=

def skipped_shipments=(value) -> ::Array<::Google::Cloud::Optimization::V1::SkippedShipment>
Parameter
Returns

#total_cost

def total_cost() -> ::Float
Returns
  • (::Float) — 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.

#total_cost=

def total_cost=(value) -> ::Float
Parameter
  • value (::Float) — 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.
Returns
  • (::Float) — 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.

#validation_errors

def validation_errors() -> ::Array<::Google::Cloud::Optimization::V1::OptimizeToursValidationError>
Returns

#validation_errors=

def validation_errors=(value) -> ::Array<::Google::Cloud::Optimization::V1::OptimizeToursValidationError>
Parameter
Returns