MGenConstr.tolist()

tolist ( )

Return the general constraints associated with this matrix general constraint as a list of individual GenConstr objects.

Return value:

List of GenConstr objects.

Example usage:

  mgc = model.addGenConstrIndicator(z, True, A @ x <= b)
  genconstrlist = mgc.tolist()