14.2.28 Class RangeDomain

mosek::fusion::RangeDomain

The RangeDomain object is never instantiated directly: Instead use the relevant methods in Domain.

Members

RangeDomain.integral – Creates a domain of integral variables.

RangeDomain.sparse – Creates a domain exploiting sparsity.

RangeDomain.symmetric – Creates a symmetric domain.

RangeDomain.withShape – Set the shape of the domain.

Implemented by

SymmetricRangeDomain

RangeDomain.integral
RangeDomain::t integral()

Modify a given domain restricting its elements to be integral.

Return

(RangeDomain)

RangeDomain.sparse
RangeDomain::t sparse()
RangeDomain::t sparse(shared_ptr<ndarray<int,1>> sparsity)
RangeDomain::t sparse(shared_ptr<ndarray<int,2>> sparsity)

Creates a domain exploiting sparsity.

Parameters
  • sparsity (int[])

  • sparsity (int[][])

Return

(RangeDomain)

RangeDomain.symmetric
SymmetricRangeDomain::t symmetric()

Creates a symmetric domain.

Return

(SymmetricRangeDomain)

RangeDomain.withShape
RangeDomain::t withShape(shared_ptr<ndarray<int,1>> shp)
RangeDomain::t withShape(int dim0)
RangeDomain::t withShape(int dim0, int dim1)
RangeDomain::t withShape(int dim0, int dim1, int dim2)

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

(RangeDomain)