Reference documentation and code samples for the Cloud Optimization v1 API enum OptimizeToursRequest.Types.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][google.cloud.optimization.v1.OptimizeToursRequest.max_validation_errors]
to cap the number of errors returned.
Only populates
[OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
or
[OptimizeToursResponse.skipped_shipments][google.cloud.optimization.v1.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][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
field and
[OptimizeToursResponse.skipped_shipments][google.cloud.optimization.v1.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.
ValidateOnly
Only validates the model without solving it: populates as many
[OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
as possible.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This document provides reference documentation for the `OptimizeToursRequest.Types.SolvingMode` enum within the Google Cloud Optimization v1 API, used to define how the solver processes requests."],["The latest version available is 2.6.0, with several previous versions also documented, ranging down to 1.0.0-beta01."],["The `OptimizeToursRequest.Types.SolvingMode` enum includes options such as `DefaultSolve`, `DetectSomeInfeasibleShipments`, and `ValidateOnly` to control the solver's behavior."],["The `ValidateOnly` mode allows users to check the model for errors without performing a full solve, populating `OptimizeToursResponse.validation_errors` with any detected issues."],["`DetectSomeInfeasibleShipments` mode identifies potential infeasible shipments during the validation process, populating either `OptimizeToursResponse.validation_errors` or `OptimizeToursResponse.skipped_shipments` in the response."]]],[]]