%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % MIDACO 7 benchmark - Mixed-integer Griewank function with 10,000 variables % ---------------------------------------------------------------------------- % % The Griewank function adds a product of cosines to a wide parabola: % a regular grid of local minima on a large scale. The box [-300, 600] % is not symmetric, so the optimum is not its centre. The global % minimum is F(X) = 0 at X = 0. Here the second half of the % variables (5,000) is integer. % % Reference: A.O. Griewank, Generalized descent for global optimization, % J. Optim. Theory Appl. 34 (1981) 11-39. % https://en.wikipedia.org/wiki/Griewank_function % % Variables: 5,000 continuous and 5,000 integer (the last ones) % Constraints: none % Best known: F(X) = 0 (global minimum) % % MIDACO setting: PARAM(15) = 2 (PMISQP power mode), start at the % lower bounds, the run stops when F(X) < 1e-6 (FSTOP). % % This benchmark needs a full MIDACO license: the limited version % solves problems with up to 8 variables and the default parameters. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function griewank10k_minlp key = '************************************************************'; problem.func = @problem_function; problem.o = 1; % Number of objectives problem.n = 10000; % Number of variables (in total) problem.ni = 5000; % 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 = -300 * ones(1,10000); problem.xu = 600 * ones(1,10000); problem.x = problem.xl; % Starting point: lower bounds option.maxeval = 3000000; option.maxtime = 60*60*24; option.printeval = 5000; option.save2file = 1; option.resumable = 0; option.param( 1) = 0; % ACCURACY option.param( 2) = 0; % SEED option.param( 3) = 0.000001; % 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) = 2; % 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 ) f(1) = sum( x.^2 )/4000 - prod( cos( x./sqrt(1:10000) ) ) + 1; g = []; end