XPRBexprmul(XPRBterm, XPRBterm) Method |
Multiply two XPRBterms together to create an XPRBexpr.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic XPRBexpr mul(
XPRBterm t,
XPRBterm t2
)
Public Function mul (
t As XPRBterm,
t2 As XPRBterm
) As XPRBexpr
Parameters
- t XPRBterm
- The XPRBterm to multiply.
- t2 XPRBterm
- The second XPRBterm to multiply.
Return Value
XPRBexprThe resultant XPRBexpr expression if successful. This will throw a "Non-quadratic expression"
exception if the result is not quadratic.
ExampleXPRBprob prob = new XPRBprob("NewProb");
XPRBvar var = new XPRBvar("Variable");
XPRBterm term = new XPRBterm(2.3, var);
XPRBexpr exp;
...
exp = new XPRBexpr(XPRBexpr.mul(term, term));
See Also