Algorithm-Evolutionary-Simple
view release on metacpan or search on metacpan
script/bitflip.pl view on Meta::CPAN
#!/usr/bin/env perl
use strict;
use warnings;
use lib qw( ../lib lib );
use version; our $VERSION = qv('0.0.3');
use Algorithm::Evolutionary::Simple qw( random_chromosome mutate);
use Time::HiRes qw( gettimeofday tv_interval );
use v5.14;
my $length = 16;
my $iterations = 100000;
my $top_length = 2**15;
do {
script/maxones.pl view on Meta::CPAN
#!/usr/bin/env perl
use strict;
use warnings;
use lib qw( ../lib lib );
use version; our $VERSION = qv('0.0.3');
use Algorithm::Evolutionary::Simple qw( random_chromosome max_ones_fast
single_generation);
use Sort::Key::Top qw(rnkeytop);
my $length = shift || 64;
my $number_of_strings = shift || 64;
my @population;
script/onemax-benchmark.pl view on Meta::CPAN
#!/usr/bin/env perl
use strict;
use warnings;
use lib qw( ../lib lib );
use version; our $VERSION = qv('0.0.3');
use Algorithm::Evolutionary::Simple qw( random_chromosome max_ones_fast);
use Time::HiRes qw( gettimeofday tv_interval );
use v5.14;
my $length = 16;
my $iterations = 100000;
my $top_length = 2**15;
do {
script/simple-EA.pl view on Meta::CPAN
#!perl
use strict;
use warnings;
use lib qw( ../lib lib );
use version; our $VERSION = qv('0.0.3');
use Algorithm::Evolutionary::Simple qw( random_chromosome max_ones
get_pool_roulette_wheel get_pool_binary_tournament produce_offspring );
use Sort::Key::Top qw(rnkeytop);
my $length = shift || 64;
my $number_of_strings = shift || 64;
my $number_of_generations = shift || 100;
my $pool = shift || "roulette";
script/xover.pl view on Meta::CPAN
#!/usr/bin/env perl
use strict;
use warnings;
use lib qw( ../lib lib );
use version; our $VERSION = qv('0.0.3');
use Algorithm::Evolutionary::Simple qw( random_chromosome crossover);
use Time::HiRes qw( gettimeofday tv_interval );
use v5.14;
my $length = 16;
my $iterations = 100000;
my $top_length = 2**15;
do {
t/01.functions.t view on Meta::CPAN
# -*- cperl -*-
use Test::More;
use Test::Exception;
use strict;
use warnings;
use lib qw( ../lib lib );
use Sort::Key::Top qw(rnkeytop) ;
use Algorithm::Evolutionary::Simple
qw( random_chromosome max_ones
get_pool_roulette_wheel get_pool_binary_tournament
produce_offspring single_generation);
my $length = 32;
my $number_of_strings = 32;
( run in 0.271 second using v1.01-cache-2.11-cpan-87723dcf8b7 )