|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.polebalance.DoublePoleBalanceFitnessFunction
This code is a port from Colin Green's SharpNEAT pole balancing code, which in turn is a port from Ken Stanley's NEAT code.
Constructor Summary | |
DoublePoleBalanceFitnessFunction()
|
Method Summary | |
void |
enableDisplay()
enable GUI display of pole balancing |
void |
evaluate(Chromosome c)
Evaluate chromosome and set fitness. |
void |
evaluate(java.util.List genotypes)
Calculates and sets the fitness values on each of the given Chromosomes via their setFitnessValue() method. |
int |
getMaxFitnessValue()
|
void |
init(Properties props)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DoublePoleBalanceFitnessFunction()
Method Detail |
public void init(Properties props) throws java.lang.Exception
init
in interface Configurable
props
- configuration parameters
java.lang.Exception
Configurable.init(com.anji.util.Properties)
public void evaluate(java.util.List genotypes)
BulkFitnessFunction
evaluate
in interface BulkFitnessFunction
genotypes
- List
contains Chromosome
objects for which
the fitness values must be computed and set.BulkFitnessFunction.evaluate(java.util.List)
,
IdentifyImageFitnessFunction.evaluate(Chromosome)
public void evaluate(Chromosome c)
c
- public int getMaxFitnessValue()
getMaxFitnessValue
in interface BulkFitnessFunction
BulkFitnessFunction.getMaxFitnessValue()
public void enableDisplay()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |