필터 지우기
필터 지우기

How can I solve multivariable Newton`s Method with implicit functions?

조회 수: 2 (최근 30일)
Eric Bernard Dilger
Eric Bernard Dilger 2022년 9월 14일
댓글: Torsten 2022년 9월 16일
I am trying to solve a system of non linear equations using Newton`s Method. The function F(X), the unknown variables X and the initial guess X0 are presented below:
F(X)=[V1+V2+Vblk-Vstring; I1(V1)-I2(V2); I1(V1)-Iblk(V3)];
X = [V1; V2; Vblk;];
X0 = [Voc; Voc; 0;];
Vstring is assigned from 91.1 to 0 so that Newtons`s Method must be applied for each value of Vstring to return the contribution of V1, V2 and Vblk across Vstring. However, in F(2) and F(3) the variables V1, V2 and Vblk are implicit functions of I1, I2 and Iblk. Before running Newton`s Method, the variables I1, I2 and Iblk are calculated by means of Lambert W function and then stored in arrays, so that variables I1, I2 and Iblk are known for any V1, V2 and Vblk values before Newton`s Method is applied. How could I solve the Newton`s Method considering these implicit functions for all Vstring values? I appreciate any help!
  댓글 수: 8
Eric Bernard Dilger
Eric Bernard Dilger 2022년 9월 16일
Hello @Torsten, thanks for support!
I replaced the code as you suggested and it worked. I also inclunded one more variable I3 raising the order of the system of equations and it`s working for most cases. However, when I set the input parameters which results in I1 = I2 = I3 equations are solved in a few iterations, but inaccurately. I tried setting TolFun and TolX equal to 1e-14 but it did not solve the problem. The purpose is to simulate a system of equations with order N = 33, but I don`t know if fsolve is suitable for this scale of application, it seems convergence problems may happen.
Torsten
Torsten 2022년 9월 16일
As far as I know, it's the only MATLAB tool available for systems with as many equations as variables.
All depends on the initial guesses for the variables. If they are far away from the true values, every nonlinear solver will have problems.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Computations에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by