pyepo.model.grb.compile

Gurobi compiler for the PyEPO DSL.

compiledGrbProblem mixes the generic compiledBase with optGrbModel to turn a finalized DSL Problem into a GurobiPy model. It builds the model and provides the Gurobi read / write hooks; the objective handling lives in compiledBase.

Classes

compiledGrbProblem

Gurobi-backed compiled DSL problem.

Functions

compileProblem(→ compiledGrbProblem)

Instantiate the Gurobi-compiled problem; params are Gurobi parameters.

Module Contents

pyepo.model.grb.compile.compileProblem(problem, **params) compiledGrbProblem

Instantiate the Gurobi-compiled problem; params are Gurobi parameters.

class pyepo.model.grb.compile.compiledGrbProblem(problem, params=None)

Bases: pyepo.dsl.compiled.compiledBase, pyepo.model.grb.grbmodel.optGrbModel

Gurobi-backed compiled DSL problem.