# NLP written by GAMS Convert at 03/03/22 14:44:47
#
# Equation counts
#     Total        E        G        L        N        X        C        B
#         6        0        6        0        0        0        0        0
#
# Variable counts
#                  x        b        i      s1s      s2s       sc       si
#     Total     cont   binary  integer     sos1     sos2    scont     sint
#         4        4        0        0        0        0        0        0
# FX      0
#
# Nonzero counts
#     Total    const       NL
#        14       14        0
#
# Reformulation has removed 1 variable and 1 equation

from pyomo.environ import *

model = m = ConcreteModel()

m.x1 = Var(within=Reals, bounds=(0,1e+04), initialize=0)
m.x2 = Var(within=Reals, bounds=(0,None), initialize=0)
m.x3 = Var(within=Reals, bounds=(0,None), initialize=0)
m.x4 = Var(within=Reals, bounds=(0,None), initialize=0)

m.obj = Objective(sense=minimize, expr= 0.25 * m.x1 * m.x1 - m.x1 + 0.25 * m.x2
    * m.x2 - m.x2 + 0.25 * m.x3 * m.x3 - m.x3 + 0.25 * m.x4 * m.x4 - m.x4)

m.e1 = Constraint(expr= m.x1 + m.x2 >= 1)
m.e2 = Constraint(expr= 2 * m.x3 + 2 * m.x4 >= 4)
m.e3 = Constraint(expr= m.x1 + m.x3 >= 3)
m.e4 = Constraint(expr= m.x2 + m.x4 >= 4)
m.e5 = Constraint(expr= -m.x2 - 2 * m.x3 - 3 * m.x4 >= -8)
m.e6 = Constraint(expr= -3 * m.x2 - m.x3 - 2 * m.x4 >= -10)
