PiecewiseLinearTransformationBase

(class from pyomo.contrib.piecewise.transform.piecewise_linear_transformation_base)

class pyomo.contrib.piecewise.transform.piecewise_linear_transformation_base.PiecewiseLinearTransformationBase[source]

Bases: Transformation

Base class for transformations of piecewise-linear models to GDPs, MIPs, etc.

__init__()[source]

Methods

__init__()

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

Attributes

CONFIG

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