MathOpt 服务
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
MathOpt 是一个 API,用于对 C++ 和 Python 中的优化问题进行建模和解决。MathOpt 服务是 OR API 中的一组实验性方法,可让您使用端点远程解决数学优化问题:
https://optimization.googleapis.com/v1/mathopt:solveMathOptModel
MathOpt 功能
MathOpt 模型可以包含:
- 整数或连续变量
- 线性约束或二次约束
- 线性目标或二次目标
模型的定义独立于任何求解器,并且求解器可以互换交换。SolveMathOptModel
支持以下求解器:
在求解模型时,MathOpt 服务支持 MathOpt 的大多数功能,包括:
- 双重身份
- 原始光与双光
- 次优原始解和双重解
- 温启动(按解决方案或基于)
- 详细的终止原因
- 分支优先级
- 许多求解器独立参数
尚不支持回调、增量和中断。MathOpt 服务将来将使用更丰富的通信协议支持这些功能。
设置和安装
如需使用 MathOpt 的远程求解功能,您需要可以按照设置指南获取的 API 密钥。MathOpt 提供 C++ 和 Python 版客户端库,从 9.9 版起,这些库就作为 OR-Tools 的一部分提供。
如果您有与 MathOpt 服务相关的问题,请发送电子邮件至 or-mathopt-service+support@google.com。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-09。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-08-09。"],[[["MathOpt is an API that allows you to model and solve optimization problems using C++ and Python, with the MathOpt service enabling remote problem-solving via a dedicated endpoint."],["MathOpt supports a variety of model components, including integer/continuous variables, linear/quadratic constraints, and linear/quadratic objectives, and offers flexibility in solver selection with options like GLOP, PDLP, CP-SAT, SCIP, GLPK, OSQP, and HiGHS."],["The MathOpt service provides access to features such as duality, primal and dual rays, suboptimal solutions, warm starts, detailed termination reasons, and branching priority, while callbacks, incrementalism, and interruption are planned for future updates."],["To utilize the MathOpt service's remote solving capabilities, you will need an API key and the OR-Tools client libraries (available since release 9.9) for C++ and Python."]]],["MathOpt API allows modeling and remotely solving optimization problems via the `https://optimization.googleapis.com/v1/mathopt:solveMathOptModel` endpoint, supporting integer/continuous variables, linear/quadratic constraints, and objectives. Models are solver-independent, with supported solvers including GLOP, PDLP, CP-SAT, SCIP, GLPK, OSQP, and HiGHS. Features like duality, warm starts, and detailed termination reasons are available. Access requires an API key, and client libraries are in OR-Tools release 9.9. Future features will include callbacks, incrementalism, and interruption.\n"]]