J. J. Merelo-Guervós > Algorithm-Evolutionary-0.67 > Algorithm::Evolutionary::Op::SimulatedAnnealing

Download:
Algorithm-Evolutionary-0.67.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 2.2   Source   Latest Release: Algorithm-Evolutionary-0.71

NAME ^

SimulatedAnnealing - An operator that performs the simulated annealing algorithm on an individual, using an external freezing schedule

SYNOPSIS ^

  #Define an algorithm
  my $m  = new Algorithm::Evolutionary::Op::BitFlip; #Changes a single bit
  my $freezer = new Algorithm::Evolutionary::Op:LinearFreezer( $initTemp );
  my $sa = new Algorithm::Evolutionary::Op::SimulatedAnnealing( $eval, $m, $freezer, $initTemp, $minTemp, $numChanges );

Base Class ^

Algorithm::Evolutionary::Op::Base

DESCRIPTION ^

Simulated Annealing

METHODS ^

new( $evaluation_function, $change_operator, $freezer[, $initial_temperature] [,$minimum_temperature] [,$number_of_changes], [,$verbose] )

Creates a simulated annealing object

run( $individual )

Applies the algorithm to the individual, returns the resulting individual when the min temperature is reached. Same as apply in other operators

Copyright ^

  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/02/06 16:03:04 $ 
  $Header: /cvsroot/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/SimulatedAnnealing.pm,v 2.2 2009/02/06 16:03:04 jmerelo Exp $ 
  $Author: jmerelo $ 
  $Revision: 2.2 $
  $Name $