Particle swarm optimization: Difference between revisions
Content added Content deleted
m (added whitespace before the TOC (table of contents).) |
m (→{{header|REXX}}: added wording to the REXX section preamble.) |
||
Line 1,533: | Line 1,533: | ||
The numeric precision is only limited to the number of decimal digits defined in the <big> '''pi''' </big> variable (in this case, '''110'''). |
The numeric precision is only limited to the number of decimal digits defined in the <big> '''pi''' </big> variable (in this case, '''110'''). |
||
This REXX version supports the specifying of '''X''', '''Y''', and '''D''', as well as the number of particles, and the number of |
This REXX version supports the specifying of '''X''', '''Y''', and '''D''', as well as the number of particles, and the number of |
||
<br>decimal digits to be displayed. A little extra code was added to show a title and align the output columns. |
|||
The refinement loop is stopped when the calculation of the function value stabilizes. |
The refinement loop is stopped when the calculation of the function value stabilizes. |