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¶
Pyomo-backed compiled DSL problem, solved by |
Functions¶
|
Instantiate the Pyomo-compiled problem; |
Module Contents¶
- pyepo.model.omo.compile.compileProblem(problem, solver='glpk', **params) compiledOmoProblem¶
Instantiate the Pyomo-compiled problem;
paramsare solver options.
- class pyepo.model.omo.compile.compiledOmoProblem(problem, params=None, solver='glpk')¶
Bases:
pyepo.dsl.compiled.compiledBase,pyepo.model.omo.omomodel.optOmoModelPyomo-backed compiled DSL problem, solved by
solver.- problem¶
- params¶
- solver = 'glpk'¶