%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % 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 chakra_growth key = '************************************************************'; problem.func = @problem_function; problem.o = 1; % Number of objectives problem.n = 62; % Number of variables (in total) problem.ni = 0; % Number of integer variables (0 <= ni <= n) problem.m = 41; % Number of constraints (in total) problem.me = 41; % Number of equality constraints (0 <= me <= m) problem.xl = [1 1 1 1 1 1 1 1 1 1 1 1 ... 1 1 1 1 1 1 1 1 4.275 1 1 1 ... 1 1 1 1 1 1 1 1 1 1 1 1 ... 1 1 1 1 13.7105041437099 1 1 1 1 1 1 1 ... 1 1 1 1 1 1 1 1 1 1 1 1 ... 1 1]; problem.xu = [20 20 50 50 50 50 50 50 50 50 100 100 ... 100 100 100 200 200 200 200 200 4.275 50 100 100 ... 100 100 100 100 100 100 200 200 200 200 200 200 ... 200 200 200 200 13.7105041437099 200 200 200 500 500 500 500 ... 500 500 500 500 500 500 500 1000 1000 1000 1000 1000 ... 1000 500]; problem.x = problem.xl; % Starting point: lower bounds option.maxeval = 1000000; option.maxtime = 60*60*24; option.printeval = 100; option.save2file = 1; option.resumable = 0; option.param( 1) = 1e-4; % ACCURACY option.param( 2) = 0; % SEED option.param( 3) = -179.1335579 + 179.1335579*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) = 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) = -(10*x(1)^(0.1)+9.70873786407767*x(2)^(0.1) ... +9.42595909133755*x(3)^(0.1)+9.1514165935316*x(4)^(0.1) ... +8.88487047915689*x(5)^(0.1)+8.62608784384164*x(6)^(0.1) ... +8.37484256683654*x(7)^(0.1)+8.13091511343354*x(8)^(0.1) ... +7.89409234313936*x(9)^(0.1)+7.66416732343627*x(10)^(0.1) ... +7.44093914896725*x(11)^(0.1)+7.22421276598762*x(12)^(0.1) ... +7.01379880192973*x(13)^(0.1)+6.80951339993178*x(14)^(0.1) ... +6.61117805818619*x(15)^(0.1)+6.41861947396717*x(16)^(0.1) ... +6.23166939220114*x(17)^(0.1)+6.05016445844771*x(18)^(0.1) ... +5.87394607616282*x(19)^(0.1)+5.70286026811925*x(20)^(0.1))/1; g(1) = x(1)-x(21)-0.95*x(42)+x(43); g(2) = x(2)-x(22)-0.95*x(43)+x(44); g(3) = x(3)-x(23)-0.95*x(44)+x(45); g(4) = x(4)-x(24)-0.95*x(45)+x(46); g(5) = x(5)-x(25)-0.95*x(46)+x(47); g(6) = x(6)-x(26)-0.95*x(47)+x(48); g(7) = x(7)-x(27)-0.95*x(48)+x(49); g(8) = x(8)-x(28)-0.95*x(49)+x(50); g(9) = x(9)-x(29)-0.95*x(50)+x(51); g(10) = x(10)-x(30)-0.95*x(51)+x(52); g(11) = x(11)-x(31)-0.95*x(52)+x(53); g(12) = x(12)-x(32)-0.95*x(53)+x(54); g(13) = x(13)-x(33)-0.95*x(54)+x(55); g(14) = x(14)-x(34)-0.95*x(55)+x(56); g(15) = x(15)-x(35)-0.95*x(56)+x(57); g(16) = x(16)-x(36)-0.95*x(57)+x(58); g(17) = x(17)-x(37)-0.95*x(58)+x(59); g(18) = x(18)-x(38)-0.95*x(59)+x(60); g(19) = x(19)-x(39)-0.95*x(60)+x(61); g(20) = x(20)-x(40)-0.95*x(61)+x(62); g(21) = -0.560877056310648*x(42)^(0.75)+x(21); g(22) = -0.569991308475696*x(43)^(0.75)+x(22); g(23) = -0.579253667238426*x(44)^(0.75)+x(23); g(24) = -0.58866653933105*x(45)^(0.75)+x(24); g(25) = -0.59823237059518*x(46)^(0.75)+x(25); g(26) = -0.607953646617352*x(47)^(0.75)+x(26); g(27) = -0.617832893374884*x(48)^(0.75)+x(27); g(28) = -0.627872677892226*x(49)^(0.75)+x(28); g(29) = -0.638075608907974*x(50)^(0.75)+x(29); g(30) = -0.648444337552729*x(51)^(0.75)+x(30); g(31) = -0.658981558037961*x(52)^(0.75)+x(31); g(32) = -0.669690008356078*x(53)^(0.75)+x(32); g(33) = -0.680572470991864*x(54)^(0.75)+x(33); g(34) = -0.691631773645482*x(55)^(0.75)+x(34); g(35) = -0.702870789967221*x(56)^(0.75)+x(35); g(36) = -0.714292440304189*x(57)^(0.75)+x(36); g(37) = -0.725899692459132*x(58)^(0.75)+x(37); g(38) = -0.737695562461593*x(59)^(0.75)+x(38); g(39) = -0.749683115351594*x(60)^(0.75)+x(39); g(40) = -0.761865465976057*x(61)^(0.75)+x(40); g(41) = -0.774245779798168*x(62)^(0.75)+x(41); end