public class DefaultChromosome extends Chromosome
compareDataset, evolveGenes
evalFunction, evalSeed, name
Constructor and Description |
---|
DefaultChromosome(java.lang.String thisName,
org.ai_heuristic.eval.metric.MetricDataset thisGeneList,
org.ai_heuristic.functs.Function evalFunction,
EvolveGenes thisEvolveGenes)
Create a new instance of DefaultChromosome.
|
Modifier and Type | Method and Description |
---|---|
org.ai_heuristic.eval.metric.ReplySet |
evaluateFitness()
Evaluate the fitness of this chromosome.
|
Chromosome |
evolve(Chromosome thisChromosome)
Generate a new chromosome by combining this chromosome and the variable passed in.
|
cloneChromosomeLight, getChromosome, getEvolveGenes, sameAs, setCompareDataset, setEvolveGenes, setName
evaluate, getEvalSeed, getName, setEvaluationFunction
public DefaultChromosome(java.lang.String thisName, org.ai_heuristic.eval.metric.MetricDataset thisGeneList, org.ai_heuristic.functs.Function evalFunction, EvolveGenes thisEvolveGenes) throws java.lang.Exception
thisName
- the id or name of the chromosome.thisGeneList
- the list of genes that define this chromosome. This is
then the evaluation seed of the parent EvaluateGenData
class.thisEvolveGenes
- the definition of how this chromosome will evolve genes.evalFunction
- the evaluation function to use.java.lang.Exception
- any error.public org.ai_heuristic.eval.metric.ReplySet evaluateFitness() throws java.lang.Exception
evaluateFitness
in class Chromosome
java.lang.Exception
- any error.public Chromosome evolve(Chromosome thisChromosome) throws java.lang.Exception
evolve
in class Chromosome
thisChromosome
- the chromosome to combine with.java.lang.Exception
- any error.