pyepo.model.omo.compile

Pyomo compiler for the PyEPO DSL.

compiledOmoProblem mixes the generic compiledBase with optOmoModel to turn a finalized DSL Problem into a Pyomo ConcreteModel solved by any Pyomo-supported solver. It builds the model and provides the Pyomo read / write hooks; the objective handling lives in compiledBase. The objective coefficient is a mutable Param so setObj updates values rather than rebuilding the expression.

Classes

compiledOmoProblem

Pyomo-backed compiled DSL problem, solved by solver.

Functions

compileProblem(→ compiledOmoProblem)

Instantiate the Pyomo-compiled problem; params are solver options.

Module Contents

pyepo.model.omo.compile.compileProblem(problem, solver='glpk', **params) compiledOmoProblem

Instantiate the Pyomo-compiled problem; params are solver options.

class pyepo.model.omo.compile.compiledOmoProblem(problem, params=None, solver='glpk')

Bases: pyepo.dsl.compiled.compiledBase, pyepo.model.omo.omomodel.optOmoModel

Pyomo-backed compiled DSL problem, solved by solver.

problem
params
solver = 'glpk'