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