Borrar filtros
Borrar filtros

How to adjust the FminSearch step?

5 visualizaciones (últimos 30 días)
pml_28
pml_28 el 16 de Mayo de 2019
Respondida: Sulaymon Eshkabilov el 16 de Mayo de 2019
I'm using fminsearch to find the minimum of a 2 variable problem ... I would like the search to be at least in the range of 0.3 to 2 .. however, the algorithm performs search only on values ​​close to the initial .. (0.3 , 0.31 ...) How can I improve this condition?

Respuestas (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 16 de Mayo de 2019
Hi,
Set tolerances in optimset and include in in your fminsearch(..., ..., OPTsN) :
OPTs = optimset('TolFun', 1e-15);
OPTsN = optimset(OPTs, 'TolX', 1e-9);
fminsearch(..., ..., OPTsN);
Good luck.

Categorías

Más información sobre Quantum Mechanics en Help Center y File Exchange.

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by