Page Summary
-
The
DEFAULT_SOLVEmode solves the model, while other modes focus on validation or error detection. -
VALIDATE_ONLYmode checks the model's validity and returns as many errors as possible, without solving the model. -
DETECT_SOME_INFEASIBLE_SHIPMENTSmode only detects and reports infeasible shipments during preprocessing and does not solve the rest of the request. -
All modes except
VALIDATE_ONLYwill return anINVALID_REQUESTerror if the request is invalid, you can usemaxValidationErrorsto limit the amount of errors returned.
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. |
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. |