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.

__init__(routine)[source]#

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

class_name

Return the class name