######################################################################## # # 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. # ######################################################################## import math import midaco def problem_function(x): f = [0.0]*1 g = [0.0]*91 f[0] = 50*x[69] - x[70] g[0] = (-48.9*math.exp((-3925.690806 + 562.2*(1.33213*(1 - 0.00177872643187478*x[53])** 1.5 + 0.012420366417645*x[53] - 2.62863*(1 - 0.00177872643187478*x[53])**3 - 3.33399*(1 - 0.00177872643187478*x[53])**6))/x[53])*x[0] + 1.2*x[18]) g[1] = (-41*math.exp((-4311.896226 + 591.8*(1.38091*(1 - 0.00168976005407232*x[53])**1.5 + 0.0123117100371747*x[53] - 2.83433*(1 - 0.00168976005407232*x[53])**3 - 2.79168*(1 - 0.00168976005407232*x[53])**6))/x[53])*x[1] + 1.2*x[19]) g[2] = (-48.9*math.exp((-3925.690806 + 562.2*(1.33213*(1 - 0.00177872643187478*x[54])** 1.5 + 0.012420366417645*x[54] - 2.62863*(1 - 0.00177872643187478*x[54])**3 - 3.33399*(1 - 0.00177872643187478*x[54])**6))/x[54])*x[2] + 1.12*x[20]) g[3] = (-41*math.exp((-4311.896226 + 591.8*(1.38091*(1 - 0.00168976005407232*x[54])**1.5 + 0.0123117100371747*x[54] - 2.83433*(1 - 0.00168976005407232*x[54])**3 - 2.79168*(1 - 0.00168976005407232*x[54])**6))/x[54])*x[3] + 1.12*x[21]) g[4] = (-48.9*math.exp((-3925.690806 + 562.2*(1.33213*(1 - 0.00177872643187478*x[55])** 1.5 + 0.012420366417645*x[55] - 2.62863*(1 - 0.00177872643187478*x[55])**3 - 3.33399*(1 - 0.00177872643187478*x[55])**6))/x[55])*x[4] + 1.11333333333333*x[22]) g[5] = (-41*math.exp((-4311.896226 + 591.8*(1.38091*(1 - 0.00168976005407232*x[55])**1.5 + 0.0123117100371747*x[55] - 2.83433*(1 - 0.00168976005407232*x[55])**3 - 2.79168*(1 - 0.00168976005407232*x[55])**6))/x[55])*x[5] + 1.11333333333333*x[23]) g[6] = (-48.9*math.exp((-3925.690806 + 562.2*(1.33213*(1 - 0.00177872643187478*x[56])** 1.5 + 0.012420366417645*x[56] - 2.62863*(1 - 0.00177872643187478*x[56])**3 - 3.33399*(1 - 0.00177872643187478*x[56])**6))/x[56])*x[6] + 1.10666666666667*x[24]) g[7] = (-41*math.exp((-4311.896226 + 591.8*(1.38091*(1 - 0.00168976005407232*x[56])**1.5 + 0.0123117100371747*x[56] - 2.83433*(1 - 0.00168976005407232*x[56])**3 - 2.79168*(1 - 0.00168976005407232*x[56])**6))/x[56])*x[7] + 1.10666666666667*x[25]) g[8] = (-48.9*math.exp((-3925.690806 + 562.2*(1.33213*(1 - 0.00177872643187478*x[57])** 1.5 + 0.012420366417645*x[57] - 2.62863*(1 - 0.00177872643187478*x[57])**3 - 3.33399*(1 - 0.00177872643187478*x[57])**6))/x[57])*x[8] + 1.1*x[26]) g[9] = (-41*math.exp((-4311.896226 + 591.8*(1.38091*(1 - 0.00168976005407232*x[57])**1.5 + 0.0123117100371747*x[57] - 2.83433*(1 - 0.00168976005407232*x[57])**3 - 2.79168*(1 - 0.00168976005407232*x[57])**6))/x[57])*x[9] + 1.1*x[27]) g[10] = (-48.9*math.exp((-3925.690806 + 562.2*(1.33213*(1 - 0.00177872643187478*x[58])** 1.5 + 0.012420366417645*x[58] - 2.62863*(1 - 0.00177872643187478*x[58])**3 - 3.33399*(1 - 0.00177872643187478*x[58])**6))/x[58])*x[10] + 1.09333333333333*x[28]) g[11] = (-41*math.exp((-4311.896226 + 591.8*(1.38091*(1 - 0.00168976005407232*x[58])**1.5 + 0.0123117100371747*x[58] - 2.83433*(1 - 0.00168976005407232*x[58])**3 - 2.79168*(1 - 0.00168976005407232*x[58])**6))/x[58])*x[11] + 1.09333333333333*x[29]) g[12] = (-48.9*math.exp((-3925.690806 + 562.2*(1.33213*(1 - 0.00177872643187478*x[59])** 1.5 + 0.012420366417645*x[59] - 2.62863*(1 - 0.00177872643187478*x[59])**3 - 3.33399*(1 - 0.00177872643187478*x[59])**6))/x[59])*x[12] + 1.08666666666667*x[30]) g[13] = (-41*math.exp((-4311.896226 + 591.8*(1.38091*(1 - 0.00168976005407232*x[59])**1.5 + 0.0123117100371747*x[59] - 2.83433*(1 - 0.00168976005407232*x[59])**3 - 2.79168*(1 - 0.00168976005407232*x[59])**6))/x[59])*x[13] + 1.08666666666667*x[31]) g[14] = (-48.9*math.exp((-3925.690806 + 562.2*(1.33213*(1 - 0.00177872643187478*x[60])** 1.5 + 0.012420366417645*x[60] - 2.62863*(1 - 0.00177872643187478*x[60])**3 - 3.33399*(1 - 0.00177872643187478*x[60])**6))/x[60])*x[14] + 1.08*x[32]) g[15] = (-41*math.exp((-4311.896226 + 591.8*(1.38091*(1 - 0.00168976005407232*x[60])**1.5 + 0.0123117100371747*x[60] - 2.83433*(1 - 0.00168976005407232*x[60])**3 - 2.79168*(1 - 0.00168976005407232*x[60])**6))/x[60])*x[15] + 1.08*x[33]) g[16] = (-48.9*math.exp((-3925.690806 + 562.2*(1.33213*(1 - 0.00177872643187478*x[61])** 1.5 + 0.012420366417645*x[61] - 2.62863*(1 - 0.00177872643187478*x[61])**3 - 3.33399*(1 - 0.00177872643187478*x[61])**6))/x[61])*x[16] + 1.05*x[34]) g[17] = (-41*math.exp((-4311.896226 + 591.8*(1.38091*(1 - 0.00168976005407232*x[61])**1.5 + 0.0123117100371747*x[61] - 2.83433*(1 - 0.00168976005407232*x[61])**3 - 2.79168*(1 - 0.00168976005407232*x[61])**6))/x[61])*x[17] + 1.05*x[35]) g[18] = -x[0] - x[1] + x[18] + x[19] g[19] = -x[2] - x[3] + x[20] + x[21] g[20] = -x[4] - x[5] + x[22] + x[23] g[21] = -x[6] - x[7] + x[24] + x[25] g[22] = -x[8] - x[9] + x[26] + x[27] g[23] = -x[10] - x[11] + x[28] + x[29] g[24] = -x[12] - x[13] + x[30] + x[31] g[25] = -x[14] - x[15] + x[32] + x[33] g[26] = -x[16] - x[17] + x[34] + x[35] g[27] = x[37]*x[2] + x[46]*x[20] - x[38]*x[4] - x[45]*x[18] - 0.7*x[62] g[28] = x[37]*x[3] + x[46]*x[21] - x[38]*x[5] - x[45]*x[19] - 0.3*x[62] g[29] = x[38]*x[4] + x[47]*x[22] - x[39]*x[6] - x[46]*x[20] - 0.7*x[63] g[30] = x[38]*x[5] + x[47]*x[23] - x[39]*x[7] - x[46]*x[21] - 0.3*x[63] g[31] = x[39]*x[6] + x[48]*x[24] - x[40]*x[8] - x[47]*x[22] - 0.7*x[64] g[32] = x[39]*x[7] + x[48]*x[25] - x[40]*x[9] - x[47]*x[23] - 0.3*x[64] g[33] = x[40]*x[8] + x[49]*x[26] - x[41]*x[10] - x[48]*x[24] - 0.7*x[65] g[34] = x[40]*x[9] + x[49]*x[27] - x[41]*x[11] - x[48]*x[25] - 0.3*x[65] g[35] = (x[41]*x[10] + x[50]*x[28] - x[42]*x[12] - x[49]*x[26] - 0.7*x[66]) g[36] = (x[41]*x[11] + x[50]*x[29] - x[42]*x[13] - x[49]*x[27] - 0.3*x[66]) g[37] = (x[42]*x[12] + x[51]*x[30] - x[43]*x[14] - x[50]*x[28] - 0.7*x[67]) g[38] = (x[42]*x[13] + x[51]*x[31] - x[43]*x[15] - x[50]*x[29] - 0.3*x[67]) g[39] = (x[43]*x[14] + x[52]*x[32] - x[44]*x[16] - x[51]*x[30] - 0.7*x[68]) g[40] = (x[43]*x[15] + x[52]*x[33] - x[44]*x[17] - x[51]*x[31] - 0.3*x[68]) g[41] = x[36]*x[0] + x[45]*x[18] - x[37]*x[2] g[42] = x[36]*x[1] + x[45]*x[19] - x[37]*x[3] g[43] = (x[44] + x[70])*x[16] - x[52]*x[32] g[44] = (x[44] + x[70])*x[17] - x[52]*x[33] g[45] = x[37] - x[38] - x[45] + x[46] - x[62] g[46] = x[38] - x[39] - x[46] + x[47] - x[63] g[47] = x[39] - x[40] - x[47] + x[48] - x[64] g[48] = x[40] - x[41] - x[48] + x[49] - x[65] g[49] = x[41] - x[42] - x[49] + x[50] - x[66] g[50] = x[42] - x[43] - x[50] + x[51] - x[67] g[51] = x[43] - x[44] - x[51] + x[52] - x[68] g[52] = x[36] - x[37] + x[45] g[53] = x[44] - x[52] + x[70] g[54] = -x[69]*x[70] + x[44] g[55] = x[36] - x[71] g[56] = (-3.13659116407937e-5*((-46242.079590558 + (-33.92 + (0.23695 + x[53]*(-0.000100566666666667 + 1.7825e-8*x[53]))*x[53])*x[53] + 4674.1308*(1.33213*(1 - 0.00177872643187478*x[53])**1.5 + 0.012420366417645*x[53] - 2.62863*(1 - 0.00177872643187478*x[53])**3 - 3.33399*(1 - 0.00177872643187478*x[53])**6) + 8.314*(-6.98273 + 1.998195*(1 - 0.00177872643187478*x[53])**0.5 - 7.88589*(1 - 0.00177872643187478*x[53])**2 - 20.00394*(1 - 0.00177872643187478*x[53])**5)*x[53])*x[0] + (-55570.3234397208 + (-24.35 + (0.25625 + x[53]*(-9.21666666666667e-5 + 1.22775e-8*x[53]))*x[53])*x[53] + 4920.2252*(1.38091*(1 - 0.00168976005407232*x[53])**1.5 + 0.0123117100371747*x[53] - 2.83433*(1 - 0.00168976005407232*x[53])**3 - 2.79168*(1 - 0.00168976005407232*x[53])**6) + 8.314*(-7.28607 + 2.071365*(1 - 0.00168976005407232*x[53])**0.5 - 8.50299*(1 - 0.00168976005407232* x[53])**2 - 16.75008*(1 - 0.00168976005407232*x[53])**5)*x[53])*x[1]) + x[72]) g[57] = (-3.13659116407937e-5*((-46242.079590558 + (-33.92 + (0.23695 + x[54]*(-0.000100566666666667 + 1.7825e-8*x[54]))*x[54])*x[54] + 4674.1308*(1.33213*(1 - 0.00177872643187478*x[54])**1.5 + 0.012420366417645*x[54] - 2.62863*(1 - 0.00177872643187478*x[54])**3 - 3.33399*(1 - 0.00177872643187478*x[54])**6) + 8.314*(-6.98273 + 1.998195*(1 - 0.00177872643187478*x[54])**0.5 - 7.88589*(1 - 0.00177872643187478*x[54])**2 - 20.00394*(1 - 0.00177872643187478*x[54])**5)*x[54])*x[2] + (-55570.3234397208 + (-24.35 + (0.25625 + x[54]*(-9.21666666666667e-5 + 1.22775e-8*x[54]))*x[54])*x[54] + 4920.2252*(1.38091*(1 - 0.00168976005407232*x[54])**1.5 + 0.0123117100371747*x[54] - 2.83433*(1 - 0.00168976005407232*x[54])**3 - 2.79168*(1 - 0.00168976005407232*x[54])**6) + 8.314*(-7.28607 + 2.071365*(1 - 0.00168976005407232*x[54])**0.5 - 8.50299*(1 - 0.00168976005407232* x[54])**2 - 16.75008*(1 - 0.00168976005407232*x[54])**5)*x[54])*x[3]) + x[73]) g[58] = (-3.13659116407937e-5*((-46242.079590558 + (-33.92 + (0.23695 + x[55]*(-0.000100566666666667 + 1.7825e-8*x[55]))*x[55])*x[55] + 4674.1308*(1.33213*(1 - 0.00177872643187478*x[55])**1.5 + 0.012420366417645*x[55] - 2.62863*(1 - 0.00177872643187478*x[55])**3 - 3.33399*(1 - 0.00177872643187478*x[55])**6) + 8.314*(-6.98273 + 1.998195*(1 - 0.00177872643187478*x[55])**0.5 - 7.88589*(1 - 0.00177872643187478*x[55])**2 - 20.00394*(1 - 0.00177872643187478*x[55])**5)*x[55])*x[4] + (-55570.3234397208 + (-24.35 + (0.25625 + x[55]*(-9.21666666666667e-5 + 1.22775e-8*x[55]))*x[55])*x[55] + 4920.2252*(1.38091*(1 - 0.00168976005407232*x[55])**1.5 + 0.0123117100371747*x[55] - 2.83433*(1 - 0.00168976005407232*x[55])**3 - 2.79168*(1 - 0.00168976005407232*x[55])**6) + 8.314*(-7.28607 + 2.071365*(1 - 0.00168976005407232*x[55])**0.5 - 8.50299*(1 - 0.00168976005407232* x[55])**2 - 16.75008*(1 - 0.00168976005407232*x[55])**5)*x[55])*x[5]) + x[74]) g[59] = (-3.13659116407937e-5*((-46242.079590558 + (-33.92 + (0.23695 + x[56]*(-0.000100566666666667 + 1.7825e-8*x[56]))*x[56])*x[56] + 4674.1308*(1.33213*(1 - 0.00177872643187478*x[56])**1.5 + 0.012420366417645*x[56] - 2.62863*(1 - 0.00177872643187478*x[56])**3 - 3.33399*(1 - 0.00177872643187478*x[56])**6) + 8.314*(-6.98273 + 1.998195*(1 - 0.00177872643187478*x[56])**0.5 - 7.88589*(1 - 0.00177872643187478*x[56])**2 - 20.00394*(1 - 0.00177872643187478*x[56])**5)*x[56])*x[6] + (-55570.3234397208 + (-24.35 + (0.25625 + x[56]*(-9.21666666666667e-5 + 1.22775e-8*x[56]))*x[56])*x[56] + 4920.2252*(1.38091*(1 - 0.00168976005407232*x[56])**1.5 + 0.0123117100371747*x[56] - 2.83433*(1 - 0.00168976005407232*x[56])**3 - 2.79168*(1 - 0.00168976005407232*x[56])**6) + 8.314*(-7.28607 + 2.071365*(1 - 0.00168976005407232*x[56])**0.5 - 8.50299*(1 - 0.00168976005407232* x[56])**2 - 16.75008*(1 - 0.00168976005407232*x[56])**5)*x[56])*x[7]) + x[75]) g[60] = (-3.13659116407937e-5*((-46242.079590558 + (-33.92 + (0.23695 + x[57]*(-0.000100566666666667 + 1.7825e-8*x[57]))*x[57])*x[57] + 4674.1308*(1.33213*(1 - 0.00177872643187478*x[57])**1.5 + 0.012420366417645*x[57] - 2.62863*(1 - 0.00177872643187478*x[57])**3 - 3.33399*(1 - 0.00177872643187478*x[57])**6) + 8.314*(-6.98273 + 1.998195*(1 - 0.00177872643187478*x[57])**0.5 - 7.88589*(1 - 0.00177872643187478*x[57])**2 - 20.00394*(1 - 0.00177872643187478*x[57])**5)*x[57])*x[8] + (-55570.3234397208 + (-24.35 + (0.25625 + x[57]*(-9.21666666666667e-5 + 1.22775e-8*x[57]))*x[57])*x[57] + 4920.2252*(1.38091*(1 - 0.00168976005407232*x[57])**1.5 + 0.0123117100371747*x[57] - 2.83433*(1 - 0.00168976005407232*x[57])**3 - 2.79168*(1 - 0.00168976005407232*x[57])**6) + 8.314*(-7.28607 + 2.071365*(1 - 0.00168976005407232*x[57])**0.5 - 8.50299*(1 - 0.00168976005407232* x[57])**2 - 16.75008*(1 - 0.00168976005407232*x[57])**5)*x[57])*x[9]) + x[76]) g[61] = (-3.13659116407937e-5*((-46242.079590558 + (-33.92 + (0.23695 + x[58]*(-0.000100566666666667 + 1.7825e-8*x[58]))*x[58])*x[58] + 4674.1308*(1.33213*(1 - 0.00177872643187478*x[58])**1.5 + 0.012420366417645*x[58] - 2.62863*(1 - 0.00177872643187478*x[58])**3 - 3.33399*(1 - 0.00177872643187478*x[58])**6) + 8.314*(-6.98273 + 1.998195*(1 - 0.00177872643187478*x[58])**0.5 - 7.88589*(1 - 0.00177872643187478*x[58])**2 - 20.00394*(1 - 0.00177872643187478*x[58])**5)*x[58])*x[10] + (-55570.3234397208 + (-24.35 + (0.25625 + x[58]*(-9.21666666666667e-5 + 1.22775e-8*x[58]))*x[58])*x[58] + 4920.2252*(1.38091*(1 - 0.00168976005407232*x[58])**1.5 + 0.0123117100371747*x[58] - 2.83433*(1 - 0.00168976005407232*x[58])**3 - 2.79168*(1 - 0.00168976005407232*x[58])**6) + 8.314*(-7.28607 + 2.071365*(1 - 0.00168976005407232*x[58])**0.5 - 8.50299*(1 - 0.00168976005407232* x[58])**2 - 16.75008*(1 - 0.00168976005407232*x[58])**5)*x[58])*x[11]) + x[77]) g[62] = (-3.13659116407937e-5*((-46242.079590558 + (-33.92 + (0.23695 + x[59]*(-0.000100566666666667 + 1.7825e-8*x[59]))*x[59])*x[59] + 4674.1308*(1.33213*(1 - 0.00177872643187478*x[59])**1.5 + 0.012420366417645*x[59] - 2.62863*(1 - 0.00177872643187478*x[59])**3 - 3.33399*(1 - 0.00177872643187478*x[59])**6) + 8.314*(-6.98273 + 1.998195*(1 - 0.00177872643187478*x[59])**0.5 - 7.88589*(1 - 0.00177872643187478*x[59])**2 - 20.00394*(1 - 0.00177872643187478*x[59])**5)*x[59])*x[12] + (-55570.3234397208 + (-24.35 + (0.25625 + x[59]*(-9.21666666666667e-5 + 1.22775e-8*x[59]))*x[59])*x[59] + 4920.2252*(1.38091*(1 - 0.00168976005407232*x[59])**1.5 + 0.0123117100371747*x[59] - 2.83433*(1 - 0.00168976005407232*x[59])**3 - 2.79168*(1 - 0.00168976005407232*x[59])**6) + 8.314*(-7.28607 + 2.071365*(1 - 0.00168976005407232*x[59])**0.5 - 8.50299*(1 - 0.00168976005407232* x[59])**2 - 16.75008*(1 - 0.00168976005407232*x[59])**5)*x[59])*x[13]) + x[78]) g[63] = (-3.13659116407937e-5*((-46242.079590558 + (-33.92 + (0.23695 + x[60]*(-0.000100566666666667 + 1.7825e-8*x[60]))*x[60])*x[60] + 4674.1308*(1.33213*(1 - 0.00177872643187478*x[60])**1.5 + 0.012420366417645*x[60] - 2.62863*(1 - 0.00177872643187478*x[60])**3 - 3.33399*(1 - 0.00177872643187478*x[60])**6) + 8.314*(-6.98273 + 1.998195*(1 - 0.00177872643187478*x[60])**0.5 - 7.88589*(1 - 0.00177872643187478*x[60])**2 - 20.00394*(1 - 0.00177872643187478*x[60])**5)*x[60])*x[14] + (-55570.3234397208 + (-24.35 + (0.25625 + x[60]*(-9.21666666666667e-5 + 1.22775e-8*x[60]))*x[60])*x[60] + 4920.2252*(1.38091*(1 - 0.00168976005407232*x[60])**1.5 + 0.0123117100371747*x[60] - 2.83433*(1 - 0.00168976005407232*x[60])**3 - 2.79168*(1 - 0.00168976005407232*x[60])**6) + 8.314*(-7.28607 + 2.071365*(1 - 0.00168976005407232*x[60])**0.5 - 8.50299*(1 - 0.00168976005407232* x[60])**2 - 16.75008*(1 - 0.00168976005407232*x[60])**5)*x[60])*x[15]) + x[79]) g[64] = (-3.13659116407937e-5*((-46242.079590558 + (-33.92 + (0.23695 + x[61]*(-0.000100566666666667 + 1.7825e-8*x[61]))*x[61])*x[61] + 4674.1308*(1.33213*(1 - 0.00177872643187478*x[61])**1.5 + 0.012420366417645*x[61] - 2.62863*(1 - 0.00177872643187478*x[61])**3 - 3.33399*(1 - 0.00177872643187478*x[61])**6) + 8.314*(-6.98273 + 1.998195*(1 - 0.00177872643187478*x[61])**0.5 - 7.88589*(1 - 0.00177872643187478*x[61])**2 - 20.00394*(1 - 0.00177872643187478*x[61])**5)*x[61])*x[16] + (-55570.3234397208 + (-24.35 + (0.25625 + x[61]*(-9.21666666666667e-5 + 1.22775e-8*x[61]))*x[61])*x[61] + 4920.2252*(1.38091*(1 - 0.00168976005407232*x[61])**1.5 + 0.0123117100371747*x[61] - 2.83433*(1 - 0.00168976005407232*x[61])**3 - 2.79168*(1 - 0.00168976005407232*x[61])**6) + 8.314*(-7.28607 + 2.071365*(1 - 0.00168976005407232*x[61])**0.5 - 8.50299*(1 - 0.00168976005407232* x[61])**2 - 16.75008*(1 - 0.00168976005407232*x[61])**5)*x[61])*x[17]) + x[80]) g[65] = (-3.13659116407937e-5*((-13603.886229474 + (-33.92 + (0.23695 + x[53]*(-0.000100566666666667 + 1.7825e-8*x[53]))*x[53])*x[53])*x[18] + (-19721.2182167568 + (-24.35 + (0.25625 + x[53]*(-9.21666666666667e-5 + 1.22775e-8*x[53]))*x[53]) *x[53])*x[19]) + x[81]) g[66] = (-3.13659116407937e-5*((-13603.886229474 + (-33.92 + (0.23695 + x[54]*(-0.000100566666666667 + 1.7825e-8*x[54]))*x[54])*x[54])*x[20] + (-19721.2182167568 + (-24.35 + (0.25625 + x[54]*(-9.21666666666667e-5 + 1.22775e-8*x[54]))*x[54]) *x[54])*x[21]) + x[82]) g[67] = (-3.13659116407937e-5*((-13603.886229474 + (-33.92 + (0.23695 + x[55]*(-0.000100566666666667 + 1.7825e-8*x[55]))*x[55])*x[55])*x[22] + (-19721.2182167568 + (-24.35 + (0.25625 + x[55]*(-9.21666666666667e-5 + 1.22775e-8*x[55]))*x[55]) *x[55])*x[23]) + x[83]) g[68] = (-3.13659116407937e-5*((-13603.886229474 + (-33.92 + (0.23695 + x[56]*(-0.000100566666666667 + 1.7825e-8*x[56]))*x[56])*x[56])*x[24] + (-19721.2182167568 + (-24.35 + (0.25625 + x[56]*(-9.21666666666667e-5 + 1.22775e-8*x[56]))*x[56]) *x[56])*x[25]) + x[84]) g[69] = (-3.13659116407937e-5*((-13603.886229474 + (-33.92 + (0.23695 + x[57]*(-0.000100566666666667 + 1.7825e-8*x[57]))*x[57])*x[57])*x[26] + (-19721.2182167568 + (-24.35 + (0.25625 + x[57]*(-9.21666666666667e-5 + 1.22775e-8*x[57]))*x[57]) *x[57])*x[27]) + x[85]) g[70] = (-3.13659116407937e-5*((-13603.886229474 + (-33.92 + (0.23695 + x[58]*(-0.000100566666666667 + 1.7825e-8*x[58]))*x[58])*x[58])*x[28] + (-19721.2182167568 + (-24.35 + (0.25625 + x[58]*(-9.21666666666667e-5 + 1.22775e-8*x[58]))*x[58]) *x[58])*x[29]) + x[86]) g[71] = (-3.13659116407937e-5*((-13603.886229474 + (-33.92 + (0.23695 + x[59]*(-0.000100566666666667 + 1.7825e-8*x[59]))*x[59])*x[59])*x[30] + (-19721.2182167568 + (-24.35 + (0.25625 + x[59]*(-9.21666666666667e-5 + 1.22775e-8*x[59]))*x[59]) *x[59])*x[31]) + x[87]) g[72] = (-3.13659116407937e-5*((-13603.886229474 + (-33.92 + (0.23695 + x[60]*(-0.000100566666666667 + 1.7825e-8*x[60]))*x[60])*x[60])*x[32] + (-19721.2182167568 + (-24.35 + (0.25625 + x[60]*(-9.21666666666667e-5 + 1.22775e-8*x[60]))*x[60]) *x[60])*x[33]) + x[88]) g[73] = (-3.13659116407937e-5*((-13603.886229474 + (-33.92 + (0.23695 + x[61]*(-0.000100566666666667 + 1.7825e-8*x[61]))*x[61])*x[61])*x[34] + (-19721.2182167568 + (-24.35 + (0.25625 + x[61]*(-9.21666666666667e-5 + 1.22775e-8*x[61]))*x[61]) *x[61])*x[35]) + x[89]) g[74] = (x[37]*x[73] + x[46]*x[82] - x[38]*x[74] - x[45]*x[81] + 0.999444137682208*x[62]) g[75] = (x[38]*x[74] + x[47]*x[83] - x[39]*x[75] - x[46]*x[82] + 0.999444137682208*x[63]) g[76] = (x[39]*x[75] + x[48]*x[84] - x[40]*x[76] - x[47]*x[83] + 0.999444137682208*x[64]) g[77] = (x[40]*x[76] + x[49]*x[85] - x[41]*x[77] - x[48]*x[84] + 0.999444137682208*x[65]) g[78] = (x[41]*x[77] + x[50]*x[86] - x[42]*x[78] - x[49]*x[85] + 0.999444137682208*x[66]) g[79] = (x[42]*x[78] + x[51]*x[87] - x[43]*x[79] - x[50]*x[86] + 0.999444137682208*x[67]) g[80] = (x[43]*x[79] + x[52]*x[88] - x[44]*x[80] - x[51]*x[87] + 0.999444137682208*x[68]) g[81] = x[62] + x[63] + x[64] + x[65] + x[66] + x[67] + x[68] - 100 g[82] = x[90] + x[91] + x[92] + x[93] + x[94] + x[95] + x[96] - 1 g[83] = x[16] - 0.95 g[84] = -(x[62] - 100*x[90]) g[85] = -(x[63] - 100*x[91]) g[86] = -(x[64] - 100*x[92]) g[87] = -(x[65] - 100*x[93]) g[88] = -(x[66] - 100*x[94]) g[89] = -(x[67] - 100*x[95]) g[90] = -(x[68] - 100*x[96]) return f, g ######################################################################## key = b'************************************************************' problem = {} option = {} problem['@'] = problem_function problem['o'] = 1 # Number of objectives problem['n'] = 97 # Number of variables (in total) problem['ni'] = 7 # Number of integer variables (0 <= ni <= n) problem['m'] = 91 # Number of constraints (in total) problem['me'] = 83 # Number of equality constraints (0 <= me <= m) problem['xl'] = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 345.0, 345.0, 345.0, 345.0, 345.0, 345.0, 345.0, 345.0, 345.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1, 50.0, 20.0, -1.5, -1.5, -1.5, -1.5, -1.5, -1.5, -1.5, -1.5, -1.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] problem['xu'] = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.5, 1.0, 0.5, 1.0, 0.5, 1.0, 0.1, 1.0, 1.0, 1.0, 1.0, 1.0, 0.5, 1.0, 0.5, 1.0, 0.5, 1.0, 0.5, 1.0, 0.2, 1.0, 0.1, 1.0, 0.05, 100.0, 500.0, 500.0, 500.0, 200.0, 200.0, 200.0, 200.0, 200.0, 500.0, 500.0, 500.0, 500.0, 500.0, 500.0, 500.0, 500.0, 390.0, 390.0, 390.0, 390.0, 390.0, 390.0, 390.0, 390.0, 390.0, 1.0, 1.0, 100.0, 1.0, 1.0, 1.0, 1.0, 0.95, 70.0, 50.0, -0.496714536653818, -0.496714536653818, -0.496714536653818, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.151822697193183, 0.1, 0.1, 0.1, 0.05, 0.05, 0.05, 0.02, 0.005, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0] problem['x'] = list(problem['xl']) # Starting point: lower bounds option['maxeval'] = 1000000 option['maxtime'] = 60*60*24 option['printeval'] = 1000 option['save2file'] = 1 option['resumable'] = 0 option['param1'] = 1e-06 # ACCURACY option['param2'] = 0.0 # SEED option['param3'] = -13.40599772 + 13.40599772*1e-4 # FSTOP option['param4'] = 0.0 # ALGOSTOP option['param5'] = 0.0 # EVALSTOP option['param6'] = 0.0 # FOCUS option['param7'] = 0.0 # ANTS option['param8'] = 0.0 # KERNEL option['param9'] = 0.0 # ORACLE option['param10'] = 0.0 # PARETOMAX option['param11'] = 0.0 # EPSILON option['param12'] = 0.0 # BALANCE option['param13'] = 0.0 # CHARACTER option['param14'] = 0.0 # SURROGATE option['param15'] = 0.0 # PMISQP option['parallel'] = 0 # Serial: 0 or 1, Parallel: 2,3,4,5,6,7,8... option['paradigm'] = 0 # Parallel mode: 0 = multiprocessing, 1 = mpi4py, 2 = vectorized ######################################################################## if __name__ == '__main__': solution = midaco.run(problem, option, key)