Commit 799c1961 authored by Frédéric Krüger's avatar Frédéric Krüger

Correction bug CComUDPLayer.h

parent 22158784
......@@ -69,6 +69,10 @@ float gauss()
\After everything else function:
//cout << "After everything else function called" << endl;
cout << "Best individual " << bBest->fitness << endl;
ofstream SaveFile("save.csv", ios::app);
SaveFile << bBest->fitness << ";" << endl;
SaveFile.close();
\end
\At the beginning of each generation function:
......@@ -141,8 +145,8 @@ CPPFLAGS+=
\end
\Default run parameters : // Please let the parameters appear in this order
Number of generations : 100 // NB_GEN
Time limit: 60 // In seconds, 0 to deactivate
Number of generations : 1000 // NB_GEN
Time limit: 0 // In seconds, 0 to deactivate
Population size : 3840 //POP_SIZE
Offspring size : 3840 // 40%
Mutation probability : 1 // MUT_PROB
......@@ -165,6 +169,7 @@ CPPFLAGS+=
Remote island model: false
IP file: ip.txt //File containing all the remote island's IP
Migration probability : 1.0
Save population: false
Start from file:false
......
......@@ -186,7 +186,7 @@ CPPFLAGS+=
Elite: 1
Print stats: true //Default: 1
Generate csv stats file:false
Generate gnuplot script:false
Generate gnuplot script:true
Generate R script:true
Plot stats:false //Default: 0
......
......@@ -22,7 +22,7 @@
#include <string>
#define _MULTI_THREADED
#define MAXINDSIZE 5000 /*maximum size of an individual in number of characters*/
#define MAXINDSIZE 50000 /*maximum size of an individual in number of characters*/
typedef struct {
char data[MAXINDSIZE];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment