Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Arnaud Kress
easea
Commits
40d09af2
Commit
40d09af2
authored
Oct 18, 2010
by
Frederic Kruger
Browse files
Minuscule bug corrige
parent
a5be0722
Changes
1
Hide whitespace changes
Inline
Side-by-side
libeasea/CEvolutionaryAlgorithm.cpp
View file @
40d09af2
...
...
@@ -437,7 +437,7 @@ void CEvolutionaryAlgorithm::receiveIndividuals(){
//selecting the individual to erase
//CSelectionOperator *antiTournament = getSelectionOperator("Tournament",!this->params->minimizing, globalRandomGenerator);
//antiTournament->initialize(this->population->parents, 7, this->population->actualParentPopulationSize);
unsigned
index
=
antiTournament
->
selectNext
(
this
->
population
->
actualParentPopulationSize
);
//
unsigned index = antiTournament->selectNext(this->population->actualParentPopulationSize);
//We're selecting the worst element to replace
size_t
index
=
this
->
population
->
getWorstIndividualIndex
(
this
->
population
->
parents
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment