Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Arnaud Kress
easea
Commits
48db9e81
Commit
48db9e81
authored
Apr 27, 2010
by
Frédéric Krüger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction de bug detecte par Cedric
parent
40d56fa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libeasea/CPopulation.cpp
libeasea/CPopulation.cpp
+2
-2
No files found.
libeasea/CPopulation.cpp
View file @
48db9e81
...
@@ -171,7 +171,7 @@ CIndividual** CPopulation::reduceParentPopulation(size_t obSize){
...
@@ -171,7 +171,7 @@ CIndividual** CPopulation::reduceParentPopulation(size_t obSize){
nextGeneration
=
new
CIndividual
*
[
obSize
];
nextGeneration
=
new
CIndividual
*
[
obSize
];
reducePopulation
(
parents
,
actualParentPopulationSize
,
nextGeneration
,
obSize
,
reducePopulation
(
parents
,
actualParentPopulationSize
,
nextGeneration
,
obSize
,
CPopulation
::
replacement
Operator
);
CPopulation
::
parentReduction
Operator
);
// free no longer needed CIndividuals
// free no longer needed CIndividuals
for
(
size_t
i
=
0
;
i
<
actualParentPopulationSize
-
obSize
;
i
++
)
for
(
size_t
i
=
0
;
i
<
actualParentPopulationSize
-
obSize
;
i
++
)
...
@@ -193,7 +193,7 @@ CIndividual** CPopulation::reduceOffspringPopulation(size_t obSize){
...
@@ -193,7 +193,7 @@ CIndividual** CPopulation::reduceOffspringPopulation(size_t obSize){
CIndividual
**
nextGeneration
=
new
CIndividual
*
[
offspringPopulationSize
];
CIndividual
**
nextGeneration
=
new
CIndividual
*
[
offspringPopulationSize
];
reducePopulation
(
offsprings
,
actualOffspringPopulationSize
,
nextGeneration
,
obSize
,
reducePopulation
(
offsprings
,
actualOffspringPopulationSize
,
nextGeneration
,
obSize
,
CPopulation
::
replacement
Operator
);
CPopulation
::
offspringReduction
Operator
);
//printf("POPULATION SIZE %d\n",actualOffspringPopulationSize-obSize);
//printf("POPULATION SIZE %d\n",actualOffspringPopulationSize-obSize);
// free no longer needed CIndividuals
// free no longer needed CIndividuals
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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