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.