lingo软件使用问题:下面怎样用Lingo来编写?
答案:1 悬赏:0 手机版
解决时间 2021-02-10 09:41
- 提问者网友:美人性情
- 2021-02-09 11:18
lingo软件使用问题:下面怎样用Lingo来编写?
最佳答案
- 五星知识达人网友:不想翻身的咸鱼
- 2021-02-09 11:32
max = y;
y = @if(x2-x1#LT#x3-x2,x2-x1,x3-x2);
x1 > 0;
x1 < 60;
x2 > 80;
x2 < 100;
x3 > 120;
x3 < 140;
求解结果:
Global optimal solution found.
Objective value: 60.00000
Objective bound: 60.00000
Infeasibilities: 0.000000
Extended solver steps: 2
Total solver iterations: 11
Variable Value Reduced Cost
Y 60.00000 0.000000
X2 80.00000 0.000000
X1 0.000000 0.000000
X3 140.0000 0.000000
Row Slack or Surplus Dual Price
1 60.00000 1.000000
2 0.000000 0.000000
3 0.000000 0.000000
4 0.000000 0.000000
5 0.000000 0.000000
6 0.000000 0.000000
7 0.000000 0.000000
8 0.000000 0.000000
y = @if(x2-x1#LT#x3-x2,x2-x1,x3-x2);
x1 > 0;
x1 < 60;
x2 > 80;
x2 < 100;
x3 > 120;
x3 < 140;
求解结果:
Global optimal solution found.
Objective value: 60.00000
Objective bound: 60.00000
Infeasibilities: 0.000000
Extended solver steps: 2
Total solver iterations: 11
Variable Value Reduced Cost
Y 60.00000 0.000000
X2 80.00000 0.000000
X1 0.000000 0.000000
X3 140.0000 0.000000
Row Slack or Surplus Dual Price
1 60.00000 1.000000
2 0.000000 0.000000
3 0.000000 0.000000
4 0.000000 0.000000
5 0.000000 0.000000
6 0.000000 0.000000
7 0.000000 0.000000
8 0.000000 0.000000
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯