cplex - is this single machine batching problem even solveable in CPLEX
问题描述
I am currently trying to implement a practical problem for my seminar thesis and don't know how to implement it correctly into Cplex. This is a screenshot of the excel sheet i have to work with. There orders for the next 2 years can be seen. those orders have to be put on a single machine. The machine is like a production drum with four equal quarts. Those quarters have different capacities for different set up groups. Line 2 for example the quarter capacity is 15 for this set up group which means if 17 are required as can be seen the first quadrant is full 15/15 and the second quadrant 02/15, third and fourth quarter are empty. now the task is to find other orders which the same set up group to batch them together in order to increase utilization of this machine.
One special thing is also that orders with the same set up group and same capacity consumption can be put together in one quarter. if the set up group is the same but the capacity consumption is different (because different size in real life) the bigger/smaller sized orders have to be put in a new quarter.
For me it seems like a modified bin packing problem. In Python, I solved it already as it is easier there to use an own heuristic. I don't know how to put this into a mathematical formulation
解决方案
我建议查看 CPLEX 附带的各种示例。它们包括调度和包装示例。
一种简单的方法是有一个由订单和季度索引的二元决策,当且仅当订单在本季度开始时为 1。然后添加每个订单恰好在一个季度开始的约束,并添加禁止订单重叠的约束,禁止两个不同类型的订单在同一季度等。
推荐阅读
- python - 如何在两列之间找到最新实例并从该实例的不同列中获取值?
- machine-learning - 如何使用 Tensorflow.JS 实现 softmax
- amazon-web-services - 如何使用 python 代码检查 AWS EFS 上的事件
- python - Python unittest:在 setUp 中访问修饰的测试属性
- c# - 多线程死锁问题
- postgresql - 在 Postgresql 中向用户授予权限从不授予权限
- python - Python:格式说明符(使用 %)没有正确舍入
- c - 循环两个数组时最小化时间复杂度
- css - 我正在尝试添加 Vue.js css 文件,但出现错误“找不到要导入的样式表”
- php - .htacess 重写 url 不适用于 php 文件,但适用于 html 文件