Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Looking for help with AI::Genetic and classroom scheduling

by fizbin (Chaplain)
on Feb 23, 2005 at 06:58 UTC ( #433606=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub sortIndividuals {
      my ($self, $list) = @_;
    
      return [sort {$b->score <=> $a->score} map {$_->score;$_} @$list];
    }
    
  2. or download this
    sort {$b->score <=> $a->score}
    
  3. or download this
    sort {$b->score <=> $a->score} map {$_->score;$_}
    
  4. or download this
    #!/usr/bin/perl
    use strict;
    ...
      ## show_individual($ga->getFittest);
      return 0;            # do not terminate
    }
    
  5. or download this
    my $ga = AI::Genetic->new
      (
    ...
      );
    
    $ga->init([map {[0,100]} @CLASSES]);
    
  6. or download this
    sub make_config {
      my (@genes) = @_;
    ...
      }
      $config;
    }
    
  7. or download this
    --
    @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
    map{y/X_/\n /;print}map{pop@$_}@/for@/
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://433606]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2015-07-06 00:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls