|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfunction.LearningAlgorythm
public class LearningAlgorythm
Learning algorithm
Constructor Summary | |
---|---|
LearningAlgorythm(Population oldPopulation,
int maxIteration)
Creates a new instance of LearningAlgorythm |
Method Summary | |
---|---|
ChromosomeModel |
getBestChromosome(int iteration)
Return best chromosome in interation |
java.util.ArrayList |
getBestChromosomeList()
Return ArrayList of best chromosome. |
CrossFunctionModel |
getCrossFunctionModel()
Return reference to Cross Over Function |
int |
getMaxIteration()
Return number of iteration |
Population |
getNewPoplation()
Return reference to new population |
Population |
getOldPopulation()
Return reference to populatoin before learning |
ReproductionFunctionModel |
getReproductionFunctionModel()
Return reference to reproduction Function Model |
boolean |
isMakeCrossOver()
Check if cross over is used in learning algorithm |
boolean |
isMakeMutation()
Check if mutation is used in learning algorithm |
boolean |
isMakeReproduction()
Check if reproduction is used in learning algorithm |
void |
learn()
Start learning algorithm |
void |
setCrossFunctionModel(CrossFunctionModel crossFunctionModel)
Set reference to Cross Over funciton |
void |
setMakeCrossOver(boolean makeCrossOver)
Set using cross over in learning |
void |
setMakeMutation(boolean makeMutation)
Set using mutation in learning |
void |
setMakeReproduction(boolean makeReproduction)
Set using reproducion in learning |
void |
setMaxIteration(int maxIteration)
Set iteration number |
void |
setOldPopulation(Population oldPopulation)
Set old population |
void |
setReproductionFunctionModel(ReproductionFunctionModel reproductionFunciton)
Set reproducion function model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LearningAlgorythm(Population oldPopulation, int maxIteration)
oldPopulation
- Old populationmaxIteration
- Number of iterationMethod Detail |
---|
public void setCrossFunctionModel(CrossFunctionModel crossFunctionModel)
crossFunctionModel
- reference to Cross Over Functionpublic void setMakeCrossOver(boolean makeCrossOver)
makeCrossOver
- Set using cross over in learningpublic void setMakeMutation(boolean makeMutation)
makeMutation
- Set using mutation in learningpublic void setMakeReproduction(boolean makeReproduction)
makeReproduction
- Set using reproducion in learningpublic void setMaxIteration(int maxIteration)
maxIteration
- Iteration numberpublic void setOldPopulation(Population oldPopulation)
oldPopulation
- Reference to populationpublic void setReproductionFunctionModel(ReproductionFunctionModel reproductionFunciton)
reproductionFunciton
- Reference to reproducion function modelpublic ReproductionFunctionModel getReproductionFunctionModel()
public boolean isMakeCrossOver()
public boolean isMakeReproduction()
public boolean isMakeMutation()
public int getMaxIteration()
public CrossFunctionModel getCrossFunctionModel()
public Population getNewPoplation()
public Population getOldPopulation()
public void learn()
public java.util.ArrayList getBestChromosomeList()
public ChromosomeModel getBestChromosome(int iteration)
iteration
- iteration number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |