org.dishevelled.swarm.exit
Class FitnessFloorExitStrategy
java.lang.Object
org.dishevelled.swarm.exit.FitnessFloorExitStrategy
- All Implemented Interfaces:
- ExitStrategy
public final class FitnessFloorExitStrategy
- extends Object
- implements ExitStrategy
Fitness floor exit strategy. Exits as soon as every particle has
a fitness score above a set lower bound.
- Version:
- $Revision$ $Date$
- Author:
- Michael Heuer
|
Constructor Summary |
FitnessFloorExitStrategy(double lowerBound)
Create a new fitness threshold exit strategy with the specified lower bound. |
|
Method Summary |
boolean |
evaluate(ParticleSwarm swarm,
int epoch)
Return true if the specified particle swarm 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 |
FitnessFloorExitStrategy
public FitnessFloorExitStrategy(double lowerBound)
- Create a new fitness threshold exit strategy with the specified lower bound.
- Parameters:
lowerBound - lower bound for this fitness floor exit strategy
evaluate
public boolean evaluate(ParticleSwarm swarm,
int epoch)
- Return
true if the specified particle swarm has met the
criteria of this exit strategy function. The particle swarm will not be null.
- Specified by:
evaluate in interface ExitStrategy
- Parameters:
swarm - particle swarmepoch - epoch
- Returns:
- true if the specified particle swarm has met the criteria of
this exit strategy function
Copyright © 2006-2012 dishevelled.org. All Rights Reserved.