feat: 完成 issue #79 [Ti-2] 配方优化求解器集成(网格枚举+坐标下降轻量求解器+solve统一入口,求解器无关契约)

This commit is contained in:
2026-08-05 04:00:57 +08:00
parent 2aa70d078b
commit c42846e18a
4 changed files with 524 additions and 3 deletions
+4 -2
View File
@@ -10,9 +10,11 @@
- `problem.py` — 优化问题建模(**#78**):决策变量 / 目标 / 约束的声明式规格 +
校验 + 可行性判定 + 零依赖 YAML 子集加载。
- `solver.py` — 求解器集成(**#79**):`SolverConfig` + `Solution` + 网格枚举/
坐标下降轻量求解器 + `solve()` 统一入口,求解器无关契约。
- `config/recipe_optim.template.yaml` — Template-Ti 配方优化模板资产。
- `tests/` — 单元测试(`python -m unittest discover -s tests`)。
- `_sanity_check.py` — 部署期一键自检(5 能力点)。
- `tests/` — 单元测试(`python -m unittest discover -s tests`,46 用例)。
- `_sanity_check.py` — 部署期一键自检(6 能力点)。
## 设计