Date: Feb 23, 2013 11:05 AM
Author: matt dash
Subject: Re: No more fmincon messages!
"Manalap" wrote in message <firstname.lastname@example.org>...
> When I execute mfile that contains fmincon, Matlab prints messages like
> Warning: To use the default trust-region-reflective algorithm
> you must supply the gradient in the objective function and set
> the GradObj option to 'on'. FMINCON will use the active-set
> algorithm instead. For information on applicable algorithms,
> see Choosing the Algorithm in the documentation.
> Optimization completed because the objective function is non-decreasing in
> feasible directions, to within the default value of the function tolerance,
> and constraints are satisfied to within the default value of the constraint tolerance.
> <stopping criteria details>
> Active inequalities (to within options.TolCon = 1e-06):
> lower upper ineqlin ineqnonlin
> However, I think printing these messages is slowing down the speed.
> How can I stop printing these messages?
Read about the 'Display' property in the help file for 'optimset'.
For the initial warning you should probably just set the algorithm to active-set in the first place.