Browse Source

Create fitness

master
TianZhendong 6 years ago
committed by GitHub
parent
commit
1f9edd9888
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      GA/fitness

4
GA/fitness

@ -0,0 +1,4 @@
function fit=fitness(x)
%求最大的,若是求最小则可以求倒
fit=(x+10*sin(5*x)+7*cos(4*x));
end
Loading…
Cancel
Save