How to avoid negative intermediate guess in nlmefit
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Tom Lane
2014 年 10 月 18 日
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 件のコメント
Tom Lane
2014 年 10 月 19 日
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.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Online Parameter Estimation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!