14.2.31 Class RangeDomain¶
- mosek.fusion.RangeDomain¶
The
RangeDomainobject 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: