Skip to content

Commit

Permalink
MAI: update silencing of glpk for cvxopt >= 1.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyf committed Jul 16, 2016
1 parent 3a721bc commit 4650577
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions polytope/esp.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@
except:
lp_solver = None

solvers.options['show_progress']=False
solvers.options['LPX_K_MSGLEV'] = 0

solvers.options['show_progress'] = False
solvers.options['glpk'] = dict(msg_lev='GLP_MSG_OFF')


class Ridge:
'''Contains the following information:
Expand Down
3 changes: 1 addition & 2 deletions polytope/polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@
lp_solver = 'glpk'
# Hide optimizer output
solvers.options['show_progress'] = False
solvers.options['LPX_K_MSGLEV'] = 0
solvers.options['msg_lev'] = 'GLP_MSG_OFF'
solvers.options['glpk'] = dict(msg_lev='GLP_MSG_OFF')
logger.info('will use `cvxopt.glpk` solver')
except ImportError:
from scipy import optimize
Expand Down

0 comments on commit 4650577

Please sign in to comment.