public class GAConfiguration extends Object
NOTE: Default selectionMethod is SELECTION_METHOD_TRUNCATION Default truncateRate is .10 More selectionMethods will be introduced in future releases.
Constructor and Description |
---|
GAConfiguration() |
Modifier and Type | Method and Description |
---|---|
ChromosomeCriteria |
getChromosomeCriteria()
retrieve the ChromosomeCriteria
|
int |
getChromosomeLen()
Retrieve the chromosome length
|
double |
getCrossOverRate()
Retrieve the cross over rate
|
int |
getElitismCnt()
Retrieve the elitism count
|
IFitnessFunction |
getFitnessFunction()
Retrieve IFitnessFunction
|
List<Gene> |
getGenePool()
Retrieve the gene pool
|
double |
getMutationRate()
Retrieve the mutation rate.
|
int |
getPopulationSize()
Retrieve the population size
|
GAGridConstants.SELECTION_METHOD |
getSelectionMtd()
Get the selection method
|
ITerminateCriteria |
getTerminateCriteria()
Retreive the termination criteria
|
double |
getTruncateRate()
Retrieve truncateRate
|
boolean |
isHigherFitnessValFitter() |
void |
setChromosomeCriteria(ChromosomeCriteria chromosomeCriteria)
set value for ChromosomeCriteria
|
void |
setChromosomeLen(int chromosomeLen)
Set the Chromsome length
|
void |
setCrossOverRate(double crossOverRate)
Set the cross over rate.
|
void |
setElitismCnt(int elitismCnt)
Set the elitism count.
|
void |
setFitnessFunction(IFitnessFunction fitnessFunction)
Set IFitnessFunction
|
void |
setGenePool(List<Gene> genePool)
Set the gene pool.
|
void |
setMutationRate(double mutationRate)
Set the mutation rate.
|
void |
setPopulationSize(int populationSize)
Set the population size
|
void |
setSelectionMtd(GAGridConstants.SELECTION_METHOD selectionMtd)
Set the selection method
|
void |
setTerminateCriteria(ITerminateCriteria terminateCriteria)
Set the termination criteria.
|
void |
setTruncateRate(double truncateRate)
Set truncatePercentage
|
public ChromosomeCriteria getChromosomeCriteria()
public void setChromosomeCriteria(ChromosomeCriteria chromosomeCriteria)
chromosomeCriteria
- Chromosome criteriapublic boolean isHigherFitnessValFitter()
public int getChromosomeLen()
public void setChromosomeLen(int chromosomeLen)
chromosomeLen
- Size of Chromosomepublic double getCrossOverRate()
public void setCrossOverRate(double crossOverRate)
crossOverRate
- Cross over ratepublic int getElitismCnt()
public void setElitismCnt(int elitismCnt)
elitismCnt
- Elitism countpublic IFitnessFunction getFitnessFunction()
public void setFitnessFunction(IFitnessFunction fitnessFunction)
fitnessFunction
- Fitness functionpublic void setGenePool(List<Gene> genePool)
genePool
- List of Genespublic double getMutationRate()
public void setMutationRate(double mutationRate)
mutationRate
- Mutation Ratepublic int getPopulationSize()
public void setPopulationSize(int populationSize)
populationSize
- Size of populationpublic GAGridConstants.SELECTION_METHOD getSelectionMtd()
public void setSelectionMtd(GAGridConstants.SELECTION_METHOD selectionMtd)
selectionMtd
- Selection methodpublic ITerminateCriteria getTerminateCriteria()
public void setTerminateCriteria(ITerminateCriteria terminateCriteria)
terminateCriteria
- Termination Criteriapublic double getTruncateRate()
public void setTruncateRate(double truncateRate)
truncateRate
- Truncate rate
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019