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

[WIP] Enhance coverage of parmest tests #1484

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 2 additions & 1 deletion pyomo/contrib/parmest/tests/test_parmest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

from pyomo.opt import SolverFactory
ipopt_available = SolverFactory('ipopt').available()
k_aug_available = SolverFactory('k_aug').available()

testdir = os.path.dirname(os.path.abspath(__file__))

Expand Down Expand Up @@ -198,7 +199,7 @@ def test_parallel_parmest(self):
retcode = subprocess.call(rlist)
assert(retcode == 0)

@unittest.skip("Most folks don't have k_aug installed")
@unittest.skipIf(not k_aug_available,"k_aug is not available")
def test_theta_k_aug_for_Hessian(self):
# this will fail if k_aug is not installed
objval, thetavals, Hessian = self.pest.theta_est(solver="k_aug")
Expand Down