Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
easea
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Arnaud Kress
easea
Commits
4e481001
Commit
4e481001
authored
Apr 10, 2014
by
Joseph Pallamidessi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git.code.sf.net/p/easea/code
parents
fc546d95
2a9d01b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
examples/EAtemplate.ez
examples/EAtemplate.ez
+26
-1
libeasea/CEvolutionaryAlgorithm.cpp
libeasea/CEvolutionaryAlgorithm.cpp
+1
-1
No files found.
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
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