XPRBtermLessThanOrEqual(XPRBterm, XPRBterm) Operator |
Create an XPRBrelation from an two XPRBterms
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic static XPRBrelation operator <=(
XPRBterm lhs,
XPRBterm rhs
)
Public Shared Operator <= (
lhs As XPRBterm,
rhs As XPRBterm
) As XPRBrelation
Parameters
- lhs XPRBterm
- The lhs XPRBterm.
- rhs XPRBterm
- The rhs XPRBterm.
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 term1 = new XPRBterm(6.7, var1);
XPRBterm term2 = new XPRBterm(9, var2);
XPRBrelation rel;
...
rel = term1 <= term2;
See Also