Exemplo n.º 1
0
 public void AddOrganism(Organism organism)
 {
     _population.Add(organism);
     _sorted = false;
     SetPopulationFitnessModifier();
 }
Exemplo n.º 2
0
 private void SelectFittestOrganismAsRepresentative()
 {
     _representative = GetFittest();
 }
Exemplo n.º 3
0
 public Species(Neat neat, Organism representative)
 {
     _neat           = neat;
     _representative = representative;
     _population     = new List <Organism>();
 }
Exemplo n.º 4
0
 private void SelectRandomRepresentative()
 {
     _representative = _population[Utility.RandomInt(0, _population.Count)];
 }