Skip to content

Commit

Permalink
Remove debugging; expand comment explaining difference in cut-and-pas…
Browse files Browse the repository at this point in the history
…te tests
  • Loading branch information
jsiirola committed Apr 1, 2024
1 parent 2f1d4a0 commit 8c4fb77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyomo/repn/tests/test_standard_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ def test_alternative_forms(self):
[[1, 0, 2, 0], [0, 0, 1, 4], [0, 1, 6, 0], [0, 1, 6, 0], [1, 1, 0, 0]]
)
self.assertTrue(np.all(repn.A == ref))
print(repn)
print(repn.b)
self.assertTrue(np.all(repn.b == np.array([3, 5, 6, -3, 8])))
self.assertTrue(np.all(repn.c == np.array([[-1, 0, -5, 0], [1, 0, 0, 15]])))
# Note that the solution is a mix of inequality and equality constraints
# Note that the mixed_form solution is a mix of inequality and
# equality constraints, so we cannot (easily) reuse the
# _verify_solutions helper (as in the above cases):
# self._verify_solution(soln, repn, False)

repn = LinearStandardFormCompiler().write(
Expand Down

0 comments on commit 8c4fb77

Please sign in to comment.