Special Ordered Sets

Summary

pyomo.core.kernel.sos.sos(variables[, …]) A Special Ordered Set of type n.
pyomo.core.kernel.sos.sos1(variables[, weights]) A Special Ordered Set of type 1.
pyomo.core.kernel.sos.sos2(variables[, weights]) A Special Ordered Set of type 2.
pyomo.core.kernel.sos.sos_tuple(*args, **kwds) A tuple-style container for objects with category type ISOS
pyomo.core.kernel.sos.sos_list(*args, **kwds) A list-style container for objects with category type ISOS
pyomo.core.kernel.sos.sos_dict(*args, **kwds) A dict-style container for objects with category type ISOS

Member Documentation

class pyomo.core.kernel.sos.sos(variables, weights=None, level=1)[source]

Bases: pyomo.core.kernel.sos.ISOS

A Special Ordered Set of type n.

pyomo.core.kernel.sos.sos1(variables, weights=None)[source]

A Special Ordered Set of type 1.

This is an alias for sos(…, level=1)

pyomo.core.kernel.sos.sos2(variables, weights=None)[source]

A Special Ordered Set of type 2.

This is an alias for sos(…, level=2).

class pyomo.core.kernel.sos.sos_tuple(*args, **kwds)

Bases: pyomo.core.kernel.tuple_container.TupleContainer

A tuple-style container for objects with category type ISOS

class pyomo.core.kernel.sos.sos_list(*args, **kwds)

Bases: pyomo.core.kernel.list_container.ListContainer

A list-style container for objects with category type ISOS

class pyomo.core.kernel.sos.sos_dict(*args, **kwds)

Bases: pyomo.core.kernel.dict_container.DictContainer

A dict-style container for objects with category type ISOS