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
- (::Google::Cloud::Optimization::V1::OptimizeToursResponse::Metrics) — Duration, distance and usage metrics for this solution.
#metrics=
def metrics=(value) -> ::Google::Cloud::Optimization::V1::OptimizeToursResponse::Metrics
Parameter
- value (::Google::Cloud::Optimization::V1::OptimizeToursResponse::Metrics) — Duration, distance and usage metrics for this solution.
Returns
- (::Google::Cloud::Optimization::V1::OptimizeToursResponse::Metrics) — Duration, distance and usage metrics for this solution.
#request_label
def request_label() -> ::String
Returns
- (::String) — Copy of the OptimizeToursRequest.label, if a label was specified in the request.
#request_label=
def request_label=(value) -> ::String
Parameter
- value (::String) — Copy of the OptimizeToursRequest.label, if a label was specified in the request.
Returns
- (::String) — Copy of the OptimizeToursRequest.label, if a label was specified in the request.
#routes
def routes() -> ::Array<::Google::Cloud::Optimization::V1::ShipmentRoute>
Returns
- (::Array<::Google::Cloud::Optimization::V1::ShipmentRoute>) — Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.
#routes=
def routes=(value) -> ::Array<::Google::Cloud::Optimization::V1::ShipmentRoute>
Parameter
- value (::Array<::Google::Cloud::Optimization::V1::ShipmentRoute>) — Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.
Returns
- (::Array<::Google::Cloud::Optimization::V1::ShipmentRoute>) — Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.
#skipped_shipments
def skipped_shipments() -> ::Array<::Google::Cloud::Optimization::V1::SkippedShipment>
Returns
- (::Array<::Google::Cloud::Optimization::V1::SkippedShipment>) — The list of all shipments skipped.
#skipped_shipments=
def skipped_shipments=(value) -> ::Array<::Google::Cloud::Optimization::V1::SkippedShipment>
Parameter
- value (::Array<::Google::Cloud::Optimization::V1::SkippedShipment>) — The list of all shipments skipped.
Returns
- (::Array<::Google::Cloud::Optimization::V1::SkippedShipment>) — The list of all shipments skipped.
#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
- (::Array<::Google::Cloud::Optimization::V1::OptimizeToursValidationError>) — List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message.
#validation_errors=
def validation_errors=(value) -> ::Array<::Google::Cloud::Optimization::V1::OptimizeToursValidationError>
Parameter
- value (::Array<::Google::Cloud::Optimization::V1::OptimizeToursValidationError>) — List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message.
Returns
- (::Array<::Google::Cloud::Optimization::V1::OptimizeToursValidationError>) — List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message.