mul Method (XPRBterm, XPRBterm)
Multiply two XPRBterms together to create an XPRBexpr.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- t
-
Type:
BCLXPRBterm
The XPRBterm to multiply. - t2
-
Type:
BCLXPRBterm
The second XPRBterm to multiply.
Return Value
Type: XPRBexprThe resultant XPRBexpr expression if successful. This will throw a "Non-quadratic expression" exception if the result is not quadratic.

XPRBprob 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));
