lingo error code 11
答案:1 悬赏:30
解决时间 2021-01-27 07:15
- 提问者网友:孤凫
- 2021-01-27 02:03
lingo error code 11
最佳答案
- 二级知识专家网友:旧脸谱
- 2021-01-27 03:06
添加Model和end进去,
MODEL:
MAX=x1-x2;
a*(x1-x2)+b*x2<=1.1;
b*(x1-x2)+a*x2<=1.1;
(x1-x2)*x2<=1.21;
a=0.3;
b=0.24;
x1>0;
x2>0;
@GIN(x1);
@GIN(x2);
END
运行结果为:
Local optimal solution found.
Objective value:3.000000
Objective bound:3.000000
Infeasibilities:0.000000
Extended solver steps: 0
Total solver iterations:34
Model Class: PINLP
Total variables:2
Nonlinear variables:2
Integer variables:2
Total constraints:6
Nonlinear constraints:1
Total nonzeros:10
Nonlinear nonzeros: 2
Variable ValueReduced Cost
X13.000000 -1.000000
X20.0000000.000000
A 0.30000000.000000
B 0.24000000.000000
RowSlack or SurplusDual Price
13.0000001.000000
2 0.20000000.000000
3 0.38000000.000000
41.2100000.000000
50.0000000.000000
60.0000000.000000
73.0000000.000000
80.000000 -1.000000
MODEL:
MAX=x1-x2;
a*(x1-x2)+b*x2<=1.1;
b*(x1-x2)+a*x2<=1.1;
(x1-x2)*x2<=1.21;
a=0.3;
b=0.24;
x1>0;
x2>0;
@GIN(x1);
@GIN(x2);
END
运行结果为:
Local optimal solution found.
Objective value:3.000000
Objective bound:3.000000
Infeasibilities:0.000000
Extended solver steps: 0
Total solver iterations:34
Model Class: PINLP
Total variables:2
Nonlinear variables:2
Integer variables:2
Total constraints:6
Nonlinear constraints:1
Total nonzeros:10
Nonlinear nonzeros: 2
Variable ValueReduced Cost
X13.000000 -1.000000
X20.0000000.000000
A 0.30000000.000000
B 0.24000000.000000
RowSlack or SurplusDual Price
13.0000001.000000
2 0.20000000.000000
3 0.38000000.000000
41.2100000.000000
50.0000000.000000
60.0000000.000000
73.0000000.000000
80.000000 -1.000000
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |