Cloud Optimization V1 API - Module Google::Cloud::Optimization::V1::OptimizeToursRequest::SolvingMode (v0.3.0)

Reference documentation and code samples for the Cloud Optimization V1 API module Google::Cloud::Optimization::V1::OptimizeToursRequest::SolvingMode.

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.

Constants

DEFAULT_SOLVE

value: 0
Solve the model.

VALIDATE_ONLY

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

DETECT_SOME_INFEASIBLE_SHIPMENTS

value: 2
Only populates OptimizeToursResponse.skipped_shipments, and doesn't actually solve the rest of the request (status and routes are unset in the response).

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