org.dishevelled.evolve.exit
Class FitnessFloorExitStrategy<I>

java.lang.Object
  extended by org.dishevelled.evolve.exit.FitnessFloorExitStrategy<I>
Type Parameters:
I - individual type
All Implemented Interfaces:
ExitStrategy<I>

public final class FitnessFloorExitStrategy<I>
extends Object
implements ExitStrategy<I>

Fitness floor exit strategy. Exits as soon as every individual has a fitness score above a set lower bound.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Constructor Summary
FitnessFloorExitStrategy(double lowerBound)
          Create a new fitness floor exit strategy with the specified lower bound.
 
Method Summary
 boolean evaluate(Collection<I> population, WeightedMap<I> scores, int time)
          Return true if the specified population has met the criteria of this exit strategy function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitnessFloorExitStrategy

public FitnessFloorExitStrategy(double lowerBound)
Create a new fitness floor exit strategy with the specified lower bound.

Parameters:
lowerBound - lower bound for this fitness floor exit strategy
Method Detail

evaluate

public boolean evaluate(Collection<I> population,
                        WeightedMap<I> scores,
                        int time)
Return true if the specified population has met the criteria of this exit strategy function.

Specified by:
evaluate in interface ExitStrategy<I>
Parameters:
population - population
scores - fitness scores
time - time
Returns:
true if the specified population has met the criteria of this exit strategy function


Copyright (c) 2005-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).