Skip to content

Commit

Permalink
Merge branch 'main' into fix-transformed-gdp-pickle
Browse files Browse the repository at this point in the history
  • Loading branch information
emma58 committed Nov 2, 2022
2 parents 2a4c57a + 65b9a58 commit da08461
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyomo/solvers/plugins/solvers/mosek_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ def _process_stream(msg):
self._termcode = self._solver_model.optimize()
self._solver_model.solutionsummary(mosek.streamtype.msg)
except mosek.Error as e:
# MOSEK is not good about releasing licenses when an
# exception is raised during optimize(). We will explicitly
# release all licenses to prevent (among other things) a
# "license leak" during testing with expected failures.
self._mosek_env.checkinall()
logger.error(e)
raise
return Bunch(rc=None, log=None)
Expand Down

0 comments on commit da08461

Please sign in to comment.