Number of particles (swarm size): 20
Acceleration parameters:
acc1=acc2=1.5
Intertial weights:
w = 0.9-(0.5/gen_max)*gen % First trial
w = 1.2-(0.8/gen_max)*gen % Second trial
w = 0.4; % Third trial
gen = current generation
gen_max = maximum number of generations