# Thread Subject: an optimization problem

 Subject: an optimization problem From: hagii Date: 6 Sep, 2012 08:01:21 Message: 1 of 2 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.
 Subject: an optimization problem From: Matt J Date: 6 Sep, 2012 14:18:07 Message: 2 of 2 hagii wrote in message ... > > 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. ============== Let's see your code.

Separated by commas
Ex.: root locus, bode

### What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.