|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.algorithm.template.AlgorithmicTemplate.Configuration orbital.algorithm.evolutionary.GeneticAlgorithm.Configuration
public static class GeneticAlgorithm.Configuration
Algorithmic configuration objects for genetic algorithms.
Constructor Summary | |
---|---|
GeneticAlgorithm.Configuration(GeneticAlgorithmProblem problem,
Function selector,
java.lang.Class algorithm)
|
|
GeneticAlgorithm.Configuration(GeneticAlgorithmProblem problem,
Function selector,
double maximumRecombination,
double maximumMutation,
java.lang.Class algorithm)
|
|
GeneticAlgorithm.Configuration(GeneticAlgorithmProblem problem,
Function selector,
int parentCount,
int childrenCount,
double maximumRecombination,
double maximumMutation,
java.lang.Class algorithm)
Construct a new configuration. |
Method Summary | |
---|---|
AlgorithmicTemplate |
getAlgorithm()
Gets the algorithm used for solving the problem. |
int |
getChildrenCount()
Get the number of children produced with one reproduction involving parentCount parents. |
double |
getMaximumMutation()
Get the maximum probability rating of mutation level for reproduction. |
double |
getMaximumRecombination()
Get the maximum probability rating of recombining parental genomes per production. |
int |
getParentCount()
Get the number of abstract parents required to produce children. |
AlgorithmicProblem |
getProblem()
Get a modified view of the problem. |
Function |
getSelection()
Get the selection scheme to apply while evolving. |
void |
setChildrenCount(int n)
Set the number of children produced with one reproduction involving parentCount parents. |
void |
setMaximumMutation(double mutation)
Set the maximum probability rating of mutation level for reproduction. |
void |
setMaximumRecombination(double recombination)
Set the maximum probability rating of recombining parental genomes per production. |
void |
setParentCount(int n)
Set the number of abstract parents required to produce children. |
java.lang.Object |
solve()
Solves the problem with the algorithm with regard to the additional parameters managed by this algorithmic configuration. |
Methods inherited from class orbital.algorithm.template.AlgorithmicTemplate.Configuration |
---|
flexible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeneticAlgorithm.Configuration(GeneticAlgorithmProblem problem, Function selector, int parentCount, int childrenCount, double maximumRecombination, double maximumMutation, java.lang.Class algorithm)
problem
- the problem to solve.selector
- the selection function Population→Genome for selecting parents.parentCount
- The number of abstract parents required to produce children.childrenCount
- The number of children produced with one reproduction involving parentCount parents.maximumRecombination
- Maximum recombination rating.
Maximum probability rating of recombining parental genomes per production.maximumMutation
- Maximum mutation rating.
Maximum probability rating of mutation level for reproduction.algorithm
- the class of the AlgorithmicTemplate to instantiate for solving the problem.Selectors
public GeneticAlgorithm.Configuration(GeneticAlgorithmProblem problem, Function selector, double maximumRecombination, double maximumMutation, java.lang.Class algorithm)
public GeneticAlgorithm.Configuration(GeneticAlgorithmProblem problem, Function selector, java.lang.Class algorithm)
Method Detail |
---|
public Function getSelection()
Selectors
public int getParentCount()
public void setParentCount(int n)
public int getChildrenCount()
public void setChildrenCount(int n)
public double getMaximumRecombination()
public void setMaximumRecombination(double recombination)
public double getMaximumMutation()
public void setMaximumMutation(double mutation)
public AlgorithmicProblem getProblem()
GeneticAlgorithmProblem.getPopulation()
return a PopulationImpl with all properties set according to this configuration.
getProblem
in interface AlgorithmicConfiguration
getProblem
in class AlgorithmicTemplate.Configuration
public AlgorithmicTemplate getAlgorithm()
AlgorithmicConfiguration
getAlgorithm
in interface AlgorithmicConfiguration
getAlgorithm
in class AlgorithmicTemplate.Configuration
public java.lang.Object solve()
AlgorithmicConfiguration
solve
in interface AlgorithmicConfiguration
solve
in class AlgorithmicTemplate.Configuration
AlgorithmicConfiguration.getProblem()
by using the algorithm
AlgorithmicConfiguration.getAlgorithm()
after adjusting our additional parameters.
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |