fmincon Problem
2 views (last 30 days)
Show older comments
i have problem with fmincon, sometimes it returns me NaN, i check what happens inside and when returns me NaN the interations is 50 and the funcCount is 101 (of the output), can i change these limits?
if this is the solve of my problem i 'll be very happy
if is not the solve of my problem... i 'll be back!!!
0 Comments
Answers (1)
Walter Roberson
on 20 Mar 2012
It is not likely to solve your problem.
Use the "options" argument to fmincon. You can use optimset() to construct the appropriate structure.
For debugging purposes, try setting
'Diagnostics', 'on'
'Display', 'notify-detailed' (or perhaps even 'iter-detailed')
'FunValCheck', 'on'
You may wish to adjust some of the other options as well. Adjusting the maximum iterations MaxIters is not likely to help you, as the default is 400 or 1000 (depending on algorithm), much larger than the 50 you are reporting.
0 Comments
See Also
Categories
Find more on Systems of Nonlinear Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!