Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
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]))