Failure in initial objective function evaluation. FSOLVE cannot continue.

4 Ansichten (letzte 30 Tage)
function fval=lorenzsystem(X)
tetatw=-8;
lockno=5;
mumr=0.4;
lamda_mr=0.03;
lamda_tpp=0.03;
% beta0=X(1);
beta1c=X(1);
beta1s=X(2);
teta0=X(3);
teta1c=X(4);
teta1s=X(5);
fval(1,1)=beta1s-teta1c+((1.33*mumr*(lockno*(((teta0/8)*(1+mumr^2))+((tetatw/10)*(1+0.833*mumr^2))+((mumr/6)*teta1s)-(lamda_mr/6))))/(1+0.5*mumr^2));
fval(2,1)=beta1c+teta1s((2.66*mumr*(teta0-0.75*lamda_tpp+0.75*mumr*teta1s+0.75*tetatw))/(1-(0.5*mumr^2)));
end
Why am I getting an error? Thanks.
  2 Kommentare
Matt J
Matt J am 24 Okt. 2021
sefa arslan's original question reproduced below:
function fval=lorenzsystem(X)
tetatw=-8;
lockno=5;
mumr=0.4;
lamda_mr=0.03;
lamda_tpp=0.03;
% beta0=X(1);
beta1c=X(1);
beta1s=X(2);
teta0=X(3);
teta1c=X(4);
teta1s=X(5);
fval(1,1)=beta1s-teta1c+((1.33*mumr*(lockno*(((teta0/8)*(1+mumr^2))+((tetatw/10)*(1+0.833*mumr^2))+((mumr/6)*teta1s)-(lamda_mr/6))))/(1+0.5*mumr^2));
fval(2,1)=beta1c+teta1s((2.66*mumr*(teta0-0.75*lamda_tpp+0.75*mumr*teta1s+0.75*tetatw))/(1-(0.5*mumr^2)));
end
Why am I getting an error? Thanks.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Matt J
Matt J am 23 Okt. 2021
Is there supposed to be a '+' after teta1s?
fval(2,1)=beta1c+teta1s+((2.66*mumr...

Weitere Antworten (0)

Kategorien

Mehr zu Nonlinear Optimization finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by