arbitrary_partition

(function from pyomo.gdp.plugins.partition_disjuncts)

pyomo.gdp.plugins.partition_disjuncts.arbitrary_partition(disjunction, P)[source]

Returns a valid partition into P sets of the variables that appear in algebraic additively separable constraints in the Disjuncts in ‘disjunction’. Note that this method may return an invalid partition if the constraints are not additively separable!

Arguments:

disjunctionDisjunctionData

A Disjunction object for which the variable partition will be created.

Pint

the number of partitions