Model.getConstrs()

getConstrs ( )

Retrieve a list of all linear constraints in the model.

Return value:

All linear constraints in the model.

Example usage:

  constrs = model.getConstrs()
  c0 = constrs[0]