Skip to content

Commit

Permalink
Merge pull request #274 from michaelbynum/tests
Browse files Browse the repository at this point in the history
Updating Tests
  • Loading branch information
bknueven authored Mar 29, 2022
2 parents 8c3a525 + 5422162 commit ebcde42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions egret/models/tests/test_relaxations.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_soc_model(self, case_name):
rel, scaled_md = create_soc_relaxation(md, use_linear_relaxation=False)

opt = SolverFactory('ipopt')
opt.options['linear_solver'] = 'mumps'
#opt.options['linear_solver'] = 'mumps'

res = opt.solve(nlp, tee=False)
self.assertTrue(res.solver.termination_condition == TerminationCondition.optimal)
Expand Down Expand Up @@ -112,7 +112,7 @@ def test_polar_relaxation(self, case_name):
b.rebuild(build_nonlinear_constraint=True)

opt = SolverFactory('ipopt')
opt.options['linear_solver'] = 'mumps'
#opt.options['linear_solver'] = 'mumps'

res = opt.solve(nlp, tee=False)
self.assertTrue(res.solver.termination_condition == TerminationCondition.optimal)
Expand All @@ -130,7 +130,7 @@ def test_atan_relaxation(self, case_name):
b.rebuild(build_nonlinear_constraint=True)

opt = SolverFactory('ipopt')
opt.options['linear_solver'] = 'mumps'
#opt.options['linear_solver'] = 'mumps'

res = opt.solve(nlp, tee=False)
self.assertTrue(res.solver.termination_condition == TerminationCondition.optimal)
Expand All @@ -148,7 +148,7 @@ def test_atan_relaxation_with_soc_edge_cuts(self, case_name):
b.rebuild(build_nonlinear_constraint=True)

opt = SolverFactory('ipopt')
opt.options['linear_solver'] = 'mumps'
#opt.options['linear_solver'] = 'mumps'

res = opt.solve(nlp, tee=False)
self.assertTrue(res.solver.termination_condition == TerminationCondition.optimal)
Expand All @@ -166,7 +166,7 @@ def test_rectangular_relaxation(self, case_name):
b.rebuild(build_nonlinear_constraint=True)

opt = SolverFactory('ipopt')
opt.options['linear_solver'] = 'mumps'
#opt.options['linear_solver'] = 'mumps'

res = opt.solve(nlp, tee=False)
self.assertTrue(res.solver.termination_condition == TerminationCondition.optimal)
Expand Down

0 comments on commit ebcde42

Please sign in to comment.