Model.getSOSs()

getSOSs ( )

Retrieve a list of all SOS constraints in the model.

Return value:

All SOS constraints in the model.

Example usage:

  sos = model.getSOSs()
  for s in sos:
    print(model.getSOS(s))