Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
Model.getSOS()
getSOS ( sos )
Retrieve information about an SOS constraint. The result is a tuple that contains the SOS type (1 or 2), the list of participating Var objects, and the list of associated SOS weights.
Arguments:
sos: The SOS constraint of interest. An SOS object, typically obtained from addSOS or getSOSs.
Return value:
A tuple that contains the SOS type (1 or 2), a list of participating Var objects, and a list of associated SOS weights.
Example usage:
(sostype, vars, weights) = model.getSOS(model.getSOSs()[0])