XPRBquadExp   (extends XPRBlinExp)


Description
Methods and operators for constructing quadratic expressions.
Constructors
XPRBquadExp()
XPRBquadExp(double d, XPRBvar& v1, XPRBvar& v2)
XPRBquadExp(XPRBvar& v)
XPRBquadExp(XPRBlinExp& l)
XPRBquadExp(XPRBquadExp& q)
Methods
XPRBquadExp& neg()
XPRBquadExp neg(XPRBquadExp q)
XPRBquadExp& add(XPRBquadExp& q)
XPRBquadExp& add(XPRBlinExp& l)
XPRBquadExp& add(XPRBvar& v)
XPRBquadExp& add(double d)
XPRBquadExp add(XPRBquadExp& q1, XPRBquadExp& q2)
int setTerm(XPRBvar& var1, XPRBvar& var2, double val)
int setTerm(double val, XPRBvar& var1, XPRBvar& var2)
int setTerm(XPRBvar& var, double val)
int setTerm(double val, XPRBvar& var)
int setTerm(double val)
int delTerm(XPRBvar& var1, XPRBvar& var2)
int delTerm(XPRBvar& var)
XPRBquadExp& mul(double d)
XPRBquadExp mul(XPRBquadExp& q, double d)
XPRBquadExp mul(double d, XPRBquadExp& q)
XPRBquadExp& mul(XPRBquadExp& q)
Throws ArithmeticException `Non-quadratic expression' if the result of the operation is not quadratic
XPRBquadExp mul(XPRBquadExp& q1, XPRBquadExp& q2)
Throws ArithmeticException `Non-quadratic expression' if the result of the operation is not quadratic
XPRBquadExp& mul(XPRBlinExp& l)
Throws ArithmeticException `Non-quadratic expression' if the result of the operation is not quadratic
XPRBquadExp mul(XPRBquadExp& q, XPRBlinExp& l)
Throws ArithmeticException `Non-quadratic expression' if the result of the operation is not quadratic
XPRBquadExp mul(XPRBlinExp& l, XPRBquadExp& q)
Throws ArithmeticException `Non-quadratic expression' if the result of the operation is not quadratic
XPRBquadExp mul(XPRBlinExp& l1, XPRBlinExp& l2)
Throws ArithmeticException `Non-quadratic expression' if the result of the operation is not quadratic
XPRBquadExp& assign(XPRBquadExp& q)
Operators  (C++ only)
Assigning (elements to) quadratic expressions:
qexp1 += qexp2
qexp1 -= qexp2
qexp1 = qexp2
Composing quadratic expressions from quadratic and linear expressions (qexp and linexp), variables (var) and double values (val). The following operators, with the exception of the negation of a quadratic expression, are defined outside any class definition:
- qexp
qexp1 + qexp2
qexp1 - qexp2
var1 * var2
linexp * var
var * linexp
qexp * val
val * qexp
qexp1 * qexp2
Throws the exception `Non-quadratic expression' if the result of the operation is not quadratic
C++ only
Functions outside any class definition that generate quadratic expressions:
XPRBquadExp sqr(XPRBquadExp& Q)
XPRBquadExp sqr(XPRBlinExp& l)
XPRBquadExp sqr(XPRBvar& v)


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.