Particle swarm optimization: Difference between revisions

Javascript: bugfix
(Javascript: another bugfix - still doing something wrong though...)
(Javascript: bugfix)
Line 223:
 
state= pso_init({
min: [-1.5,2-3], max:[4,4],
parameters: {omega: 0, phip: 0.6, phig: 0.3},
nParticles: 100});
Line 241:
 
Iteration: 40
GlobalBestPosition: 2-0.6648402954451745134004259016365,2-1.0198858450166885512442672625184
GlobalBestValue: -1.4688030044591779114053788600853</lang>
 
=={{header|ooRexx}}==
6,951

edits