cuopt-server-common
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesecuOpt Server (common)
cuOpt Server (通用版)
Domain concepts for the cuOpt REST server. No deploy commands or client code here.
cuOpt REST服务器的领域概念讲解。此处不涉及部署命令或客户端代码。
What the server does
服务器功能
- Accepts optimization requests (routing, LP, MILP) over HTTP.
- Returns a request ID; solution is obtained by polling with that ID.
- Does not support QP via REST.
- 通过HTTP接收优化请求(路由、LP、MILP)。
- 返回请求ID;需通过该ID轮询获取解决方案。
- 不支持通过REST发送QP请求。
Problem types supported
支持的问题类型
| Problem type | Supported |
|---|---|
| Routing | ✓ |
| LP | ✓ |
| MILP | ✓ |
| QP | ✗ |
| 问题类型 | 是否支持 |
|---|---|
| 路由 | ✓ |
| LP | ✓ |
| MILP | ✓ |
| QP | ✗ |
Request flow (conceptual)
请求流程(概念性说明)
- Client sends problem data in the required schema (matrices, tasks, fleet, solver config).
- Server returns a .
reqId - Client polls the solution endpoint with until the job completes.
reqId - Response contains status and, on success, solution (routes, objective, primal values, etc.).
- 客户端按照要求的 schema(矩阵、任务、车队、求解器配置)发送问题数据。
- 服务器返回。
reqId - 客户端使用轮询解决方案端点,直到任务完成。
reqId - 响应包含状态信息,成功时还会返回解决方案(路线、目标值、原始值等)。
Required questions (deployment and usage)
部署与使用需明确的问题
Ask these if not already clear:
- Problem type — Routing or LP/MILP? (QP not available.)
- Deployment — Local, Docker, Kubernetes, or cloud?
- Client — Which language or tool will call the API (e.g. Python, curl, another service)?
若以下问题尚未明确,请确认:
- 问题类型——路由问题还是LP/MILP问题?(暂不支持QP。)
- 部署方式——本地、Docker、Kubernetes还是云端?
- 客户端——将使用哪种语言或工具调用API(例如Python、curl、其他服务)?
Key endpoints (conceptual)
核心端点(概念性说明)
- Health check.
- Submit request (POST).
- Get solution by request ID (GET).
- OpenAPI spec (e.g. for payload format).
- 健康检查。
- 提交请求(POST)。
- 通过请求ID获取解决方案(GET)。
- OpenAPI规范(用于查看负载格式等)。