MPsdConstrBuilder::MPsdConstrBuilder()
Construct a MPsdConstrBuilder object with the given shape.
Synopsis
MPsdConstrBuilder(const Shape<N> &shp)
Arguments
shp
: shape of MPsdConstrBuilder.
MPsdConstrBuilder::Flatten()
Flatten a MPsdConstrBuilder object to a 1-dimensional shape.
Synopsis
MPsdConstrBuilder<1> 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 PSD constraints.
Synopsis
const MPsdExpr<N> &GetPsdExpr()
Return
MPsdExpr object.
MPsdConstrBuilder::GetRange()
Get range from lower bound to upper bound of N-dimensional range PSD constraints.
Synopsis
double GetRange()
Return
length from lower bound to upper bound of range PSD 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
template <int M> void Set(
const MPsdExpr<N> &exprs,
char sense,
const MPsdExpr<M> &rhs)
Arguments
exprs
: MPsdExpr object
sense
: PSD constraint sense other than COPT_RANGE.
rhs
: MPsdExpr object at right side of PSD constraints.
MPsdConstrBuilder::Set()
Set N-dimensional PSD constraints to its builder object.
Synopsis
void Set(
const MPsdExpr<N> &exprs,
char sense,
double rhs)
Arguments
exprs
: MPsdExpr object
sense
: PSD constraint sense other than COPT_RANGE.
rhs
: constant of right side of PSD constraints.
MPsdConstrBuilder::Set()
Set N-dimensional PSD constraints to its builder object.
Synopsis
template <class T> void Set(
const MPsdExpr<N> &exprs,
char sense,
const NdArray<T, N> &rhs)
Arguments
exprs
: MPsdExpr object
sense
: PSD constraint sense other than COPT_RANGE.
rhs
: N-dimensional constants at right side of PSD constraints.
MPsdConstrBuilder::Set()
Set N-dimensional PSD constraints to its builder object.
Synopsis
template <int M> void Set(
const MPsdExpr<N> &exprs,
char sense,
const MVar<M> &rhs)
Arguments
exprs
: MPsdExpr object
sense
: PSD constraint sense other than COPT_RANGE.
rhs
: MVar object at right side of PSD constraints.
MPsdConstrBuilder::Set()
Set N-dimensional PSD constraints to its builder object.
Synopsis
template <int M> void Set(
const MPsdExpr<N> &exprs,
char sense,
const MLinExpr<M> &rhs)
Arguments
exprs
: MPsdExpr object
sense
: PSD constraint sense other than COPT_RANGE.
rhs
: MLinExpr object at right side of PSD constraints.
MPsdConstrBuilder::SetRange()
Set N-dimensional range PSD constraints to its builder object.
Synopsis
void SetRange(const MPsdExpr<N> &exprs, double range)
Arguments
exprs
: MPsdExpr object.
range
: length from lower bound to upper bound of PSD constraint. Must greater than 0.