Is there any way to exclude the complex values of the iterations with lsqnonlin ?
古いコメントを表示
I'm using lsqnonlin to solve a non linear system, and my solution must be real, so I wanted to know if I could exclude complex iterations so as to make more efficient the search.
Thanks in advance!
採用された回答
その他の回答 (1 件)
2 件のコメント
I don't see how you would have tried any of those. lsqnonlin doesn't handle nonlinear inequalities while Newton Raphson doesn't support inequality constraints of any kind.
Any of the fmincon formulations, using the sqp algorithm, that we were discussing should work, so long as a solution does indeed, exist. If an exact solution doesn't exist, you will have to compromise and accept a least squares solution. In that case, you need to decide which of your equations/inequalities need to be exactly satisfied and which you can relax.
Jurgen
2014 年 11 月 15 日
カテゴリ
ヘルプ センター および File Exchange で Systems of Nonlinear Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!