MQConstr.Clone()
Clone MQConstr object.
Synopsis
MQConstr Clone()
Return
new MQConstr object.
MQConstr.Diagonal()
Get diagonals of MQConstr object.
Synopsis
MQConstr Diagonal(
int offset,
int axis1,
int axis2)
Arguments
offset
: offset of the diagonal from the main diagonal. Can be positive or negative.
axis1
: 1st axis of MQConstr.
axis2
: 2nd axis of MQConstr.Return
(N-1)-dimensional diagonals.
MQConstr.Expand()
Expand shape of MQConstr object.
Synopsis
MQConstr Expand(int axis)
Arguments
axis
: axis of MQConstr.Return
MQConstr object of (N+1)-dimensional shape.
MQConstr.Flatten()
Flatten a MQConstr object to a 1-dimensional shape.
Synopsis
MQConstr Flatten()
Return
a MQConstr object collapsed into one dimension.
MQConstr.Get()
Get values of information associated with quadratic constraints in MQConstr object.
Synopsis
NdArray<double> Get(string info)
Arguments
info
: name of information.Return
multi-dimensional array of information of quadratic constraints.
MQConstr.GetDim()
Get i-th dimension of MQConstr object.
Synopsis
long GetDim(int i)
Arguments
i
: index of dimensionReturn
i-th dimension.
MQConstr.GetIdx()
Get index of quadratic constraints in MQConstr object.
Synopsis
NdArray<int> GetIdx()
Return
multi-dimensional array of indexes of quadratic constraints.
MQConstr.GetItem()
Get quadratic constraint of given index from MQConstr object.
Synopsis
QConstraint GetItem(long idx)
Arguments
idx
: index of quadratic constraint.Return
QConstraint object.
MQConstr.GetItem()
Get sub-arrays of MQConstr object, given view object.
Synopsis
MQConstr GetItem(View view)
Arguments
view
: view of multi-dimensional array.Return
sub-arrays of MQConstr object.
MQConstr.GetND()
Get number of dimensions of MQConstr object.
Synopsis
int GetND()
Return
number of dimensions.
MQConstr.GetRhs()
Get RHS of quadratic constraints in MQConstr object.
Synopsis
NdArray<double> GetRhs()
Return
multi-dimensional array of RHS of quadratic constraints.
MQConstr.GetSense()
Get senses of quadratic constraints in MQConstr object.
Synopsis
NdArray<char> GetSense()
Return
multi-dimensional array of senses of quadratic constraints.
MQConstr.GetShape()
Get shape of MQConstr object.
Synopsis
Shape GetShape()
Return
shape object.
MQConstr.GetSize()
Get size of MQConstr object.
Synopsis
long GetSize()
Return
number of vars.
MQConstr.HStack()
Stack with other MQConstr object along horizontal axis.
Synopsis
MQConstr HStack(MQConstr other)
Arguments
other
: a MQConstr object.Return
the result MQConstr object.
MQConstr.Pick()
Given a list of indexes, get quadratic constraints from MQConstr object.
Synopsis
MQConstr Pick(NdArray<int> indexes)
Arguments
indexes
: one or two dimensional indexes of elements. If two dimensional, each row is position of an element.Return
one-dimensional array of desired quadratic constraints.
MQConstr.Represent()
String representation of MQConstr object.
Synopsis
string Represent(uint maxlen)
Arguments
maxlen
: maximum buffer length for representations string.Return
string object.
MQConstr.Reshape()
Reshape MQConstr object to new shape.
Synopsis
MQConstr Reshape(Shape shp)
Arguments
shp
: new shape of M-dimensions.Return
M-dimensional MQConstr object.
MQConstr.Set()
Set values of information associated with quadratic constraints in MQConstr object.
Synopsis
void Set(string info, NdArray<double> vals)
Arguments
info
: name of information.
vals
: multi-dimensional array of values of information.
MQConstr.Set()
Set values of information associated with quadratic constraints in MQConstr object.
Synopsis
void Set(string info, double val)
Arguments
info
: name of information.
val
: value of information.
MQConstr.SetItem()
Set quadratic constraint of given index to MQConstr object.
Synopsis
void SetItem(long idx, QConstraint constr)
Arguments
idx
: index of element.
constr
: quadratic constraint object.
MQConstr.Squeeze()
Remove axis of length 1 from shape of MQConstr object.
Synopsis
MQConstr Squeeze(int axis)
Arguments
axis
: axis of MQConstr, where the length is 1.Return
MQConstr object of (N-1)-dimensional shape.
MQConstr.Stack()
Stack with other MQConstr object along given axis.
Synopsis
MQConstr Stack(MQConstr other, int axis)
Arguments
other
: a MQConstr object.
axis
: an axis of MQConstr.Return
the result MQConstr object.
MQConstr.Transpose()
Perform matrix transpose of MQConstr object.
Synopsis
MQConstr Transpose()
Return
transposed MQConstr object.
MQConstr.VStack()
Stack with other MQConstr object along vertical axis.
Synopsis
MQConstr VStack(MQConstr other)
Arguments
other
: a MQConstr object.Return
the result MQConstr object.