Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

non-converging 4nonlinear equations with fsolve

1 Ansicht (letzte 30 Tage)
Matin Torabinia
Matin Torabinia am 4 Okt. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Dear All Recently I'm involving to solve 4 nonlinear equations by using fsolve .
F(1)=T*((m(2)^2)/sqrt(m(4)*conj(m(4))))-(2*W*Y*A*sin(theta0));
F(2)=T*((m(1)^2)/sqrt(m(3)*conj(m(3))))-(W*Y*A)*(((E0*Er*(V-m(2))^2)/(2*t*Y))+sqrt(1-(((E0*Er*(V-m(2))^2)/(2*t*Y))+cos(theta0))^2)+sin(theta0));
F(3)=(m(1)/m(3))+((m(1)-m(2))/Z22)-((V-m(1))/Z3);
F(4)=(m(2)/m(4))+(m(2)/Z1)-((m(1)-m(2))/Z22);
As you can see , i'm just dealing with 4 unknown variables ( m(1),m(2),m(3),m(4) ) , and rest of the terms have constant defined numbers.
however , i have problem in converging . In other words by varying the initial guess my answers will change significantly . I will be grateful if you help me in this regard.
Thanks , Matin,
  1 Kommentar
Matt J
Matt J am 4 Okt. 2016
however , i have problem in converging . In other words by varying the initial guess my answers will change significantly .
That doesn't sound like a problem converging. That sounds like a problem initializing.
Be mindful, however, that you have non-differentiable expressions in your objective function: things like sqrt(m(4)*conj(m(4)))) which is the same as abs(m(4)). That could create mischief if the solution lies near the non-differentiability m(4)=0.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by