Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

non-converging 4nonlinear equations with fsolve

1 view (last 30 days)
Matin Torabinia
Matin Torabinia on 4 Oct 2016
Closed: MATLAB Answer Bot on 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 Comment
Matt J
Matt J on 4 Oct 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.

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!