湖南工业大学理学院
实验名称 实验时间 运筹学的了解 实验类型 实验地点 验证型 实验目的:了解lingo软件的安装、编程、运行、操作,进行求解基本线性规划问题,运用lingo进行灵敏度分析。 仪器、设备名称:安装有lingo的计算机 实验要求及注意事项:要求学生利用实验室提供的电脑仪器和指导教师给出的操作步骤认真完成规定的实验内容,认真地记录实验数据,对实验中遇到的各种问题应积极解决。实验完成后,应按时完成和提交实验报告。 实验内容、操作步骤: 1.了解lingo安装 2.用LINDO求解线性规划 (LP) 问题完成实验内容 题目 Max z=2x1+3x2+x3 ?1/3x1 +1/3x2 +1/3x3?1 ? s.t.?1/3x1?4/3x2?7/3x3?3 ?x,x,x?0?123试分析下列各条件下最优解(基)的变化 (1)目标函数中变量x3的系数变为6; (2)分别确定目标函数中变量x1和x2的系数c1和c2在什么范围内变动时最优解不变; (3)约束条件右端项由????变为????; (4)增加一个新的变量x6,p6=????,c6=7; (5)增添一个新的约束x1?2x2?x3?4. ?1??1??1??3??2??3?实验结果分析(含数据、图表整理): (1) Global optimal solution found. Objective value: 10.00000 Total solver iterations: 2 Variable Value Reduced Cost X1 2.000000 0.000000 X2 0.000000 1.000000 X3 1.000000 0.000000 Row Slack or Surplus Dual Price 1 10.00000 1.000000 2 0.000000 4.000000 3 0.000000 2.000000 (2)Ranges in which the basis is unchanged: Objective Coefficient Ranges Current Allowable Allowable Variable Coefficient Increase Decrease X1 2.000000 1.000000 1.250000 X2 3.000000 5.000000 1.000000 X3 1.000000 3.000000 INFINITY Righthand Side Ranges Row Current Allowable Allowable RHS Increase Decrease 2 1.000000 2.000000 0.2500000 3 3.000000 1.000000 2.000000 (3) Global optimal solution found. Objective value: 13.00000 Total solver iterations: 2 Variable Value Reduced Cost X1 5.000000 0.000000 X2 1.000000 0.000000 X3 0.000000 3.000000 Row Slack or Surplus Dual Price 1 13.00000 1.000000 2 0.000000 5.000000 3 0.000000 1.000000 (4) Global optimal solution found. Objective value: 8.333333 Total solver iterations: 2 Variable Value Reduced Cost X1 0.000000 0.3333333 X2 2.000000 0.000000 X3 0.000000 2.666667 X6 0.3333333 0.000000 Row Slack or Surplus Dual Price 1 8.333333 1.000000 2 0.000000 6.333333 3 0.000000 0.6666667 (5) Global optimal solution found. Objective value: 7.000000 Total solver iterations: 2 Variable Value Reduced Cost X1 2.000000 0.000000 X2 1.000000 0.000000 X3 0.000000 1.000000 Row Slack or Surplus Dual Price 1 7.000000 1.000000 2 0.000000 3.000000 3 1.000000 0.000000 4 0.000000 1.000000 实验收获、心得及建议: 通过实验掌握了基本安装步骤、使用方法、操作步骤,以及怎样解决线性规划问题,经过实际操作认识到lingo软件在求解线性规划问题方面的实用性,对于今后学习工作中解决复杂的数学问题有很大帮助。