├── CEC2005 ├── README.md ├── SIS2005 │ ├── PSO_func.m │ ├── SIS_novel_func.m │ ├── com_func1_M_D10.mat │ ├── com_func1_data.mat │ ├── com_func2_M_D10.mat │ ├── com_func2_data.mat │ ├── com_func3_M_D10.mat │ ├── com_func3_data.mat │ ├── func_plot.m │ ├── func_test.m │ ├── hybrid_func1_M_D10.mat │ ├── hybrid_func1_data.mat │ ├── hybrid_func2_M_D10.mat │ ├── hybrid_func2_data.mat │ └── readme.txt └── matlab version │ ├── EF8F2_func_data.mat │ ├── E_ScafferF6_M_D10.mat │ ├── E_ScafferF6_M_D2.mat │ ├── E_ScafferF6_M_D30.mat │ ├── E_ScafferF6_M_D50.mat │ ├── E_ScafferF6_func_data.mat │ ├── README.md │ ├── ackley_M_D10.mat │ ├── ackley_M_D2.mat │ ├── ackley_M_D30.mat │ ├── ackley_M_D50.mat │ ├── ackley_func_data.mat │ ├── benchmark_func.m │ ├── elliptic_M_D10.mat │ ├── elliptic_M_D2.mat │ ├── elliptic_M_D30.mat │ ├── elliptic_M_D50.mat │ ├── fbias_data.mat │ ├── func_plot.m │ ├── global_optima.mat │ ├── griewank_M_D10.mat │ ├── griewank_M_D2.mat │ ├── griewank_M_D30.mat │ ├── griewank_M_D50.mat │ ├── griewank_func_data.mat │ ├── high_cond_elliptic_rot_data.mat │ ├── hybrid_func1_M_D10.mat │ ├── hybrid_func1_M_D2.mat │ ├── hybrid_func1_M_D30.mat │ ├── hybrid_func1_M_D50.mat │ ├── hybrid_func1_data.mat │ ├── hybrid_func2_M_D10.mat │ ├── hybrid_func2_M_D2.mat │ ├── hybrid_func2_M_D30.mat │ ├── hybrid_func2_M_D50.mat │ ├── hybrid_func2_data.mat │ ├── hybrid_func3_HM_D10.mat │ ├── hybrid_func3_HM_D2.mat │ ├── hybrid_func3_HM_D30.mat │ ├── hybrid_func3_HM_D50.mat │ ├── hybrid_func3_M_D10.mat │ ├── hybrid_func3_M_D2.mat │ ├── hybrid_func3_M_D30.mat │ ├── hybrid_func3_M_D50.mat │ ├── hybrid_func3_data.mat │ ├── hybrid_func4_M_D10.mat │ ├── hybrid_func4_M_D2.mat │ ├── hybrid_func4_M_D30.mat │ ├── hybrid_func4_M_D50.mat │ ├── hybrid_func4_data.mat │ ├── rastrigin_M_D10.mat │ ├── rastrigin_M_D2.mat │ ├── rastrigin_M_D30.mat │ ├── rastrigin_M_D50.mat │ ├── rastrigin_func_data.mat │ ├── rosenbrock_func_data.mat │ ├── schwefel_102_data.mat │ ├── schwefel_206_data.mat │ ├── schwefel_213_data.mat │ ├── sphere_func_data.mat │ ├── test_data.mat │ ├── weierstrass_M_D10.mat │ ├── weierstrass_M_D2.mat │ ├── weierstrass_M_D30.mat │ ├── weierstrass_M_D50.mat │ └── weierstrass_data.mat ├── CEC2010 ├── CPP_version │ ├── Benchmarks.cpp │ ├── Benchmarks.h │ ├── F1.cpp │ ├── F1.h │ ├── F10.cpp │ ├── F10.h │ ├── F11.cpp │ ├── F11.h │ ├── F12.cpp │ ├── F12.h │ ├── F13.cpp │ ├── F13.h │ ├── F14.cpp │ ├── F14.h │ ├── F15.cpp │ ├── F15.h │ ├── F16.cpp │ ├── F16.h │ ├── F17.cpp │ ├── F17.h │ ├── F18.cpp │ ├── F18.h │ ├── F19.cpp │ ├── F19.h │ ├── F2.cpp │ ├── F2.h │ ├── F20.cpp │ ├── F20.h │ ├── F3.cpp │ ├── F3.h │ ├── F4.cpp │ ├── F4.h │ ├── F5.cpp │ ├── F5.h │ ├── F6.cpp │ ├── F6.h │ ├── F7.cpp │ ├── F7.h │ ├── F8.cpp │ ├── F8.h │ ├── F9.cpp │ ├── F9.h │ ├── Header.h │ ├── Makefile │ ├── README │ ├── RunParameter.cpp │ ├── RunParameter.h │ ├── configure.ini │ └── main.cpp ├── README.md └── matlab_version │ ├── benchmark_func.m │ ├── datafiles │ ├── f01_o.mat │ ├── f02_o.mat │ ├── f03_o.mat │ ├── f04_opm.mat │ ├── f05_opm.mat │ ├── f06_opm.mat │ ├── f07_op.mat │ ├── f08_op.mat │ ├── f09_opm.mat │ ├── f10_opm.mat │ ├── f11_opm.mat │ ├── f12_op.mat │ ├── f13_op.mat │ ├── f14_opm.mat │ ├── f15_opm.mat │ ├── f16_opm.mat │ ├── f17_op.mat │ ├── f18_op.mat │ ├── f19_o.mat │ └── f20_o.mat │ ├── demoEA.m │ ├── javarandom │ ├── bin │ │ └── Randomizer.class │ └── src │ │ └── Randomizer.java │ └── readme.txt ├── CEC2013 ├── cpp version │ ├── cec13_func.cpp │ ├── input_data │ │ ├── M_D10.txt │ │ ├── M_D100.txt │ │ ├── M_D2.txt │ │ ├── M_D20.txt │ │ ├── M_D30.txt │ │ ├── M_D40.txt │ │ ├── M_D5.txt │ │ ├── M_D50.txt │ │ ├── M_D60.txt │ │ ├── M_D70.txt │ │ ├── M_D80.txt │ │ ├── M_D90.txt │ │ └── shift_data.txt │ └── readme.txt └── matlab version │ ├── PSO_func.m │ ├── input_data │ ├── M_D10.txt │ ├── M_D100.txt │ ├── M_D2.txt │ ├── M_D20.txt │ ├── M_D30.txt │ ├── M_D40.txt │ ├── M_D5.txt │ ├── M_D50.txt │ ├── M_D60.txt │ ├── M_D70.txt │ ├── M_D80.txt │ ├── M_D90.txt │ └── shift_data.txt │ ├── main.m │ └── readme.txt ├── CEC2014 ├── README.md └── matlab version │ ├── CFPSO_G_cec2014.m │ ├── LDWPSO_G_cec2014.m │ ├── LearnIndex.m │ ├── boundConstraint_absorb.m │ ├── boundConstraint_reflect.m │ ├── cpp version │ ├── cec14_func.cpp │ ├── cec14_func.mexw32 │ └── cec14_func.mexw64 │ ├── input_data.zip │ └── problem_range.m ├── CEC2017 ├── C version │ ├── cec17_test_func.cpp │ ├── main.cpp │ └── readme.txt ├── Matlab │ ├── PSO_func.m │ ├── cec17_func.cpp │ ├── cec17_func.mexw64 │ ├── main.m │ └── readme.txt ├── README.md └── input_data.zip ├── CEC2019 ├── README.txt └── matlab version │ ├── 10_1.txt │ ├── 10_2.txt │ ├── 1_1.txt │ ├── 1_2.txt │ ├── 2_1.txt │ ├── 2_2.txt │ ├── 3_1.txt │ ├── 3_2.txt │ ├── 4_1.txt │ ├── 4_2.txt │ ├── 5_1.txt │ ├── 5_2.txt │ ├── 6_1.txt │ ├── 6_2.txt │ ├── 7_1.txt │ ├── 7_2.txt │ ├── 8_1.txt │ ├── 8_2.txt │ ├── 9_1.txt │ ├── 9_2.txt │ ├── CPSO_func.m │ ├── DefinitionsCEC2019Benchmark.pdf │ ├── README.txt │ ├── RRSO.m │ ├── RRSO1.m │ ├── boundConstraint.m │ ├── cec19_func.mexw64 │ ├── gnR1R2.m │ ├── input_data │ ├── M_10_D10.txt │ ├── M_10_D2.txt │ ├── M_1_D10.txt │ ├── M_1_D2.txt │ ├── M_2_D10.txt │ ├── M_2_D2.txt │ ├── M_3_D10.txt │ ├── M_3_D2.txt │ ├── M_4_D10.txt │ ├── M_4_D2.txt │ ├── M_5_D10.txt │ ├── M_5_D2.txt │ ├── M_6_D10.txt │ ├── M_6_D2.txt │ ├── M_7_D10.txt │ ├── M_7_D2.txt │ ├── M_8_D10.txt │ ├── M_8_D2.txt │ ├── M_8_D20.txt │ ├── M_9_D10.txt │ ├── M_9_D2.txt │ ├── shift_data_1.txt │ ├── shift_data_10.txt │ ├── shift_data_2.txt │ ├── shift_data_3.txt │ ├── shift_data_4.txt │ ├── shift_data_5.txt │ ├── shift_data_6.txt │ ├── shift_data_7.txt │ ├── shift_data_8.txt │ └── shift_data_9.txt │ ├── main.m │ ├── memory.mat │ └── updateArchive.m ├── CEC2020 ├── CFP2020.pdf └── matlab version │ ├── CMOP1.m │ ├── CMOP10.m │ ├── CMOP2.m │ ├── CMOP3.m │ ├── CMOP4.m │ ├── CMOP5.m │ ├── CMOP6.m │ ├── CMOP7.m │ ├── CMOP8.m │ ├── CMOP9.m │ ├── PF1.dat │ ├── PF10.dat │ ├── PF2.dat │ ├── PF3.dat │ ├── PF4.dat │ ├── PF5.dat │ ├── PF6.dat │ ├── PF7.dat │ ├── PF8.dat │ └── PF9.dat └── README.md /CEC2005/README.md: -------------------------------------------------------------------------------- 1 | ## CEC2005 Benchmark Functions 2 | 3 | The file `benchmark_func.m` is the main function for these minimization problems 4 | > f=benchmark_func(x,func_num) 5 | 6 | x is the variable, f is the function value, func_num is the function num, 7 | data files save the necessary information. 8 | func_plot.m is used to plot the 2-D function map 9 | 10 | **25 functions** in all, from 1 to 25, are listed as follows. 11 | 12 | --- 13 | 14 | ### (1) Unimodal Functions (5): 15 | 16 | 1. Shifted Sphere Function Bounds[-100,100] f_bias=-450 17 | 18 | 2. Shifted Schwefel's Problem 1.2 Bounds[-100,100] f_bias=-450 19 | 20 | 3. Shifted Rotated High Conditioned Elliptic Function Bounds[-100,100] f_bias=-450 21 | 4. Shifted Schwefel's Problem 1.2 with Noise in Fitness Bounds[-100,100] f_bias=-450 22 | 5. Schwefel's Problem 2.6 with Global Optimum on Bounds Bounds[-100,100] f_bias=-310 23 | 24 | ### (2) Multimodal Functions (20): 25 | 26 | **Basic Functions (7):** 27 | 28 | 6. Shifted Rosenbrock's Function Bounds[-100,100] f_bias=390 29 | 7. Shifted Rotated Griewank's Function without Bounds Intilization Range [0, 600] f_bias=-180 30 | 8. Shifted Rotated Ackley's with Global Optimum on Bounds Bounds[-32,32] f_bias=-140 31 | 9. Shifted Rastrigin's Function Bounds[-5,5] f_bias=-330 32 | 10. Shifted Rotated Rastrigin's Function Bounds[-5,5] f_bias=-330 33 | 11. Shifted Rotated Weierstrass Function Bounds[-0.5,0.5] f_bias=90 34 | 12. Schwefel's Problem 2.13 Bounds[-100,100] f_bias=-460 35 | 36 | **Expanded Functions (2):** 37 | 38 | 13. Expanded Extended Griewank's + Rosenbrock's (F8F2) Bounds[-3,1] f_bias=-130 39 | 14. Expanded Rotated Extended Scaffe's F6 Bounds[-100,100] f_bias=-300 40 | 41 | **Hybrid Composition Functions (11):** 42 | 43 | 15. Hybrid Composition Function 1 Bounds[-5,5] f_bias= 120 44 | 45 | 16. Rotated Hybrid Comp. Fn 1 Bounds[-5,5] f_bias= 120 46 | 47 | 17. Rotated Hybrid Comp. Fn 1 with Noise in Fitness Bounds[-5,5] f_bias= 120 48 | 49 | 18. Rotated Hybrid Comp. Fn 2 Bounds[-5,5] f_bias=10 50 | 51 | 19. Rotated Hybrid Comp. Fn 2 with Narrow Global Optimal Basin Bounds[-5,5]] f_bias=10 52 | 53 | 20. Rotated Hybrid Comp. Fn 2 with the Global Optimum on Bounds Bounds[-5,5] f_bias=10 54 | 21. Rotated Hybrid Comp. Fn 3 Bounds[-5,5] f_bias=360 55 | 22. Rotated Hybrid Comp. Fn 3 with High Condition Number Matrix Bounds[-5,5] f_bias=360 56 | 23. Non-Continuous Rotated Hybrid Comp. Fn 3 Bounds[-5,5] f_bias=360 57 | 24. Rotated Hybrid Comp. Fn 4 Bounds[-5,5] f_bias=260 58 | 25. Rotated Hybrid Comp. Fn 4 without Bounds Intilization Range[-2,5] f_bias=260 59 | 60 | 61 | ***Please note: 62 | 63 | When you use the test function, remember to set a global variable initial_flag, and make 64 | sure initial_flag=0 before each search. 65 | 66 | For details of the test functions, please read intro-2-functions.doc file 67 | 68 | --- 69 | 70 | 71 | **Files**: 72 | 73 | 74 | > Matlab *.m files: 75 | 76 | benchmark_func.m 77 | %benchmark_func.m is the main function with all the minimization problems 78 | %f=benchmark_func(x,func_num) 79 | %x is the variable, f is the function value, func_num is the function number (1 to 25), 80 | 81 | func_plot.m 82 | %used to plot the 2-D function map 83 | 84 | 85 | > Matlab *.mat data files: 86 | 87 | test_data.mat 88 | % 10 points (50D each) & corresponding fitnesses given to assist verification for code translation. 89 | % Variables:x1,x2,x3,....x25 90 | % Corresponding Function Values: f1,f2,f3,....f25 91 | ***Notice, for function 4,17,24,25, since they have noise, please set noise to 0 (e.g setting 0.0*N(0,1)) before test. 92 | 93 | > fbias_data.mat 94 | % contain a 1*25 vector f_bias which are the global optimal function values. 95 | 96 | > global_optima.mat 97 | 98 | ```matlab 99 | % all 25 global optimal points (25 x 100 matrix) for the 25 test functions, 100 | % please note, function 5,8,20 set the global optima on the bounds, so the corresponding 101 | % global optima are: 102 | % if func_num==5,o(1:ceil(D/4))=-100;x(max(floor(0.75*D),1):D)=100;end 103 | % if func_num==8,o(2.*[1:floor(D/2)]-1)=-32;end 104 | % if func_num==20,o(1,2.*[1:floor(D/2)])=5;end 105 | ``` 106 | 107 | --- 108 | 109 | sphere_func_data.mat 110 | 111 | schwefel_102_data.mat 112 | 113 | high_cond_elliptic_rot_data.mat 114 | elliptic_M_D2.mat 115 | elliptic_M_D10.mat 116 | elliptic_M_D30.mat 117 | elliptic_M_D50.mat 118 | 119 | schwefel_206_data.mat 120 | 121 | rosenbrock_func_data.mat 122 | 123 | griewank_func_data.mat 124 | griewank_M_D2.mat 125 | griewank_M_D10.mat 126 | griewank_M_D30.mat 127 | griewank_M_D50.mat 128 | 129 | ackley_func_data.mat 130 | ackley_M_D2.mat 131 | ackley_M_D10.mat 132 | ackley_M_D30.mat 133 | ackley_M_D50.mat 134 | 135 | rastrigin_func_data.mat 136 | rastrigin_M_D2.mat 137 | rastrigin_M_D10.mat 138 | rastrigin_M_D30.mat 139 | rastrigin_M_D50.mat 140 | 141 | weierstrass_data.mat 142 | weierstrass_M_D2.mat 143 | weierstrass_M_D10.mat 144 | weierstrass_M_D30.mat 145 | weierstrass_M_D50.mat 146 | 147 | schwefel_213_data.mat 148 | 149 | EF8F2_func_data.mat 150 | 151 | E_ScafferF6_func_data.mat 152 | E_ScafferF6_M_D2.mat 153 | E_ScafferF6_M_D10.mat 154 | E_ScafferF6_M_D30.mat 155 | E_ScafferF6_M_D50.mat 156 | 157 | hybrid_func1_data.mat 158 | hybrid_func1_M_D2.mat 159 | hybrid_func1_M_D10.mat 160 | hybrid_func1_M_D30.mat 161 | hybrid_func1_M_D50.mat 162 | 163 | hybrid_func2_data.mat 164 | hybrid_func2_M_D2.mat 165 | hybrid_func2_M_D10.mat 166 | hybrid_func2_M_D30.mat 167 | hybrid_func2_M_D50.mat 168 | 169 | hybrid_func3_data.mat 170 | hybrid_func3_M_D2.mat 171 | hybrid_func3_M_D10.mat 172 | hybrid_func3_M_D30.mat 173 | hybrid_func3_M_D50.mat 174 | 175 | hybrid_func4_data.mat 176 | hybrid_func4_M_D2.mat 177 | hybrid_func4_M_D10.mat 178 | hybrid_func4_M_D30.mat 179 | hybrid_func4_M_D50.mat 180 | 181 | --- 182 | 183 | PLEASE NOTE: 184 | 185 | hybrid_func1_M_D......matrix data in matlab mat format contain a structure variable M, 186 | and M.M1,M.M2...M.M10 are ten D*D matrix 187 | 188 | -------------------------------------------------------------------------------- /CEC2005/SIS2005/PSO_func.m: -------------------------------------------------------------------------------- 1 | function [gbest,gbestval,fitcount]= PSO_func(fhd,Max_Gen,Max_FES,Particle_Number,Dimension,VRmin,VRmax,varargin) 2 | %[gbest,gbestval,fitcount]= PSO_func('f8',3500,200000,30,30,-5.12,5.12) 3 | rand('state',sum(100*clock)); 4 | me=Max_Gen; 5 | ps=Particle_Number; 6 | D=Dimension; 7 | cc=[2 2]; %acceleration constants 8 | iwt=0.9-(1:me).*(0.5./me); 9 | if length(VRmin)==1 10 | VRmin=repmat(VRmin,1,D); 11 | VRmax=repmat(VRmax,1,D); 12 | end 13 | mv=0.2*(VRmax-VRmin); 14 | VRmin=repmat(VRmin,ps,1); 15 | VRmax=repmat(VRmax,ps,1); 16 | Vmin=repmat(-mv,ps,1); 17 | Vmax=-Vmin; 18 | pos=VRmin+(VRmax-VRmin).*rand(ps,D); 19 | 20 | for i=1:ps; 21 | e(i,1)=feval(fhd,pos(i,:),varargin{:}); 22 | end 23 | 24 | fitcount=ps; 25 | vel=Vmin+2.*Vmax.*rand(ps,D);%initialize the velocity of the particles 26 | pbest=pos; 27 | pbestval=e; %initialize the pbest and the pbest's fitness value 28 | [gbestval,gbestid]=min(pbestval); 29 | gbest=pbest(gbestid,:);%initialize the gbest and the gbest's fitness value 30 | gbestrep=repmat(gbest,ps,1); 31 | 32 | for i=2:me 33 | 34 | for k=1:ps 35 | 36 | aa(k,:)=cc(1).*rand(1,D).*(pbest(k,:)-pos(k,:))+cc(2).*rand(1,D).*(gbestrep(k,:)-pos(k,:)); 37 | vel(k,:)=iwt(i).*vel(k,:)+aa(k,:); 38 | vel(k,:)=(vel(k,:)>mv).*mv+(vel(k,:)<=mv).*vel(k,:); 39 | vel(k,:)=(vel(k,:)<(-mv)).*(-mv)+(vel(k,:)>=(-mv)).*vel(k,:); 40 | pos(k,:)=pos(k,:)+vel(k,:); 41 | 42 | if (sum(pos(k,:)>VRmax(k,:))+sum(pos(k,:) f=benchmark_func(x,func_num) 5 | 6 | x is the variable, f is the function value, func_num is the function num, 7 | data files save the necessary information. 8 | func_plot.m is used to plot the 2-D function map 9 | 10 | **25 functions** in all, from 1 to 25, are listed as follows. 11 | 12 | --- 13 | 14 | ### (1) Unimodal Functions (5): 15 | 16 | 1. Shifted Sphere Function Bounds[-100,100] f_bias=-450 17 | 18 | 2. Shifted Schwefel's Problem 1.2 Bounds[-100,100] f_bias=-450 19 | 20 | 3. Shifted Rotated High Conditioned Elliptic Function Bounds[-100,100] f_bias=-450 21 | 4. Shifted Schwefel's Problem 1.2 with Noise in Fitness Bounds[-100,100] f_bias=-450 22 | 5. Schwefel's Problem 2.6 with Global Optimum on Bounds Bounds[-100,100] f_bias=-310 23 | 24 | ### (2) Multimodal Functions (20): 25 | 26 | **Basic Functions (7):** 27 | 28 | 6. Shifted Rosenbrock's Function Bounds[-100,100] f_bias=390 29 | 7. Shifted Rotated Griewank's Function without Bounds Intilization Range [0, 600] f_bias=-180 30 | 8. Shifted Rotated Ackley's with Global Optimum on Bounds Bounds[-32,32] f_bias=-140 31 | 9. Shifted Rastrigin's Function Bounds[-5,5] f_bias=-330 32 | 10. Shifted Rotated Rastrigin's Function Bounds[-5,5] f_bias=-330 33 | 11. Shifted Rotated Weierstrass Function Bounds[-0.5,0.5] f_bias=90 34 | 12. Schwefel's Problem 2.13 Bounds[-100,100] f_bias=-460 35 | 36 | **Expanded Functions (2):** 37 | 38 | 13. Expanded Extended Griewank's + Rosenbrock's (F8F2) Bounds[-3,1] f_bias=-130 39 | 14. Expanded Rotated Extended Scaffe's F6 Bounds[-100,100] f_bias=-300 40 | 41 | **Hybrid Composition Functions (11):** 42 | 43 | 15. Hybrid Composition Function 1 Bounds[-5,5] f_bias= 120 44 | 45 | 16. Rotated Hybrid Comp. Fn 1 Bounds[-5,5] f_bias= 120 46 | 47 | 17. Rotated Hybrid Comp. Fn 1 with Noise in Fitness Bounds[-5,5] f_bias= 120 48 | 49 | 18. Rotated Hybrid Comp. Fn 2 Bounds[-5,5] f_bias=10 50 | 51 | 19. Rotated Hybrid Comp. Fn 2 with Narrow Global Optimal Basin Bounds[-5,5]] f_bias=10 52 | 53 | 20. Rotated Hybrid Comp. Fn 2 with the Global Optimum on Bounds Bounds[-5,5] f_bias=10 54 | 21. Rotated Hybrid Comp. Fn 3 Bounds[-5,5] f_bias=360 55 | 22. Rotated Hybrid Comp. Fn 3 with High Condition Number Matrix Bounds[-5,5] f_bias=360 56 | 23. Non-Continuous Rotated Hybrid Comp. Fn 3 Bounds[-5,5] f_bias=360 57 | 24. Rotated Hybrid Comp. Fn 4 Bounds[-5,5] f_bias=260 58 | 25. Rotated Hybrid Comp. Fn 4 without Bounds Intilization Range[-2,5] f_bias=260 59 | 60 | 61 | ***Please note: 62 | 63 | When you use the test function, remember to set a global variable initial_flag, and make 64 | sure initial_flag=0 before each search. 65 | 66 | For details of the test functions, please read intro-2-functions.doc file 67 | 68 | --- 69 | 70 | 71 | **Files**: 72 | 73 | 74 | > Matlab *.m files: 75 | 76 | benchmark_func.m 77 | %benchmark_func.m is the main function with all the minimization problems 78 | %f=benchmark_func(x,func_num) 79 | %x is the variable, f is the function value, func_num is the function number (1 to 25), 80 | 81 | func_plot.m 82 | %used to plot the 2-D function map 83 | 84 | 85 | > Matlab *.mat data files: 86 | 87 | test_data.mat 88 | % 10 points (50D each) & corresponding fitnesses given to assist verification for code translation. 89 | % Variables:x1,x2,x3,....x25 90 | % Corresponding Function Values: f1,f2,f3,....f25 91 | ***Notice, for function 4,17,24,25, since they have noise, please set noise to 0 (e.g setting 0.0*N(0,1)) before test. 92 | 93 | > fbias_data.mat 94 | % contain a 1*25 vector f_bias which are the global optimal function values. 95 | 96 | > global_optima.mat 97 | % all 25 global optimal points (25 x 100 matrix) for the 25 test functions, 98 | % please note, function 5,8,20 set the global optima on the bounds, so the corresponding 99 | % global optima are: 100 | % if func_num==5,o(1:ceil(D/4))=-100;x(max(floor(0.75*D),1):D)=100;end 101 | % if func_num==8,o(2.*[1:floor(D/2)]-1)=-32;end 102 | % if func_num==20,o(1,2.*[1:floor(D/2)])=5;end 103 | 104 | --- 105 | 106 | sphere_func_data.mat 107 | 108 | schwefel_102_data.mat 109 | 110 | high_cond_elliptic_rot_data.mat 111 | elliptic_M_D2.mat 112 | elliptic_M_D10.mat 113 | elliptic_M_D30.mat 114 | elliptic_M_D50.mat 115 | 116 | schwefel_206_data.mat 117 | 118 | rosenbrock_func_data.mat 119 | 120 | griewank_func_data.mat 121 | griewank_M_D2.mat 122 | griewank_M_D10.mat 123 | griewank_M_D30.mat 124 | griewank_M_D50.mat 125 | 126 | ackley_func_data.mat 127 | ackley_M_D2.mat 128 | ackley_M_D10.mat 129 | ackley_M_D30.mat 130 | ackley_M_D50.mat 131 | 132 | rastrigin_func_data.mat 133 | rastrigin_M_D2.mat 134 | rastrigin_M_D10.mat 135 | rastrigin_M_D30.mat 136 | rastrigin_M_D50.mat 137 | 138 | weierstrass_data.mat 139 | weierstrass_M_D2.mat 140 | weierstrass_M_D10.mat 141 | weierstrass_M_D30.mat 142 | weierstrass_M_D50.mat 143 | 144 | schwefel_213_data.mat 145 | 146 | EF8F2_func_data.mat 147 | 148 | E_ScafferF6_func_data.mat 149 | E_ScafferF6_M_D2.mat 150 | E_ScafferF6_M_D10.mat 151 | E_ScafferF6_M_D30.mat 152 | E_ScafferF6_M_D50.mat 153 | 154 | hybrid_func1_data.mat 155 | hybrid_func1_M_D2.mat 156 | hybrid_func1_M_D10.mat 157 | hybrid_func1_M_D30.mat 158 | hybrid_func1_M_D50.mat 159 | 160 | hybrid_func2_data.mat 161 | hybrid_func2_M_D2.mat 162 | hybrid_func2_M_D10.mat 163 | hybrid_func2_M_D30.mat 164 | hybrid_func2_M_D50.mat 165 | 166 | hybrid_func3_data.mat 167 | hybrid_func3_M_D2.mat 168 | hybrid_func3_M_D10.mat 169 | hybrid_func3_M_D30.mat 170 | hybrid_func3_M_D50.mat 171 | 172 | hybrid_func4_data.mat 173 | hybrid_func4_M_D2.mat 174 | hybrid_func4_M_D10.mat 175 | hybrid_func4_M_D30.mat 176 | hybrid_func4_M_D50.mat 177 | 178 | --- 179 | 180 | PLEASE NOTE: 181 | 182 | hybrid_func1_M_D......matrix data in matlab mat format contain a structure variable M, 183 | and M.M1,M.M2...M.M10 are ten D*D matrix 184 | 185 | -------------------------------------------------------------------------------- /CEC2005/matlab version/ackley_M_D10.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/ackley_M_D10.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/ackley_M_D2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/ackley_M_D2.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/ackley_M_D30.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/ackley_M_D30.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/ackley_M_D50.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/ackley_M_D50.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/ackley_func_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/ackley_func_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/elliptic_M_D10.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/elliptic_M_D10.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/elliptic_M_D2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/elliptic_M_D2.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/elliptic_M_D30.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/elliptic_M_D30.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/elliptic_M_D50.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/elliptic_M_D50.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/fbias_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/fbias_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/func_plot.m: -------------------------------------------------------------------------------- 1 | % function function_plot 2 | % clear;close all 3 | global initial_flag 4 | 5 | % Xmin=[-100,-100,-100,-100,-100,-100,0,-32,-5,-5,-0.5,-pi,-3,-100,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,2]; 6 | % Xmax=[100,100,100,100,100,100,600,32,5,5,0.5,pi,1,100,5,5,5,5,5,5,5,5,5,5,5]; 7 | 8 | for func_num=1:1 9 | if func_num==1 x=-100:5:100;y=x; %[-100,100] 10 | elseif func_num==2 x=-100:5:100; y=x;%[-10,10] 11 | elseif func_num==3 x=-100:5:100; y=x;%[-100,100] 12 | elseif func_num==4 x=-100:2:0; y=x+100;%[-100,100] 13 | elseif func_num==5 x=-200:20:200;y=x; %[-5,5] 14 | elseif func_num==6 x=78:0.05:82; y=-51.3:0.05:-47.3;%[-3,1] 15 | elseif func_num==7 x=-350:2:-250; y=-100:2:0;;%[-600,600] 16 | elseif func_num==8 x=-32:1:32; y=x;%[-32,32] 17 | elseif func_num==9 x=-5:0.1:5; y=x;%[-5,5] 18 | elseif func_num==10 x=-5:0.1:5; y=x;%[-5,5] 19 | elseif func_num==11 x=-0.5:0.01:0.5; y=x;%[-0.5,0.5] 20 | elseif func_num==12 x=-3:0.1:3; y=x;%[-pi,pi] 21 | elseif func_num==13 x=-2:0.02:-1; y=x;%[-3,1] 22 | elseif func_num==14 x=-90:0.2:-50; y=-40:0.2:0;%[-100,100] 23 | elseif func_num==15 x=-5:0.1:5; y=x;%[-5,5] 24 | elseif func_num==16 x=-5:0.1:5; y=x;%[-5,5] 25 | elseif func_num==17 x=-5:0.1:5; y=x;%[-5,5] 26 | elseif func_num==18 x=-5:0.1:5; y=x;%[-5,5] 27 | elseif func_num==19 x=-5:0.1:5; y=x;%[-5,5] 28 | elseif func_num==20 x=-5:0.1:5; y=x;%[-5,5] 29 | elseif func_num==21 x=-5:0.1:5; y=x;%[-5,5] 30 | elseif func_num==22 x=-5:0.1:5; y=x;%[-5,5] 31 | elseif func_num==23 x=-5:0.1:5; y=x;%[-5,5] 32 | elseif func_num==24 x=-5:0.1:5; y=x;%[-5,5] 33 | elseif func_num==25 x=-5:0.1:5; y=x;%[-5,5] 34 | end 35 | 36 | initial_flag=0; 37 | L=length(x); 38 | f=[]; 39 | 40 | for i=1:L 41 | for j=1:L 42 | f(i,j)=benchmark_func([x(i),y(j)],func_num); 43 | end 44 | end 45 | 46 | figure(func_num) 47 | surfc(x,y,f); 48 | end 49 | 50 | -------------------------------------------------------------------------------- /CEC2005/matlab version/global_optima.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/global_optima.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/griewank_M_D10.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/griewank_M_D10.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/griewank_M_D2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/griewank_M_D2.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/griewank_M_D30.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/griewank_M_D30.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/griewank_M_D50.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/griewank_M_D50.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/griewank_func_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/griewank_func_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/high_cond_elliptic_rot_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/high_cond_elliptic_rot_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func1_M_D10.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func1_M_D10.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func1_M_D2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func1_M_D2.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func1_M_D30.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func1_M_D30.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func1_M_D50.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func1_M_D50.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func1_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func1_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func2_M_D10.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func2_M_D10.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func2_M_D2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func2_M_D2.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func2_M_D30.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func2_M_D30.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func2_M_D50.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func2_M_D50.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func2_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func2_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func3_HM_D10.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func3_HM_D10.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func3_HM_D2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func3_HM_D2.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func3_HM_D30.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func3_HM_D30.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func3_HM_D50.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func3_HM_D50.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func3_M_D10.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func3_M_D10.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func3_M_D2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func3_M_D2.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func3_M_D30.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func3_M_D30.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func3_M_D50.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func3_M_D50.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func3_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func3_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func4_M_D10.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func4_M_D10.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func4_M_D2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func4_M_D2.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func4_M_D30.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func4_M_D30.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func4_M_D50.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func4_M_D50.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/hybrid_func4_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/hybrid_func4_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/rastrigin_M_D10.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/rastrigin_M_D10.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/rastrigin_M_D2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/rastrigin_M_D2.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/rastrigin_M_D30.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/rastrigin_M_D30.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/rastrigin_M_D50.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/rastrigin_M_D50.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/rastrigin_func_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/rastrigin_func_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/rosenbrock_func_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/rosenbrock_func_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/schwefel_102_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/schwefel_102_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/schwefel_206_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/schwefel_206_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/schwefel_213_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/schwefel_213_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/sphere_func_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/sphere_func_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/test_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/test_data.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/weierstrass_M_D10.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/weierstrass_M_D10.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/weierstrass_M_D2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/weierstrass_M_D2.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/weierstrass_M_D30.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/weierstrass_M_D30.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/weierstrass_M_D50.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/weierstrass_M_D50.mat -------------------------------------------------------------------------------- /CEC2005/matlab version/weierstrass_data.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2005/matlab version/weierstrass_data.mat -------------------------------------------------------------------------------- /CEC2010/CPP_version/Benchmarks.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _BENCHMARKS_H 10 | #define _BENCHMARKS_H 11 | 12 | #include 13 | #include 14 | #include "RunParameter.h" 15 | 16 | #define PI (3.141592653589793238462643383279) 17 | #define E (2.718281828459045235360287471352) 18 | #define L(i) ((int64_t)i) 19 | #define D(i) ((double)i) 20 | 21 | class Benchmarks{ 22 | protected: 23 | int next(int bits); 24 | int nextInt(int n); 25 | double nextDouble(); 26 | double nextGaussian(); 27 | double* createShiftVector(int dim, double min,double max); 28 | int* createPermVector(int dim); 29 | double** createRotMatrix(int dim); 30 | double* createRotMatrix1D(int dim); 31 | double** createMultiRotateMatrix1D(int dim, int num); 32 | 33 | double* lookupprepare(int dim); 34 | 35 | // Basic mathematical functions' declaration 36 | double* multiply(double*vector, double*matrix,int dim); 37 | double elliptic(double*x,int dim); 38 | double elliptic(double*x, int dim, int k); 39 | double rastrigin(double*x,int dim); 40 | double rastrigin(double *x, int dim, int k); 41 | double ackley(double*x,int dim); 42 | double ackley(double*x,int dim, int k); 43 | double rot_elliptic(double*x,int dim); 44 | double rot_elliptic(double*x,int dim, int k, double *lookup); 45 | double rot_rastrigin(double*x,int dim); 46 | double rot_rastrigin(double *x,int dim,int k); 47 | double rot_ackley(double*x,int dim); 48 | double rot_ackley(double*x,int dim,int k); 49 | double schwefel(double*x,int dim); 50 | double schwefel(double*x,int dim, int k); 51 | double sphere(double*x,int dim); 52 | double sphere(double*x,int dim, int k); 53 | double rosenbrock(double*x,int dim); 54 | double rosenbrock(double*x,int dim, int k); 55 | 56 | int dimension; 57 | int nonSeparableGroupSize; 58 | int64_t functionInitRandomSeed; 59 | int64_t M; 60 | int64_t A; 61 | int64_t m_seed; 62 | int64_t MASK; 63 | double m_nextGaussian; 64 | bool m_havenextGaussian; 65 | bool setOvectorToZero; 66 | 67 | double *Ovector; 68 | int* Pvector; 69 | double* RotMatrix; 70 | double** MultiRotMatrix1D; 71 | 72 | double* anotherz; 73 | double* anotherz1; 74 | double* anotherz2; 75 | 76 | // domain of decision variables 77 | int minX; 78 | int maxX; 79 | public: 80 | Benchmarks(RunParameter* runParam); 81 | virtual ~Benchmarks(); 82 | virtual double compute(double* x){return 0;}; 83 | virtual double compute(vector x){return 0;}; 84 | 85 | int getMinX(); 86 | int getMaxX(); 87 | }; 88 | 89 | #endif 90 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F1.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #include "F1.h" 10 | 11 | /** 12 | * Shifted Elliptic Function 13 | * 14 | * as defined in "Benchmark Functions for the CEC'2010 Special Session 15 | * and Competition on Large-Scale Global Optimization" by Ke Tang, 16 | * Xiaodong Li, P. N. Suganthan, Zhenyu Yang, and Thomas Weise 17 | * published as technical report on January 8, 2010 at Nature Inspired 18 | * Computation and Applications Laboratory (NICAL), School of Computer 19 | * Science and Technology, University of Science and Technology of China, 20 | * Hefei, Anhui, China. 21 | */ 22 | 23 | F1::F1(RunParameter* runParam):Benchmarks(runParam){ 24 | cout<<"F1 Class initialization"<dimension; 26 | m_havenextGaussian=0; 27 | Ovector = NULL; 28 | minX = -100; 29 | maxX = 100; 30 | } 31 | 32 | F1::~F1(){ 33 | delete[] Ovector; 34 | cout<<"F1 Class destroyed"<= 0; i--) { 46 | anotherz[i] = x[i] - Ovector[i]; 47 | } 48 | 49 | result = elliptic(anotherz,dimension); 50 | return(result); 51 | } 52 | 53 | 54 | double F1::compute(vector x){ 55 | double result; 56 | int i; 57 | 58 | if(Ovector == NULL) { 59 | Ovector = createShiftVector(dimension,minX,maxX); 60 | } 61 | 62 | for(i = dimension - 1; i >= 0; i--) { 63 | anotherz[i] = x[i] - Ovector[i]; 64 | } 65 | 66 | result = elliptic(anotherz,dimension); 67 | return(result); 68 | } 69 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F1.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F1_H 10 | #define _F1_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F1:public Benchmarks{ 15 | public: 16 | F1(RunParameter* runParam); 17 | double compute(double* x) ; 18 | double compute(vector x) ; 19 | ~F1(); 20 | }; 21 | #endif 22 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F10.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F10.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F10.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F10_H 10 | #define _F10_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F10:public Benchmarks{ 15 | protected: 16 | public: 17 | F10(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F10(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F11.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F11.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F11.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F11_H 10 | #define _F11_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F11:public Benchmarks{ 15 | protected: 16 | public: 17 | F11(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F11(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F12.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F12.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F12.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F12_H 10 | #define _F12_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F12:public Benchmarks{ 15 | protected: 16 | public: 17 | F12(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F12(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F13.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F13.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F13.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F13_H 10 | #define _F13_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F13:public Benchmarks{ 15 | protected: 16 | public: 17 | F13(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F13(); 21 | }; 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F14.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #include "F14.h" 10 | #include 11 | 12 | /** 13 | * D/m-group Shifted and m-rotated Elliptic Function 14 | * 15 | * as defined in "Benchmark Functions for the CEC'2010 Special Session 16 | * and Competition on Large-Scale Global Optimization" by Ke Tang, 17 | * Xiaodong Li, P. N. Suganthan, Zhenyu Yang, and Thomas Weise 18 | * published as technical report on January 8, 2010 at Nature Inspired 19 | * Computation and Applications Laboratory (NICAL), School of Computer 20 | * Science and Technology, University of Science and Technology of China, 21 | * Hefei, Anhui, China. 22 | */ 23 | 24 | F14::F14(RunParameter* runParam):Benchmarks(runParam){ 25 | cout<<"F14 Class initialization"<dimension; 27 | m_havenextGaussian=0; 28 | Ovector = NULL; 29 | minX = -100; 30 | maxX = 100; 31 | } 32 | 33 | F14::~F14(){ 34 | cout<<"F14 Class destroyed 0"< x){ 75 | int i,k; 76 | double result=0.0; 77 | 78 | if(Ovector==NULL){ 79 | Ovector=createShiftVector(dimension,minX,maxX); 80 | Pvector=createPermVector(dimension); 81 | MultiRotMatrix1D=createMultiRotateMatrix1D(nonSeparableGroupSize,dimension/(nonSeparableGroupSize)); 82 | // preparelookup(dimension/2); 83 | // preparelookup2(nonSeparableGroupSize); 84 | } 85 | 86 | for(i=0;i x) ; 20 | ~F14(); 21 | }; 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F15.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F15.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F15.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F15_H 10 | #define _F15_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F15:public Benchmarks{ 15 | protected: 16 | public: 17 | F15(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F15(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F16.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F16.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F16.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F16_H 10 | #define _F16_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F16:public Benchmarks{ 15 | protected: 16 | public: 17 | F16(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F16(); 21 | }; 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F17.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F17.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F17.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F17_H 10 | #define _F17_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F17:public Benchmarks{ 15 | protected: 16 | public: 17 | F17(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F17(); 21 | }; 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F18.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F18.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F18.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F18_H 10 | #define _F18_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F18:public Benchmarks{ 15 | protected: 16 | public: 17 | F18(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F18(); 21 | }; 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F19.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F19.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F19.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F19_H 10 | #define _F19_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F19:public Benchmarks{ 15 | protected: 16 | public: 17 | F19(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F19(); 21 | }; 22 | 23 | #endif 24 | 25 | 26 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F2.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #include "F2.h" 10 | 11 | /** 12 | * Shifted Rastrigin's Function 13 | * 14 | * as defined in "Benchmark Functions for the CEC'2010 Special Session 15 | * and Competition on Large-Scale Global Optimization" by Ke Tang, 16 | * Xiaodong Li, P. N. Suganthan, Zhenyu Yang, and Thomas Weise 17 | * published as technical report on January 8, 2010 at Nature Inspired 18 | * Computation and Applications Laboratory (NICAL), School of Computer 19 | * Science and Technology, University of Science and Technology of China, 20 | * Hefei, Anhui, China. 21 | */ 22 | 23 | F2::F2(RunParameter* runParam):Benchmarks(runParam){ 24 | cout<<"F2 Class initialization"<dimension; 26 | m_havenextGaussian=0; 27 | Ovector = NULL; 28 | minX = -5; 29 | maxX = 5; 30 | } 31 | 32 | F2::~F2(){ 33 | delete[] Ovector; 34 | cout<<"F2 Class destroyed"< x){ 55 | int i; 56 | double result; 57 | 58 | if(Ovector == NULL) { 59 | Ovector = createShiftVector(dimension,minX,maxX); 60 | } 61 | 62 | for(i = 0; i < dimension; i++) { 63 | anotherz[i] = x[i] - Ovector[i]; 64 | } 65 | 66 | result = rastrigin(anotherz,dimension); 67 | return(result); 68 | } 69 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F2_H 10 | #define _F2_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | 15 | class F2:public Benchmarks{ 16 | protected: 17 | 18 | public: 19 | F2(RunParameter* runParam); 20 | double compute(double* x) ; 21 | double compute(vector x) ; 22 | ~F2(); 23 | }; 24 | #endif 25 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F20.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F20.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F20.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F20_H 10 | #define _F20_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F20:public Benchmarks{ 15 | protected: 16 | public: 17 | F20(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F20(); 21 | }; 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F3.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F3.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F3.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F3_H 10 | #define _F3_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | 15 | class F3:public Benchmarks{ 16 | protected: 17 | 18 | public: 19 | F3(RunParameter* runParam); 20 | double compute(double* x) ; 21 | double compute(vector x) ; 22 | ~F3(); 23 | }; 24 | #endif 25 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F4.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #include "F4.h" 10 | #include 11 | 12 | /** 13 | * Single-group Shifted and m-rotated Elliptic Function 14 | * 15 | * as defined in "Benchmark Functions for the CEC'2010 Special Session 16 | * and Competition on Large-Scale Global Optimization" by Ke Tang, 17 | * Xiaodong Li, P. N. Suganthan, Zhenyu Yang, and Thomas Weise 18 | * published as technical report on January 8, 2010 at Nature Inspired 19 | * Computation and Applications Laboratory (NICAL), School of Computer 20 | * Science and Technology, University of Science and Technology of China, 21 | * Hefei, Anhui, China. 22 | */ 23 | 24 | F4::F4(RunParameter* runParam):Benchmarks(runParam){ 25 | cout<<"F4 Class initialization"<dimension; 27 | m_havenextGaussian=0; 28 | Ovector = NULL; 29 | minX = -100; 30 | maxX = 100; 31 | } 32 | 33 | F4::~F4(){ 34 | delete[] Ovector; 35 | delete[] Pvector; 36 | delete[] RotMatrix; 37 | cout<<"F4 Class destroyed"< x){ 95 | int i; 96 | double result = 0.0; 97 | 98 | if(Ovector == NULL) { 99 | Ovector = createShiftVector(dimension,minX,maxX); 100 | /* 101 | printf("\n\n\nO vector\n\n\n"); 102 | for (i = 0; i x) ; 20 | ~F4(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F5.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F5.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F5_H 10 | #define _F5_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F5:public Benchmarks{ 15 | protected: 16 | public: 17 | F5(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F5(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F6.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F6.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F6.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F6_H 10 | #define _F6_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F6:public Benchmarks{ 15 | protected: 16 | public: 17 | F6(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F6(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F7.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F7.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F7.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F7_H 10 | #define _F7_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F7:public Benchmarks{ 15 | protected: 16 | public: 17 | F7(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F7(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F8.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2010/CPP_version/F8.cpp -------------------------------------------------------------------------------- /CEC2010/CPP_version/F8.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _F8_H 10 | #define _F8_H 11 | 12 | #include "Benchmarks.h" 13 | 14 | class F8:public Benchmarks{ 15 | protected: 16 | public: 17 | F8(RunParameter* runParam); 18 | double compute(double* x) ; 19 | double compute(vector x) ; 20 | ~F8(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/F9.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #include "F9.h" 10 | #include 11 | 12 | /** 13 | * D/2m-group Shifted and m-rotated Elliptic Function 14 | * 15 | * as defined in "Benchmark Functions for the CEC'2010 Special Session 16 | * and Competition on Large-Scale Global Optimization" by Ke Tang, 17 | * Xiaodong Li, P. N. Suganthan, Zhenyu Yang, and Thomas Weise 18 | * published as technical report on January 8, 2010 at Nature Inspired 19 | * Computation and Applications Laboratory (NICAL), School of Computer 20 | * Science and Technology, University of Science and Technology of China, 21 | * Hefei, Anhui, China. 22 | */ 23 | 24 | F9::F9(RunParameter* runParam):Benchmarks(runParam){ 25 | cout<<"F9 Class initialization"<dimension; 27 | m_havenextGaussian=0; 28 | Ovector = NULL; 29 | minX = -100; 30 | maxX = 100; 31 | } 32 | 33 | F9::~F9(){ 34 | delete[] Ovector; 35 | delete[] Pvector; 36 | // delete 2D array 37 | int i; 38 | for(i=0;i x){ 84 | int i,k; 85 | double result=0.0; 86 | double* lookup; 87 | 88 | if(Ovector==NULL){ 89 | Ovector=createShiftVector(dimension,minX,maxX); 90 | Pvector=createPermVector(dimension); 91 | MultiRotMatrix1D=createMultiRotateMatrix1D(nonSeparableGroupSize,dimension/(2*nonSeparableGroupSize)); 92 | 93 | /* 94 | * print the multi rotated matrix 95 | printf("\n\n\n print the multi rotated matrix\n\n\n"); 96 | for (k = 0; k x) ; 20 | ~F9(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/Header.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #ifndef _HEADER_H 10 | #define _HEADER_H 11 | 12 | 13 | #include 14 | #include 15 | #include 16 | 17 | // optimization algorithms 18 | // benchmark set header files 19 | #include "F1.h" 20 | #include "F2.h" 21 | #include "F3.h" 22 | #include "F4.h" 23 | #include "F5.h" 24 | #include "F6.h" 25 | #include "F7.h" 26 | #include "F8.h" 27 | #include "F9.h" 28 | #include "F10.h" 29 | #include "F11.h" 30 | #include "F12.h" 31 | #include "F13.h" 32 | #include "F14.h" 33 | #include "F15.h" 34 | #include "F16.h" 35 | #include "F17.h" 36 | #include "F18.h" 37 | #include "F19.h" 38 | #include "F20.h" 39 | 40 | 41 | using namespace std; 42 | 43 | Benchmarks* generateFuncObj(RunParameter* runParam, int funcID); 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/Makefile: -------------------------------------------------------------------------------- 1 | CC=g++ 2 | LDLIBS=-lshark 3 | LDFLAGS= -Wl,-rpath 4 | CXXFLAGS=-Wall -pedantic -ggdb 5 | OBJECTS=main.o RunParameter.o Benchmarks.o\ 6 | F1.o F2.o F3.o F4.o F5.o F6.o F7.o F8.o F9.o F10.o\ 7 | F11.o F12.o F13.o F14.o F15.o F16.o F17.o F18.o F19.o F20.o 8 | #OBJECTS = main.o RunParameter.o F2.o Benchmarks.o 9 | 10 | main: $(OBJECTS) 11 | $(CC) $(CXXFLAGS) -o main $(OBJECTS) $(LDLIBS) 12 | 13 | main.o: main.cpp Header.h RunParameter.h Benchmarks.h\ 14 | F1.h F2.h F3.h F4.h F5.h F6.h F7.h F8.h F9.h F10.h\ 15 | F11.h F12.h F13.h F14.h F15.h F16.h F17.h F18.h F19.h F20.h 16 | $(CC) $(CXXFLAGS) -c main.cpp 17 | 18 | Benchmarks.o: RunParameter.h Benchmarks.h Benchmarks.cpp 19 | $(CC) $(CXXFLAGS) -c Benchmarks.cpp 20 | 21 | RunParameter.o: RunParameter.h RunParameter.cpp 22 | $(CC) $(CXXFLAGS) -c RunParameter.cpp 23 | 24 | Archive.o: Archive.h Archive.cpp 25 | $(CC) $(CXXFLAGS) -c Archive.cpp 26 | 27 | F1.o: F1.h Benchmarks.h F1.cpp 28 | $(CC) $(CXXFLAGS) -c F1.cpp 29 | 30 | F2.o: F2.h Benchmarks.h F2.cpp 31 | $(CC) $(CXXFLAGS) -c F2.cpp 32 | 33 | F3.o: F3.h Benchmarks.h F3.cpp 34 | $(CC) $(CXXFLAGS) -c F3.cpp 35 | 36 | F4.o: F4.h Benchmarks.h F4.cpp 37 | $(CC) $(CXXFLAGS) -c F4.cpp 38 | 39 | F5.o: F5.h Benchmarks.h F5.cpp 40 | $(CC) $(CXXFLAGS) -c F5.cpp 41 | 42 | F6.o: F6.h Benchmarks.h F6.cpp 43 | $(CC) $(CXXFLAGS) -c F6.cpp 44 | 45 | F7.o: F7.h Benchmarks.h F7.cpp 46 | $(CC) $(CXXFLAGS) -c F7.cpp 47 | 48 | F8.o: F8.h Benchmarks.h F8.cpp 49 | $(CC) $(CXXFLAGS) -c F8.cpp 50 | 51 | F9.o: F9.h Benchmarks.h F9.cpp 52 | $(CC) $(CXXFLAGS) -c F9.cpp 53 | 54 | F10.o: F10.h Benchmarks.h F10.cpp 55 | $(CC) $(CXXFLAGS) -c F10.cpp 56 | 57 | F11.o: F11.h Benchmarks.h F11.cpp 58 | $(CC) $(CXXFLAGS) -c F11.cpp 59 | 60 | F12.o: F12.h Benchmarks.h F12.cpp 61 | $(CC) $(CXXFLAGS) -c F12.cpp 62 | 63 | F13.o: F13.h Benchmarks.h F13.cpp 64 | $(CC) $(CXXFLAGS) -c F13.cpp 65 | 66 | F14.o: F14.h Benchmarks.h F14.cpp 67 | $(CC) $(CXXFLAGS) -c F14.cpp 68 | 69 | F15.o: F15.h Benchmarks.h F15.cpp 70 | $(CC) $(CXXFLAGS) -c F15.cpp 71 | 72 | F16.o: F16.h Benchmarks.h F16.cpp 73 | $(CC) $(CXXFLAGS) -c F16.cpp 74 | 75 | F17.o: F17.h Benchmarks.h F17.cpp 76 | $(CC) $(CXXFLAGS) -c F17.cpp 77 | 78 | F18.o: F18.h Benchmarks.h F18.cpp 79 | $(CC) $(CXXFLAGS) -c F18.cpp 80 | 81 | F19.o: F19.h Benchmarks.h F19.cpp 82 | $(CC) $(CXXFLAGS) -c F19.cpp 83 | 84 | F20.o: F20.h Benchmarks.h F20.cpp 85 | $(CC) $(CXXFLAGS) -c F20.cpp 86 | 87 | .PHONY : clean 88 | clean: 89 | rm -f main out $(OBJECTS) 90 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/README: -------------------------------------------------------------------------------- 1 | =================================================================================== 2 | C++ Implementation of the test suite for the Special Session on Large Scale 3 | Global Optimization for 2010 IEEE World Congress on Computational Intelligence. 4 | =================================================================================== 5 | 6 | Note: 7 | ***** 8 | *If you are to use any part of this code, please cite the following publications: 9 | Tang, K., Li, X., Suganthan, P.N., Yang, Z., Weise, T.: Benchmark functions for the CEC’2010 special session and competition on large scale global optimization. TR, NICAL, USTC, Hefei, Anhui, China (2009) http://nical.ustc.edu.cn/cec10ss.php. 10 | 11 | Requirements: 12 | ************* 13 | *GNU Make 14 | *GNU G++ 15 | 16 | Testing Environment: 17 | ********************* 18 | *Debian 6.0 (squeeze) 19 | *GNU Make 3.81 20 | *g++ (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5 21 | 22 | To compile: 23 | ********** 24 | type in 'make' in the root directory of source code 25 | 26 | To run: 27 | ********** 28 | ./main 29 | 30 | To clean up: 31 | ********************* 32 | make clean 33 | 34 | Configuration file: 35 | ********** 36 | Please edit 'configure.ini' to configure the parameter of running benchmarks 37 | 38 | Contact: 39 | ******** 40 | Wenxiang Chen @ NICAL, USTC 41 | Please contact me at for any enquiries. 42 | 43 | Last Updated: Fri 28 Jan 2011 02:44:30 PM CST 44 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/RunParameter.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #include "RunParameter.h" 10 | 11 | // default constructor 12 | RunParameter::RunParameter(){ 13 | // cout<<"Class RunParameter Initialization"<(tempStr.c_str()), " "); 34 | bool init = false; 35 | string confType; 36 | while (strArray!=NULL){ 37 | // cout<<"Str is not NULL"< 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | using namespace std; 20 | 21 | class RunParameter{ 22 | public: 23 | // Dimension of problems 24 | unsigned dimension; 25 | 26 | // the amount of independent run 27 | unsigned numOfRun; 28 | 29 | // initial population size 30 | unsigned NP; 31 | 32 | // initial Group Size 33 | unsigned initialGroupSize; 34 | 35 | 36 | // Sampling interval for plotting the convergence curve 37 | unsigned samplingInterval; 38 | 39 | // initialized random seed 40 | int initRandomSeed; 41 | 42 | // group size for non-separable part of function 43 | unsigned nonSeparableGroupSize; 44 | // Fitness check point 45 | vector fitnessCheckPoint; 46 | 47 | // the IDes of benchmark functions to be tested in the experiment 48 | vector functionToRun; 49 | 50 | // default constructor 51 | RunParameter(); 52 | 53 | // default destructor 54 | ~RunParameter(); 55 | 56 | }; 57 | #endif 58 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/configure.ini: -------------------------------------------------------------------------------- 1 | # This file is used to configure the parameter of running algorithm, '#' is comment symbol 2 | # 3 | # Copyright (c) 2011 Wenxiang Chen 4 | # http://cs-chen.net 5 | # chenwx.ustc@gmail.com 6 | # 7 | # GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 8 | 9 | # Dimension of problems 10 | dimension 3 11 | 12 | # the IDes of benchmark functions to be tested in the experiment 13 | functionToRun 1 14 | 15 | # the amount of independent run 16 | numOfRun 25 17 | 18 | # initial population size 19 | numberofPopulation 3 20 | 21 | # initial Group Size 22 | initialGroupSize 1 23 | 24 | # Fitness check point 25 | fitnessCheckPoint 120000 600000 3000000 26 | 27 | # Sampling interval for plotting the convergence curve 28 | samplingInterval 10 29 | 30 | # Initial Random Seed 31 | initRandomSeed 0 32 | 33 | # Group size for the non-separable part 34 | nonSeparableGroupSize 1 35 | -------------------------------------------------------------------------------- /CEC2010/CPP_version/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Wenxiang Chen 3 | * http://cs-chen.net 4 | * chenwx.ustc@gmail.com 5 | * 6 | * GNU LESSER GENERAL PUBLIC LICENSE (Version 2.1, February 1999) 7 | */ 8 | 9 | #include "Header.h" 10 | 11 | int main(){ 12 | 13 | RunParameter* runParam; 14 | double* X; 15 | unsigned funcIndex, i; 16 | Benchmarks* fp; 17 | 18 | runParam = new RunParameter(); 19 | vector funcToRun=runParam->functionToRun; 20 | 21 | for (funcIndex = 0; funcIndex < runParam->functionToRun.size(); funcIndex++ ){ 22 | fp = generateFuncObj(runParam, funcToRun[funcIndex]); 23 | } 24 | 25 | X = new double[runParam->dimension]; 26 | 27 | for (i=0; idimension; i++){ 28 | X[i]=0; 29 | } 30 | printf("function value = %1.20E\n", fp->compute(X)); 31 | 32 | 33 | delete fp; 34 | delete runParam; 35 | 36 | return 0; 37 | } 38 | 39 | // create new object of class according to the configure.ini file 40 | Benchmarks* generateFuncObj(RunParameter* runParam, int funcID){ 41 | Benchmarks *fp; 42 | // run each of specified function in "configure.ini" 43 | if (funcID==1){ 44 | fp = new F1(runParam); 45 | }else if (funcID==2){ 46 | fp = new F2(runParam); 47 | }else if (funcID==3){ 48 | fp = new F3(runParam); 49 | }else if (funcID==4){ 50 | fp = new F4(runParam); 51 | }else if (funcID==5){ 52 | fp = new F5(runParam); 53 | }else if (funcID==6){ 54 | fp = new F6(runParam); 55 | }else if (funcID==7){ 56 | fp = new F7(runParam); 57 | }else if (funcID==8){ 58 | fp = new F8(runParam); 59 | }else if (funcID==9){ 60 | fp = new F9(runParam); 61 | }else if (funcID==10){ 62 | fp = new F10(runParam); 63 | }else if (funcID==11){ 64 | fp = new F11(runParam); 65 | }else if (funcID==12){ 66 | fp = new F12(runParam); 67 | }else if (funcID==13){ 68 | fp = new F13(runParam); 69 | }else if (funcID==14){ 70 | fp = new F14(runParam); 71 | }else if (funcID==15){ 72 | fp = new F15(runParam); 73 | }else if (funcID==16){ 74 | fp = new F16(runParam); 75 | }else if (funcID==17){ 76 | fp = new F17(runParam); 77 | }else if (funcID==18){ 78 | fp = new F18(runParam); 79 | }else if (funcID==19){ 80 | fp = new F19(runParam); 81 | }else if (funcID==20){ 82 | fp = new F20(runParam); 83 | }else{ 84 | cerr<<"Fail to locate Specified Function Index"<Vmax).*Vmax+(vel<=Vmax).*vel; 36 | vel=(vel=Vmin).*vel; 37 | pos=pos+vel; 38 | pos=((pos>=VRmin)&(pos<=VRmax)).*pos... 39 | +(posVRmax).*(VRmax-0.25.*(VRmax-VRmin).*rand(ps,D)); 40 | e=feval(fhd,pos',varargin{:}); 41 | fitcount=fitcount+ps; 42 | tmp=(pbestval up | vi(i,:) < low; 11 | % vn(i,I) = low(I) + rand(1,sum(I)).*(up(I)-low(I)); 12 | % end 13 | 14 | 15 | for i = 1:NP 16 | for j = 1:D 17 | if vi(i,j) > up(j) 18 | vn(i,j) = up(j); 19 | elseif vi(i,j) < low(j) 20 | vn(i,j) = low(j); 21 | else 22 | vn(i,j) = vi(i,j); 23 | end 24 | end 25 | end -------------------------------------------------------------------------------- /CEC2014/matlab version/boundConstraint_reflect.m: -------------------------------------------------------------------------------- 1 | function vn=boundConstraint_reflect(vi, low, up); 2 | 3 | [NP, D] = size(vi); % the population size and the problem's dimension 4 | 5 | 6 | for i = 1:NP 7 | for j = 1:D 8 | if vi(i,j) > up(j) 9 | vn(i,j) = max( 2*up(j)-vi(i,j), low(j) ); 10 | elseif vi(i,j) < low(j) 11 | vn(i,j) = min( 2*low(j)-vi(i,j), up(j) ); 12 | else 13 | vn(i,j) = vi(i,j); 14 | end 15 | end 16 | end -------------------------------------------------------------------------------- /CEC2014/matlab version/cpp version/cec14_func.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2014/matlab version/cpp version/cec14_func.cpp -------------------------------------------------------------------------------- /CEC2014/matlab version/cpp version/cec14_func.mexw32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2014/matlab version/cpp version/cec14_func.mexw32 -------------------------------------------------------------------------------- /CEC2014/matlab version/cpp version/cec14_func.mexw64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2014/matlab version/cpp version/cec14_func.mexw64 -------------------------------------------------------------------------------- /CEC2014/matlab version/input_data.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2014/matlab version/input_data.zip -------------------------------------------------------------------------------- /CEC2014/matlab version/problem_range.m: -------------------------------------------------------------------------------- 1 | 2 | n = D; 3 | 4 | lu = [-100 * ones(1, n); 100 * ones(1, n)]; 5 | 6 | -------------------------------------------------------------------------------- /CEC2017/C version/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | CEC17 Test Function Suite for Single Objective Optimization 3 | Noor Awad (email: noor0029@ntu.edu.sg) 4 | Sep. 10th 2016 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | 13 | void cec17_test_func(double *, double *,int,int,int); 14 | 15 | double *OShift,*M,*y,*z,*x_bound; 16 | int ini_flag=0,n_flag,func_flag,*SS; 17 | 18 | 19 | void main() 20 | { 21 | int i,j,k,n,m,func_num; 22 | double *f,*x; 23 | FILE *fpt; 24 | char FileName[30]; 25 | m=2; 26 | n=10; 27 | x=(double *)malloc(m*n*sizeof(double)); 28 | f=(double *)malloc(sizeof(double) * m); 29 | for (i = 0; i < 30; i++) 30 | { 31 | func_num=i+1; 32 | sprintf(FileName, "input_data/shift_data_%d.txt", func_num); 33 | fpt = fopen(FileName,"r"); 34 | if (fpt==NULL) 35 | { 36 | printf("\n Error: Cannot open input file for reading \n"); 37 | } 38 | 39 | if (x==NULL) 40 | printf("\nError: there is insufficient memory available!\n"); 41 | 42 | for(k=0;k 17 | #include 18 | #include 19 | #include 20 | void test_func(double *, double *,int,int,int); 21 | double *OShift,*M,*y,*z,*x_bound; 22 | int ini_flag=0,n_flag,func_flag; 23 | void main() 24 | { 25 | ... 26 | } 27 | 28 | For Linux Users: 29 | Please change %xx in fscanf and fprintf and do use "WINDOWS.H". 30 | -------------------------------------------------------------------------------- /CEC2017/Matlab/PSO_func.m: -------------------------------------------------------------------------------- 1 | function [gbest,gbestval,fitcount]= PSO_func(fhd,Dimension,Particle_Number,Max_Gen,VRmin,VRmax,varargin) 2 | %[gbest,gbestval,fitcount]= PSO_func('f8',3500,200000,30,30,-5.12,5.12) 3 | rand('state',sum(100*clock)); 4 | me=Max_Gen; 5 | ps=Particle_Number; 6 | D=Dimension; 7 | cc=[2 2]; %acceleration constants 8 | iwt=0.9-(1:me).*(0.5./me); 9 | % iwt=0.5.*ones(1,me); 10 | if length(VRmin)==1 11 | VRmin=repmat(VRmin,1,D); 12 | VRmax=repmat(VRmax,1,D); 13 | end 14 | mv=0.5*(VRmax-VRmin); 15 | VRmin=repmat(VRmin,ps,1); 16 | VRmax=repmat(VRmax,ps,1); 17 | Vmin=repmat(-mv,ps,1); 18 | Vmax=-Vmin; 19 | pos=VRmin+(VRmax-VRmin).*rand(ps,D); 20 | 21 | e=feval(fhd,pos',varargin{:}); 22 | 23 | fitcount=ps; 24 | vel=Vmin+2.*Vmax.*rand(ps,D);%initialize the velocity of the particles 25 | pbest=pos; 26 | pbestval=e; %initialize the pbest and the pbest's fitness value 27 | [gbestval,gbestid]=min(pbestval); 28 | gbest=pbest(gbestid,:);%initialize the gbest and the gbest's fitness value 29 | gbestrep=repmat(gbest,ps,1); 30 | 31 | for i=2:me 32 | 33 | aa=cc(1).*rand(ps,D).*(pbest-pos)+cc(2).*rand(ps,D).*(gbestrep-pos); 34 | vel=iwt(i).*vel+aa; 35 | vel=(vel>Vmax).*Vmax+(vel<=Vmax).*vel; 36 | vel=(vel=Vmin).*vel; 37 | pos=pos+vel; 38 | pos=((pos>=VRmin)&(pos<=VRmax)).*pos... 39 | +(posVRmax).*(VRmax-0.25.*(VRmax-VRmin).*rand(ps,D)); 40 | e=feval(fhd,pos',varargin{:}); 41 | fitcount=fitcount+ps; 42 | tmp=(pbestvalVRmax(k,group_d(j,:)))+sum(pos1(k,group_d(j,:))mv1(group_d(j,:))).*mv1(group_d(j,:))+(vel1(k,group_d(j,:))<=mv1(group_d(j,:))).*vel1(k,group_d(j,:)); 98 | vel1(k,group_d(j,:))=(vel1(k,group_d(j,:))<(-mv1(group_d(j,:)))).*(-mv1(group_d(j,:)))+(vel1(k,group_d(j,:))>=(-mv1(group_d(j,:)))).*vel1(k,group_d(j,:));%limit the vel1ocity 99 | pos1(k,group_d(j,:))=pos1(k,group_d(j,:))+vel1(k,group_d(j,:)); %update the pos1ition for all the particles 100 | pos1(k,group_d(j,:))=(pos1(k,group_d(j,:))>VRmax(k,group_d(j,:))).*VRmax(k,group_d(j,:))+(pos1(k,group_d(j,:))<=VRmax(k,group_d(j,:))).*pos1(k,group_d(j,:)); 101 | pos1(k,group_d(j,:))=(pos1(k,group_d(j,:))=VRmin(k,group_d(j,:))).*pos1(k,group_d(j,:)); 102 | 103 | end 104 | end 105 | rc=randperm(ps); 106 | k=rc(1); 107 | if k==gbestid, k=rc(2); end 108 | pos(k,:)=gbest1; 109 | 110 | for k=1:ps 111 | 112 | e(k,1)=feval(fhd,pos(k,:)',func); 113 | fitcount=fitcount+1; 114 | total_nfes=total_nfes+1; 115 | tmp=(pbestval(k)mv).*mv+(vel(k,:)<=mv).*vel(k,:); 129 | vel(k,:)=(vel(k,:)<(-mv)).*(-mv)+(vel(k,:)>=(-mv)).*vel(k,:);%limit the velocity 130 | pos(k,:)=pos(k,:)+vel(k,:); %update the position for all the particles 131 | pos(k,:)=(pos(k,:)>VRmax(k,:)).*VRmax(k,:)+(pos(k,:)<=VRmax(k,:)).*pos(k,:); 132 | pos(k,:)=(pos(k,:)=VRmin(k,:)).*pos(k,:); 133 | 134 | end 135 | 136 | 137 | for j=1:groupnum 138 | rc=randperm(ps); 139 | k=rc(1); 140 | if k==gbestid1(j), k=rc(2); end 141 | pos1(k,group_d(j,:))=gbest(group_d(j,:)); 142 | end 143 | 144 | % if round(i/20)==i/20 145 | % plot(pos(:,D-1),pos(:,D),'b*');hold on; 146 | % for k=1:floor(D/2) 147 | % plot(gbest(:,2*k-1),gbest(:,2*k),'r*'); 148 | % end 149 | % hold off 150 | % title(['PSO: ',num2str(i),' generations, Gbestval=',num2str(gbestval)]); 151 | % axis([VRmin(1,D-1),VRmax(1,D-1),VRmin(1,D),VRmax(1,D)]) 152 | % drawnow 153 | % end 154 | 155 | if fitcount>=10*Max_FES 156 | break; 157 | end 158 | ss(i-1)=gbestval; 159 | end 160 | %save ss 161 | %title('CPSO-H') 162 | % subplot(2,1,1) 163 | % plot(ss(:)) 164 | % hold on 165 | % subplot(2,1,2) 166 | % plot(gbest(:),'b*-') 167 | % xlabel('Iterations'); 168 | % 169 | % ylabel('F.V'); 170 | % hold on 171 | 172 | 173 | 174 | -------------------------------------------------------------------------------- /CEC2019/matlab version/DefinitionsCEC2019Benchmark.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2019/matlab version/DefinitionsCEC2019Benchmark.pdf -------------------------------------------------------------------------------- /CEC2019/matlab version/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2019/matlab version/README.txt -------------------------------------------------------------------------------- /CEC2019/matlab version/boundConstraint.m: -------------------------------------------------------------------------------- 1 | function vi = boundConstraint (vi, pop, lu) 2 | 3 | % if the boundary constraint is violated, set the value to be the middle 4 | % of the previous value and the bound 5 | % 6 | % Version: 1.1 Date: 11/20/2007 7 | % Written by Jingqiao Zhang, jingqiao@gmail.com 8 | 9 | [NP, D] = size(pop); % the population size and the problem's dimension 10 | 11 | %% check the lower bound 12 | xl = repmat(lu(1, :), NP, 1); 13 | pos = vi < xl; 14 | vi(pos) = (pop(pos) + xl(pos)) / 2; 15 | 16 | %% check the upper bound 17 | xu = repmat(lu(2, :), NP, 1); 18 | pos = vi > xu; 19 | vi(pos) = (pop(pos) + xu(pos)) / 2; -------------------------------------------------------------------------------- /CEC2019/matlab version/cec19_func.mexw64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2019/matlab version/cec19_func.mexw64 -------------------------------------------------------------------------------- /CEC2019/matlab version/gnR1R2.m: -------------------------------------------------------------------------------- 1 | function [r1, r2] = gnR1R2(NP1, NP2, r0) 2 | 3 | % gnA1A2 generate two column vectors r1 and r2 of size NP1 & NP2, respectively 4 | % r1's elements are choosen from {1, 2, ..., NP1} & r1(i) ~= r0(i) 5 | % r2's elements are choosen from {1, 2, ..., NP2} & r2(i) ~= r1(i) & r2(i) ~= r0(i) 6 | % 7 | % Call: 8 | % [r1 r2 ...] = gnA1A2(NP1) % r0 is set to be (1:NP1)' 9 | % [r1 r2 ...] = gnA1A2(NP1, r0) % r0 should be of length NP1 10 | % 11 | % Version: 2.1 Date: 2008/07/01 12 | % Written by Jingqiao Zhang (jingqiao@gmail.com) 13 | 14 | NP0 = length(r0); 15 | 16 | r1 = floor(rand(1, NP0) * NP1) + 1; 17 | %for i = 1 : inf 18 | for i = 1 : 99999999 19 | pos = (r1 == r0); 20 | if sum(pos) == 0 21 | break; 22 | else % regenerate r1 if it is equal to r0 23 | r1(pos) = floor(rand(1, sum(pos)) * NP1) + 1; 24 | end 25 | if i > 1000, % this has never happened so far 26 | error('Can not genrate r1 in 1000 iterations'); 27 | end 28 | end 29 | 30 | r2 = floor(rand(1, NP0) * NP2) + 1; 31 | %for i = 1 : inf 32 | for i = 1 : 99999999 33 | pos = ((r2 == r1) | (r2 == r0)); 34 | if sum(pos)==0 35 | break; 36 | else % regenerate r2 if it is equal to r0 or r1 37 | r2(pos) = floor(rand(1, sum(pos)) * NP2) + 1; 38 | end 39 | if i > 1000, % this has never happened so far 40 | error('Can not genrate r2 in 1000 iterations'); 41 | end 42 | end 43 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_10_D10.txt: -------------------------------------------------------------------------------- 1 | -3.6144665808053256e-02 0.0000000000000000e+00 0.0000000000000000e+00 -1.0275628429515489e-01 0.0000000000000000e+00 0.0000000000000000e+00 -9.9404965126067890e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 2 | 0.0000000000000000e+00 5.7732032557209267e-01 6.3720045355332378e-01 0.0000000000000000e+00 -1.2849837048835189e-01 0.0000000000000000e+00 0.0000000000000000e+00 4.9413054191641514e-01 0.0000000000000000e+00 0.0000000000000000e+00 3 | 0.0000000000000000e+00 -3.9586712917636224e-01 -2.8968310271397846e-01 0.0000000000000000e+00 -5.1670886261404880e-01 0.0000000000000000e+00 0.0000000000000000e+00 7.0170140895951061e-01 0.0000000000000000e+00 0.0000000000000000e+00 4 | 8.7364129527216294e-01 0.0000000000000000e+00 0.0000000000000000e+00 4.7972086095511046e-01 0.0000000000000000e+00 0.0000000000000000e+00 -8.1355901812131204e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 5 | 0.0000000000000000e+00 7.1410594914990388e-01 -6.7354832197676640e-01 0.0000000000000000e+00 -1.9014210237853424e-01 0.0000000000000000e+00 0.0000000000000000e+00 -1.5209610582332084e-02 0.0000000000000000e+00 0.0000000000000000e+00 6 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -2.7911553415074425e-01 0.0000000000000000e+00 0.0000000000000000e+00 1.6909147808954352e+00 -5.7964733149576031e-01 7 | -4.8522618471059614e-01 0.0000000000000000e+00 0.0000000000000000e+00 8.7138340677473369e-01 0.0000000000000000e+00 0.0000000000000000e+00 -7.2432783108600157e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 8 | 0.0000000000000000e+00 -6.5689502748026013e-03 2.3746987168001482e-01 0.0000000000000000e+00 -8.2483095297218667e-01 0.0000000000000000e+00 0.0000000000000000e+00 -5.1304854346890183e-01 0.0000000000000000e+00 0.0000000000000000e+00 9 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.3268067876803948e+00 0.0000000000000000e+00 0.0000000000000000e+00 7.1252154299165178e-04 -8.8929149979214617e-01 10 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -6.6352395365628714e-01 0.0000000000000000e+00 0.0000000000000000e+00 4.6075742954200716e-01 6.9770224192342367e-01 11 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_10_D2.txt: -------------------------------------------------------------------------------- 1 | 5.8945940367175020e-01 8.0779800162103932e-01 2 | -8.0779800162103910e-01 5.8945940367175020e-01 3 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_1_D10.txt: -------------------------------------------------------------------------------- 1 | 2.1091203169145090e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 3.7630259460917925e-01 -1.3446723265885202e-01 0.0000000000000000e+00 0.0000000000000000e+00 9.1644426005095725e-01 2 | 0.0000000000000000e+00 1.7477465654855779e+00 -2.2863035765795924e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 4.9147293049228974e-01 0.0000000000000000e+00 3 | 0.0000000000000000e+00 -8.3925380003115146e-01 -1.0214002192765814e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 8.6485133347296184e-01 0.0000000000000000e+00 4 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -8.1534738887270489e-02 -3.9829740445198836e-01 0.0000000000000000e+00 0.0000000000000000e+00 -9.1362534113354932e-01 0.0000000000000000e+00 0.0000000000000000e+00 5 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 2.8084574562661824e-01 -8.8871323337836028e-01 0.0000000000000000e+00 0.0000000000000000e+00 3.6237336544179083e-01 0.0000000000000000e+00 0.0000000000000000e+00 6 | 8.3431483157535602e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 4.6113076900180994e-01 2.4830211010628467e-01 0.0000000000000000e+00 0.0000000000000000e+00 -1.7211402560498093e-01 7 | 5.6185091987117380e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -4.4182309041826895e-01 8.4225760024857010e-01 0.0000000000000000e+00 0.0000000000000000e+00 3.0370664634671607e-01 8 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 9.5628330191319910e-01 2.2704177242302870e-01 0.0000000000000000e+00 0.0000000000000000e+00 -1.8432113296363398e-01 0.0000000000000000e+00 0.0000000000000000e+00 9 | 0.0000000000000000e+00 2.6001020407690711e-02 -4.5339642663089008e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.6092181264889522e+00 0.0000000000000000e+00 10 | -5.4801200570850961e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 6.7122807446012667e-01 4.5920230866292094e-01 0.0000000000000000e+00 0.0000000000000000e+00 -1.9562452140396669e-01 11 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_1_D2.txt: -------------------------------------------------------------------------------- 1 | -1.8761082340016083e-01 -9.8224344179185707e-01 2 | -9.8224344179185719e-01 1.8761082340016105e-01 3 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_2_D10.txt: -------------------------------------------------------------------------------- 1 | -9.3125467732091183e-02 0.0000000000000000e+00 0.0000000000000000e+00 1.7639729565262746e-01 -9.6025070906707288e-01 0.0000000000000000e+00 1.9526960101946983e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 2 | 0.0000000000000000e+00 -9.5397867101240097e-01 3.6760641365092120e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -2.9761275258268127e-01 0.0000000000000000e+00 0.0000000000000000e+00 3 | 0.0000000000000000e+00 3.4827548633107781e-02 -9.7215958145866299e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -2.3171704735371915e-01 0.0000000000000000e+00 0.0000000000000000e+00 4 | 9.4176543396343390e-02 0.0000000000000000e+00 0.0000000000000000e+00 -9.6060791871486906e-01 -2.1565846043006598e-01 0.0000000000000000e+00 -1.4783312761738193e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 5 | -1.6223073192070142e-02 0.0000000000000000e+00 0.0000000000000000e+00 1.8391440238404433e-01 -1.6177247299952796e-01 0.0000000000000000e+00 -9.6940289429707283e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 6 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 6.3632421545742238e-02 0.0000000000000000e+00 0.0000000000000000e+00 1.0719565998987808e+00 8.1422630248864047e-01 7 | -9.9105763597774688e-01 0.0000000000000000e+00 0.0000000000000000e+00 -1.1086890088950360e-01 7.2385572877021520e-02 0.0000000000000000e+00 -1.6528091995704729e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 8 | 0.0000000000000000e+00 2.9784515626348829e-01 2.3141824349982482e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -9.2613922250698033e-01 0.0000000000000000e+00 0.0000000000000000e+00 9 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 2.4129658838680404e-01 0.0000000000000000e+00 0.0000000000000000e+00 3.4280146884246776e-01 -1.0455881455256999e+00 10 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 1.5548356627762971e+00 0.0000000000000000e+00 0.0000000000000000e+00 1.2068606905524538e-01 9.4036188216925254e-01 11 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_2_D2.txt: -------------------------------------------------------------------------------- 1 | 9.4107592181496391e-01 3.3819537161249846e-01 2 | 3.3819537161249769e-01 -9.4107592181496424e-01 3 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_3_D10.txt: -------------------------------------------------------------------------------- 1 | 2.2023643857385303e-01 0.0000000000000000e+00 0.0000000000000000e+00 -4.7130672990785361e-01 0.0000000000000000e+00 8.5402920176529640e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 2 | 0.0000000000000000e+00 1.2308650921423800e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.3828354876742572e+00 0.0000000000000000e+00 -6.6002661886120984e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 3 | 0.0000000000000000e+00 0.0000000000000000e+00 -4.0342126163675318e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 8.8479956397350135e-01 1.6003179699423251e-01 1.6961969579771452e-01 4 | -3.9832950239894155e-01 0.0000000000000000e+00 0.0000000000000000e+00 7.5574655357051712e-01 0.0000000000000000e+00 5.1978914406218524e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 5 | 0.0000000000000000e+00 1.5229512615176910e-02 0.0000000000000000e+00 0.0000000000000000e+00 8.6971413845903978e-01 0.0000000000000000e+00 -1.6901645098752924e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 6 | -8.9040974761225311e-01 0.0000000000000000e+00 0.0000000000000000e+00 -4.5466153687094291e-01 0.0000000000000000e+00 -2.1292445778632294e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 7 | 0.0000000000000000e+00 7.8642995348613409e-01 0.0000000000000000e+00 0.0000000000000000e+00 3.7611898467248850e-01 0.0000000000000000e+00 7.8646093190775779e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 8 | 0.0000000000000000e+00 0.0000000000000000e+00 1.7643985073803103e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 3.0444669082116899e-01 -8.6854406166406584e-01 -3.4901633839645413e-01 9 | 0.0000000000000000e+00 0.0000000000000000e+00 3.0856324293900249e-03 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 1.0303599682407355e-01 4.0229357416767025e-01 -9.0968892617992314e-01 10 | 0.0000000000000000e+00 0.0000000000000000e+00 8.9783670208087518e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 3.3738038976622681e-01 2.4120720777432236e-01 1.4792840131442409e-01 11 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_3_D2.txt: -------------------------------------------------------------------------------- 1 | 9.7557907551395839e-01 2.1964850880288306e-01 2 | 2.1964850880288306e-01 -9.7557907551395839e-01 3 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_4_D10.txt: -------------------------------------------------------------------------------- 1 | 8.8970810825119684e-01 1.9871231543356224e-01 3.5531377300377703e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -2.0660353462835387e-01 0.0000000000000000e+00 0.0000000000000000e+00 2 | 1.0419879983757413e-01 -6.6358499459221376e-01 4.5164451523757104e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 5.8720932972857365e-01 0.0000000000000000e+00 0.0000000000000000e+00 3 | -4.3941933258454113e-01 3.4165627723133662e-01 8.1471256710105333e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.6255790164428213e-01 0.0000000000000000e+00 0.0000000000000000e+00 4 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 4.2863677588379034e-01 0.0000000000000000e+00 -6.3119168084438271e-01 0.0000000000000000e+00 0.0000000000000000e+00 6.4642677573936591e-01 0.0000000000000000e+00 5 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 6.8398421839009127e-01 0.0000000000000000e+00 -1.0280182935971671e-01 0.0000000000000000e+00 0.0000000000000000e+00 9.1093354741887778e-01 6 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 1.4071437781392207e-01 0.0000000000000000e+00 7.5339632462828454e-01 0.0000000000000000e+00 0.0000000000000000e+00 6.4233436924473619e-01 0.0000000000000000e+00 7 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -5.2127926340507358e-01 0.0000000000000000e+00 1.8558504533667268e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.2500979819172911e-01 8 | 6.6878564394300288e-02 6.3516876408991430e-01 -7.7542166446725458e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 7.6555542658372966e-01 0.0000000000000000e+00 0.0000000000000000e+00 9 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -8.9245166717105195e-01 0.0000000000000000e+00 -1.8436659152198701e-01 0.0000000000000000e+00 0.0000000000000000e+00 4.1175111620270627e-01 0.0000000000000000e+00 10 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.2215803943548182e+00 0.0000000000000000e+00 -1.0421383218771203e-01 0.0000000000000000e+00 0.0000000000000000e+00 4.5968278525834394e-01 11 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_4_D2.txt: -------------------------------------------------------------------------------- 1 | -3.0374827286555761e-01 9.5275232181884006e-01 2 | 9.5275232181884018e-01 3.0374827286555761e-01 3 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_5_D10.txt: -------------------------------------------------------------------------------- 1 | -7.5988949123997229e-01 0.0000000000000000e+00 0.0000000000000000e+00 5.9790648917707112e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -2.5509957135010197e-01 0.0000000000000000e+00 0.0000000000000000e+00 2 | 0.0000000000000000e+00 -6.4335422234689021e-02 1.3912090644901491e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -7.0354948113015447e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 3 | 0.0000000000000000e+00 1.0874018967981698e+00 -9.3628657345778921e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -2.2957124131927584e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 4 | -4.8529941749281533e-02 0.0000000000000000e+00 0.0000000000000000e+00 3.3915506135367807e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 9.3947788111907859e-01 0.0000000000000000e+00 0.0000000000000000e+00 5 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -7.3880347589611128e-01 -1.8005470643130739e-01 0.0000000000000000e+00 0.0000000000000000e+00 -7.5105330032914350e-02 6.4506504795749642e-01 6 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 2.2733754217810664e-01 1.4610614422407869e-01 0.0000000000000000e+00 0.0000000000000000e+00 8.7440899428783569e-01 4.0296345646339404e-01 7 | 0.0000000000000000e+00 -9.1794081957250695e-01 1.0235511548555627e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -9.3534397252777979e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 8 | 6.4823823233196287e-01 0.0000000000000000e+00 0.0000000000000000e+00 7.2627933645267095e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -2.2870399993222773e-01 0.0000000000000000e+00 0.0000000000000000e+00 9 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -9.1460850041609643e-02 -8.8922500528071025e-01 0.0000000000000000e+00 0.0000000000000000e+00 3.1795773407187566e-01 -3.1593778222470387e-01 10 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -6.2779134975715278e-01 3.9435033573642242e-01 0.0000000000000000e+00 0.0000000000000000e+00 3.5870737301184835e-01 -5.6718150042257454e-01 11 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_5_D2.txt: -------------------------------------------------------------------------------- 1 | 3.7904585567822813e-01 9.2537788999584381e-01 2 | -9.2537788999584381e-01 3.7904585567822813e-01 3 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_6_D10.txt: -------------------------------------------------------------------------------- 1 | -1.5433743057196678e-01 0.0000000000000000e+00 7.7666311726871273e-01 0.0000000000000000e+00 1.1571979400226866e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 2 | 0.0000000000000000e+00 4.6806840267259536e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -5.9264454599472804e-01 1.6314935476659614e-01 7.8737783169590370e-01 0.0000000000000000e+00 0.0000000000000000e+00 3 | -1.7410812843826278e+00 0.0000000000000000e+00 -4.4194799352318298e-01 0.0000000000000000e+00 4.4605580480878959e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 4 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 2.7077411154472419e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -8.8999649318267127e-01 3.6686185770629254e-01 5 | 5.4888525059737507e-02 0.0000000000000000e+00 1.5570674387300532e+00 0.0000000000000000e+00 -3.0216546520289828e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 6 | 0.0000000000000000e+00 6.1164921138202333e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -6.1748299284504526e-01 -1.5999277506278717e-01 -4.6797682388189477e-01 0.0000000000000000e+00 0.0000000000000000e+00 7 | 0.0000000000000000e+00 -1.1226733726002835e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.3517591002752971e-01 9.4075663040175728e-01 -2.9000082877106131e-01 0.0000000000000000e+00 0.0000000000000000e+00 8 | 0.0000000000000000e+00 7.8172271740335475e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 4.9921405128267116e-01 2.5052257846765580e-01 2.7736863877405393e-01 0.0000000000000000e+00 0.0000000000000000e+00 9 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -3.0159372777109039e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 2.8348126021733977e-01 9.1031840499614625e-01 10 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 9.1417864987446651e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 3.5713389257830902e-01 1.9165797370723034e-01 11 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_6_D2.txt: -------------------------------------------------------------------------------- 1 | -9.9987388703608149e-01 1.5881121602620563e-02 2 | 1.5881121602620618e-02 9.9987388703608149e-01 3 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_7_D10.txt: -------------------------------------------------------------------------------- 1 | -3.4378315941460673e-02 -7.3911155710735865e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.0523399031716010e+00 0.0000000000000000e+00 0.0000000000000000e+00 2 | 1.1485242405257232e+00 9.9172138327339543e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -9.8221173301823295e-01 0.0000000000000000e+00 0.0000000000000000e+00 3 | 0.0000000000000000e+00 0.0000000000000000e+00 8.6405702281889096e-01 0.0000000000000000e+00 0.0000000000000000e+00 -4.9170053952174497e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.0787048137178114e-01 4 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -3.7383444140566896e-01 3.9203594526066760e-01 0.0000000000000000e+00 -7.8796970160513635e-01 0.0000000000000000e+00 2.9267623305420509e-01 0.0000000000000000e+00 5 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 1.3610747065473336e-01 -6.0804319089793657e-01 0.0000000000000000e+00 -5.6714757040795583e-01 0.0000000000000000e+00 -5.3861105430076284e-01 0.0000000000000000e+00 6 | 0.0000000000000000e+00 0.0000000000000000e+00 8.5194811610211113e-02 0.0000000000000000e+00 0.0000000000000000e+00 -6.8358420399848130e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 9.9401658458757081e-01 7 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -8.5125893429894595e-01 8.0910637486172887e-03 0.0000000000000000e+00 2.3333420826786389e-01 0.0000000000000000e+00 -4.6994458047268511e-01 0.0000000000000000e+00 8 | 1.2482031580671493e+00 -4.3601697061224165e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.7452756850803894e-01 0.0000000000000000e+00 0.0000000000000000e+00 9 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 3.4217070831253948e-01 6.9030850372398578e-01 0.0000000000000000e+00 -5.4795346377890963e-02 0.0000000000000000e+00 -6.3513057403542883e-01 0.0000000000000000e+00 10 | 0.0000000000000000e+00 0.0000000000000000e+00 4.9613234664961658e-01 0.0000000000000000e+00 0.0000000000000000e+00 8.6807701605010890e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 1.7175238382100888e-02 11 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_7_D2.txt: -------------------------------------------------------------------------------- 1 | 9.1418996300117072e-01 4.0528596268303918e-01 2 | 4.0528596268303918e-01 -9.1418996300117095e-01 3 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_8_D10.txt: -------------------------------------------------------------------------------- 1 | 3.2765524541169905e-01 0.0000000000000000e+00 9.4933157553264147e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -6.2503273493416478e-01 2 | 0.0000000000000000e+00 -3.9416689281102152e-01 0.0000000000000000e+00 0.0000000000000000e+00 6.4866583791924892e-01 0.0000000000000000e+00 -6.1484056671741649e-01 2.1409383187478670e-01 0.0000000000000000e+00 0.0000000000000000e+00 3 | 8.9664357708578779e-01 0.0000000000000000e+00 5.3753076622704354e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 7.2208870049867158e-01 4 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.7334340479710361e-01 0.0000000000000000e+00 1.7833024809453213e-01 0.0000000000000000e+00 0.0000000000000000e+00 -9.6858163653240936e-01 0.0000000000000000e+00 5 | 0.0000000000000000e+00 5.5409637934619971e-01 0.0000000000000000e+00 0.0000000000000000e+00 -3.0250402339187688e-01 0.0000000000000000e+00 -4.5590738714655138e-01 6.2738901215463105e-01 0.0000000000000000e+00 0.0000000000000000e+00 6 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -9.6746517640794338e-01 0.0000000000000000e+00 1.5319756775156032e-01 0.0000000000000000e+00 0.0000000000000000e+00 2.0134954102999447e-01 0.0000000000000000e+00 7 | 0.0000000000000000e+00 6.2594545303749249e-01 0.0000000000000000e+00 0.0000000000000000e+00 6.9750321067293941e-01 0.0000000000000000e+00 3.4700267475621172e-01 3.5646944254231774e-02 0.0000000000000000e+00 0.0000000000000000e+00 8 | 0.0000000000000000e+00 3.8184021897755271e-01 0.0000000000000000e+00 0.0000000000000000e+00 -3.4831274010388026e-02 0.0000000000000000e+00 -5.4194896030516160e-01 -7.4784768097931698e-01 0.0000000000000000e+00 0.0000000000000000e+00 9 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -1.8429106449108246e-01 0.0000000000000000e+00 -9.7197161884987071e-01 0.0000000000000000e+00 0.0000000000000000e+00 -1.4597251693095872e-01 0.0000000000000000e+00 10 | 1.7153665513641250e+00 0.0000000000000000e+00 -7.8944707263781244e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -3.0034616211515719e-01 11 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_8_D2.txt: -------------------------------------------------------------------------------- 1 | -7.1254101872216313e-01 -7.0163045589425632e-01 2 | -7.0163045589425643e-01 7.1254101872216324e-01 3 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_9_D10.txt: -------------------------------------------------------------------------------- 1 | -7.6923624057192400e-02 0.0000000000000000e+00 7.2809258658661558e-02 6.1371429917067155e-01 0.0000000000000000e+00 7.8239141541106805e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 2 | 0.0000000000000000e+00 -1.1499983823069659e+00 0.0000000000000000e+00 0.0000000000000000e+00 1.5729072158274271e-01 0.0000000000000000e+00 0.0000000000000000e+00 -1.3309066870600375e+00 0.0000000000000000e+00 0.0000000000000000e+00 3 | -1.6730831752378217e-02 0.0000000000000000e+00 4.9480374519689890e-01 6.5982384537901573e-01 0.0000000000000000e+00 -5.6526261691115431e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 4 | 9.1421044415115027e-01 0.0000000000000000e+00 -3.3249140365486585e-01 2.2489758522716782e-01 0.0000000000000000e+00 -5.5586027556918202e-02 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 5 | 0.0000000000000000e+00 -1.2704704488967578e+00 0.0000000000000000e+00 0.0000000000000000e+00 -7.6341623484218024e-01 0.0000000000000000e+00 0.0000000000000000e+00 4.9980922801223232e-01 0.0000000000000000e+00 0.0000000000000000e+00 6 | -3.9751993551989051e-01 0.0000000000000000e+00 -7.9957334378299227e-01 3.7068629354440513e-01 0.0000000000000000e+00 -2.5544478964007222e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 7 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 9.0184624725396623e-02 0.0000000000000000e+00 -3.4243496198122719e-01 -9.3520320266563195e-01 8 | 0.0000000000000000e+00 9.7696981452382070e-01 0.0000000000000000e+00 0.0000000000000000e+00 -6.8376531090322690e-01 0.0000000000000000e+00 0.0000000000000000e+00 -4.7094671586086240e-01 0.0000000000000000e+00 0.0000000000000000e+00 9 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -6.1661688294908079e-01 0.0000000000000000e+00 -7.5660067900409822e-01 2.1757534831110126e-01 10 | 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 -7.8208078427058847e-01 0.0000000000000000e+00 5.5704013261474550e-01 -2.7938492717261593e-01 11 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/M_9_D2.txt: -------------------------------------------------------------------------------- 1 | -4.8481534461057663e-01 -8.7461653404799478e-01 2 | -8.7461653404799522e-01 4.8481534461057729e-01 3 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/shift_data_1.txt: -------------------------------------------------------------------------------- 1 | 5.6944783393733559e+01 -4.9025501519919139e+01 2.8395954718997686e+01 -2.9189037805976824e+01 -2.0158405052571744e+01 7.7686281426663641e+01 7.3331937935823561e+01 9.8808873863336260e+00 -1.1925697891007033e+01 4.4795545844731635e+01 7.8739012404689106e+01 6.5814856097947256e+00 5.5028643819982477e+01 6.6416682445638202e+01 -5.4818136158780256e+01 -4.8414420619799955e+01 5.8832643022217155e+01 2.3127440373939123e-01 4.7028903647805038e+01 1.4783608659535460e+01 -1.1889259187453092e+01 1.7220836476060015e+01 -9.4013468592433895e+00 7.1563336696272415e+01 4.4999854250345308e+01 -7.4496144463539196e+00 7.4330000129681991e+01 -1.5687820434424950e+01 1.4801958619990359e+01 -2.3481473821905190e+01 6.6869475239361378e+01 3.5270347946915010e+01 -1.1262056199490118e+01 -1.3785448304277566e+00 3.0797035000658155e+01 5.7672560614381183e+00 -2.9727375409438920e+01 5.2001493560150948e+01 6.9102265457204652e+01 -3.8224460761167329e+01 -3.8512012939207267e+01 -7.1401469256450170e+01 -4.4493793158090575e+01 3.2818391971671190e+01 5.8713867877942448e+01 -7.6022575421269323e+01 4.8574894726544102e+01 7.8255669026754646e+01 4.3029332665274538e+01 -6.0058947308016428e+00 1.8927259416751227e+01 3.0449017337732499e+01 7.6634395269972458e+01 -5.7186975729273115e+00 4.5849891810608042e+01 3.9131660889429810e+01 -7.4175431353121738e+01 5.3525248083064923e+01 7.8844532072006047e+01 2.0050534205534746e+01 2.9328392422445290e+01 -3.7708555961823350e+01 -7.7000503650400987e+00 2.5253514771002131e+01 -4.4177243767388745e+01 7.3064001497376722e+01 -1.3326833589620350e+01 1.5907859250860227e+01 3.3904292077712910e+00 2.2943695011988140e+01 1.4682066484672049e+01 4.1491407883116693e+01 6.6092291542371868e+01 -6.6856047355968528e+01 3.0412088236963427e+01 -6.4033001355842231e+01 -4.2653787640227840e+01 7.7791130690738157e+01 7.5533519236153694e+01 5.1857802035220800e+01 5.4078805956094897e+01 -5.7508295912997937e+01 1.8070590243707699e+01 3.2410225995076004e+01 7.8668299242233985e+01 -6.1894635773214809e+01 5.6856559578728195e+01 6.8196839684712160e+01 -5.5715419042722985e+01 7.0952148954827408e+01 1.2767483784243225e+01 2.3099961775867257e+01 -7.8942432999118438e+01 -6.5471416183501205e+01 -5.8091796104838977e+01 -2.8817134028681153e+01 -9.5716200440989923e+00 -7.0218081171725913e+01 4.7097468025562108e+00 -4.3285489437768931e+01 2 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/shift_data_10.txt: -------------------------------------------------------------------------------- 1 | 6.1441309549566370e-001 1.8049534213689469e+001 5.1107558757100151e+001 5.1022671188681272e+000 -4.7667984552250942e+001 -7.3770454911164904e+000 -1.1534252828772665e+001 7.4568439937919834e+001 1.9208808661355789e+001 3.1262392306880571e+001 3.5226337922876709e+001 -2.4496769553981821e+001 2.7184672840496376e+000 9.0711411219363072e+000 -5.4960764941752878e+001 9.9289672898839711e+000 3.1168526257352994e+001 -1.1767114286362016e+001 5.3803267308210252e+001 3.7021930585909288e+001 -2.2395033266276542e+001 -7.3260205034562205e+000 -1.8177616225252429e+001 4.4088742760085680e+001 3.7483376909750291e+001 -1.1155544788135103e+001 3.1000411861426159e+001 7.1234157946953644e+001 4.5477215717078536e+001 3.2891497300971011e+001 -6.2506521676104683e+001 -1.7611094854962403e+001 1.4544756864853824e+001 -6.4991923253879378e+000 -7.1945602121767337e+001 -4.3409986556764665e+001 5.3470249769103930e+001 -7.7496849168555684e+001 5.8193738408938515e+001 -6.7508951514810519e+001 2.7046814413048864e+001 3.3811884976387319e-002 -4.5120992199975433e+001 1.1458516064654262e+001 -6.0449735852252843e+001 2.7386597278184468e+001 1.5933687699650221e+001 -7.1043814817953518e+001 -7.0985117033062920e+001 -5.5599898079604756e+001 -7.6860629317506550e+001 -1.0371912688487711e+001 5.3155436045250838e+001 1.8782427432653478e+001 3.2207064497187190e+000 5.8218915669377708e+001 -6.4368333094169103e+001 6.5288352509883055e+001 -6.2717328938118570e+001 2.7194812955111871e+000 -5.7095036466627818e+001 9.4992915844806305e+000 -7.9267260168428237e+001 4.2669119779437992e+001 5.5793476233325180e+001 6.6691403240598078e+001 7.7914923965385299e+001 8.2129628781160591e-001 -3.6572540093197588e+001 -6.3879918092602296e+001 1.2558129327258598e+000 1.3697460112300547e+001 4.2061935345718538e+001 -6.6725976142312987e+001 2.5855390893234272e+001 2.7166423529941000e+000 -5.2632317195928451e+001 7.0169258293094799e+001 1.4477308342811469e+001 -9.4984510782655889e+000 7.0707028849805283e+001 2.4946211241142606e+001 -7.6886865183382724e+000 5.4351587315147043e+001 5.2197603958954062e+000 8.6219305266040038e+000 2.8810484813337709e+001 -2.1249615149221214e+001 -4.1713503009032742e+001 1.2627758793454973e+001 5.8701928747601244e+001 -1.4915718365563905e+001 -6.1981577435992520e+001 -8.9846661236868215e+000 -3.1970495805775997e+001 -1.5778103389681149e+001 5.3338170152501505e+001 -1.5419413956222868e+001 -1.7571849899102943e+001 -2.2328177059368869e+001 2 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/shift_data_2.txt: -------------------------------------------------------------------------------- 1 | 2.0779019417603990e+01 -4.7020648329994010e+01 -3.6036482209356734e+01 -6.5156492658497996e+01 -4.5172111375803176e+01 -7.6758931240420338e+00 -4.8735735774382825e+01 -6.1511160052153826e+01 -5.8066996549287346e+01 6.7988996127615223e+01 -2.8942083171076185e+01 -2.9591856277357721e+01 -7.0328453551199502e+01 6.9681164990030766e+01 -6.8660012552822010e+01 -4.8830975279598952e+01 -6.2201524219569528e+01 1.8982441694933186e+01 -2.1024332577839573e+00 2.4404236424902564e+01 -7.7998406662604964e+01 -3.9220778401578201e+01 1.6377404675063403e+01 5.5040373790562313e+01 -5.6437702018971414e+01 -6.8457832852591679e+01 -1.0796753508409836e+01 -2.1036215844115347e+01 4.4320307953432348e+01 -6.8584226662565129e+01 -5.5097517732110575e+01 5.6019476417461163e+01 7.9340148269822890e+01 2.9871970913313319e+01 -2.1784859943103442e+01 -5.8141063739611326e+01 -5.6858271647644358e+01 6.3028418041313273e+01 -4.1377979648009870e+01 -7.9703944101791805e+01 -6.4188518814830346e+01 6.3564279146289579e+01 4.8396116890197760e+00 5.9353657355231093e+01 -4.3080830631349627e+01 -5.9520421093106464e+01 -3.9717311840372773e+01 -8.8601011451613658e+00 4.8280053272973788e+01 -7.7144641129833019e+01 7.0016530896544708e+01 -3.2165221773164916e+01 3.9117658417261055e+01 1.0485018906409380e+01 6.1712760022707641e+01 -7.3642298352738052e+01 5.3891585531594046e+01 -4.1219704989911889e+00 2.0418234551520129e+00 7.6926810739993499e+01 -5.1091892929324828e+01 1.8555536837575744e+01 2.2907629135487440e+01 4.8522880137210194e+01 4.0464660916693873e+00 8.9556026872972154e+00 -4.3185634595894086e+01 -6.0960653191879700e+01 7.4301804077952085e+01 -9.5788618594309582e+00 -3.1931271456150000e+01 -2.8879363513029816e+01 6.4537436507892522e+01 4.0695388149793899e+01 -3.2611366413818381e+01 6.0764682954533356e+01 -7.9735831580933052e+00 6.7987861925730414e+01 -4.8004614248873949e+01 6.6448319175489388e+01 -3.0996175497302829e+00 6.4727841683071034e+01 4.0835167374850784e+01 7.6658069117301181e+01 7.2167654480863206e+01 -3.8231140132169770e+01 9.2277986226732764e+00 5.1611451269877819e+01 7.3661492836504010e+01 -5.1289896877151861e+01 5.0703185708589473e+01 8.4422042632672003e+00 -3.1872947268128833e+01 -8.6247354413497987e+00 4.0714372340922296e+00 -5.1354406611693278e+01 -7.3511922728974341e+01 5.1146941283320615e+00 4.2664214876789700e+01 -6.2540565795516855e+01 2 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/shift_data_3.txt: -------------------------------------------------------------------------------- 1 | -7.9289325251844403e+01 2.4310492251212935e+01 -5.3556733864153145e+01 3.1973945178079390e+01 -5.3903392019636641e+01 -3.4309674033108017e+01 -2.6914744464175158e+00 4.4388979060756498e+01 -3.4428925865529536e+01 7.3042978045084965e+01 -4.6667996256923303e+01 -2.9013090109924363e+01 5.6994522501246308e+01 -1.3060321553172699e+01 1.5175655826542368e+01 1.7247476697548976e+01 -4.1659144294289476e+01 -5.2381541231824826e+00 -3.7656348327946077e+01 6.9753652210232644e+01 2.9632697379976833e+01 -4.3255134729321647e+01 5.0950604291144117e+01 6.8063212590321598e+00 -6.1585994466015137e+00 1.2419100968362343e+01 -7.2170024734069600e+01 -1.6057055078473468e+00 5.2907529609700447e+01 -6.3149849764606842e+01 -7.9524993747251571e+01 6.3430089942845569e+01 -1.0478330594710229e+01 5.0697694705192788e+01 7.6154910175201906e+01 -6.4424685381550660e+01 -6.5687207721959425e+01 -4.9001829721500059e+00 4.2624787074804672e+01 7.4796366242131398e+01 -1.7472568497747446e+01 -6.1458741641351367e+01 2.2929233807571805e+01 -6.8367396140642185e+01 6.9173064226830860e+01 3.1690460346495001e+01 -1.8432956458270993e+01 -4.2699194160615647e+01 -4.5356257467230904e+01 -6.2619251749766647e+01 3.8235841672046035e+01 6.9790982077732224e+01 1.7035780445223580e+01 -7.9638057127426407e+01 -7.6826140655589356e+01 -1.6945998490297228e+01 -1.1396626425626039e+01 -2.3100335496990169e+01 7.2661302086273793e+01 -6.1495835995998156e+01 3.9484415258972163e+01 -6.5432742454778747e+01 -4.8102437466430679e+01 2.2333501699535873e+01 -8.3693590054146227e-01 1.3618319599711484e+01 -7.6902487649071261e+01 -2.0109917940623092e+01 -6.7390828052251990e+01 2.3529258008827156e+00 2.5623935435723482e+01 -5.8517131795416184e+01 2.2565914440232291e+01 6.5323996984085056e+01 -1.9582688482283935e+01 -6.2453217460984973e+00 -5.1225866773736612e+00 -1.5314286619105516e+01 5.2784792693697284e+01 -4.5989197029727137e+01 1.9565521376005137e+01 3.7717766518573171e+01 2.5018776592341538e+00 -3.0942181251450521e+01 -4.5240293128993500e+01 -3.3606618993732440e+01 -2.6445427661037741e+01 1.1697300938748441e+01 -4.3463122455153204e+01 7.5300896240072746e+01 -1.7836893097421573e+01 5.5337711635668626e+01 -1.9080539317373436e+01 -4.6624307095363882e+01 6.5270648219283032e+01 4.3784621490065305e+01 4.8133383527460239e+01 1.7776946023934030e+01 5.7131824259241967e+01 5.4570325079639588e+01 2 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/shift_data_4.txt: -------------------------------------------------------------------------------- 1 | 4.3453613502650342e+01 -7.5117860955706732e+01 5.4110917436941946e+01 2.1893626834216349e+00 -3.3813797325740467e+00 -3.0849165372014589e+01 7.8077592550813023e+01 -6.9901998485392895e+01 3.7111456001695004e+01 5.2241020487733664e+01 -6.5168662660368099e+01 7.0286667193419618e+01 2.8015519803397126e+01 -2.3158664304371300e+01 5.2329036431540288e+01 -2.5884695102406994e+01 -4.0705861542702593e+00 6.5658505179760283e+01 2.4965562310519545e+00 3.9620575289996623e+01 -1.6991101026996553e+01 3.0565039268957932e+01 -5.3385006623987579e+01 3.8193670640789747e+01 1.0224597533338056e+00 6.4481074281260874e+01 5.3415445151466628e+01 -6.6133393005530081e+00 4.9606375605615966e+01 -2.5645196412524768e+01 2.1183894696265412e+01 3.7718160132746291e+01 9.1173510668414508e+00 -4.4680619595889290e+01 -6.7173548111307227e+01 -2.5823106740518980e+01 7.1045012097361024e+01 -2.6481679653041851e+01 4.2410071325679354e+01 -1.3931229307284227e+01 -6.2170967525882162e+01 5.2548792498441770e+01 -1.2444478688968573e+01 -3.4353325494729603e+01 6.3658410079618164e+01 -1.3101791857323505e+01 -4.1815746036272380e+01 -7.7243631629852402e+01 6.2831970706038192e+00 1.6931656383411706e+00 -2.2965116399789743e+01 -5.4711331266309756e+01 -1.3344592868045254e+01 3.7427666763508540e+01 -7.3204705712015141e+01 4.8511098161577763e+01 -3.3973198362613658e+01 5.2455119552302676e+01 1.3194315551404983e+01 -3.1385275363635827e+00 5.0767696337200562e+01 -2.7327660670190888e+01 6.4007116101685483e+01 -7.2399678971804533e+01 -2.1404479118718058e+01 -6.5080548294391733e+01 -4.8775183841947083e+01 7.5485168395324223e+01 3.9225220214214744e+01 5.8276140307204855e+01 -7.2909856807864202e+01 4.4036630226316220e+01 -3.6355786303223937e+01 8.2996017151975963e+00 -2.8593972673916248e+01 6.1101269489667033e+01 4.9036312833910955e+01 -6.6902004586021349e+00 3.7800892273802731e+01 -4.0403554197588733e+01 -2.2535398873749841e+01 -3.2448871113568948e+01 7.1823194246656811e+01 -6.7574296438868288e+01 -4.1200248059444242e+01 2.7430864920574649e+01 7.0546720098027379e+01 7.8724687545897751e+01 -7.4176416096359688e+01 3.6974668482772387e+01 -6.7468100445097292e+00 4.6363581924868541e+01 3.2721411265768765e+01 2.8759143775682503e+01 -5.0705621042617395e+00 5.9062713672901850e+01 2.7028700461158849e+01 3.1368650696877694e+01 1.2912262423388782e+01 5.6394549895261662e+01 2 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/shift_data_5.txt: -------------------------------------------------------------------------------- 1 | -1.6799910337105352e+01 4.3906964270354706e+01 2.4348491851402670e+01 -5.4897453475230122e+01 5.8499441807390866e+01 1.1845681821854726e-01 7.0903743799265357e+01 -7.7796574718223610e-01 4.4729687108066713e+01 -6.8148774722660320e+01 6.3543236247982463e+01 -2.8828380158556797e+01 -3.8585324864175789e+01 -2.3554992202462159e+01 -4.8753946781509534e+01 -4.7583556830689105e+01 -5.6839653391782036e+01 5.5945444319371802e+01 -4.4917324318046369e+01 -4.5469813405289230e+01 -5.1153902696051588e+01 -6.3642612539065354e+01 -4.1388944071433016e+01 5.6016991425313506e+01 3.7574885244283308e+01 1.0963006695249646e+00 2.5525352705980353e+01 4.4602929411736753e+01 4.1434623059553388e+01 7.1709761913730631e+01 -5.4031515928931313e+01 5.2311782451491695e+01 4.1276622210292402e+00 -6.6381051161503905e+01 1.3673128603805381e+01 4.4272444157056725e+01 -7.3031052347752762e+01 -7.2896808680564547e+01 -5.6663494248252128e+01 -2.3347830373490154e+01 7.3014912751044562e+01 -3.8361393193882606e+01 6.0064590415016085e+01 6.5571105175451891e+01 -2.6435316180081720e+01 2.1640961366538406e+01 3.9637687410990566e+01 -4.9387683481624201e+01 2.1203724342027556e+01 5.0995016457044983e+01 -4.6758406444805864e+01 5.1462882147851815e+01 -2.3339741054614890e+01 4.8972095087623273e+01 3.4002137684264284e+01 -4.6071940570171897e+01 6.8894837120964581e+01 -4.4725079482758900e+00 3.0558913327082493e+01 3.6562882753351147e+00 1.1237043557333308e+01 6.0991068101018243e+01 -4.3118426186553400e+01 -5.1388917403011078e+01 -1.3534792407199177e+01 4.0744012203414002e+01 -1.5386897220922123e+01 -4.7581592038078981e+01 -2.3817383993331987e+01 2.1227224069287644e+01 -3.4045067482648918e+01 -3.5449180880304979e+01 4.5616944714270971e+01 -3.6010187247772791e+01 5.6782926682747387e+01 -4.9351243064436709e+01 -6.3421839877693884e+00 -3.3086282440035731e+01 7.8851030319394084e+01 -3.0733421943491983e+01 -5.6622604269824272e+01 2.3890037063458024e+01 7.9852925538948256e+01 8.1195331030150584e+00 -1.5007137625947195e+01 -6.4962079294473895e+01 2.2333297777144850e+01 -4.2642595266291181e+00 1.0590135944350692e+01 6.8414816701977884e+01 -7.2175689857534920e+01 6.3180564410602955e+01 -4.4253950996442676e+01 6.3845602787959194e+01 -6.6953942769651277e+01 -1.4916129528971453e+01 2.4611006576852418e+01 3.7187537158461069e+01 5.0937022255238617e+01 -6.1466956204486522e+01 2 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/shift_data_6.txt: -------------------------------------------------------------------------------- 1 | 4.4867071194977996e+01 8.6557399521842626e-01 -1.2297862364117918e+01 2.9827246270062048e+01 2.6528060932889602e+01 -6.2879900924339843e+01 -2.2494835379763892e+01 9.3017723082107295e+00 1.4887184097844738e+01 -3.1096867523666873e+01 7.4947529730828279e+01 -3.6867813969435083e+01 4.2650615704548827e+01 2.8898146352217609e+01 -6.8854258278782595e+01 4.6481108500846233e+01 -7.2009426277135233e+01 -2.2427439811838532e+01 2.2019082429827691e+01 -5.2816018859304563e+00 3.2117103166932765e+01 -4.7847073361206370e+01 -5.7619817954311117e+00 -4.1628035810602846e+01 3.7602131197975069e+01 -2.0980955632860287e+01 1.3078678517173358e+01 -2.6650161867332720e+01 -6.9270504261027327e+01 -6.9365115086252388e+01 -5.9489254643902768e+01 4.0971999261981011e+00 6.1639159611258265e+01 -3.0644413582349387e+01 -6.5907854617530859e-01 -3.7133125568336396e+01 6.3558572970125169e+01 6.8935908893559088e+01 4.5820774047552035e+01 2.9749417207087120e+01 -1.5450004867953311e+00 -4.6823181569028264e+01 -7.7212630658043835e+01 4.7316530257145189e+01 4.8924031839204957e+01 2.6203121517879481e+01 7.5863351000409267e+01 -4.6597361213805755e+00 -7.6184992043387609e+01 3.8838726784493190e+01 -3.7518933023102086e+01 -2.0707319276736733e+01 -2.7915084114258676e+01 -4.8818708345675240e+01 -1.6031165763750288e+01 4.1970086489790219e+00 -2.0875636609678921e+01 2.3175501126412072e+01 7.0647431607659655e+01 1.1383029935594195e+01 -4.5415872468341078e+01 5.5431424591425554e+01 -4.4046891910977145e+01 2.3887652207113632e+01 3.9770644958955543e+01 -5.4770174834304569e+01 -4.2328440156918226e+01 -5.4093717324591111e+01 -3.3107074402788221e+01 4.9400512338336796e+01 3.4410870426525761e+01 -5.6500741381431340e+01 -7.9603977165931781e+00 -3.0404422781618507e+01 3.2866309337721361e+01 6.4061039082734396e+01 3.3883863517029141e+01 4.6094130708879845e+01 -1.5945175856326316e+01 9.4293827234904199e+00 7.9635433703491202e+01 3.2734254576607725e+01 -7.5383330953951614e+01 7.2356656935232053e+01 -6.1666889554665836e+01 4.4587254731258028e+01 -6.2009731746283236e+01 4.2438540217670862e+01 -1.5454561605795547e+01 -6.4816908605777144e+01 6.2217062703434863e+01 -7.7827143370093381e+01 -4.0798621159418779e+01 5.7574173648643381e+01 -3.0863487250573698e+01 -2.6302203920810570e+00 -4.6114129706339043e+01 -1.7797444024029119e-01 4.8783582881457903e+01 6.5677488663083636e+01 2 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/shift_data_7.txt: -------------------------------------------------------------------------------- 1 | 1.5519604466631876e+00 3.7992270681072000e+00 1.3609333677966774e+01 -6.7928874412518397e+01 7.9407748803220557e+01 4.6034135728159043e+01 -6.4280816830825444e+01 -4.7688475683186425e+01 -6.0210807314240753e+01 3.6961469555721379e+01 -6.8581176990913775e+01 -3.8416862878211191e+00 7.2778560590361508e+01 -1.0732157794168288e+01 -5.5376046586491185e+01 1.4785020842582455e+01 1.1845301283451391e+01 4.3978670967732853e+01 -5.0477045313677309e+01 -4.7700586974481396e+01 5.6234719891210403e+01 1.6937211573560361e+01 2.3714916828887027e+01 1.6607143104359096e+01 7.6254154963537189e+01 3.5824721695773576e+00 5.0609754086756027e+01 3.8136936108645486e+01 7.4851780047105478e+00 4.3386725170252248e+01 -7.9310063570416560e+01 -4.2384279911585310e+00 -3.5259247401384286e+01 3.7828924934300105e+01 -4.9258629218329972e+01 -4.9781272471780554e+01 -3.3846433215703087e+01 -5.7003056321760198e+01 2.9632400176316693e+01 -4.8250236645457449e+01 -6.1727300203278332e+01 -1.0734516498974770e+01 6.4981201731125452e+01 -2.0942504974521000e+01 1.9318893225546404e+01 5.2638441758527620e+01 5.4290635573813063e+01 -1.7287910923961505e+01 2.0811009789263437e+00 -6.2935847185056588e+01 -2.7836392460314698e+00 -6.4624808050983034e+01 -6.9148912871791481e+01 5.4221363800680905e+01 -6.1538601956115386e+01 -3.9283076431268398e+01 -7.0665580327932531e+01 3.5914284380112917e+00 4.1137757655762954e+01 4.2292920407975529e+01 -6.2886703155416392e+01 2.3180066916709805e+01 -1.2615330858442618e+01 -2.5865737845127356e+01 -5.4559630553498693e+00 -1.8371071265251871e+01 3.7405244911743907e+01 2.9951231679856420e+01 3.0350843346841089e+01 2.6624130358278819e+01 -4.8241068408005439e+01 -6.7636733347380869e+01 2.9422630569628737e+01 -5.3848016249876480e+01 -6.3609111673947943e+01 4.1660095956949561e+01 2.1232748451285417e+01 5.8803220753932010e+01 -1.4268788664726898e+01 2.4468911934862348e+01 4.9002889231314356e+01 7.1559310700539186e+01 -2.2665056038026265e+01 2.8403168892675623e+01 -6.7940420800792253e+01 4.5347601084666138e+01 7.7131429983829804e+01 2.7943738227683923e+01 5.0408392683793039e+01 1.3855836509659810e+01 7.5044217852430506e+01 -1.1830554200257438e+01 4.3875556273327931e+01 -2.3525714177417434e+01 -3.6678179854842917e+01 2.9831179655078415e+01 -6.7363537097053381e+01 -1.8967990176271641e+01 -7.5010892597497858e+01 -6.8071886146474583e+01 2 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/shift_data_8.txt: -------------------------------------------------------------------------------- 1 | 7.5809536201790706e+01 5.0874943496135501e+01 1.5175339549395872e+01 1.1931806696547099e+01 5.7875148867198789e+01 6.7627011010249618e+01 -3.2825950734701912e+01 -2.5753998135101980e+01 -4.7446656658987820e+01 4.0415323917015940e+00 -7.3965092671087518e+01 6.8687477032042807e+01 3.0426477543276960e+01 1.7808069855816697e+01 -5.9769933288809810e+01 -7.3268785026515275e+01 -6.8469940642113770e+01 -5.4292372006127785e+01 -1.1896306989666215e+01 5.8768424679883026e+01 4.0913594793953735e+01 -4.5212298019422356e+01 -4.3092812431553760e+01 5.9101462876005769e+01 3.8286557029134855e+01 -3.7836011330520741e+01 -6.9842432062068227e+01 7.8244332819359528e+01 1.2501694975654445e+01 3.5987455824384227e+01 4.1170040425458012e+01 -5.5130569327217792e+01 -1.9478682549427582e+01 -1.8217608229358497e+01 5.6658489171722181e+01 -6.0772490864979332e+01 3.6746032292370700e+01 -9.4352621256537930e+00 -1.8450545863458210e+01 -1.8324327142128865e+01 2.3033722240027842e+01 -7.2230311852055749e+01 -5.4851297500939708e+01 3.4242901706249867e+01 4.4897694161579693e-01 2.5955457736717293e+01 7.3378181007401167e+01 -1.2911808608524410e+01 -4.8767283469795842e+01 4.8266723141198383e+01 1.8815834121227198e+01 7.7724075465334607e+01 6.8536345878865717e+01 5.0365186096339102e+01 -7.2317278828619649e+01 -7.6505272610348314e+01 -6.4116762124056351e+01 -1.0421019015098466e+01 5.3933413240096257e+01 5.8876326297817911e+01 -6.5583912574492359e+01 -2.8818639492997271e+01 -3.4873958805051615e+01 -4.6625636502460409e+01 4.2927303147934040e+01 3.9184007327623661e+01 5.6111553710005921e+00 6.6688320407033103e+01 3.0601081005577498e+01 7.2368460741065661e+01 -2.3280324909500933e+01 -7.2420753982114022e+01 -5.5612177390424620e+01 4.6134599133457343e+01 2.4207636017449033e+01 -2.2261454734141680e+01 -6.8269716719291040e+01 -4.9128901124526237e+01 5.0558800087570603e+01 -1.8246928201172004e+01 4.3877722902166525e+01 1.2888816712838050e+01 -1.7657507330951049e+01 3.0274288705677861e+01 1.9970276327789890e+01 -3.9565758835322107e+01 -2.1708745258724662e+01 -5.8881563385427725e+01 -2.2435818883793345e+01 4.1192020085264005e+01 -5.7184269678399033e+00 5.0397951514645456e+01 -1.6288933538035053e+00 -1.6810597375412748e+01 2.4289911437914654e+01 -7.9458462968216494e+01 6.1612893185398036e+01 7.8957669846228242e+00 6.4155710555685545e+01 2.5027309407027118e+01 2 | -------------------------------------------------------------------------------- /CEC2019/matlab version/input_data/shift_data_9.txt: -------------------------------------------------------------------------------- 1 | -6.0107960952496171e+00 -6.3449972860258995e+01 -3.6938623728667750e+00 -2.7449007717635965e+00 -5.3547271030744199e+01 3.1015786282259867e+01 2.3200459416583499e+00 -4.6987858548289097e+01 3.5061378905112562e+01 -3.4047417731046465e+00 5.6505019430306277e+01 7.9861565157706650e+01 -6.6743944243874296e+00 -1.6547090679661878e+01 -2.6953053077195328e+01 -3.9963068421912880e+01 2.0709032910274829e+01 5.6716122988944932e+01 -5.2120924802553340e+01 3.6168434860263119e+00 -1.1711530355602278e+01 -3.5690686607589335e+01 -1.3369813753929833e+01 -6.6459762298716129e+01 -2.9224954521853917e+01 1.6189351201145598e+01 -6.5574362345772968e+01 -2.8307945406207793e+01 6.8361557865683722e+01 -7.2969514538054057e+00 -7.9863084107573656e+01 -1.8854595990318153e+01 7.0805190722833004e+01 -5.7159521345589084e+01 -4.0075255315785881e+01 5.5183907586701167e+01 -4.4065190313414291e+01 3.6346402445969360e+01 -6.0140905929794997e+00 4.1179403793615933e+01 -5.7760440696850623e+01 -5.9726791968441937e+01 1.1807386396363100e+01 4.6743163674484549e+01 1.2351877061814008e+01 7.7997777908108105e+01 2.8653301572731365e+01 -2.3960467103850320e+01 1.6429385587772998e+01 -3.1316426299194077e+01 6.4823189445223278e+01 4.3345005867697765e+01 1.9513618396368628e+01 -3.4615612232412964e+01 -2.4594790164658235e+01 7.5361702589020922e+01 4.4135413674700729e+01 2.3897630695205947e+01 4.7479094326253559e+01 6.1138341343560427e+01 3.2102961219895150e+01 3.4469222777741606e+01 -3.5772774496941260e+01 4.6979029908300859e+01 -2.3444331187496118e+01 5.1125731752778279e+01 7.0173568944527574e+01 4.7173250674816416e+01 4.0824091639753476e+01 5.0508189336633393e+01 -6.8861819202481684e+01 7.9404663890322979e+01 -5.8139953416837358e+00 4.4180292321453010e+01 -2.1826953339309874e+01 3.4395226218921692e+01 5.6706141706884239e-01 -6.9398763323854084e+01 1.4984815984491632e+01 9.8022513509738474e+00 -5.3561544182506182e+01 -4.8873075381327922e+01 3.0222066021627768e+01 -5.7736374501947488e+01 2.4753745768570226e+01 3.6205132359734336e+01 1.9659570054923918e+01 1.8393913106244938e+01 2.6497576658845674e+01 6.4770905219377426e+01 -3.5395977923365301e+01 -2.0200958000589608e+01 2.4988840904547374e+00 7.8744908272635627e+01 -5.4326661813224973e+01 5.1794905127861966e+01 -4.3029516024063113e+01 2.9241835712102215e+00 2.6753281330109232e+01 4.2399315145983977e+01 2 | -------------------------------------------------------------------------------- /CEC2019/matlab version/memory.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2019/matlab version/memory.mat -------------------------------------------------------------------------------- /CEC2019/matlab version/updateArchive.m: -------------------------------------------------------------------------------- 1 | function archive = updateArchive(archive, pop, funvalue) 2 | % Update the archive with input solutions 3 | % Step 1: Add new solution to the archive 4 | % Step 2: Remove duplicate elements 5 | % Step 3: If necessary, randomly remove some solutions to maintain the archive size 6 | % 7 | % Version: 1.1 Date: 2008/04/02 8 | % Written by Jingqiao Zhang (jingqiao@gmail.com) 9 | 10 | if archive.NP == 0, return; end 11 | 12 | if size(pop, 1) ~= size(funvalue,1), error('check it'); end 13 | 14 | % Method 2: Remove duplicate elements 15 | popAll = [archive.pop; pop ]; 16 | funvalues = [archive.funvalues; funvalue ]; 17 | [dummy IX]= unique(popAll, 'rows'); 18 | if length(IX) < size(popAll, 1) % There exist some duplicate solutions 19 | popAll = popAll(IX, :); 20 | funvalues = funvalues(IX, :); 21 | end 22 | 23 | if size(popAll, 1) <= archive.NP % add all new individuals 24 | archive.pop = popAll; 25 | archive.funvalues = funvalues; 26 | else % randomly remove some solutions 27 | rndpos = randperm(size(popAll, 1)); % equivelent to "randperm"; 28 | rndpos = rndpos(1 : archive.NP); 29 | 30 | archive.pop = popAll (rndpos, :); 31 | archive.funvalues = funvalues(rndpos, :); 32 | end 33 | -------------------------------------------------------------------------------- /CEC2020/CFP2020.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/CFP2020.pdf -------------------------------------------------------------------------------- /CEC2020/matlab version/CMOP1.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/matlab version/CMOP1.m -------------------------------------------------------------------------------- /CEC2020/matlab version/CMOP10.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/matlab version/CMOP10.m -------------------------------------------------------------------------------- /CEC2020/matlab version/CMOP2.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/matlab version/CMOP2.m -------------------------------------------------------------------------------- /CEC2020/matlab version/CMOP3.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/matlab version/CMOP3.m -------------------------------------------------------------------------------- /CEC2020/matlab version/CMOP4.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/matlab version/CMOP4.m -------------------------------------------------------------------------------- /CEC2020/matlab version/CMOP5.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/matlab version/CMOP5.m -------------------------------------------------------------------------------- /CEC2020/matlab version/CMOP6.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/matlab version/CMOP6.m -------------------------------------------------------------------------------- /CEC2020/matlab version/CMOP7.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/matlab version/CMOP7.m -------------------------------------------------------------------------------- /CEC2020/matlab version/CMOP8.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/matlab version/CMOP8.m -------------------------------------------------------------------------------- /CEC2020/matlab version/CMOP9.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tsingke/CEC-Benchmark-Functions/1b46687eb2e71bb79241c394704de8ae0c2be26a/CEC2020/matlab version/CMOP9.m -------------------------------------------------------------------------------- /CEC2020/matlab version/PF1.dat: -------------------------------------------------------------------------------- 1 | 0.00000000 1.00000000 2 | 0.00157080 0.99999895 3 | 0.00314159 0.99999655 4 | 0.00471240 0.99999392 5 | 0.00628322 0.99999217 6 | 0.39218424 0.91990617 7 | 0.48623334 0.87389036 8 | 0.54906676 0.83582276 9 | 0.59697245 0.80226617 10 | 0.63589594 0.77185513 11 | 0.66858491 0.74364837 12 | 0.69687019 0.71736699 13 | 0.71736699 0.69687019 14 | 0.74364837 0.66858491 15 | 0.77185513 0.63589594 16 | 0.80226617 0.59697245 17 | 0.83582276 0.54906676 18 | 0.87389036 0.48623334 19 | 0.91990617 0.39218424 20 | 0.99999217 0.00628322 21 | 0.99999392 0.00471240 22 | 0.99999655 0.00314159 23 | 0.99999895 0.00157080 24 | 1.00000000 0.00000000 25 | -------------------------------------------------------------------------------- /CEC2020/matlab version/PF8.dat: -------------------------------------------------------------------------------- 1 | 0.0000000e+00 1.0000000e+00 2 | 5.0000000e-02 9.5000000e-01 3 | 1.0000000e-01 9.0000000e-01 4 | 1.5000000e-01 8.5000000e-01 5 | 2.0000000e-01 8.0000000e-01 6 | 2.5000000e-01 7.5000000e-01 7 | 3.0000000e-01 7.0000000e-01 8 | 3.5000000e-01 6.5000000e-01 9 | 4.0000000e-01 6.0000000e-01 10 | 4.5000000e-01 5.5000000e-01 11 | 5.0000000e-01 5.0000000e-01 12 | 5.5000000e-01 4.5000000e-01 13 | 6.0000000e-01 4.0000000e-01 14 | 6.5000000e-01 3.5000000e-01 15 | 7.0000000e-01 3.0000000e-01 16 | 7.5000000e-01 2.5000000e-01 17 | 8.0000000e-01 2.0000000e-01 18 | 8.5000000e-01 1.5000000e-01 19 | 9.0000000e-01 1.0000000e-01 20 | 9.5000000e-01 5.0000000e-02 21 | 1.0000000e+00 0.0000000e+00 22 | -------------------------------------------------------------------------------- /CEC2020/matlab version/PF9.dat: -------------------------------------------------------------------------------- 1 | 0.0000000e+00 1.0000000e+00 2 | 5.0000000e-02 9.5000000e-01 3 | 1.0000000e-01 9.0000000e-01 4 | 1.5000000e-01 8.5000000e-01 5 | 2.0000000e-01 8.0000000e-01 6 | 2.5000000e-01 7.5000000e-01 7 | 3.0000000e-01 7.0000000e-01 8 | 3.5000000e-01 6.5000000e-01 9 | 4.0000000e-01 6.0000000e-01 10 | 8.0000000e-01 2.0000000e-01 11 | 8.5000000e-01 1.5000000e-01 12 | 9.0000000e-01 1.0000000e-01 13 | 9.5000000e-01 5.0000000e-02 14 | 1.0000000e+00 0.0000000e+00 15 | --------------------------------------------------------------------------------