Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Tests #274

Merged
merged 1 commit into from
Mar 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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