Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

non-converging 4nonlinear equations with fsolve

1 visualización (últimos 30 días)
Matin Torabinia
Matin Torabinia el 4 de Oct. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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 comentario
Matt J
Matt J el 4 de Oct. de 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.

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by