%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % MIDACO 7 benchmark - Powell singular function with 2,000 variables % -------------------------------------------------------------------- % % The Powell singular function: the variables are coupled in groups of % four, (x1 + 10 x2)^2 + 5 (x3 - x4)^2 + (x2 - 2 x3)^4 + 10 (x1 - x4)^4. % The quartic terms make the Hessian singular at the optimum, so the % function is very flat near X = 0. The global minimum is F(X) = 0 at % X = 0, inside the box [-4, 5]. % % Reference: M.J.D. Powell, An iterative method for finding stationary % values of a function of several variables, Comput. J. 5 (1962) % 147-151. https://www.sfu.ca/~ssurjano/powell.html % % Variables: 2,000 continuous variables in [-4, 5] % Constraints: none % Optimum: F(X) = 0 % % MIDACO setting: all parameters by default, start at % the lower bounds, the run stops when F(X) reaches 0.0001 (FSTOP). % % This benchmark needs a full MIDACO license: the limited version % solves problems with up to 8 variables and the default parameters. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function powell2000 key = '************************************************************'; problem.func = @problem_function; problem.o = 1; % Number of objectives problem.n = 2000; % Number of variables (in total) problem.ni = 0; % Number of integer variables (0 <= ni <= n) problem.m = 0; % Number of constraints (in total) problem.me = 0; % Number of equality constraints (0 <= me <= m) problem.xl = -4 * ones(1,2000); problem.xu = 5 * ones(1,2000); problem.x = problem.xl; % Starting point: lower bounds option.maxeval = 10000000; option.maxtime = 60*60*24; option.printeval = 1000; option.save2file = 1; option.resumable = 0; option.param( 1) = 0; % ACCURACY option.param( 2) = 2; % SEED option.param( 3) = 0.0001; % FSTOP option.param( 4) = 0; % ALGOSTOP option.param( 5) = 0; % EVALSTOP option.param( 6) = 0; % FOCUS option.param( 7) = 0; % ANTS option.param( 8) = 0; % KERNEL option.param( 9) = 0; % ORACLE option.param(10) = 0; % PARETOMAX option.param(11) = 0; % EPSILON option.param(12) = 0; % BALANCE option.param(13) = 0; % CHARACTER option.param(14) = 0; % SURROGATE option.param(15) = 0; % PMISQP option.parallel = 0; % Serial: 0 or 1, Parallel: 2,3,4,5,6,7,8... option.paradigm = 0; % Parallel mode: 0 = parfor, 1 = vectorized [F,G] = func(X) [ solution ] = midaco( problem, option, key ); end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [ f, g ] = problem_function( x ) a = x(1:4:end); b = x(2:4:end); c = x(3:4:end); d = x(4:4:end); f(1) = sum( (a + 10*b).^2 + 5*(c - d).^2 + (b - 2*c).^4 + 10*(a - d).^4 ); g = []; end