disposeDefaultEnv()


disposeDefaultEnv()

disposeDefaultEnv ( )

Dispose of the default environment.

Calling this function releases the default environment created by the Gurobi Python module. This function is particuarly useful to call from within a long running iPython Notebook session, as otherwise Gurobi will consume a token for as long as the notebook is open.

Note that models built with the default environment must be garbaged collected before the default environment can be freed. You can force a model m be garbaged collected with the statement del m. If no references to the default environment remain, disposeDefaultEnv prints the message

Freed default Gurobi environment
to confirm it was able to dispose of the default environment.

Example usage:

disposeDefaultEnv()