How to solve 4 non linear equations with 5 unknowns using least square method

조회 수: 12 (최근 30일)
Hi..I have 4 nonlinear equations with 5 unknowns and initial values. Using least square method followed by Newton Raphson is it possible to solve this.

채택된 답변

John D'Errico
John D'Errico 2021년 10월 13일
You have an under-determined problem. If any solution exists, then there will be infinitely many solutions. (This is the case in general. There will be specific cases where that is not true.)
The point about infinitely many solutions is that any of those solutions will be exact, and so any one solution will be no better than any other solution. With 5 degrees of freedom here, you just have too much flexibility.
Can you find a solution? Of course. As suggested by Matt J, use a tool like fsolve. The solution it arrives at will be completely determined by your choice of starting values.
Think of a curved path through your 5-dimensional parameter space. Every point along that path will be a solution, equally good. Of couse, since the problem is a nonlinear one, that path generally cannot be described using any simple algebraic form. You can find individual points along the path (again using fsolve), but nothing more than that. And of course, that curved path can be rather nasty in terms of its shape. You may even have multiple disjoint such paths.

추가 답변 (1개)

Matt J
Matt J 2021년 10월 13일
There are probably going to be infinite solutions, but you can use fsolve() to find one of them.

카테고리

Help CenterFile Exchange에서 Newton-Raphson Method에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by