5 * Created by Dario Izzo on 9/21/08.
6 * Copyright 2008 __MyCompanyName__. All rights reserved.
11 #ifndef SOLVERSTHREADS_H
12 #define SOLVERSTHREADS_H
16 #include "GOproblem.h"
17 #include "population.h"
19 //Here we define the parameters needed to instanciate a thread. These contain
20 //datas that are algorithm specific, but also data that are needed for all aglorithms (LB,UB,objfun,mutex etc.)
24 unsigned int threadID
;
33 double omega
,eta1
,eta2
,vcoeff
;
40 //pointers giving access to global resources
44 pthread_mutex_t
*TPmutex
;
47 std::ofstream
*Ptr_log
;
48 unsigned long randomSeed
;
51 //Here we define the protoypes for each type of thread we may want to open
52 void *DEthread(void *data
);
53 void *PSOthread(void *data
);
54 void *MPSOthread(void *data
);
55 void *SGAthread(void *data
);
56 void *ASAthread(void *data
);