public interface SolutionGeneticDef extends SolutionSolveDef
Modifier and Type | Method and Description |
---|---|
Solution |
evolve(java.lang.String solutionName,
Solution evolveWith)
Evolve the existing solution to create a new one.
|
Chromosome |
getChromosome()
Get the chromosome that this solution uses.
|
void |
setChromosome(Chromosome thisChromosome)
Set the chromosome or this solution.
|
solve
getEvaluation, getName, setEvaluation, setName
Solution evolve(java.lang.String solutionName, Solution evolveWith) throws java.lang.Exception
solutionName
- the name for the new solution.evolveWith
- the solution to evolve with.java.lang.Exception
- any error.void setChromosome(Chromosome thisChromosome)
thisChromosome
- the chromosome.Chromosome getChromosome()