Code covered by the BSD License  

Highlights from
Another Particle Swarm Toolbox

image thumbnail

Another Particle Swarm Toolbox

by

 

01 Dec 2009 (Updated )

Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox.

dejongsfcn(x)
function f = dejongsfcn(x)

if strcmpi(x,'init')
    f.Vectorized = 'on' ;
    f.PopInitRange = [-5; 5] ;
    f.KnownMin = [0 0] ; % For plotting only
else
    f = sum(x.*x,2) ;
end

Contact us