How to reduce the fitness value?
1 次查看(过去 30 天)
显示 更早的评论
function Y = objfun(X)
% Y = fitness value
% X = variable vector (1*n)
% R = 1.994*r^-0.32*f^2.34*v^-0.01*d^0.18
% where r=[0.2:0.8], f=[0.2:0.6], v=[39.27:117.81], d=[0.2:0.8]
r=X(1,1); % variable 1
f=X(1,2); % variable 2
v=X(1,3); % variable 3
d=X(1,4); % variable 4
Y = 1.994*r^-0.32*f^2.34*v^-0.01*d^0.18;
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!