数学实验 课件.pptVIP

  • 43
  • 0
  • 约9.67千字
  • 约 49页
  • 2019-09-23 发布于湖北
  • 举报
* for c3=0:0.2:15 (li4.m) c=[-5,-2,-c3];A=[1,-5,-6];b=40; Aeq=[1,5,2];beq=30;L=[0,0,0]; x=linprog(c,A,b,Aeq,beq,L);z=-c*x; figure(1), subplot(3,1,1) plot(c3,x(1),.’), hold on subplot(3,1,2), plot(c3,x(2),.’) hold on, subplot(3,1,3), plot(c3,x(3),.’), hold on end for c2=0.1:0.2:15 c=[-5,-c2,-3]; x=linprog(c,A,b,Aeq,beq,L); z=-c*x; figure(2), subplot(3,1,1) plot(c2,x(1),r.), hold on subplot(3,1,2) plot(c2,x(2),r.), hold on subplot(3,1,3) plot(c2,x(3),r.), hold on end 灵敏度分析 兰色:c3 红色:c2 * 例2 某厂生产两种口味的饮料,条件如上.问应如何安排生产计划? 单耗 甲(百箱) 乙(百箱) x1 x2 限额 原料(kg) 工人(名)

文档评论(0)

1亿VIP精品文档

相关文档