Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: hybrid PSO not working right
Date: Mon, 1 Sep 2008 19:42:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 43
Message-ID: <g9hgi9$mq$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1220298121 730 172.30.248.37 (1 Sep 2008 19:42:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 1 Sep 2008 19:42:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:488134



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.