版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 上海市徐汇区上海第四中学2026届生物高一下期末统考试题含解析
- 2026届山东省金乡县金育高级中学生物高三上期末预测试题含解析
- 2025年泰安英语考编笔试真题及答案
- 2025年厚街事业单位编外笔试及答案
- 2025年天津事业单位编外考试题及答案
- 2025年美甲互联网运营面试题库及答案
- 2025年水质化验员实操面试题库及答案
- 2025年海南工商职业学院单招综合素质考试题库附答案解析
- 2025年和田县幼儿园教师招教考试备考题库附答案解析(必刷)
- 2025年栾川县招教考试备考题库及答案解析(夺冠)
- 2026年销售人员心理调适与应对策略试题
- 2026黑龙江哈尔滨家五常市广源农林综合开发有限公司招聘工作人员5人备考题库及一套完整答案详解
- 2026年及未来5年市场数据中国金属铍行业市场竞争格局及发展趋势预测报告
- 2025年建筑工程安全生产标准化手册
- 2025-2030中国动物狂犬病疫苗行业发展现状及趋势前景分析研究报告
- 2026年郑州电力高等专科学校高职单招职业适应性测试参考题库含答案解析
- 制造业员工薪资等级评定及岗位体系方案
- 药品抽检应急预案(3篇)
- 克服ALK靶向耐药的免疫联合治疗新策略
- 基于凝血指标的脓毒症分层管理策略
- 手术室手术前准备规定
评论
0/150
提交评论