ams.opt.OModel#

class ams.opt.OModel(routine)[source]#

Base class for optimization models.

Parameters:
routine: Routine

Routine that to be modeled.

Attributes:
prob: cvxpy.Problem

Optimization model.

exprs: OrderedDict

Expressions registry.

params: OrderedDict

Parameters registry.

vars: OrderedDict

Decision variables registry.

constrs: OrderedDict

Constraints registry.

obj: Objective

Objective function.

initialized: bool

Flag indicating if the model is initialized.

parsed: bool

Flag indicating if the model is parsed.

evaluated: bool

Flag indicating if the model is evaluated.

finalized: bool

Flag indicating if the model is finalized.

__init__(routine)[source]#

Methods

evaluate(*args, **kwargs)

finalize([force])

Finalize the optimization model.

init([force])

Set up the optimization model from the symbolic description.

parse(*args, **kwargs)

update(params)

Update the Parameter values.

Attributes

class_name

Return the class name

initialized

Return the initialization status.