SolvingMode
定义求解器应如何处理请求。在除 VALIDATE_ONLY
以外的所有模式下,如果请求无效,您会收到 INVALID_REQUEST
错误。如需限制返回的错误数量,请参阅 maxValidationErrors
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-04-08。
[null,null,["最后更新时间 (UTC):2024-04-08。"],[[["Defines how the solver processes the request, dictating whether it solves the model, validates it, or detects infeasible shipments."],["Offers three modes: `DEFAULT_SOLVE` for solving, `VALIDATE_ONLY` for validation, and `DETECT_SOME_INFEASIBLE_SHIPMENTS` for identifying problematic shipments."],["In all modes except `VALIDATE_ONLY`, invalid requests will return an `INVALID_REQUEST` error, with potential for controlling the number of error messages."],["The `DETECT_SOME_INFEASIBLE_SHIPMENTS` mode focuses on pre-processing infeasibility detection without fully solving the problem."]]],[]]