pyepo.model.ort.compile

OR-Tools (pywraplp) compiler for the PyEPO DSL.

compiledOrtProblem mixes the generic compiledBase with optOrtModel to turn a finalized DSL Problem into a pywraplp Solver running an open solver (solver=, default SCIP). It builds the model and provides the OR-Tools read / write hooks; the objective handling lives in compiledBase. pywraplp is LP / MIP only — quadratic objectives or constraints raise NotImplementedError.

Classes

compiledOrtProblem

OR-Tools (pywraplp) compiled DSL problem, solved by solver.

Functions

compileProblem(→ compiledOrtProblem)

Instantiate the OR-Tools-compiled problem; params are solver options.

Module Contents

pyepo.model.ort.compile.compileProblem(problem, solver='scip', **params) compiledOrtProblem

Instantiate the OR-Tools-compiled problem; params are solver options.

class pyepo.model.ort.compile.compiledOrtProblem(problem, params=None, solver='scip')

Bases: pyepo.dsl.compiled.compiledBase, pyepo.model.ort.ortmodel.optOrtModel

OR-Tools (pywraplp) compiled DSL problem, solved by solver.

problem
params
solver = 'scip'