You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 lines
107 B

function fit=fitness(x)
%求最大的,若是求最小则可以求倒
fit=(x+10*sin(5*x)+7*cos(4*x));
end