MConstr.Clone()
Clone MConstr object.
Synopsis
MConstr Clone()
Return
new MConstr object.
MConstr.Diagonal()
Get diagonals of MConstr object.
Synopsis
MConstr 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 MConstr.
axis2
: 2nd axis of MConstr.Return
(N-1)-dimensional diagonals.
MConstr.Expand()
Expand shape of MConstr object.
Synopsis
MConstr Expand(int axis)
Arguments
axis
: axis of MConstr.Return
MConstr object of (N+1)-dimensional shape.
MConstr.Flatten()
Flatten a MConstr object to a 1-dimensional shape.
Synopsis
MConstr Flatten()
Return
a MConstr object collapsed into one dimension.
MConstr.Get()
Get values of information associated with constraints in MConstr object.
Synopsis
NdArray<double> Get(string info)
Arguments
info
: name of information.Return
multi-dimensional array of information of constraints.
MConstr.GetDim()
Get i-th dimension of MConstr object.
Synopsis
long GetDim(int i)
Arguments
i
: index of dimensionReturn
i-th dimension.
MConstr.GetIdx()
Get index of constraints in MConstr object.
Synopsis
NdArray<int> GetIdx()
Return
multi-dimensional array of indexes of constraints.
MConstr.GetItem()
Get constraint of given index from MConstr object.
Synopsis
Constraint GetItem(long idx)
Arguments
idx
: index of constraint.Return
Constraint object.
MConstr.GetItem()
Get sub-arrays of MConstr object, given view object.
Synopsis
MConstr GetItem(View view)
Arguments
view
: view of multi-dimensional array.Return
sub-arrays of MConstr object.
MConstr.GetLowerIIS()
Get IIS status of lower bound of constraints in MConstr object.
Synopsis
NdArray<int> GetLowerIIS()
Return
multi-dimensional array of IIS status of lower bounds of constraints.
MConstr.GetND()
Get number of dimensions of MConstr object.
Synopsis
int GetND()
Return
number of dimensions.
MConstr.GetShape()
Get shape of MConstr object.
Synopsis
Shape GetShape()
Return
shape object.
MConstr.GetSize()
Get size of MConstr object.
Synopsis
long GetSize()
Return
number of vars.
MConstr.GetUpperIIS()
Get IIS status of upper bound of constraints in MConstr object.
Synopsis
NdArray<int> GetUpperIIS()
Return
multi-dimensional array of IIS status of upper bounds of constraints.
MConstr.HStack()
Stack with other MConstr object along horizontal axis.
Synopsis
MConstr HStack(MConstr other)
Arguments
other
: a MConstr object.Return
the result MConstr object.
MConstr.Pick()
Given a list of indexes, get constraints from MConstr object.
Synopsis
MConstr 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 constraints.
MConstr.Represent()
String representation of MConstr object.
Synopsis
string Represent(int maxlen)
Arguments
maxlen
: maximum buffer length for representations string.Return
string object.
MConstr.Reshape()
Reshape MConstr object to new shape.
Synopsis
MConstr Reshape(Shape shp)
Arguments
shp
: new shape of M-dimensions.Return
M-dimensional MConstr object.
MConstr.Set()
Set values of information associated with constraints in MConstr object.
Synopsis
void Set(string info, NdArray<double> vals)
Arguments
info
: name of information.
vals
: multi-dimensional array of values of information.
MConstr.Set()
Set values of information associated with constraints in MConstr object.
Synopsis
void Set(string info, double val)
Arguments
info
: name of information.
val
: value of information.
MConstr.SetItem()
Set constraint of given index to MConstr object.
Synopsis
void SetItem(long idx, Constraint constr)
Arguments
idx
: index of element.
constr
: Constraint object.
MConstr.Squeeze()
Remove axis of length 1 from shape of MConstr object.
Synopsis
MConstr Squeeze(int axis)
Arguments
axis
: axis of MConstr, where the length is 1.Return
MConstr object of (N-1)-dimensional shape.
MConstr.Stack()
Stack with other MConstr object along given axis.
Synopsis
MConstr Stack(MConstr other, int axis)
Arguments
other
: a MConstr object.
axis
: an axis of MConstr.Return
the result MConstr object.
MConstr.Transpose()
Perform matrix transpose of MConstr object.
Synopsis
MConstr Transpose()
Return
transposed MConstr object.
MConstr.VStack()
Stack with other MConstr object along vertical axis.
Synopsis
MConstr VStack(MConstr other)
Arguments
other
: a MConstr object.Return
the result MConstr object.