CEC20 Test Function Suite for Single Objective Bound Constrained Numerical Optimization(Python Wrapper)
- The DLL file is generated from the cpp file.
- How to use this tool is shown in example.py.
- REMEMBER to copy input_data/, cec20_test_func.dll and CEC20_Test_Suite.py together to your new python working directory.
- python >= 3.7.0
- numpy >= 1.18.0
- Windows 10
void cec20_test_func(double *x, double *f, int nx, int mx,int func_num0)
- double *x: 输入数组 Input array.
- double *f: 计算结果 Result of test function.
- int nx: 单个数组的维度 Dimension of single array.
- int mx: 输入数组的个数 Number of input arrays.
- int func_num0: 函数索引值(1~10)The index of ten cec20 test functions, from 1 to 10.
python example.py