Artificial fish-swarm algorithm
2016-08-23
1 0 0
no vote
Other
Earn points
format long
Visual=2.5;
Step=0.3;
delta=0.618;
N=50;
Try_number=100;
A1=-10;% controls the left zone 1
B1=10;% control the right interval 1
A2=-10;% controls the left zone 2
B2=10;% control the right interval 2
d=[];
U=[];
h=1e-1;
Friend_number=50;
k=1;
m=51;
X1=rand(N,1)*(b1-a1)+a1;
X2=rand(N,1)*(b2-a2)+a2;
X=[X1 X2];% artificial fish
for i=1:N
wwww=[X(i,1),X(i,2)];
d(i)=maxf(wwww); Value listed for the% d
end
[w,i]=max(d); %W value on the d, I is the maximum value corresponds to the index that first fish
MaxX=[X (i,1), x (i,2)];% the initial Bulletin Board records, x corresponds to the maximum value assigned to the maxX
MaxY=w;% initial Bulletin Board records
Visual=2.5;
Step=0.3;
delta=0.618;
N=50;
Try_number=100;
A1=-10;% controls the left zone 1
B1=10;% control the right interval 1
A2=-10;% controls the left zone 2
B2=10;% control the right interval 2
d=[];
U=[];
h=1e-1;
Friend_number=50;
k=1;
m=51;
X1=rand(N,1)*(b1-a1)+a1;
X2=rand(N,1)*(b2-a2)+a2;
X=[X1 X2];% artificial fish
for i=1:N
wwww=[X(i,1),X(i,2)];
d(i)=maxf(wwww); Value listed for the% d
end
[w,i]=max(d); %W value on the d, I is the maximum value corresponds to the index that first fish
MaxX=[X (i,1), x (i,2)];% the initial Bulletin Board records, x corresponds to the maximum value assigned to the maxX
MaxY=w;% initial Bulletin Board records
matlab
算法
鱼群
人工
Related Source Codes
GMSK Linear Receiver
0
0
no vote
NSGA-II algorithm
0
0
no vote
NSGA-III multi-objective optimization algorithm
0
0
no vote
Compressed sensing example
0
0
no vote
CFAR detector example
0
0
no vote
No comment