Error while debugging.Hi all.While running the program message showing-"Error using sym/max (line 123) Input arguments must be convertible to floating-point numbers. Error in untitled2 (line 159) [bestfun,b​estrun]=ma​x(fvalue) "

1 次查看(过去 30 天)
gbest;
f2update=zeros(4,1)
f2update = (Cfr.*gbest+ Vfr.* Qfr)
syms fvalue positive rational
fvalue=symsum(f1,0, Zka)- symsum(f2update,0, 1)-symsum(f3,0, 1)-symsum(f4,0, Zka)-symsum(f5,0, Zka);
%fff(ite)=fvalue(ite,:);
rgbest(run,:)=gbest;
disp(sprintf('--------------------------------------'));

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by