Please expalin the error

I am using the following code in a simulation program
x= lsqlin(C,d,A,b,Aeq,beq,lb,ub,x0,options)
When I use lb = [0.01 0.01] ' and ub = [0.98 0.98] ' I get the results I need.
However, when I use lb = [0.00001 0.00001] ' and ub = [0.99998 0.99998] ', the results I get are way off from the results I got earlier.
I there something wrong?
Thanks

回答(1 个)

Matt J
Matt J 2013-3-15
编辑:Matt J 2013-3-15

1 个投票

What you describe doesn't suggest anything is wrong, per se. You are minimizing over a larger region, so obviously the minimizer can change.

3 个评论

It might also be the case that there are non-unique solutions. Changing the constraints can change the path that the algorithm follows downhill so that it ends up at a different solution.
Thanks. Do you have any suggestions?
As I said, I don't think that anything is wrong.

请先登录,再进行评论。

提问:

dav
2013-3-15

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by