Fsolve and initial guesses

12 ビュー (過去 30 日間)
Selim Elbadri
Selim Elbadri 2023 年 5 月 28 日
移動済み: Torsten 2023 年 5 月 28 日
Hi,
I have a system of nonlinear equations and corresponding variabls that I need to solve for. I use the 'fsolve' function and I get the following message from MATLAB:
Equation solved, inaccuracy possible.
The vector of function values is near zero, as measured by the value
of the function tolerance. However, the last step was ineffective.
<stopping criteria details>
I noticed that the solutions change a bit - at least some variables qualitatively - once I change initial guesses. I keep getting the same message as above but qualitatively different solutions when I increase all initial guesses by 10% and again when I decrease all guesses by 10%. How worried should I be?

回答 (1 件)

Torsten
Torsten 2023 年 5 月 28 日
移動済み: Torsten 2023 年 5 月 28 日
You already received several responses for this question here:
Iterative processes keep the risk of converging to no solution or to a wrong solution. So the only way to decide "how worried you should be" is to look at the solution, see whether it makes physical sense and compute whether it gives a residual near zero when inserted into your system of equations.

カテゴリ

Help Center および File ExchangeSystems of Nonlinear Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by