Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - pso.cpp
Search - pso.cpp - List
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.-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.
Date : 2025-12-29 Size : 1.94mb User : bhalab
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.