Initializing help system before first use

xpress.is_equal

Purpose
Compares two Xpress objects for equality.
Synopsis
result = xpress.is_equal(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.is_equal returns True for all algebraically equivalent objects. However, when comparing nonlinear expressions, xpress.is_equal 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

© 2001-2025 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.