AI-generated Key Takeaways
-
The solver's behavior is determined by the selected mode, with modes other than
VALIDATE_ONLYreturning anINVALID_REQUESTerror for invalid requests. -
DEFAULT_SOLVEsolves the model and may provide warnings inOptimizeToursResponse.validation_errors. -
VALIDATE_ONLYsolely validates the model, populatingOptimizeToursResponse.validation_errorswith as many errors as possible. -
DETECT_SOME_INFEASIBLE_SHIPMENTSfocuses on identifying and populating infeasible shipments intoOptimizeToursResponse.validation_errorsorOptimizeToursResponse.skipped_shipmentswithout fully solving the request, but it doesn't find all infeasible shipments.
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 maxValidationErrors to cap the number of errors returned.
| Enums | |
|---|---|
DEFAULT_SOLVE |
Solve the model. Warnings may be issued in [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]. |
VALIDATE_ONLY |
Only validates the model without solving it: populates as many OptimizeToursResponse.validation_errors as possible. |
DETECT_SOME_INFEASIBLE_SHIPMENTS |
Only populates IMPORTANT: not all infeasible shipments are returned here, but only the ones that are detected as infeasible during preprocessing. |