lingo代码怎么写?
答案:2 悬赏:80 手机版
解决时间 2021-03-08 06:06
- 提问者网友:我是女神我骄傲
- 2021-03-07 06:58
lingo代码怎么写?
最佳答案
- 五星知识达人网友:雾月
- 2021-03-07 07:21
max=(425*X11+423*X12+438*X13-410*Y1)+(440*X22+448*X23+428*X24-430*Y2)+(465*X33+438*X34-460*Y3)+(455*X44-450*Y4);
Y1<=20;
Y1-X11-X12-X13-X14=0;
X11<=100;
X12+X13+X14+X2<=20;
Y2-X22-X23-X24=0;
X12+X22<=140;
X13+X14+X23+X24+X3<=20;
Y3-X33-X34=0;
X13+X23+X33<=200;
X14+X24+X34+Y4<=20;
Y4-X44=0;
X14+X24+X34+X44<=160;
结果:
Global optimal solution found.
Objective value: 3060.000
Total solver iterations: 0
Variable Value Reduced Cost
X11 20.00000 0.000000
X12 0.000000 12.00000
X13 0.000000 5.000000
Y1 20.00000 0.000000
X22 140.0000 0.000000
X23 20.00000 0.000000
X24 0.000000 20.00000
Y2 160.0000 0.000000
X33 180.0000 0.000000
X34 0.000000 27.00000
Y3 180.0000 0.000000
X44 20.00000 0.000000
Y4 20.00000 0.000000
X14 0.000000 443.0000
X2 0.000000 0.000000
X3 0.000000 13.00000
Row Slack or Surplus Dual Price
1 3060.000 1.000000
2 0.000000 15.00000
3 0.000000 -425.0000
4 80.00000 0.000000
5 20.00000 0.000000
6 0.000000 -430.0000
7 0.000000 10.00000
8 0.000000 13.00000
9 0.000000 -460.0000
10 0.000000 5.000000
11 0.000000 5.000000
12 0.000000 -455.0000
13 140.0000 0.000000
Y1<=20;
Y1-X11-X12-X13-X14=0;
X11<=100;
X12+X13+X14+X2<=20;
Y2-X22-X23-X24=0;
X12+X22<=140;
X13+X14+X23+X24+X3<=20;
Y3-X33-X34=0;
X13+X23+X33<=200;
X14+X24+X34+Y4<=20;
Y4-X44=0;
X14+X24+X34+X44<=160;
结果:
Global optimal solution found.
Objective value: 3060.000
Total solver iterations: 0
Variable Value Reduced Cost
X11 20.00000 0.000000
X12 0.000000 12.00000
X13 0.000000 5.000000
Y1 20.00000 0.000000
X22 140.0000 0.000000
X23 20.00000 0.000000
X24 0.000000 20.00000
Y2 160.0000 0.000000
X33 180.0000 0.000000
X34 0.000000 27.00000
Y3 180.0000 0.000000
X44 20.00000 0.000000
Y4 20.00000 0.000000
X14 0.000000 443.0000
X2 0.000000 0.000000
X3 0.000000 13.00000
Row Slack or Surplus Dual Price
1 3060.000 1.000000
2 0.000000 15.00000
3 0.000000 -425.0000
4 80.00000 0.000000
5 20.00000 0.000000
6 0.000000 -430.0000
7 0.000000 10.00000
8 0.000000 13.00000
9 0.000000 -460.0000
10 0.000000 5.000000
11 0.000000 5.000000
12 0.000000 -455.0000
13 140.0000 0.000000
全部回答
- 1楼网友:蕴藏春秋
- 2021-03-07 08:12
你需要另一个软件
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯