org.dbe.eve.opt.alg.gaBeasely
Class GApop
java.lang.Object
org.dbe.eve.opt.alg.gaBeasely.GApop
public class GApop
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pop
private GAsolution[] pop
matrix
private ZeroOneMatrix matrix
random
private java.util.Random random
best
private GAsolution best
worst
private GAsolution worst
worstIdx
private int worstIdx
generation
private int generation
bestGen
private int bestGen
dimensions
private int[] dimensions
gPopSize
private int gPopSize
GApop
public GApop(ZeroOneMatrix m,
int _gPopSize,
double GAinitPop)
getBest
public GAsolution getBest()
setBest
public void setBest()
replaceWorst
public void replaceWorst(GAsolution newSol)
getWorst
public GAsolution getWorst()
setWorst
public void setWorst()
initRandSolutions
private void initRandSolutions(double GAinitPop)
binaryTournament
public int[] binaryTournament()
checkDuplicate
public boolean checkDuplicate(GAsolution child)
getIndividual
public GAsolution getIndividual(int index)
getAge
public int getAge()
getBestGeneration
public int getBestGeneration()