<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># NLP written by GAMS Convert at 02/17/22 17:22:53
#
# Equation counts
#     Total        E        G        L        N        X        C        B
#         5        0        0        5        0        0        0        0
#
# Variable counts
#                  x        b        i      s1s      s2s       sc       si
#     Total     cont   binary  integer     sos1     sos2    scont     sint
#         2        2        0        0        0        0        0        0
# FX      0
#
# Nonzero counts
#     Total    const       NL
#        10       10        0
#
# Reformulation has removed 1 variable and 1 equation

from pyomo.environ import *

model = m = ConcreteModel()

m.x1 = Var(within=Reals, bounds=(0,8), initialize=0)
m.x2 = Var(within=Reals, bounds=(0,4), initialize=0)

m.obj = Objective(sense=minimize, expr= -m.x1**2 - 4 * m.x2**2)

m.e1 = Constraint(expr= m.x1 + m.x2 &lt;= 10)
m.e2 = Constraint(expr= m.x1 + 5 * m.x2 &lt;= 22)
m.e3 = Constraint(expr= -3 * m.x1 + 2 * m.x2 &lt;= 2)
m.e4 = Constraint(expr= -m.x1 - 4 * m.x2 &lt;= -4)
m.e5 = Constraint(expr= m.x1 - 2 * m.x2 &lt;= 4)
</pre></body></html>