
Algorithm::Evolutionary::Op::Storing - Applies the op and keeps the result

my %visited_population_hash; #Create from scratch with default operator rate my $op = new Algorithm::Evolutionary::Op::Bitflip 2; my $stored_op = new Algorithm::Evolutionary::Op::Storing ( $op, \%visited_population_hash );

Algorithm::Evolutionary::Op::Base

Applies an operator and stores the result in a hash (can be a tied database), so that the whole population is stored. It creates an operator whose results are cached, which could be useful for expensive operators.

Wraps around the operator, and stores the reference to the population hash that will be used
Applies internal operator, and keeps result

This file is released under the GPL. See the LICENSE file included in this distribution, or go to http://www.fsf.org/licenses/gpl.txt CVS Info: $Date: 2009/03/24 17:36:00 $ $Header: /cvsroot/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/Storing.pm,v 2.2 2009/03/24 17:36:00 jmerelo Exp $ $Author: jmerelo $ $Revision: 2.2 $ $Name $