AI-generated Key Takeaways
-
The
DEFAULT_SOLVEmode solves the model and may issue warnings in theOptimizeToursResponse.validation_errors. -
The
VALIDATE_ONLYmode validates the model without solving, populating as manyOptimizeToursResponse.validation_errorsas possible. -
The
DETECT_SOME_INFEASIBLE_SHIPMENTSmode identifies some infeasible shipments during preprocessing, populatingOptimizeToursResponse.validation_errorsorOptimizeToursResponse.skipped_shipments, but does not solve the request. -
Invalid requests in modes other than
VALIDATE_ONLYwill result in anINVALID_REQUESTerror. -
The maximum number of validation errors returned can be capped using
maxValidationErrors.
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. |