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
4e481001
Commit
4e481001
authored
Apr 10, 2014
by
Joseph Pallamidessi
Browse files
Merge branch 'master' of
ssh://git.code.sf.net/p/easea/code
parents
fc546d95
2a9d01b7
Changes
2
Show whitespace changes
Inline
Side-by-side
examples/EAtemplate.ez
View file @
4e481001
...
...
@@ -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 @
4e481001
...
...
@@ -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