AI-ParticleSwarmOptimization
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
Changes
lib/AI/ParticleSwarmOptimization.pm
LICENSE
Makefile.PL
MANIFEST
README
Samples/PSOPlatTest.pl
Samples/PSOTest.pl
t/01_pso_oo.t
Todo
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
t/01_pso_oo.t view on Meta::CPAN
#!/usr/bin/perl
use strict;
use warnings;
use Test::More;
use lib '../lib'; # For development testing
use AI::ParticleSwarmOptimization;
=head1 NAME
AI::ParticleSwarmOptimization test suite
=head1 DESCRIPTION
Test AI::ParticleSwarmOptimization
=cut
plan (tests => 27);
ok (my $pso = AI::ParticleSwarmOptimization->new (), 'Constructor');
mustDie ('$pso->setParams (-fitFunc => 1)', 'Bad -fitFunc');
ok ($pso->setParams (-fitFunc => \&fitFunc,), 'Good -fitFunc (setParams)');
ok ($pso = AI::ParticleSwarmOptimization->new (-fitFunc => \&fitFunc,),
'Good -fitFunc (new)');
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.359 second using v1.00-cache-2.02-grep-82fe00e-cpan-585fae043c8 )