Borrar filtros
Borrar filtros

fmincon Problem

1 visualización (últimos 30 días)
george
george el 20 de Mzo. de 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!!!

Respuestas (1)

Walter Roberson
Walter Roberson el 20 de Mzo. de 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.

Categorías

Más información sobre Systems of Nonlinear Equations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by