ams.opt.omodel.OModel#
- class ams.opt.omodel.OModel(routine)[source]#
Base class for optimization models.
- Parameters:
- routine: Routine
Routine that to be modeled.
- Attributes:
- prob: cvxpy.Problem
Optimization model.
- params: OrderedDict
Parameters.
- vars: OrderedDict
Decision variables.
- constrs: OrderedDict
Constraints.
- obj: Objective
Objective function.
Methods
init
([no_code])Set up the optimization model from the symbolic description.
parse
([no_code])Parse the optimization model from the symbolic description.
update
(params)Update the Parameter values.
Attributes
Return the class name