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:
ISOSA Special Ordered Set of type n.
-
property
level The sos level (e.g., 1,2,…)
-
property
variables The sos variables
-
property
weights The sos variables
-
property
-
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:
TupleContainerA tuple-style container for objects with category type ISOS
-
class
pyomo.core.kernel.sos.sos_list(*args, **kwds) Bases:
ListContainerA list-style container for objects with category type ISOS
-
class
pyomo.core.kernel.sos.sos_dict(*args, **kwds) Bases:
DictContainerA dict-style container for objects with category type ISOS