Constr.sameAs()

sameAs ( constr2 )

Check whether two constraint objects refer to the same constraint.

Arguments:

constr2: The other constraint.

Return value:

Boolean result indicates whether the two constraint objects refer to the same model constraint.

Example usage:

  print(model.getConstrs()[0].sameAs(model.getConstrs()[1]))