Jump to content

Particle swarm optimization: Difference between revisions

m
→‎{{header|REXX}}: added wording to the REXX section preamble.
m (added whitespace before the TOC (table of contents).)
m (→‎{{header|REXX}}: added wording to the REXX section preamble.)
Line 1,533:
The numeric precision is only limited to the number of decimal digits defined in the &nbsp; <big> '''pi''' </big> &nbsp; variable &nbsp; (in this case, &nbsp; '''110''').
 
This REXX version supports the specifying of &nbsp; '''X''', &nbsp; '''Y''', &nbsp; and &nbsp; '''D''', &nbsp; as well as the number of particles, &nbsp; and the number of decimal digits to be displayed.
<br>decimal digits to be displayed. &nbsp; 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.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.