solvers
Code to interface with various solvers
GurobiSolver(*args, **kwargs)
Bases: FileBasedSolver
Source code in pyoframe/solvers.py
create_solver_model_from_lp()
Solve a linear problem using the gurobi solver.
This function communicates with gurobi using the gurubipy package.
Source code in pyoframe/solvers.py
Solver(model, log_to_console, params, directory)
Bases: ABC
Source code in pyoframe/solvers.py
dispose()
Clean up any resources that wouldn't be cleaned up by the garbage collector.
For now, this is only used by the Gurobi solver to call .dispose() on the solver model and Gurobi environment which helps close a connection to the Gurobi Computer Server. Note that this effectively disables commands that need access to the solver model (like .slack and .RC)