首页 > 解决方案 > Excel simplex LP solver MOQ

问题描述

I am trying to optimize the purchase orders using Excel simplex LP solver.

The problem is when I need to decide among suppliers based on the MOQs.

If the quantity to order is large, I can choose any supplier. However, if the necessary order size is small, I must choose among suppliers who accept small batches.

I need to create a decision on the amount to order that is 0 or >= MOQ.

Here is an example file: https://drive.google.com/file/d/1DnxsRe1vhsDxRL-G8jHdCBMGkO-qqfwV/view?usp=sharing

标签: excelsolversimplexbatchsize

解决方案


好吧,我根本不从这里下载文件,所以我把一些数据放在一起,向你展示你能做什么。

您可以像我处理成本一样编辑该方法,但您可能希望使用利润并尽可能解决问题,然后您需要考虑约束......

在此处输入图像描述

带有 if() 的单元格不被求解器使用,而是在计算路径中,因为它们是 sumproduct() 中的数组之一。

你可以看到我选择了线性引擎,因为这就是所有必要的。

您可能需要更改方法,因为标准求解器的大小有限,但 Frontline 为金钱做了一个扩展的...


推荐阅读