Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

### Merge branch 'master' of ssh+git://easea-dev@atia/home/easea-dev/src

Conflicts:

examples/weierstrass_gpu/weierstrass.ez
examples/weierstrass_std/weierstrass.ez
parents 4b013a30 4660d658
 /*_________________________________________________________ Test functions log normal adaptive mutation Selection operator: Tournament __________________________________________________________*/ \User declarations : #define SIZE 100 #define X_MIN -1. #define X_MAX 1. #define ITER 120 #define Abs(x) ((x) < 0 ? -(x) : (x)) #define MAX(x,y) ((x)>(y)?(x):(y)) #define MIN(x,y) ((x)<(y)?(x):(y)) #define SIGMA 1. /* mutation parameter */ #define PI 3.141592654 float pMutPerGene=0.1; struct gpuOptions; \end \User functions: //fitness function #include __device__ __host__ inline float Weierstrass(float *x, int n) // Weierstrass multimidmensionnel h = 0.25 { float res = 0.; float val[SIZE]; float b=2.; float h = 0.25; for (int i = 0;i 1.0); factor = sqrt (-2.0 * log (r) / r); gset = v1 * factor; iset = 1; return (v2 * factor); } } \end \GenomeClass::display: for(int i=0; i(y)?(x):(y)) #define MIN(x,y) ((x)<(y)?(x):(y)) #define SIGMA 1. /* mutation parameter */ #define PI 3.141592654 float pMutPerGene=0.1; struct gpuOptions; \end \User functions: //fitness function #include __device__ __host__ inline float Weierstrass(float *x, int n) // Weierstrass multimidmensionnel h = 0.25 { float res = 0.; float val[SIZE]; float b=2.; float h = 0.25; for (int i = 0;i 1.0); factor = sqrt (-2.0 * log (r) / r); gset = v1 * factor; iset = 1; return (v2 * factor); } } \end \GenomeClass::display: for(int i=0; i
 ... ... @@ -118,7 +118,7 @@ GenomeClass { for (int i=0; i
 ... ... @@ -238,7 +238,8 @@ void CEvolutionaryAlgorithm::showPopulationStats(struct timeval beginTime){ if((this->params->plotStats && this->gnuplot->valid) || this->params->generateGnuplotScript){ FILE *f; string fichier (params->outputFilename); f = fopen(params->outputFilename,"a"); //ajouter .dat fichier.append(".dat"); f = fopen(fichier.c_str(),"a"); //ajouter .dat if(f!=NULL){ if(currentGeneration==0) fprintf(f,"#GEN\tTIME\t\tEVAL\tBEST\t\tAVG\t\tSTDEV\n\n"); ... ... @@ -262,7 +263,7 @@ void CEvolutionaryAlgorithm::showPopulationStats(struct timeval beginTime){ #ifdef __linux__ if(this->params->plotStats && this->gnuplot->valid){ if(currentGeneration==0) fprintf(this->gnuplot->fWrit,"plot \'%s\' using 3:4 t \'Best Fitness\' w lines, \'%s\' using 3:5 t \'Average\' w lines, \'%s\' using 3:6 t \'StdDev\' w lines\n", params->outputFilename,params->outputFilename,params->outputFilename); fprintf(this->gnuplot->fWrit,"plot \'%s.dat\' using 3:4 t \'Best Fitness\' w lines, \'%s.dat\' using 3:5 t \'Average\' w lines, \'%s.dat\' using 3:6 t \'StdDev\' w lines\n", params->outputFilename,params->outputFilename,params->outputFilename); else fprintf(this->gnuplot->fWrit,"replot\n"); fflush(this->gnuplot->fWrit); ... ...
 ... ... @@ -137,7 +137,7 @@ void parseArguments(const char* parametersFileName, int ac, char** av, ("inputfile",po::value(),"Set an input file for the initial population (default : none)") ("printStats",po::value(),"Print the Stats (default : 1)") ("plotStats",po::value(),"Plot the Stats with gnuplot (default : 0)") ("generateCVSFile",po::value(),"Print the Stats to a CVS File (Filename: ProjectName.dat) (default : 0)") ("generateCSV",po::value(),"Print the Stats to a CSV File (Filename: ProjectName.csv) (default : 0)") ("generateGnuplotScript",po::value(),"Generates a Gnuplot script to plat the Stats (Filename: ProjectName.plot) (default : 0)") ("generateRScript",po::value(),"Generates a R script to plat the Stats (Filename: ProjectName.r) (default : 0)") // ("printStatsFile",po::value(),"Print the Stats to a File (Filename: ProjectName.dat) (default : 0)") ... ...
 ... ... @@ -287,7 +287,7 @@ void ParametersImpl::setDefaultParameters(int argc, char** argv){ this->printInitialPopulation = setVariable("printInitialPopulation",0); this->printFinalPopulation = setVariable("printFinalPopulation",0); this->outputFilename = (char*)"EASEA.dat"; this->outputFilename = (char*)"EASEA"; this->plotOutputFilename = (char*)"EASEA.png"; } ... ...
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!