Particle swarm optimization: Difference between revisions

Content added Content deleted
(Javascript: another bugfix - still doing something wrong though...)
(Javascript: bugfix)
Line 223: Line 223:


state= pso_init({
state= pso_init({
min: [-1.5,2], max:[4,4],
min: [-1.5,-3], max:[4,4],
parameters: {omega: 0, phip: 0.6, phig: 0.3},
parameters: {omega: 0, phip: 0.6, phig: 0.3},
nParticles: 100});
nParticles: 100});
Line 241: Line 241:


Iteration: 40
Iteration: 40
GlobalBestPosition: 2.664840295445174,2.019885845016688
GlobalBestPosition: -0.5134004259016365,-1.5512442672625184
GlobalBestValue: 1.468803004459177</lang>
GlobalBestValue: -1.9114053788600853</lang>


=={{header|ooRexx}}==
=={{header|ooRexx}}==