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
2a9d01b7
Commit
2a9d01b7
authored
Apr 09, 2014
by
rahya
Browse files
Add section in empty template and initialise pointer to CEvolutionaryAlgorithm to avoid warning
parent
041a28ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/EAtemplate.ez
View file @
2a9d01b7
...
...
@@ -9,12 +9,37 @@ _______________________________________________________________*/
\User functions:
\end
\User CUDA:
//Transfert some variables to GPU here (cudaMalloc, MemCpy)
\end
\User classes :
GenomeClass {
// need to declare the genome here
int i;
}
\end
\Before everything else function:
//cout<<"Before everything else function called "<<endl;
\end
\After everything else function:
//cout << "After everything else function called" << endl;
\end
\At the beginning of each generation function:
//cout << "At the beginning of each generation function called" << endl;
\end
\At the end of each generation function:
//cout << "At the end of each generation function called" << endl;
\end
\At each generation before reduce function:
//cout << "At each generation before replacement function called" << endl;
\end
\GenomeClass::display:
\end
...
...
@@ -64,8 +89,8 @@ GenomeClass {
Remote island model: false
IP file: ip.txt // List of IP:PORT of islands to send individuals to
Server port : 2929
Migration probability: 0.33 // Probability of sending an individual per generation
Server port : 2929
Save population: false
Start from file:false
...
...
libeasea/CEvolutionaryAlgorithm.cpp
View file @
2a9d01b7
...
...
@@ -168,7 +168,7 @@ void CEvolutionaryAlgorithm::addStoppingCriterion(CStoppingCriterion* sc){
/* MAIN FUNCTION TO RUN THE EVOLUTIONARY LOOP */
void
CEvolutionaryAlgorithm
::
runEvolutionaryLoop
(){
CIndividual
**
elitistPopulation
;
CIndividual
**
elitistPopulation
=
NULL
;
#ifdef WIN32
clock_t
begin
(
clock
());
...
...
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