EqualTo Method (XPRBexpr, XPRBexpr)
Create an XPRBrelation from two XPRBexprs. Equal to.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- l1
-
Type:
BCLXPRBexpr
The lhs XPRBexpr. - l2
-
Type:
BCLXPRBexpr
The rhs XPRBexpr.
Return Value
Type: XPRBrelationThe resultant XPRBrelation.

This is usually used when creating relations for those languages that do not allow operator overloading.

XPRBvar var = new XPRBvar("Variable1"); XPRBvar var2 = new XPRBvar("Variable2"); XPRBexpr exp = new XPRBexpr(var - 19.6) XPRBexpr exp2 = new XPRBexpr(3.1*var + 0.06*var2) XPRBrelation rel; ... rel = XPRBexpr.EqualTo(exp, exp2);
