LP Python系列生产计划中的切换
我正在尝试创建一个使用线性编程来优化生产的脚本。 有两条线重叠的产品: 第1行可以产生:A,B,C的每天10吨。 第2行可以产生:A,B,D每天8吨。
通常每行每天24小时工作。
切换生产的产品类型之间的界限需要2个小时。因此,如果最后一天生产产品生产产品,而今天的求解器认为,有必要生产10个小时的产品A,其余时间生产新产品B,那么当天的时间限制将是22小时。
希望每3天不超过一次。
我们得到的输入是数据:
- 每天要出售每种产品的所需卷 示例:第1天需要5吨产品A,6吨产品D,第2天需要8吨产品C,2吨产品a。
- 第1天开始时的初始库存余额为3吨产品A,2吨产品B和3吨产品c。
有必要获取有关哪个行的输出的数据,以最大程度地提高产品的生产并考虑出售货物的要求,以最大程度地生产产品。
我不明白如何考虑产品之间的线路和此切换2小时的时间成本的切换。
I am trying to create a script to optimize production using linear programming.
There are 2 lines that have overlapping products:
Line 1 can produce: a,b,c in a volume of 10 tons per day.
Line 2 can produce: a,b,d in the amount of 8 tons per day.
Usually each line works 24 hours a day.
Switching the line between the type of product produced takes 2 hours. Accordingly, if the last day 1 line produced a product, and today the solver believes that it is necessary to produce 10 hours of product a and the rest of the time to produce a new product b, then the time limit for the day will be 22 hours.
It is desirable to switch the line no more than once every 3 days.
The input we get is the data:
- the required volume of each product each day to sell
Example: day 1 requires 5 tons of product a, 6 tons of product d, day 2 requires 8 tons of product c, 2 tons of product a. - The initial stock balance at the beginning of day 1 is 3 tons of product a, 2 tons of product b, and 3 tons of product c.
It is necessary to get data on the output of which line at what time what product is produced each day during the month in order to maximize the production of the product and take into account the requirements for shipments for sale.
I can not understand how to take into account the possible switching of the line between products and the time cost of 2 hours for this switching.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
取决于模型的细节(例如离散时间与连续时间等)。没有更多详细信息,这将无法回答。如何建模转换是众所周知的,但是解释这需要一些文本,数学和图形,并不真正适合这个论坛。您可能需要进行文献搜索,以查看其他人在这一领域所做的事情。请注意,没有现有的已发布模型会准确地做您想要的事情,但它应该给您一些想法。
Depends on the details of the model (e.g. discrete-time vs continuous-time etc). This cannot be answered without much more detailed information. How to model changeovers is well known, but explaining this requires quite some text and math and graphics, not really suited for this forum. You may want to do a literature search to see what others have done in this area. Note that no existing published model will exactly do what you want, but it should give you some ideas.