搜索
人大经济论坛 附件下载

附件下载

所在主题:
文件名:  程序.docx
资料下载链接地址: https://bbs.pinggu.org/a-1889737.html
附件大小:
18.34 KB   举报本内容
以下是一个用proc lp 解决的scheduling problem:
我不明白的是hour{i}=hour的含义和作用
以及在build the objective function 过程中是怎么实现i和slot的循环
retain在这个程序中的具体作用是什么?
求高手解答 万分感谢!


需要解决一个scheduling problem 原问题如下:
you have eight one-hour time slotsin each of five days. You have to assign four people to these time slots sothat each slot is covered on every day. You allow the people to specifypreference data for each slot on each day. In addition, there are constraintsthat must be satisfied:Each person has some slots for which they are unavailable.
Each person must have either slot 4 or 5 off for lunch.
Each person can work only two time slots in a row.
Each person can work only a specified number of hours in the week.

建立了如下的数学模型:


preference data 和解答的程序如下:



    熟悉论坛请点击新手指南
下载说明
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。
2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。
3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。
(如有侵权,欢迎举报)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

GMT+8, 2025-12-30 05:11