楼主: heyang1984
2067 0

有关PROC LP建模中的实例问题 [推广有奖]

  • 0关注
  • 0粉丝

初中生

0%

还不是VIP/贵宾

-

威望
0
论坛币
847 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
40 点
帖子
2
精华
0
在线时间
16 小时
注册时间
2005-6-19
最后登录
2016-6-5

楼主
heyang1984 发表于 2015-10-8 10:56:56 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
以下是一个用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.

建立了如下的数学模型:

1.PNG


preference data 和解答的程序如下:

程序.docx (18.34 KB)

二维码

扫码加我 拉你入群

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

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

关键词:ROC Unavailable Constraints Scheduling Preference objective function addition problem people

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 03:17