ConvexCombinationTransformation

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

class pyomo.contrib.piecewise.transform.convex_combination.ConvexCombinationTransformation(**kwds)[source]

Bases: Transformation

Converts a model containing PiecewiseLinearFunctions to a an equivalent MIP via the Convex Combination method from [1]. Note that, while this model probably resolves to the model described in [1] after presolve, the Pyomo version is not as simplified.

References

[1] J.P. Vielma, S. Ahmed, and G. Nemhauser, “Mixed-integer models

for nonseparable piecewise-linear optimization: unifying framework and extensions,” Operations Research, vol. 58, no. 2, pp. 305-315, 2010.

__init__(**kwds)

Methods

__init__(**kwds)

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