How to disable fmincon from output notices?
231 views (last 30 days)
Show older comments
Hi!
I'm using fmincon to solve optimization problems. And I don't particularly want fmincon to tell me that:
_Local minimum possible. Constraints satisfied.
fmincon stopped because the predicted change in the objective function is less than the default value of the function tolerance and constraints are satisfied to within the default value of the constraint tolerance.
No active inequalities. _
It is quite annoying when I'm using fmincon in every iteration of a loop. Can this output be disabled? I read through fmincon's on-line documentation but didn't find an option for that purpose.
Xianwen
0 Comments
Accepted Answer
Oleg Komarov
on 25 Jan 2012
6 Comments
Steven Lord
on 1 Sep 2020
From the documentation page: "x = fmincon(fun,x0,A,b,Aeq,beq,lb,ub,nonlcon,options) minimizes with the optimization options specified in options. Use optimoptions to set these options. If there are no nonlinear inequality or equality constraints, set nonlcon = []."
You have to specify nonlcon if you want to specify options since the inputs must be in a fixed order. But you can specify it as [] to tell fmincon you don't have any nonlinear constraints.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!