(function from pyomo.contrib.gdpopt.create_oa_subproblems)
pyomo.contrib.gdpopt.create_oa_subproblems