版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 《GB-T 27509-2011透射式投影器 投影台尺寸》专题研究报告
- 《GBT 33452-2016 洗染术语》专题研究报告
- 《储能材料与器件分析测试技术》课件-BTS测试软件设置与认知
- 《宠物鉴赏》课件-北京犬
- 2026年成都纺织高等专科学校单招职业倾向性测试题库及参考答案详解
- 《药品生物检定技术》创新课件-中医药智慧康养度假村商业蓝图
- 虚拟电厂能源调度信息服务合同
- 智能手表维修技师(中级)考试试卷及答案
- 珠宝设计师岗位招聘考试试卷及答案
- 2026年安全检查工作计划
- 村级事务监督工作报告
- T/TAC 10-2024机器翻译伦理要求
- 兄妹合伙买房协议书
- 家庭农场项目可行性报告
- 施工升降机防护方案
- 温室大棚可行性报告修改版
- JISG3141-2017冷轧钢板及钢带
- 瑞加诺生注射液-药品临床应用解读
- 2025中医体重管理临床指南
- xx区老旧街区改造项目可行性研究报告
- 《新闻基础知识》近年考试真题题库(附答案)
评论
0/150
提交评论