Skip to content

Question: How to Free Up Gurobi License for Sequential MIP Solves in PuLP? #763

Closed Answered by pchtsp
jpruente92 asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure if this answers your question but the GUROBI solver has an env, envOptions and manageEnv arguments . See:
https://coin-or.github.io/pulp/technical/solvers.html#pulp.apis.GUROBI
I'm not sure why the documentation doesn't show all the arguments.
if you check the source code there are instructions:
(

def __init__(
)

        If ``manageEnv`` is set to True, the ``GUROBI`` object creates a
        local Gurobi environment and manages all associated Gurobi
        resources. Importantly, this enables Gurobi licenses to be freed
        and connections terminated when the ``.close()`` function is called
        (this functi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jpruente92
Comment options

Answer selected by jpruente92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants