org.dbe.eve.opt.alg.ga
Class Population
java.lang.Object
org.dbe.eve.opt.alg.ga.Population
public class Population
- extends java.lang.Object
- Author:
- cmasuch
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
individuals
private java.util.Vector individuals
mt
static MersenneTwister mt
Population
public Population()
addIndividuum
public void addIndividuum(Individuum ind)
addIndividuum
public void addIndividuum(int pos,
Individuum ind)
addAllIndividuums
public void addAllIndividuums(java.util.AbstractList list)
removeIndividuum
public void removeIndividuum(Individuum ind)
removeIndividuum
public void removeIndividuum(int number)
getIndividuum
public Individuum getIndividuum(int number)
getSize
public int getSize()
getPopulation
public java.util.Vector getPopulation()
getRandomIndividuum
public Individuum getRandomIndividuum()
calculateFitnessAll
public void calculateFitnessAll(java.util.Vector reqAttributes)
toString
public java.lang.String toString()
- Iterates through the population and prints the individuals
- Overrides:
toString in class java.lang.Object
- Returns:
- A string which includes the population description