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,bestrun]=max(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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!