MPsdConstrBuilder.MPsdConstrBuilder()
Construct a MPsdConstrBuilder object with the given shape.
Synopsis
MPsdConstrBuilder(Shape shp)Arguments
shp: shape of MPsdConstrBuilder.
MPsdConstrBuilder.Flatten()
Flatten a MPsdConstrBuilder object to a 1-dimensional shape.
Synopsis
MPsdConstrBuilder Flatten()Return
a MPsdConstrBuilder object collapsed into one dimension.
MPsdConstrBuilder.GetND()
Get number of dimensions of MPsdConstrBuilder object.
Synopsis
int GetND()Return
number of dimensions.
MPsdConstrBuilder.GetPsdExpr()
Get N-dimensional PSD expressions associated with N-dimensional constraints.
Synopsis
MPsdExpr GetPsdExpr()Return
MPsdExpr object.
MPsdConstrBuilder.GetRange()
Get range from lower bound to upper bound of N-dimensional range constraints.
Synopsis
double GetRange()Return
length from lower bound to upper bound of range constraints.
MPsdConstrBuilder.GetSense()
Get sense associated with N-dimensional PSD constraints.
Synopsis
char GetSense()Return
PSD constraint sense.
MPsdConstrBuilder.Set()
Set N-dimensional PSD constraints to its builder object.
Synopsis
void Set(
MPsdExpr expr,
char sense,
NdArray<double> rhs)Arguments
expr: MPsdExpr object
sense: constraint sense other than COPT_RANGE.
rhs: N-dimensional constants at right side of constraints.
MPsdConstrBuilder.Set()
Set N-dimensional PSD constraints to its builder object.
Synopsis
void Set(
MPsdExpr expr,
char sense,
double rhs)Arguments
expr: MPsdExpr object
sense: constraint sense other than COPT_RANGE.
rhs: constant of right side of constraints.
MPsdConstrBuilder.Set()
Set N-dimensional PSD constraints to its builder object.
Synopsis
void Set(
MPsdExpr expr,
char sense,
MVar rhs)Arguments
expr: MPsdExpr object
sense: constraint sense other than COPT_RANGE.
rhs: MVar object at right side of constraints.
MPsdConstrBuilder.Set()
Set N-dimensional PSD constraints to its builder object.
Synopsis
void Set(
MPsdExpr expr,
char sense,
MLinExpr rhs)Arguments
expr: MPsdExpr object
sense: constraint sense other than COPT_RANGE.
rhs: MLinExpr object at right side of constraints.
MPsdConstrBuilder.Set()
Set N-dimensional PSD constraints to its builder object.
Synopsis
void Set(
MPsdExpr expr,
char sense,
MPsdExpr rhs)Arguments
expr: MPsdExpr object
sense: PSD constraint sense other than COPT_RANGE.
rhs: MPsdExpr object at right side of PSD constraints.
MPsdConstrBuilder.SetRange()
Set N-dimensional range PSD constraints to its builder object.
Synopsis
void SetRange(MPsdExpr expr, double range)Arguments
expr: MPsdExpr object.
range: length from lower bound to upper bound of PSD constraint. Must greater than 0.