Module: Google::Cloud::Optimization::V1::OptimizeToursRequest::SolvingMode

Defined in:
proto_docs/google/cloud/optimization/v1/fleet_routing.rb

Overview

Defines how the solver should handle the request. In all modes but VALIDATE_ONLY, if the request is invalid, you will receive an INVALID_REQUEST error. See max_validation_errors to cap the number of errors returned.

Constant Summary collapse

DEFAULT_SOLVE =

Solve the model.

0
VALIDATE_ONLY =

Only validates the model without solving it: populates as many OptimizeToursResponse.validation_errors as possible.

1
DETECT_SOME_INFEASIBLE_SHIPMENTS =

Only populates OptimizeToursResponse.validation_errors or OptimizeToursResponse.skipped_shipments, and doesn't actually solve the rest of the request (status and routes are unset in the response). If infeasibilities in injected_solution_constraint routes are detected they are populated in the OptimizeToursResponse.validation_errors field and OptimizeToursResponse.skipped_shipments is left empty.

IMPORTANT: not all infeasible shipments are returned here, but only the ones that are detected as infeasible during preprocessing.

2