Azzera filtri
Azzera filtri

fmincon Problem

1 visualizzazione (ultimi 30 giorni)
george
george il 20 Mar 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!!!

Risposte (1)

Walter Roberson
Walter Roberson il 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.

Categorie

Scopri di più su Systems of Nonlinear Equations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by