SOS.index

index

This property returns the current index, or order, of the SOS constraint in the underlying model.

Note that the index of an SOS constraint may change after subsequent model modifications.

Return value:

-2: removed, -1: not in model, otherwise: index of the SOS constraint in the model