%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % MIDACO solves Multi-Objective Mixed-Integer Non-Linear Problems: % % % Minimize F_1(X),... F_O(X) where X(1,...N-NI) is CONTINUOUS % and X(N-NI+1,...N) is DISCRETE % % subject to G_j(X) = 0 (j=1,...ME) equality constraints % G_j(X) >= 0 (j=ME+1,...M) inequality constraints % % and bounds XL <= X <= XU % % % The problem statement of this example is given below. You can use % this example as template to run your own problem. To do so: Replace % the objective functions 'F' (and in case the constraints 'G') given % here with your own problem and follow the below instruction steps. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function synheat_hen key = '************************************************************'; problem.func = @problem_function; problem.o = 1; % Number of objectives problem.n = 56; % Number of variables (in total) problem.ni = 12; % Number of integer variables (0 <= ni <= n) problem.m = 64; % Number of constraints (in total) problem.me = 20; % Number of equality constraints (0 <= me <= m) problem.xl = [370, 370, 370, 370, 370, 370, 410, 410, 410, 350, 350, 350 ... 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ... 0, 0, 0, 0, 10, 10, 10, 10, 10, 10, 10, 10 ... 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0 ... 0, 0, 0, 0, 0, 0, 0, 0]; problem.xu = [650, 650, 650, 590, 590, 590, 650, 650, 650, 500, 500, 500 ... 10000, 10, 10, 10, 50000, 10, 10, 50000, 10, 10, 10, 10 ... 5000, 50000, 5000, 10, 510, 110, 5010, 5010, 1010, 510, 5010, 510 ... 1010, 5010, 5010, 5010, 1010, 5010, 1010, 5010, 1, 1, 1, 1 ... 1, 1, 1, 1, 1, 1, 1, 1]; problem.x = problem.xl; % Starting point: lower bounds option.maxeval = 1000000; option.maxtime = 60*60*24; option.printeval = 500; option.save2file = 1; option.resumable = 0; option.param( 1) = 1e-06; % ACCURACY option.param( 2) = 0; % SEED option.param( 3) = 154997.3349 + 154997.3349*1e-4; % 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 ) g = zeros(1,64); f(1) = -(-(150*(2*x(13)/(1e-6 + (1e-6 + 0.5*x(29)*x(30)*(x(29) ... + x(30)))^0.33333) + 2*x(14)/(1e-6 + (1e-6 + 0.5*x(30)*x(31)*(x(30) ... + x(31)))^0.33333) + 2*x(16)/(1e-6 + (1e-6 + 0.5*x(32)*x(33)*(x(32) ... + x(33)))^0.33333) + 2*x(17)/(1e-6 + (1e-6 + 0.5*x(33)*x(34) *(x(33) ... + x(34)))^0.33333) + 2*x(19)/(1e-6 + (1e-6 + 0.5*x(35)*x(36)*(x(35) ... + x(36))) ^0.33333) + 2*x(20)/(1e-6 + (1e-6 + 0.5*x(36)*x(37)*(x(36) ... + x(37)))^0.33333) + 2 *x(22)/(1e-6 + (1e-6 + 0.5*x(38)*x(39)*(x(38) ... + x(39)))^0.33333) + 2*x(23)/(1e-6 + (1e-6 + 0.5*x(39)*x(40)*(x(39) ... + x(40)))^0.33333)) + 150*(1.2*x(27)/(1e-6 + 30*x(43)* (15 ... + 0.5*x(43)))^0.33333 + 1.2*x(28)/(1e-6 + 180*x(44)*(90 ... + 0.5*x(44)))^ 0.33333) + 150*(2*x(25)/(1e-6 + 35*x(41)*(70 ... + x(41)))^0.33333 + 2*x(26)/(1e-6 + 35*x(42)*(70 + x(42)))^0.33333) ... + 80*x(27) + 80*x(28) + 15*x(25) + 15*x(26)) - 5500*x(45) ... - 5500*x(46) - 5500*x(47) - 5500*x(48) - 5500*x(49) - 5500*x(50) ... - 5500*x(51) - 5500*x(52) - 5500*x(53) - 5500*x(54) - 5500*x(55) ... - 5500*x(56) - 29995.6190569812*x(15) - 29995.6190569812*x(18) ... - 29995.6190569812*x(21) - 29995.6190569812*x(24)) + 0.0024; g(1) = 10*x(1) - 10*x(2) - x(13) - x(16); g(2) = 10*x(2) - 10*x(3) - x(14) - x(17); g(3) = 20*x(4) - 20*x(5) - x(19) - x(22); g(4) = 20*x(5) - 20*x(6) - x(20) - x(23); g(5) = 10*x(3) - x(25) - 3700; g(6) = 20*x(6) - x(26) - 7400; g(7) = -x(13) - x(14) - x(16) - x(17) - x(25) - (-2800); g(8) = -x(19) - x(20) - x(22) - x(23) - x(26) - (-4400); g(9) = 15*x(7) - 15*x(8) - x(13) - x(19); g(10) = 15*x(8) - 15*x(9) - x(14) - x(20); g(11) = 13*x(10) - 13*x(11) - x(16) - x(22); g(12) = 13*x(11) - 13*x(12) - x(17) - x(23); g(13) = -15*x(7) - x(27) - (-9750); g(14) = -13*x(10) - x(28) - (-6500); g(15) = -x(13) - x(14) - x(19) - x(20) - x(27) - (-3600); g(16) = -x(16) - x(17) - x(22) - x(23) - x(28) - (-1950); g(17) = -x(1) - (-650); g(18) = -x(4) - (-590); g(19) = -x(9) - (-410); g(20) = -x(12) - (-350); g(21) = x(1) - x(2); g(22) = x(2) - x(3); g(23) = x(4) - x(5); g(24) = x(5) - x(6); g(25) = x(7) - x(8); g(26) = x(8) - x(9); g(27) = x(10) - x(11); g(28) = x(11) - x(12); g(29) = x(3) - 370; g(30) = x(6) - 370; g(31) = -x(7) - (-650); g(32) = -x(10) - (-500); g(33) = -(-2800*x(45) + x(13)); g(34) = -(-2800*x(46) + x(14)); g(35) = -(-1950*x(47) + x(16)); g(36) = -(-1950*x(48) + x(17)); g(37) = -(-3600*x(49) + x(19)); g(38) = -(-3600*x(50) + x(20)); g(39) = -(-1950*x(51) + x(22)); g(40) = -(-1950*x(52) + x(23)); g(41) = -(-3600*x(55) + x(27)); g(42) = -(-1950*x(56) + x(28)); g(43) = -(-2800*x(53) + x(25)); g(44) = -(-4400*x(54) + x(26)); g(45) = -(280*x(45) - x(1) + x(7) + x(29)) + 280; g(46) = -(280*x(46) - x(2) + x(8) + x(30)) + 280; g(47) = -(130*x(47) - x(1) + x(10) + x(32)) + 130; g(48) = -(130*x(48) - x(2) + x(11) + x(33)) + 130; g(49) = -(280*x(49) - x(4) + x(7) + x(35)) + 280; g(50) = -(280*x(50) - x(5) + x(8) + x(36)) + 280; g(51) = -(130*x(51) - x(4) + x(10) + x(38)) + 130; g(52) = -(130*x(52) - x(5) + x(11) + x(39)) + 130; g(53) = -(280*x(45) - x(2) + x(8) + x(30)) + 280; g(54) = -(280*x(46) - x(3) + x(9) + x(31)) + 280; g(55) = -(130*x(47) - x(2) + x(11) + x(33)) + 130; g(56) = -(130*x(48) - x(3) + x(12) + x(34)) + 130; g(57) = -(280*x(49) - x(5) + x(8) + x(36)) + 280; g(58) = -(280*x(50) - x(6) + x(9) + x(37)) + 280; g(59) = -(130*x(51) - x(5) + x(11) + x(39)) + 130; g(60) = -(130*x(52) - x(6) + x(12) + x(40)) + 130; g(61) = -(-x(3) + x(41)) - 320; g(62) = -(-x(6) + x(42)) - 320; g(63) = -(x(7) + x(43)) + 680; g(64) = -(x(10) + x(44)) + 680; end