实现饲料配方管理及自动生成配方 #66

Closed
opened 2025-11-15 16:04:56 +08:00 by huang · 1 comment
Owner

需求

  • 饲料配方管理
  • 根据原料库存自动判断可用配方
  • 自动根据原料库存和猪只信息生成饲料配方(线性规划算法)
  • 控制线性规划的精确度? (不做, 不用控制精度)

方案

  1. 使用线性规划算法
  2. 有多种饲料, 每种饲料有多种营养(有些营养数据是缺失的), 有多种营养需求, 根据此计算成本最低的组合
  3. 要考虑快过期和库存太多的情况, 可以加权或者根据保质期和营养流失计算调整后成本, 用新的成本计算
## 需求 - [x] 饲料配方管理 - [x] 根据原料库存自动判断可用配方 - [x] 自动根据原料库存和猪只信息生成饲料配方(线性规划算法) - [x] 控制线性规划的精确度? (不做, 不用控制精度) ## 方案 1. 使用线性规划算法 2. 有多种饲料, 每种饲料有多种营养(有些营养数据是缺失的), 有多种营养需求, 根据此计算成本最低的组合 3. 要考虑快过期和库存太多的情况, 可以加权或者根据保质期和营养流失计算调整后成本, 用新的成本计算
huang added the
enhancement
label 2025-11-15 16:04:56 +08:00
Author
Owner
[开发文档](http://git.huangwc.com/pig/pig-farm-controller/src/commit/d25933cf26d6a0d1db0677f09bf4cee1e3f720c3/design/archive/2025-11-29-recipe-management/index.md)
huang closed this issue 2025-11-29 15:40:53 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pig/pig-farm-controller#66
No description provided.