lingo问题 错误代码11 max=3*x1+9*x2; x1+3*x2<=22; -x1+x2<=4; x2<=6; 2*x1-5*x2<=0;
答案:2 悬赏:30 手机版
解决时间 2021-02-26 11:03
- 提问者网友:心牵心
- 2021-02-25 13:55
lingo问题 错误代码11 max=3*x1+9*x2; x1+3*x2<=22; -x1+x2<=4; x2<=6; 2*x1-5*x2<=0;
最佳答案
- 五星知识达人网友:野慌
- 2021-02-25 14:07
max=3*x1+9*x2;
x1+3*x2<=22;
-x1+x2<=4;
x2<=6;
2*x1-5*x2<=0;
运行结果:
Global optimal solution found.
Objective value: 66.00000
Infeasibilities: 0.000000
Total solver iterations: 2
Variable Value Reduced Cost
X1 10.00000 0.000000
X2 4.000000 0.000000
Row Slack or Surplus Dual Price
1 66.00000 1.000000
2 0.000000 3.000000
3 10.00000 0.000000
4 2.000000 0.000000
5 0.000000 0.000000
x1+3*x2<=22;
-x1+x2<=4;
x2<=6;
2*x1-5*x2<=0;
运行结果:
Global optimal solution found.
Objective value: 66.00000
Infeasibilities: 0.000000
Total solver iterations: 2
Variable Value Reduced Cost
X1 10.00000 0.000000
X2 4.000000 0.000000
Row Slack or Surplus Dual Price
1 66.00000 1.000000
2 0.000000 3.000000
3 10.00000 0.000000
4 2.000000 0.000000
5 0.000000 0.000000
全部回答
- 1楼网友:北城痞子
- 2021-02-25 14:35
你好!
x1、x2是方程2x²-3x-1=0,根据韦达定理有:
x1+x2=3/2,x1x2=-1/2;
(1)原式=(x1+x2)/x1x2=-3;
(2)原式=(x1+x2)²-2x1x2=9/4+1=13/4;
(3)原式=(x1+x2)-4x1x2=9/4+2=17/4;
(4)你的题目好像有问题,估计是:x2/x1+x1/x2 =(x2²+x1²)/x1x2=13/4÷(-1/2)=-13/2;
(5)原式=x1x2-2(x1+x2)+4=3/2+1+4=13/2;
(6)原式=x1x2+2+1/x1x2=3/2+2+2/3=25/6.
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯