Introduction - If you have any usage issues, please Google them yourself
1. Run mex -setup and choose a proper complier (Microsoft Visual C++ 6.0 is prefered)
Would you like mex to locate installed compilers [y]/n? y
2. Put cec15_func.cpp and input_data folder with your algorithm in the same folder. Set this folder as the current path.
3. Run the following command in Matlab window:
mex cec15_func.cpp -DWINDOWS
4. Then you can use the test functions as the following example:
f = cec15_func(x,func_num)
here x is a D*pop_size matrix.
5. main.m is an example test code with PSO algorithm.