|
I need help with an optimization problem. Let,
f(x,a)=0.
Here a is parameter.I know that,for some values of "a"(assume I assigned the value of"a" myself), f has solutions( "fval" is very close to zero) according to x.
Let,
objfunc=g(x,a).
So what I am trying is to minimize g(x,a) subject to f(x,a)=0. I mean, I want to find the pair of (x,a) from the solution set which makes g minimum.
I am using "fmincon" to solve this optimization problem. However, the results are not good.
Fmincon finds some results. It doesn't give any error. Main problem is that when I assign the solutions to f, fvals of the "f" are not close enough to zero. But I know there is a set of (x,a) has solutions(fvals are very close to 0). How can I solve this problem. I will be very glad if yu help me. Thanks a lot.
|