Failure in initial objective function evaluation. FSOLVE cannot continue.

4 views (last 30 days)
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 Comments
Matt J
Matt J on 24 Oct 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.

Sign in to comment.

Accepted Answer

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

More Answers (0)

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!