PsdConstrBuilder::GetPsdExpr()
Get expression associated with PSD constraint.
Synopsis
const PsdExpr &GetPsdExpr()
Return
PSD expression object.
PsdConstrBuilder::GetRange()
Get range from lower bound to upper bound of range constraint.
Synopsis
double GetRange()
Return
length from lower bound to upper bound of the constraint.
PsdConstrBuilder::GetSense()
Get sense associated with PSD constraint.
Synopsis
char GetSense()
Return
PSD constraint sense.
PsdConstrBuilder::Set()
Set detail of a PSD constraint to its builder object.
Synopsis
void Set(
const PsdExpr &expr,
char sense,
double rhs)
Arguments
expr
: expression object at one side of the PSD constraint.
sense
: PSD constraint sense, other than COPT_RANGE.
rhs
: constant at right side of the PSD constraint.
PsdConstrBuilder::SetRange()
Set a range constraint to its builder.
Synopsis
void SetRange(const PsdExpr &expr, double range)
Arguments
expr
: PSD expression object, whose constant is negative upper bound.
range
: length from lower bound to upper bound of the constraint. Must greater than 0.