14.2.17 Class LinearDomain¶
- mosek.fusion.LinearDomain¶
Represent a domain defined by linear constraints
- Members
LinearDomain.Integral – Creates a domain of integral variables.
LinearDomain.Sparse – Creates a domain exploiting sparsity.
LinearDomain.Symmetric – Creates a symmetric domain
LinearDomain.WithNamesOnAxis – Set index names in a specific axis.
LinearDomain.WithShape – Set the shape of the domain.
- LinearDomain.Integral¶
LinearDomain Integral()
Modify a given domain restricting its elements to be integral.
- Return
- LinearDomain.Sparse¶
LinearDomain Sparse() LinearDomain Sparse(int[] sparsity) LinearDomain Sparse(int[,] sparsity)
Creates a domain exploiting sparsity.
- Parameters
sparsity
(int
[])sparsity
(int
[,])
- Return
- LinearDomain.Symmetric¶
SymmetricLinearDomain Symmetric()
Creates a symmetric domain
- Return
- LinearDomain.WithNamesOnAxis¶
LinearDomain 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
- LinearDomain.WithShape¶
LinearDomain WithShape(int[] shp) LinearDomain WithShape(int dim0) LinearDomain WithShape(int dim0, int dim1) LinearDomain 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