DualTransformation
(class from pyomo.duality.lagrangian_dual
)
- class pyomo.duality.lagrangian_dual.DualTransformation(**kwds)[source]
Bases:
IsomorphicTransformation
Creates a standard form Pyomo model that is equivalent to another model
- Options
dual_constraint_suffix Defaults to
_constraint
dual_variable_prefix Defaults top_
slack_names Defaults toauxiliary_slack
excess_names Defaults toauxiliary_excess
lb_names Defaults to_lower_bound
ub_names Defaults to_upper_bound
pos_suffix Defaults to_plus
neg_suffix Defaults to_minus
- __init__(**kwds)[source]
DEPRECATED.
Deprecated since version 5.6.2: Use of the pyomo.duality package is deprecated. There are known bugs in pyomo.duality, and we do not recommend the use of this code. Development of dualization capabilities has been shifted to the Pyomo Adversarial Optimization (PAO) library. Please contact William Hart for further details (wehart@sandia.gov).
Methods
__init__
(**kwds)DEPRECATED.
apply
(model, **kwds)DEPRECATED.
apply_to
(model, **kwds)Apply the transformation to the given model.
create_using
(model, **kwds)Create a new model with this transformation
Member Documentation
- apply(model, **kwds)
DEPRECATED.
Deprecated since version 4.3.11323: Transformation.apply() has been deprecated. Please use either Transformation.apply_to() for in-place transformations or Transformation.create_using() for transformations that create a new, independent transformed model instance.
- apply_to(model, **kwds)
Apply the transformation to the given model.
- create_using(model, **kwds)
Create a new model with this transformation