|
I am trying to implement the hybrid particle swarm
optimisation (hPSO) algorithm from the file exchange, but
can't seem to get it to do much. As shown in the table
below, it doesn't improve over the whole optimisation. My
fitness function works fine with other Matlab optimisation
algorithms e.g. GA and simulated annealing, but doesn't
seem to work here. Any ideas why?
A snippit of my code is as follows:
fitness_fcn=@(radius_input)new_for_gatool
(radius_input,f,maxf,increment,w,k,hor_L_main,hor_L_bell,no_
variables_main,no_variables_bell,radiusi,r_diffi,Li,x0i,x1i,
mp_prodH,mp_prodH_finer,finer_freq_inc,target_Zin,orig_targe
t_maxtab,speed_c,rho,n,dT,algorithm);
options=hPSOoptions(variable_range);
[x,fval,gfx,output]=hPSO(fitness_fcn,no_variables,options);
Flight # GlobalMin Stall Flight
__________ ___________ ______________
2 213.3085 0
3 213.3085 0
4 213.3084 1
5 213.3084 1
6 213.3084 2
7 213.3084 3
8 213.3084 4
9 213.3084 5
10 213.3084 6
11 213.3084 7
12 213.3084 8
13 213.3084 9
14 213.3084 10
15 213.3084 11
16 213.3084 12
17 213.3084 13
18 213.3084 14
19 213.3084 15
20 213.3084 16
etc.
|