Skip to content

Commit

Permalink
fix attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp committed Mar 11, 2024
1 parent cd54e6f commit a99165c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyomo/util/tests/test_subsystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ def _make_model_with_external_functions(self, named_expressions=False):
m.subexpr = pyo.Expression(pyo.PositiveIntegers)
subexpr1 = m.subexpr[1] = 2 * m.fermi(m.v1)
subexpr2 = m.subexpr[2] = m.bessel(m.v1) - m.bessel(m.v2)
subexpr3 = m.subexpr[3] = m.subexpr[2] + m.v3**2
subexpr3 = m.subexpr[3] = subexpr2 + m.v3**2
else:
subexpr1 = 2 * m.fermi(m.v1)
subexpr2 = m.bessel(m.v1) - m.bessel(m.v2)
subexpr3 = m.subexpr[2] + m.v3**2
subexpr3 = subexpr2 + m.v3**2
m.con1 = pyo.Constraint(expr=m.v1 == 0.5)
m.con2 = pyo.Constraint(expr=subexpr1 + m.v2**2 - m.v3 == 1.0)
m.con3 = pyo.Constraint(expr=subexpr3 == 2.0)
Expand Down

0 comments on commit a99165c

Please sign in to comment.