I'm using SCIP in C++ to solve a minlp problem. In my model, I try to implement an expression to compare two variables. If they are equal, the output is 0, and otherwise it outputs 1.
Let them be varA and varB and both are integers.
Is it safe to write a SCIP expression like (varA - varB) / (varA - varB)? If not, is there a build-in expression in SCIP for comparison of two variables?