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, |
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: |
GlobalBestPosition: -0.5134004259016365,-1.5512442672625184 |
||
GlobalBestValue: 1. |
GlobalBestValue: -1.9114053788600853</lang> |
||
=={{header|ooRexx}}== |
=={{header|ooRexx}}== |