5 * Created by Dario Izzo on 9/21/08.
6 * Copyright 2008 __MyCompanyName__. All rights reserved.
11 #ifndef SOLVERSTHREADS_H
12 #define SOLVERSTHREADS_H
14 #include <boost/thread/condition_variable.hpp>
15 #include <boost/thread/mutex.hpp>
17 #include "GOproblem.h"
18 #include "population.h"
20 //Here we define the parameters needed to instanciate a thread. These contain
21 //datas that are algorithm specific, but also data that are needed for all aglorithms (LB,UB,objfun,mutex etc.)
25 unsigned int threadID
;
34 double omega
,eta1
,eta2
,vcoeff
;
41 //pointers giving access to global resources
45 boost::mutex
*TPmutex
;
46 boost::condition_variable
*exit
;
48 std::ofstream
*Ptr_log
;
52 //Here we define the protoypes for each type of thread we may want to open
53 void *DEthread(void *data
);
54 void *PSOthread(void *data
);
55 void *MPSOthread(void *data
);
56 void *SGAthread(void *data
);
57 void *ASAthread(void *data
);