LibCudaOptimize
1.0
|
00001 //*************************************************************************// 00002 // // 00003 // LibCudaOptimize // 00004 // Copyright (C) 2012 Ibislab, University of Parma // 00005 // Authors: Youssef S.G. Nashed, Roberto Ugolotti // 00006 // // 00007 // You should have received a copy of the GNU General Public License // 00008 // along with this program. If not, see <http://www.gnu.org/licenses/> // 00009 // // 00010 //*************************************************************************// 00011 00012 #ifndef SS_SW_Optimizer_H 00013 #define SS_SW_Optimizer_H 00014 00016 #include "SW_Optimizer.h" 00017 #include "SS_Optimizer.h" 00018 00019 /*open the namespace 00020 this code should be after all the #include lines and before the first line of the code in each file. 00021 by Hamid. 23/07/2012*/ 00022 #ifdef LIBCUDAOPTIMIZE_NAMESPACE 00023 OPEN_NAMESPACE 00024 #endif 00025 00026 class SS_SW_Optimizer : 00027 public SW_Optimizer, public SS_Optimizer 00028 { 00029 protected: 00030 void reinitLocalSearch(unsigned int n); 00031 00032 public: 00033 SS_SW_Optimizer(EvalFuncPtr fPtr=NULL, unsigned int dn=PROBLEM_DIMENSIONS, unsigned int sn=NUM_SETS, unsigned int pn=NUM_SOLUTIONS); 00034 ~SS_SW_Optimizer(); 00035 00036 bool init(); 00037 void free(); 00038 00039 void optimize(); 00040 }; 00041 00042 /*close the namespace 00043 this code should be at the end of the file 00044 by Hamid. 23/07/2012*/ 00045 #ifdef LIBCUDAOPTIMIZE_NAMESPACE 00046 CLOSE_NAMESPACE 00047 #endif 00048 00049 00050 #endif