Filter löschen
Filter löschen

fmincon Problem

1 Ansicht (letzte 30 Tage)
george
george am 20 Mär. 2012
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!!!

Antworten (1)

Walter Roberson
Walter Roberson am 20 Mär. 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.

Kategorien

Mehr zu Systems of Nonlinear Equations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by