Skip to content

Commit

Permalink
BUG: raise exception if glpk is _not_ installed
Browse files Browse the repository at this point in the history
The change agrees with the initial version of those lines,
introduced in commit:
    125d8da
This error was introduced in commit:
    caf8c61
  • Loading branch information
krooken authored and johnyf committed Apr 5, 2021
1 parent 0ccd0f6 commit f981f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polytope/esp.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def esp(CC, DD, bb, centered=False, abs_tol=1e-10, verbose=0):
P = {[C D]x <= b} where C is M x D and D is M x K is
defined as proj(P) = {x in R^d | exist y in R^k s.t Cx + Dy < b}
"""
if 'glpk' in solvers.installed_solvers:
if 'glpk' not in solvers.installed_solvers:
raise Exception(
"projection_esp error:"
" Equality set projection requires `cvxopt.glpk` to run.")
Expand Down

0 comments on commit f981f43

Please sign in to comment.