一个优化问题
本帖最后由 zhenshan198 于 2011-1-21 23:04 编辑请用lingo求解这个问题
min f(x)=x1^2+x2^2+8
s.t.
x1^2-x2>=0
-x1-x2^2+2=100
x1,x2>=0
我的编程为
min=x1*x1+x2*x2+8;
x1*x1-x2>=0;
-x1-x2*x2+2=100;
结果却是
No feasible solution found.
Infeasibilities: 0.000000
Extended solver steps: 0
Total solver iterations: 0
Model Class: NLP
Total variables: 2
Nonlinear variables: 2
Integer variables: 0
Total constraints: 3
Nonlinear constraints: 3
Total nonzeros: 6
Nonlinear nonzeros: 4
Variable Value Reduced Cost
X1 0.000000 0.000000
X2 0.000000 0.000000
Row Slack or Surplus Dual Price
1 -0.1000000+308 -1.000000
2 0.000000 0.000000
3 0.000000 0.000000
望哪位大侠指点迷津,万分感谢!
shafa 我先试试 lz,你第三个式子等号右边怎么是100。。。 回复 五味大侠 的帖子
哦 应该是100,题目打错了一个数据
回复 五味大侠 的帖子
现在改过来了,你再看看 式子应该没问题吧。不过确实无可行解啊。你想问什么? 不会吧,lingo解不出来,不敢相信,matlab可以解出来的。 回复 五味大侠 的帖子
lingo是求解优化问题的专业软件啊 lingo里认为x1和x2是大于等于0的啊,你看看matlab解出来的应该不满足x1,x2>=0的条件吧 x =
1.0032
0.9985
y =
10.0077
这是matlab给出的结果