版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、例题讲解Model:title Assignment Problem;sets:worker/w1,w2,w3,w4,w5/:capacity;job/j1,j2,j3,j4,j5/:demend;routes(worker,job):cost,volume;endsetsmin=sum(routes:cost*volume);for(job(j):sum(worker(i):volume(i,j)=demend(j);for(worker(i):sum(job(j):volume(i,j)=capacity(i);data:capacity=1,1,1,1,1;demend=1,1,1,1,
2、1;cost=8 6 10 9 12 9 12 7 11 9 7 4 3 5 8 9 5 8 11 8 4 6 7 5 11;Enddataend练习For our example, we have eleven tasks (A through K) to assign to four workstations (1 through 4). The task precedence diagram looks like this:The times to complete the various tasks are given in the table below:Task:A B C D E
3、 F G H I J KMinutes:45 11 9 50 15 12 1212 12 8 9We need to find an assignment of tasks to workstations that minimize the assembly line抯 cycle time.MODEL: ! Assembly line balancing model; ! This model involves assigning tasks to stations in an assembly line so bottlenecks are avoided. Ideally, each s
4、tation would be assigned an equal amount of work.; SETS: ! The set of tasks to be assigned are A through K, and each task has a time to complete, T; TASK/ A B C D E F G H I J K/: T; ! Some predecessor,successor pairings must be observed(e.g. A must be done before B, B before C, etc.); PRED( TASK, TA
5、SK)/ A,B B,C C,F C,G F,J G,J J,K D,E E,H E,I H,J I,J /;! There are 4 workstations; STATION/1.4/; TXS( TASK, STATION): X; ! X is the attribute from the derived set TXS that represents the assignment. X(I,K) = 1 if task I is assigned to station K; ENDSETS DATA: ! Data taken from Chase and Aquilano, PO
6、M; ! There is an estimated time required for each task: A B C D E F G H I J K; T = 45 11 9 50 15 12 12 12 12 8 9; ENDDATA ! The model; ! *Warning* may be slow for more than 15 tasks; ! For each task, there must be one assigned station;FOR( TASK( I): SUM( STATION( K): X( I, K) = 1); ! Precedence cons
7、traints; ! For each precedence pair, the predecessor task I cannot be assigned to a later station than its successor task J; FOR( PRED( I, J): SUM( STATION( K): K * X( J, K) - K * X( I, K) = 0); ! For each station, the total time for the assigned tasks must be less than the maximum cycle time, CYCTI
8、ME; FOR( STATION( K): SUM( TXS( I, K): T( I) * X( I, K) = 0);Suppose task I is a predecessor to task J. If I were incorrectly assigned to a workstation later than J, the sum of the terms K * X( I, K) would exceed the sum of the terms K * X( J, K) and the constraint would be violated. Thus, this cons
9、traint effectively enforces the predecessor relations.We compute the cycle time using the following constraints:! For each station, the total time for the assigned tasks must be less than the maximum cycle time, CYCTIME; FOR( STATION( K): SUM( TXS( I, K): T( I) * X( I, K) = CYCTIME);The quantity:SUM
10、( TXS( I, K): T( I) * X( I, K)in this constraint computes the cycle time for station K. We use the FOR statement to make the CYCTIME variable greater than or equal to the cycle times for all the orkstations. If we couple this with the fact that we are minimizing CYCTIME in the objective, CYCTIME wil
11、l be squeezed into exactly equaling the maximum of the cycle times for each of the workstations. By squeezing CYCTIME to the correct value, we avoid using the MAX function. Had the MAX function been used, LINGO would have had to resort to its nonlinear solver to handle the piecewise linear MAX. Avoi
12、ding nonlinear models whenever possible is a critical modeling practice.Solving the model, we get the following nonzero values for the assignment variable X: Variable ValueSolution: ASLBALSummarizing this solution, we have:WorkstationAssigned TasksCycle Time1D502A453B, E, H, I504C, F, G, J, K50The cycle t
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 贵阳康养职业大学《焊接专业英语》2023-2024学年第一学期期末试卷
- 2025年上海市安全员B证考试题库及答案
- 广州医科大学《大学英语自主学习(Ⅱ)》2023-2024学年第一学期期末试卷
- 2025河北省安全员C证考试(专职安全员)题库附答案
- 2025年河北省建筑安全员《A证》考试题库及答案
- 2025云南省建筑安全员知识题库附答案
- 2025江西省建筑安全员《C证》考试题库
- 2025建筑安全员-B证考试题库附答案
- 2025河南省建筑安全员-C证(专职安全员)考试题库
- 《家庭常用急救知识》课件
- 2024-2025学年四年级科学上册第一单元《声音》测试卷(教科版)
- 林业专业知识考试试题及答案
- 2024年湖南省长沙市中考数学试题(含解析)
- 2024年大学华西医院运营管理部招考聘用3人高频难、易错点500题模拟试题附带答案详解
- 分股退股协议书模板下载
- 深圳市南山区2024-2025学年数学三年级第一学期期末教学质量检测模拟试题含解析
- 小学三年级信息技术考核方案
- 配电网工程工艺质量典型问题及解析
- 2023年二轮复习解答题专题二:一次函数的应用方案设计型(原卷版+解析)
- 木制家具保修协议
- 2024上海市化工职业病防治院上海市职业安全健康研究院工作人员招聘20人(高频重点复习提升训练)共500题附带答案详解
评论
0/150
提交评论