필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

non-converging 4nonlinear equations with fsolve

조회 수: 1 (최근 30일)
Matin Torabinia
Matin Torabinia 2016년 10월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Matt J
Matt J 2016년 10월 4일
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.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by