晕,刚才还是小学生呢,怎么又成学前班了? 找到了,谢谢,, 找到 谢谢 非常感谢 我也 刚入门。。。。。。 尝试用LINGO写了一下,分两种情况:
情况一:
MIN=X1+X2+X3;
PI=3.1415926535;
3*X1-@COS(X2*X3)-0.5=0;
X1^2-81*(X2+0.1)^2+@SIN(X3)+1.06=0;
@EXP(-X1*X2)+20*X3+(10*PI-3)/3=0;
@FREE(X1);@FREE(X2);@FREE(X3);
运行结果为:
Global optimal solution found.
Objective value: -0.2302872
Objective bound: -0.2302872
Infeasibilities: 0.1365605E-08
Extended solver steps: 2
Total solver iterations: 276
Variable Value Reduced Cost
X1 0.4981447 0.000000
X2 -0.1996059 0.000000
X3 -0.5288260 0.000000
PI 3.141593 0.000000
Row Slack or Surplus Dual Price
1 -0.2302872 -1.000000
2 0.000000 0.1584432
3 0.000000 -0.3083673
4 -0.1365605E-08 -0.6465823E-01
5 0.000000 -0.4753296E-01
情况二:
MAX=X1+X2+X3;
PI=3.1415926535;
3*X1-@COS(X2*X3)-0.5=0;
X1^2-81*(X2+0.1)^2+@SIN(X3)+1.06=0;
@EXP(-X1*X2)+20*X3+(10*PI-3)/3=0;
@FREE(X1);@FREE(X2);@FREE(X3);
运行结果如下:
Global optimal solution found.
Objective value: -0.2359878E-01
Objective bound: -0.2359878E-01
Infeasibilities: 0.4289902E-12
Extended solver steps: 0
Total solver iterations: 77
Variable Value Reduced Cost
X1 0.5000000 0.000000
X2 0.000000 0.000000
X3 -0.5235988 0.000000
PI 3.141593 0.000000
Row Slack or Surplus Dual Price
1 -0.2359878E-01 1.000000
2 0.000000 -0.1758114
3 0.000000 0.3544521
4 0.000000 -0.6335628E-01
5 0.000000 0.5274341E-01
在精度允许的情况下,结果还不唯一呢。
页:
1
[2]