14.2.31 Class RangeDomain¶
- mosek.fusion.RangeDomain¶
The
RangeDomain
object is never instantiated directly: Instead use the relevant methods inDomain
.- Members:
RangeDomain.Integral – Creates a domain of integral variables.
RangeDomain.Sparse – Creates a domain exploiting sparsity.
RangeDomain.WithNamesOnAxis – Set index names in a specific axis.
RangeDomain.WithShape – Set the shape of the domain.
- RangeDomain.Integral¶
RangeDomain Integral()
Modify a given domain restricting its elements to be integral.
- Return:
- RangeDomain.Sparse¶
RangeDomain Sparse() RangeDomain Sparse(int[] sparsity) RangeDomain Sparse(int[,] sparsity)
Creates a domain exploiting sparsity.
- Parameters:
sparsity
(int
[])sparsity
(int
[,])
- Return:
- RangeDomain.WithNamesOnAxis¶
RangeDomain WithNamesOnAxis(string[] names, int axis)
Set index names in a specific axis.
- Parameters:
names
(string
[]) – List of names, this must match the actual dimension on that axis.axis
(int
) – The axis to change names on.
- Return:
- RangeDomain.WithShape¶
RangeDomain WithShape(int[] shp) RangeDomain WithShape(int dim0) RangeDomain WithShape(int dim0, int dim1) RangeDomain WithShape(int dim0, int dim1, int dim2)
Set the shape of the domain.
- Parameters:
shp
(int
[]) – The shape of the domaindim0
(int
) – First dimensiondim1
(int
) – Second dimensiondim2
(int
) – Third dimension
- Return: