Failure in initial objective function evaluation. FSOLVE cannot continue.

4 visualizzazioni (ultimi 30 giorni)
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 Commenti
Matt J
Matt J il 24 Ott 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.

Accedi per commentare.

Risposta accettata

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

Più risposte (0)

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by