Then Matlab did not find any feasible point ! The exitflag was -2 in this case.
When I use the 'active-set' algorithm and don't specify 'AlwaysHonorConstraints', I find the exitflag to be 0, i.e., the no. of iterations exceeded the max. number.
I don't know if I am making any simple mistake or not :S
Thanks a lot for your help.
"Matt J" wrote in message <firstname.lastname@example.org>... > "Nazmul Islam" wrote in message <email@example.com>... > > > > I have not set the 'AlwaysHonorConstraints' option. It is probably set to the default value. > ===================== > > Then you should turn it on (it's off by default). > > > > Some constraints of c(i) are off by as large AS 10 or 2000 ! So, it's not coming from the round-off error, I guess. > ================ > > Check the exitflag to see if the algorithm stopped prematurely.