XPRBexprLessThanOrEqual(XPRBterm, XPRBexpr) Operator |
Create an XPRBrelation from an XPRBterm and an XPRBexpr.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic static XPRBrelation operator <=(
XPRBterm l1,
XPRBexpr tl2
)
Public Shared Operator <= (
l1 As XPRBterm,
tl2 As XPRBexpr
) As XPRBrelation
Parameters
- l1 XPRBterm
- The lhs XPRBterm.
- tl2 XPRBexpr
- The rhs XPRBexpr.
Return Value
XPRBrelationThe resultant XPRBrelation.
RemarksThis is usually used when creating constraints directly in the method call.
ExampleXPRBvar var = new XPRBvar("Variable1");
XPRBvar var2 = new XPRBvar("Variable2");
XPRBterm term = new XPRBterm(0.13, var2);
XPRBexpr exp = new XPRBexpr(1.9 - 3.1*var);
XPRBrelation rel;
...
rel = term <= expr;
See Also