Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
easea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Arnaud Kress
easea
Commits
c76cc7b8
Commit
c76cc7b8
authored
Jun 06, 2014
by
Julien Gamba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Free buffer after individuals are copied to main population
parent
96e438ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
libeasea/CEvolutionaryAlgorithm.cpp
libeasea/CEvolutionaryAlgorithm.cpp
+4
-2
No files found.
libeasea/CEvolutionaryAlgorithm.cpp
View file @
c76cc7b8
...
...
@@ -554,8 +554,10 @@ void CEvolutionaryAlgorithm::receiveIndividuals(){
this
->
server
->
read_data_lock
();
string
line
=
this
->
server
->
parm
->
data
[
this
->
treatedIndividuals
].
data
;
this
->
population
->
parents
[
index
]
->
deserialize
(
line
);
//TAG THE INDIVIDUAL AS IMMIGRANT
this
->
population
->
parents
[
index
]
->
isImmigrant
=
true
;
//TAG THE INDIVIDUAL AS IMMIGRANT
this
->
population
->
parents
[
index
]
->
isImmigrant
=
true
;
delete
[]
this
->
population
->
parents
;
this
->
population
->
parents
=
NULL
;
this
->
server
->
read_data_unlock
();
//cout << "new Individual :" << this->population->parents[index]->serialize() << endl;
...
...
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