fmincon Problem

1 次查看(过去 30 天)
george
george 2012-3-20
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!!!

回答(1 个)

Walter Roberson
Walter Roberson 2012-3-20
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.

类别

Help CenterFile Exchange 中查找有关 Systems of Nonlinear Equations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by