MQConstrBuilder::MQConstrBuilder()

Construct a MQConstrBuilder object with the given shape.

Synopsis

MQConstrBuilder(const Shape<N> &shp)

Arguments

shp: shape of MQConstrBuilder.

MQConstrBuilder::Flatten()

Flatten a MQConstrBuilder object to a 1-dimensional shape.

Synopsis

MQConstrBuilder<1> Flatten()

Return

a MQConstrBuilder object collapsed into one dimension.

MQConstrBuilder::GetND()

Get number of dimensions of MQConstrBuilder object.

Synopsis

int GetND()

Return

number of dimensions.

MQConstrBuilder::GetQuadExpr()

Get N-dimensional quadratic expressions associated with N-dimensional quadratic constraints.

Synopsis

const MQuadExpr<N> &GetQuadExpr()

Return

MQuadExpr object.

MQConstrBuilder::GetSense()

Get sense associated with N-dimensional quadratic constraints.

Synopsis

char GetSense()

Return

quadratic constraint sense.

MQConstrBuilder::Set()

Set N-dimensional quadratic constraints to its builder object.

Synopsis

void Set(

const MQuadExpr<N> &expr,

char sense,

double rhs)

Arguments

expr: MQuadExpr object

sense: constraint sense other than COPT_RANGE.

rhs: constant of right side of quadratic constraints.

MQConstrBuilder::Set()

Set N-dimensional quadratic constraints to its builder object.

Synopsis

template <class T> void Set(

const MQuadExpr<N> &expr,

char sense,

const NdArray<T, N> &rhs)

Arguments

expr: MQuadExpr object

sense: constraint sense other than COPT_RANGE.

rhs: N-dimensional constants at right side of quadratic constraints.

MQConstrBuilder::Set()

Set N-dimensional quadratic constraints to its builder object.

Synopsis

template <int M> void Set(

const MQuadExpr<N> &expr,

char sense,

const MVar<M> &rhs)

Arguments

expr: MQuadExpr object

sense: constraint sense other than COPT_RANGE.

rhs: MVar object at right side of quadratic constraints.

MQConstrBuilder::Set()

Set N-dimensional quadratic constraints to its builder object.

Synopsis

template <int M> void Set(

const MQuadExpr<N> &expr,

char sense,

const MLinExpr<M> &rhs)

Arguments

expr: MQuadExpr object

sense: constraint sense other than COPT_RANGE.

rhs: MLinExpr object at right side of quadratic constraints.

MQConstrBuilder::Set()

Set N-dimensional quadratic constraints to its builder object.

Synopsis

template <int M> void Set(

const MQuadExpr<N> &expr,

char sense,

const MQuadExpr<M> &rhs)

Arguments

expr: MQuadExpr object

sense: constraint sense other than COPT_RANGE.

rhs: MQuadExpr object at right side of quadratic constraints.