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.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).
IMPORTANT: not all infeasible shipments are returned here, but only the
ones that are detected as infeasible as a 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 information for the `OptimizeToursRequest.Types.SolvingMode` enum within the Cloud Optimization v1 API, detailing the different modes available for handling solver requests."],["The latest version documented is 2.6.0, with previous versions available ranging from 2.5.0 down to an early 1.0.0-beta01."],["The `SolvingMode` enum offers options including `DefaultSolve` for standard model solving, `DetectSomeInfeasibleShipments` to identify infeasible shipments, and `ValidateOnly` for model validation without solving."],["When using modes other than `VALIDATE_ONLY`, an `INVALID_REQUEST` error is thrown if the request is invalid, and can be capped using `max_validation_errors`."],["The `DetectSomeInfeasibleShipments` mode does not fully solve the request, but preprocesses the request and detects some of the infeasible shipments."]]],[]]