#  MINLP written by GAMS Convert at 04/21/18 13:51:23
#  
#  Equation counts
#      Total        E        G        L        N        X        C        B
#         22        1        0       21        0        0        0        0
#  
#  Variable counts
#                   x        b        i      s1s      s2s       sc       si
#      Total     cont   binary  integer     sos1     sos2    scont     sint
#         41       31        0       10        0        0        0        0
#  FX      0        0        0        0        0        0        0        0
#  
#  Nonzero counts
#      Total    const       NL      DLL
#         81       61       20        0
# 
#  Reformulation has removed 1 variable and 1 equation


from pyomo.environ import *

model = m = ConcreteModel()


m.i1 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i2 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i3 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i4 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i5 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i6 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i7 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i8 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i9 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i10 = Var(within=Integers,bounds=(1,10),initialize=1)
m.x11 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x12 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x13 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x14 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x15 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x16 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x17 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x18 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x19 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x20 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x21 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x22 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x23 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x24 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x25 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x26 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x27 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x28 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x29 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x30 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x31 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x32 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x33 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x34 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x35 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x36 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x37 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x38 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x39 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x40 = Var(within=Reals,bounds=(None,None),initialize=0)

m.obj = Objective(expr=   1.5*m.i1 + 0.51*m.i2 + 1.01*m.i3 + 1.4*m.i4 + 1.78*m.i5 + 1.92*m.i6 + 1.09*m.i7 + 0.48*m.i8
                        + 0.67*m.i9 + 0.52*m.i10 + 1.68*m.x11 + 0.51*m.x12 + 1.63*m.x13 + 0.49*m.x14 + 1.86*m.x15
                        + 0.7*m.x16 + 0.39*m.x17 + 0.5*m.x18 + 1.23*m.x19 + 0.95*m.x20, sense=minimize)

m.c2 = Constraint(expr=   m.x21 + m.x22 + m.x23 + m.x24 + m.x25 + m.x26 + m.x27 + m.x28 + m.x29 + m.x30 + m.x31 + m.x32
                        + m.x33 + m.x34 + m.x35 + m.x36 + m.x37 + m.x38 + m.x39 + m.x40 <= -1.6094379124341)

m.c3 = Constraint(expr=-0.065*log(m.i1) - m.x21 <= 0)

m.c4 = Constraint(expr=-0.004*log(m.i2) - m.x22 <= 0)

m.c5 = Constraint(expr=-0.084*log(m.i3) - m.x23 <= 0)

m.c6 = Constraint(expr=-0.093*log(m.i4) - m.x24 <= 0)

m.c7 = Constraint(expr=-0.06*log(m.i5) - m.x25 <= 0)

m.c8 = Constraint(expr=-0.075*log(m.i6) - m.x26 <= 0)

m.c9 = Constraint(expr=-0.074*log(m.i7) - m.x27 <= 0)

m.c10 = Constraint(expr=-0.039*log(m.i8) - m.x28 <= 0)

m.c11 = Constraint(expr=-0.065*log(m.i9) - m.x29 <= 0)

m.c12 = Constraint(expr=-0.017*log(m.i10) - m.x30 <= 0)

m.c13 = Constraint(expr=-0.07*log(m.x11) - m.x31 <= 0)

m.c14 = Constraint(expr=-0.03*log(m.x12) - m.x32 <= 0)

m.c15 = Constraint(expr=-0.028*log(m.x13) - m.x33 <= 0)

m.c16 = Constraint(expr=-0.005*log(m.x14) - m.x34 <= 0)

m.c17 = Constraint(expr=-0.01*log(m.x15) - m.x35 <= 0)

m.c18 = Constraint(expr=-0.082*log(m.x16) - m.x36 <= 0)

m.c19 = Constraint(expr=-0.069*log(m.x17) - m.x37 <= 0)

m.c20 = Constraint(expr=-0.032*log(m.x18) - m.x38 <= 0)

m.c21 = Constraint(expr=-0.095*log(m.x19) - m.x39 <= 0)

m.c22 = Constraint(expr=-0.003*log(m.x20) - m.x40 <= 0)

#  MINLP written by GAMS Convert at 04/21/18 13:51:23
#  
#  Equation counts
#      Total        E        G        L        N        X        C        B
#         22        1        0       21        0        0        0        0
#  
#  Variable counts
#                   x        b        i      s1s      s2s       sc       si
#      Total     cont   binary  integer     sos1     sos2    scont     sint
#         41       31        0       10        0        0        0        0
#  FX      0        0        0        0        0        0        0        0
#  
#  Nonzero counts
#      Total    const       NL      DLL
#         81       61       20        0
# 
#  Reformulation has removed 1 variable and 1 equation


from pyomo.environ import *

model = m = ConcreteModel()


m.i1 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i2 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i3 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i4 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i5 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i6 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i7 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i8 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i9 = Var(within=Integers,bounds=(1,10),initialize=1)
m.i10 = Var(within=Integers,bounds=(1,10),initialize=1)
m.x11 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x12 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x13 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x14 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x15 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x16 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x17 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x18 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x19 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x20 = Var(within=Reals,bounds=(1E-5,10),initialize=1E-5)
m.x21 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x22 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x23 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x24 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x25 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x26 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x27 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x28 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x29 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x30 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x31 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x32 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x33 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x34 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x35 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x36 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x37 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x38 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x39 = Var(within=Reals,bounds=(None,None),initialize=0)
m.x40 = Var(within=Reals,bounds=(None,None),initialize=0)

m.obj = Objective(expr=   1.5*m.i1 + 0.51*m.i2 + 1.01*m.i3 + 1.4*m.i4 + 1.78*m.i5 + 1.92*m.i6 + 1.09*m.i7 + 0.48*m.i8
                        + 0.67*m.i9 + 0.52*m.i10 + 1.68*m.x11 + 0.51*m.x12 + 1.63*m.x13 + 0.49*m.x14 + 1.86*m.x15
                        + 0.7*m.x16 + 0.39*m.x17 + 0.5*m.x18 + 1.23*m.x19 + 0.95*m.x20, sense=minimize)

m.c2 = Constraint(expr=   m.x21 + m.x22 + m.x23 + m.x24 + m.x25 + m.x26 + m.x27 + m.x28 + m.x29 + m.x30 + m.x31 + m.x32
                        + m.x33 + m.x34 + m.x35 + m.x36 + m.x37 + m.x38 + m.x39 + m.x40 <= -1.6094379124341)

m.c3 = Constraint(expr=-0.065*log(m.i1) - m.x21 <= 0)

m.c4 = Constraint(expr=-0.004*log(m.i2) - m.x22 <= 0)

m.c5 = Constraint(expr=-0.084*log(m.i3) - m.x23 <= 0)

m.c6 = Constraint(expr=-0.093*log(m.i4) - m.x24 <= 0)

m.c7 = Constraint(expr=-0.06*log(m.i5) - m.x25 <= 0)

m.c8 = Constraint(expr=-0.075*log(m.i6) - m.x26 <= 0)

m.c9 = Constraint(expr=-0.074*log(m.i7) - m.x27 <= 0)

m.c10 = Constraint(expr=-0.039*log(m.i8) - m.x28 <= 0)

m.c11 = Constraint(expr=-0.065*log(m.i9) - m.x29 <= 0)

m.c12 = Constraint(expr=-0.017*log(m.i10) - m.x30 <= 0)

m.c13 = Constraint(expr=-0.07*log(m.x11) - m.x31 <= 0)

m.c14 = Constraint(expr=-0.03*log(m.x12) - m.x32 <= 0)

m.c15 = Constraint(expr=-0.028*log(m.x13) - m.x33 <= 0)

m.c16 = Constraint(expr=-0.005*log(m.x14) - m.x34 <= 0)

m.c17 = Constraint(expr=-0.01*log(m.x15) - m.x35 <= 0)

m.c18 = Constraint(expr=-0.082*log(m.x16) - m.x36 <= 0)

m.c19 = Constraint(expr=-0.069*log(m.x17) - m.x37 <= 0)

m.c20 = Constraint(expr=-0.032*log(m.x18) - m.x38 <= 0)

m.c21 = Constraint(expr=-0.095*log(m.x19) - m.x39 <= 0)

m.c22 = Constraint(expr=-0.003*log(m.x20) - m.x40 <= 0)

#  MINLP written by GAMS Convert at 04/21/18 13:51:23 # #  Equation counts #      Total        E        G        L        N        X        C        B #         22        1        0       21        0        0        0        0 # #  Variable counts #                   x        b        i      s1s      s2s       sc       si #      Total     cont   binary  integer     sos1     sos2    scont     sint #         41       31        0       10        0        0        0        0 #  FX      0        0        0        0        0        0        0        0 # #  Nonzero counts #      Total    const       NL      DLL #         81       61       20        0 # #  Reformulation has removed 1 variable and 1 equation