How to avoid negative intermediate guess in nlmefit
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello everyone,
when I use nlmefit, it always comes up with some negative guess after a few iterations, these negative values crash my ODE solver. Is there a way to avoid this?
The easiest way I can think of is to set lower bound for fitted parameters, however, I cannot figure out how to do that with nlmefit.
Thank you!
Rui
0 comentarios
Respuesta aceptada
Tom Lane
el 18 de Oct. de 2014
If a parameter P needs to be positive, sometimes people will instead estimate a parameter logP and then use exp(logP) in place of P in their function.
3 comentarios
Tom Lane
el 19 de Oct. de 2014
I'd forgotten about this parameter. Yes, I'd use that to specify a log transform and let the function take care of converting the covb matrix.
Más respuestas (0)
Ver también
Categorías
Más información sobre Solver-Based Nonlinear Optimization en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!