adams.optimise
Class GeneticAlgorithm.GAJob
java.lang.Object
adams.core.ConsoleObject
adams.multiprocess.Job
adams.optimise.GeneticAlgorithm.GAJob
- All Implemented Interfaces:
- CleanUpHandler, SizeOfHandler, Serializable
- Enclosing class:
- GeneticAlgorithm
public static class GeneticAlgorithm.GAJob
- extends Job
Class for multithreading the ga.
- Author:
- dale
- See Also:
- Serialized Form
| Methods inherited from class adams.multiprocess.Job |
addDependency, addParam, cleanUp, execute, getAdditionalErrorInformation, getAsVector, getDependencies, getExecutionError, getJobCompleteListener, getJobInfo, getParam, hasExecutionError, isComplete, jobCompleted, setJobCompleteListener |
m_ga
protected GeneticAlgorithm m_ga
- ga.
m_ff
protected FitnessFunction m_ff
- fitness function.
m_weights
protected int[] m_weights
- weights.
m_fitness
public double m_fitness
GeneticAlgorithm.GAJob
public GeneticAlgorithm.GAJob(GeneticAlgorithm ga,
FitnessFunction ff,
int[] weights)
- Constructor. Set GA params.
- Parameters:
ff - fitness functionweights - weights
postProcessCheck
protected String postProcessCheck()
- Specified by:
postProcessCheck in class Job
preProcessCheck
protected String preProcessCheck()
- Specified by:
preProcessCheck in class Job
process
protected void process()
- Specified by:
process in class Job
toString
public String toString()
- Specified by:
toString in class Job
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.