Lingo求解性规划问题.docVIP

  • 9
  • 0
  • 约5.94千字
  • 约 6页
  • 2016-10-18 发布于贵州
  • 举报
Lingo求解性规划问题

佛山科学技术学院 上 机 报 告 课程名称 数学应用软件 上机项目 Lingo求解线性规划问题 专业班级 一. 上机目的 1.了解线性规划的基本理论知识。 2.对比Matlab求解线性规划,学习用Lingo求解线性规划的问题。 二. 上机内容 (1)教材习题第2题 (2)教材习题第3题 (3)教材习题第6题 三. 上机方法与步骤 第(1)题: 设车床加工零件数量为,加工数量为,加工数量为,车床加工零件数量为,加工数量为,加工数量为。 要求线性规划目标函数最小值,选用lingo编程model:+目标函数+约束条件+end运行且中间对每个变量作整数说明即可。 model: title 机床加工零件; min=2*x11+3*x12+5*x13+3*x21+3*x22+6*x23; x11+2*x12+3*x13=80; x21+x22+3*x23=100; x11+x21=70; x12+x22=50; x13+x23=20; @gin(x11); @gin(x12); @gin(x13); @gin(x21); @gin(x22); @gin(x23); end 第2题: 设生产产品为件,生产产品为,生产产品为件。 要求线性规划目标函数最大值,选用lingo编程model:+目标函数+约束条件+end运行且中间对每个变量作整数说明即可。 model: title 原料生产最优计划; max=12*x1+5*x2+4*x3; 4*x1+3*x2+x3=180; 2*x1+6*x2+3*x3=200; @gin(x1);@gin(x2);@gin(x3); end 第3题: 设煤矿厂A向三个居民区分别供煤,煤矿厂B向三个居民区分别供煤。 要求线性规划目标函数最大值,选用lingo编程model:+目标函数+约束条件+end运行即可。 model: title 分配供煤总运输最优化; min=10*x11+5*x12+6*x13+4*x21+8*x22+15*x23; x11+x12+x13=60; x21+x22+x23=100; x11+x21=45; x12+x22=75; x13+x23=40; end 上机结果 第1题: 第2题: 第3题: in southwest of Zhejiang Provincial Committee of the partys struggle, develop democratic United Front against Japan, established the armed forces and the anti-Japanese base area, decided to establish the CPC Zhejiang Committee. In February 1939, with Gu Yuliang, Secretary Zhu, as Minister, Jie Xu into a propaganda Minister, Zhang Zhihua as womens Minister, Huang yan as youth Minister, zhexi recorder of Penrhyn as military Secretary of the establishment. Hanchang organization attached to the recorders of the West. After the Spring Festival, Zhu Xi was determined to rally, led by Wang Hesong more than more than 100 people, with first Road South into the team headquarters the name of back from Wuzhen to Wujiang yan ... Is month, established the Tomb area 1th branch-East water Hong Kong Branch, Branch Secretary Shen Yingjie. Is autumn, the Kuomintang Zhejiang Provincial Government

文档评论(0)

1亿VIP精品文档

相关文档