(class from pyomo.core.plugins.transform.kkt)
pyomo.core.plugins.transform.kkt
Bases: object
object
Methods
__init__()
__init__
apply_to(model, **kwds)
apply_to
Reformulate model with KKT conditions.
get_multiplier_from_object(model, component)
get_multiplier_from_object
Return the multiplier for the object.
get_object_from_multiplier(model, multiplier_var)
get_object_from_multiplier
Return the constraint corresponding to a KKT multiplier variable.
Attributes
CONFIG
Member Documentation
Return the multiplier for the object. If the object is a normal constraint, a single multiplier is returned. If the object is a ranged constraint or a variable, a tuple containing the lower and upper bound multipliers is returned.
model (ConcreteModel) – The model to which the kkt transformation was applied to
component (Constraint or Variable)
The KKT multiplier(s) corresponding to the component. For ranged constraints/variables, returns (lb_mult, ub_mult), where an entry is ‘None’ if that bound doesn’t exist.
VarData | tuple[VarData | None, VarData | None]
Return the constraint corresponding to a KKT multiplier variable. If the multiplier corresponds to an inequality formed by a variable bound, the variable is returned.
model (ConcreteModel) – The model on which the kkt transformation was applied
multiplier_var (Var) – A KKT multiplier created by the transformation.
Constraint object
Variable
Object