14.2.14 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.withShape – Set the shape of the domain.

LinearDomain.integral
integral() -> LinearDomain

Modify a given domain restricting its elements to be integral.

Return

(LinearDomain)

LinearDomain.sparse
sparse() -> LinearDomain
sparse(int[] sparsity) -> LinearDomain
sparse(int[][] sparsity) -> LinearDomain

Creates a domain exploiting sparsity.

Parameters
  • sparsity (int[])

  • sparsity (int[][])

Return

(LinearDomain)

LinearDomain.symmetric
symmetric() -> SymmetricLinearDomain

Creates a symmetric domain

Return

(SymmetricLinearDomain)

LinearDomain.withShape
withShape(int[] shp) -> LinearDomain
withShape(int dim0) -> LinearDomain
withShape(int dim0, int dim1) -> LinearDomain
withShape(int dim0, int dim1, int dim2) -> LinearDomain

Set the shape of the domain.

Parameters
  • shp (int[]) – The shape of the domain

  • dim0 (int) – First dimension

  • dim1 (int) – Second dimension

  • dim2 (int) – Third dimension

Return

(LinearDomain)