Particle swarm optimization: Difference between revisions
m
→{{header|Perl 6}}: output formatting
SqrtNegInf (talk | contribs) (Added Perl 6 example) |
SqrtNegInf (talk | contribs) m (→{{header|Perl 6}}: output formatting) |
||
Line 1,672:
sub report ($function-name, %state) {
say $function-name;
say '🌐 best position: ' ~
say '🌐 best value: ' ~
say '';
}
Line 1,712:
{{out}}
<pre>McCormick
🌐 best position: -0.54714
🌐 best value: -1.91322
Michalewicz
🌐 best position: 2.20291
🌐 best value: -1.80130</pre>
|