On 12/5/2013 7:42 PM, Stefanos wrote: > Alan, > > Thank you for the response. fmincon fails to give me the right > solution and I think the reason is the values of the barrier > parameters. Is there anything else I can do besides writing my own code? > > Alan_Weiss <firstname.lastname@example.org> wrote in message > <email@example.com>... >> On 12/5/2013 1:43 PM, Stefanos wrote: >> > Hey ppl, >> > >> > I know that 'InitBarrierParam' can specify the initial value of the >> > barrier parameter. I was wondering if there is a way to also >> specify > all subsequent values for it. >> > Thank you >> >> No, you cannot. >> >> Alan Weiss >> MATLAB mathematical toolbox documentation
It depends on what you mean by "fails to give the right solution." Perhaps fmincon finds the problem to be infeasible. Or perhaps fmincon gives a local minimum, but not a global minimum.
In any case, perhaps these suggestions from the documentation will help: