PsdConstrBuilder.PsdConstrBuilder()
Constructor of PsdConstrBuilder object.
Synopsis
PsdConstrBuilder()
PsdConstrBuilder.getPsdExpr()
Get expression associated with PSD constraint.
Synopsis
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(
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(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.