Jump to content

Particle swarm optimization: Difference between revisions

m
→‎{{header|Perl}}: oops, print results *correctly*
m (→‎{{header|Perl}}: oops, print results)
m (→‎{{header|Perl}}: oops, print results *correctly*)
Line 1,681:
my($function_name, %state) = @_;
say $function_name;
say 'Global best position: ' . printfsprintf "%.5f %.5f\n", @{$state{'gbpos'}};
say 'Global best value: ' . printfsprintf "%.5f\n", $state{'gbval'};
say '';
}
2,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.