# MINLP written by GAMS Convert at 02/17/22 17:19:34
#
# Equation counts
#     Total        E        G        L        N        X        C        B
#        93       15       12       66        0        0        0        0
#
# Variable counts
#                  x        b        i      s1s      s2s       sc       si
#     Total     cont   binary  integer     sos1     sos2    scont     sint
#        86       26       60        0        0        0        0        0
# FX      0
#
# Nonzero counts
#     Total    const       NL
#       348      342        6
#
# Reformulation has removed 1 variable and 1 equation

from pyomo.environ import *

model = m = ConcreteModel()

m.x1 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x2 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x3 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x4 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x5 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x6 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x7 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x8 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x9 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x10 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x11 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x12 = Var(within=Reals, bounds=(0,29), initialize=0)
m.x13 = Var(within=Reals, bounds=(1,40), initialize=1)
m.x14 = Var(within=Reals, bounds=(1,50), initialize=1)
m.x15 = Var(within=Reals, bounds=(1,60), initialize=1)
m.x16 = Var(within=Reals, bounds=(1,35), initialize=1)
m.x17 = Var(within=Reals, bounds=(1,75), initialize=1)
m.x18 = Var(within=Reals, bounds=(1,20), initialize=1)
m.x19 = Var(within=Reals, bounds=(1,40), initialize=1)
m.x20 = Var(within=Reals, bounds=(1,50), initialize=1)
m.x21 = Var(within=Reals, bounds=(1,60), initialize=1)
m.x22 = Var(within=Reals, bounds=(1,35), initialize=1)
m.x23 = Var(within=Reals, bounds=(1,75), initialize=1)
m.x24 = Var(within=Reals, bounds=(1,20), initialize=1)
m.x25 = Var(within=Reals, bounds=(0,30), initialize=0)
m.x26 = Var(within=Reals, bounds=(0,30), initialize=0)
m.b27 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b28 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b29 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b30 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b31 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b32 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b33 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b34 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b35 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b36 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b37 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b38 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b39 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b40 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b41 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b42 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b43 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b44 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b45 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b46 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b47 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b48 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b49 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b50 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b51 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b52 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b53 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b54 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b55 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b56 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b57 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b58 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b59 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b60 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b61 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b62 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b63 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b64 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b65 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b66 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b67 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b68 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b69 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b70 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b71 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b72 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b73 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b74 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b75 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b76 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b77 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b78 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b79 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b80 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b81 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b82 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b83 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b84 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b85 = Var(within=Binary, bounds=(0,1), initialize=0)
m.b86 = Var(within=Binary, bounds=(0,1), initialize=0)

m.obj = Objective(sense=minimize, expr= 2 * m.x25 + 2 * m.x26)

m.e1 = Constraint(expr= -m.x1 - m.x13 + m.x25 >= 0)
m.e2 = Constraint(expr= -m.x2 - m.x14 + m.x25 >= 0)
m.e3 = Constraint(expr= -m.x3 - m.x15 + m.x25 >= 0)
m.e4 = Constraint(expr= -m.x4 - m.x16 + m.x25 >= 0)
m.e5 = Constraint(expr= -m.x5 - m.x17 + m.x25 >= 0)
m.e6 = Constraint(expr= -m.x6 - m.x18 + m.x25 >= 0)
m.e7 = Constraint(expr= -m.x7 - m.x19 + m.x26 >= 0)
m.e8 = Constraint(expr= -m.x8 - m.x20 + m.x26 >= 0)
m.e9 = Constraint(expr= -m.x9 - m.x21 + m.x26 >= 0)
m.e10 = Constraint(expr= -m.x10 - m.x22 + m.x26 >= 0)
m.e11 = Constraint(expr= -m.x11 - m.x23 + m.x26 >= 0)
m.e12 = Constraint(expr= -m.x12 - m.x24 + m.x26 >= 0)
m.e13 = Constraint(expr= 40 / m.x19 - m.x13 <= 0)
m.e14 = Constraint(expr= 50 / m.x20 - m.x14 <= 0)
m.e15 = Constraint(expr= 60 / m.x21 - m.x15 <= 0)
m.e16 = Constraint(expr= 35 / m.x22 - m.x16 <= 0)
m.e17 = Constraint(expr= 75 / m.x23 - m.x17 <= 0)
m.e18 = Constraint(expr= 20 / m.x24 - m.x18 <= 0)
m.e19 = Constraint(expr= m.x1 - m.x2 + m.x13 + 69 * m.b27 <= 69)
m.e20 = Constraint(expr= m.x1 - m.x3 + m.x13 + 69 * m.b28 <= 69)
m.e21 = Constraint(expr= m.x1 - m.x4 + m.x13 + 69 * m.b29 <= 69)
m.e22 = Constraint(expr= m.x1 - m.x5 + m.x13 + 69 * m.b30 <= 69)
m.e23 = Constraint(expr= m.x1 - m.x6 + m.x13 + 69 * m.b31 <= 69)
m.e24 = Constraint(expr= m.x2 - m.x3 + m.x14 + 79 * m.b32 <= 79)
m.e25 = Constraint(expr= m.x2 - m.x4 + m.x14 + 79 * m.b33 <= 79)
m.e26 = Constraint(expr= m.x2 - m.x5 + m.x14 + 79 * m.b34 <= 79)
m.e27 = Constraint(expr= m.x2 - m.x6 + m.x14 + 79 * m.b35 <= 79)
m.e28 = Constraint(expr= m.x3 - m.x4 + m.x15 + 89 * m.b36 <= 89)
m.e29 = Constraint(expr= m.x3 - m.x5 + m.x15 + 89 * m.b37 <= 89)
m.e30 = Constraint(expr= m.x3 - m.x6 + m.x15 + 89 * m.b38 <= 89)
m.e31 = Constraint(expr= m.x4 - m.x5 + m.x16 + 64 * m.b39 <= 64)
m.e32 = Constraint(expr= m.x4 - m.x6 + m.x16 + 64 * m.b40 <= 64)
m.e33 = Constraint(expr= m.x5 - m.x6 + m.x17 + 104 * m.b41 <= 104)
m.e34 = Constraint(expr= -m.x1 + m.x2 + m.x14 + 79 * m.b42 <= 79)
m.e35 = Constraint(expr= -m.x1 + m.x3 + m.x15 + 89 * m.b43 <= 89)
m.e36 = Constraint(expr= -m.x1 + m.x4 + m.x16 + 64 * m.b44 <= 64)
m.e37 = Constraint(expr= -m.x1 + m.x5 + m.x17 + 104 * m.b45 <= 104)
m.e38 = Constraint(expr= -m.x1 + m.x6 + m.x18 + 49 * m.b46 <= 49)
m.e39 = Constraint(expr= -m.x2 + m.x3 + m.x15 + 89 * m.b47 <= 89)
m.e40 = Constraint(expr= -m.x2 + m.x4 + m.x16 + 64 * m.b48 <= 64)
m.e41 = Constraint(expr= -m.x2 + m.x5 + m.x17 + 104 * m.b49 <= 104)
m.e42 = Constraint(expr= -m.x2 + m.x6 + m.x18 + 49 * m.b50 <= 49)
m.e43 = Constraint(expr= -m.x3 + m.x4 + m.x16 + 64 * m.b51 <= 64)
m.e44 = Constraint(expr= -m.x3 + m.x5 + m.x17 + 104 * m.b52 <= 104)
m.e45 = Constraint(expr= -m.x3 + m.x6 + m.x18 + 49 * m.b53 <= 49)
m.e46 = Constraint(expr= -m.x4 + m.x5 + m.x17 + 104 * m.b54 <= 104)
m.e47 = Constraint(expr= -m.x4 + m.x6 + m.x18 + 49 * m.b55 <= 49)
m.e48 = Constraint(expr= -m.x5 + m.x6 + m.x18 + 49 * m.b56 <= 49)
m.e49 = Constraint(expr= m.x7 - m.x8 + m.x19 + 69 * m.b57 <= 69)
m.e50 = Constraint(expr= m.x7 - m.x9 + m.x19 + 69 * m.b58 <= 69)
m.e51 = Constraint(expr= m.x7 - m.x10 + m.x19 + 69 * m.b59 <= 69)
m.e52 = Constraint(expr= m.x7 - m.x11 + m.x19 + 69 * m.b60 <= 69)
m.e53 = Constraint(expr= m.x7 - m.x12 + m.x19 + 69 * m.b61 <= 69)
m.e54 = Constraint(expr= m.x8 - m.x9 + m.x20 + 79 * m.b62 <= 79)
m.e55 = Constraint(expr= m.x8 - m.x10 + m.x20 + 79 * m.b63 <= 79)
m.e56 = Constraint(expr= m.x8 - m.x11 + m.x20 + 79 * m.b64 <= 79)
m.e57 = Constraint(expr= m.x8 - m.x12 + m.x20 + 79 * m.b65 <= 79)
m.e58 = Constraint(expr= m.x9 - m.x10 + m.x21 + 89 * m.b66 <= 89)
m.e59 = Constraint(expr= m.x9 - m.x11 + m.x21 + 89 * m.b67 <= 89)
m.e60 = Constraint(expr= m.x9 - m.x12 + m.x21 + 89 * m.b68 <= 89)
m.e61 = Constraint(expr= m.x10 - m.x11 + m.x22 + 64 * m.b69 <= 64)
m.e62 = Constraint(expr= m.x10 - m.x12 + m.x22 + 64 * m.b70 <= 64)
m.e63 = Constraint(expr= m.x11 - m.x12 + m.x23 + 104 * m.b71 <= 104)
m.e64 = Constraint(expr= -m.x7 + m.x8 + m.x20 + 79 * m.b72 <= 79)
m.e65 = Constraint(expr= -m.x7 + m.x9 + m.x21 + 89 * m.b73 <= 89)
m.e66 = Constraint(expr= -m.x7 + m.x10 + m.x22 + 64 * m.b74 <= 64)
m.e67 = Constraint(expr= -m.x7 + m.x11 + m.x23 + 104 * m.b75 <= 104)
m.e68 = Constraint(expr= -m.x7 + m.x12 + m.x24 + 49 * m.b76 <= 49)
m.e69 = Constraint(expr= -m.x8 + m.x9 + m.x21 + 89 * m.b77 <= 89)
m.e70 = Constraint(expr= -m.x8 + m.x10 + m.x22 + 64 * m.b78 <= 64)
m.e71 = Constraint(expr= -m.x8 + m.x11 + m.x23 + 104 * m.b79 <= 104)
m.e72 = Constraint(expr= -m.x8 + m.x12 + m.x24 + 49 * m.b80 <= 49)
m.e73 = Constraint(expr= -m.x9 + m.x10 + m.x22 + 64 * m.b81 <= 64)
m.e74 = Constraint(expr= -m.x9 + m.x11 + m.x23 + 104 * m.b82 <= 104)
m.e75 = Constraint(expr= -m.x9 + m.x12 + m.x24 + 49 * m.b83 <= 49)
m.e76 = Constraint(expr= -m.x10 + m.x11 + m.x23 + 104 * m.b84 <= 104)
m.e77 = Constraint(expr= -m.x10 + m.x12 + m.x24 + 49 * m.b85 <= 49)
m.e78 = Constraint(expr= -m.x11 + m.x12 + m.x24 + 49 * m.b86 <= 49)
m.e79 = Constraint(expr= m.b27 + m.b42 + m.b57 + m.b72 == 1)
m.e80 = Constraint(expr= m.b28 + m.b43 + m.b58 + m.b73 == 1)
m.e81 = Constraint(expr= m.b29 + m.b44 + m.b59 + m.b74 == 1)
m.e82 = Constraint(expr= m.b30 + m.b45 + m.b60 + m.b75 == 1)
m.e83 = Constraint(expr= m.b31 + m.b46 + m.b61 + m.b76 == 1)
m.e84 = Constraint(expr= m.b32 + m.b47 + m.b62 + m.b77 == 1)
m.e85 = Constraint(expr= m.b33 + m.b48 + m.b63 + m.b78 == 1)
m.e86 = Constraint(expr= m.b34 + m.b49 + m.b64 + m.b79 == 1)
m.e87 = Constraint(expr= m.b35 + m.b50 + m.b65 + m.b80 == 1)
m.e88 = Constraint(expr= m.b36 + m.b51 + m.b66 + m.b81 == 1)
m.e89 = Constraint(expr= m.b37 + m.b52 + m.b67 + m.b82 == 1)
m.e90 = Constraint(expr= m.b38 + m.b53 + m.b68 + m.b83 == 1)
m.e91 = Constraint(expr= m.b39 + m.b54 + m.b69 + m.b84 == 1)
m.e92 = Constraint(expr= m.b40 + m.b55 + m.b70 + m.b85 == 1)
m.e93 = Constraint(expr= m.b41 + m.b56 + m.b71 + m.b86 == 1)
