RelaxDiscreteVars

(class from pyomo.core.plugins.transform.discrete_vars)

class pyomo.core.plugins.transform.discrete_vars.RelaxDiscreteVars(**kwds)[source]

Bases: RelaxIntegerVars

DEPRECATED.

This plugin relaxes integrality in a Pyomo model.

Deprecated since version 5.7: core.relax_discrete is deprecated. Use core.relax_integer_vars

__init__(**kwds)[source]

DEPRECATED.

Deprecated since version 5.7: core.relax_discrete is deprecated. Use core.relax_integer_vars

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