Initializing help system before first use

# xpress.isEqual

Purpose
Compares two Xpress objects for equality.
Synopsis
`result = xpress.isEqual(arg1, arg2)`
Arguments

arg1 | First object to compare.
arg2 | Second object to compare.

Return value

result | True if arg1 and arg2 represent the same expression, otherwise False.

Further information
When comparing variables, linear expressions, quadratic expressions, and constant values, xpress.isEqual returns True for all algebraically equivalent objects. However, when comparing nonlinear expressions, xpress.isEqual only returns True for expressions with the same algebraic form. For example, the linear expressions 3 * x + 2 * y and 2 * y + 3 * x are considered to be equal, whereas the nonlinear expressions cos(x) + sin(x) and sin(x) + cos(x) are not considered to be equal, because the operands are ordered differently. This is for performance reasons.
Related topics
xpress.setConstraintOperatorsEnabled.
Parent Topic Global methods of the Xpress module

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.