pyepo.model.omo.omomodel
Abstract optimization model based on Pyomo
Module Contents
Classes
This is an abstract class for Pyomo-based optimization model |
- class pyepo.model.omo.omomodel.optOmoModel(solver='glpk')
Bases:
pyepo.model.opt.optModel
This is an abstract class for Pyomo-based optimization model
- _model
Pyomo model
- Type:
PyOmo model
- solver
optimization solver in the background
- Type:
str
- __repr__()
Return repr(self).
- setObj(c)
A method to set objective function
- Parameters:
c (np.ndarray / list) – cost of objective function
- solve()
A method to solve model
- Returns:
optimal solution (list) and objective value (float)
- Return type:
tuple