|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.neat.Evolver
Configures and performs an ANJI evolutionary run.
Field Summary | |
static java.lang.String |
FITNESS_FUNCTION_CLASS_KEY
properties key, fitness function class |
static java.lang.String |
FITNESS_TARGET_KEY
properties key, target fitness value - after reaching this run will halt |
static java.lang.String |
NUM_GENERATIONS_KEY
properties key, # generations in run |
Constructor Summary | |
Evolver()
ctor; must call init() before using this object |
Method Summary | |
Chromosome |
getChamp()
|
double |
getChampAdjustedFitness()
Fitness of current champ, 0 ... |
double |
getTargetFitness()
|
double |
getThresholdFitness()
|
void |
init(Properties props)
Construct new evolver with given properties. |
static void |
main(java.lang.String[] args)
Main program used to perform an evolutionary run. |
void |
run()
Perform a single run. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NUM_GENERATIONS_KEY
public static final java.lang.String FITNESS_FUNCTION_CLASS_KEY
public static final java.lang.String FITNESS_TARGET_KEY
Constructor Detail |
public Evolver()
init()
before using this object
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 run() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Throwable
args
- command line arguments; args[0] used as properties file
java.lang.Throwable
public Chromosome getChamp()
public double getChampAdjustedFitness()
public double getTargetFitness()
public double getThresholdFitness()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |