14.2.5 Class ConeDomain

mosek::fusion::ConeDomain

Represent a domain defined by a conic constraints

Members:

ConeDomain.axis – Set the dimension along which the cones are created.

ConeDomain.axisIsSet – Returns true if the cone axis was set

ConeDomain.getAxis – Get the dimension along which the cones are created.

ConeDomain.integral – Creates a domain of integral variables.

ConeDomain.withNamesOnAxis – Set index names in a specific axis.

ConeDomain.withShape – Set the shape of the domain.

ConeDomain.axis
ConeDomain::t axis(int a)

Set the dimension along which the cones are created.

Parameters:

a (int)

Return:

(ConeDomain)

ConeDomain.axisIsSet
bool axisIsSet()

Returns true if the cone axis was set

Return:

(bool)

ConeDomain.getAxis
int getAxis()

Get the dimension along which the cones are created.

Return:

(int)

ConeDomain.integral
ConeDomain::t integral()

Modify a given domain restricting its elements to be integral.

Return:

(ConeDomain)

ConeDomain.withNamesOnAxis
ConeDomain::t withNamesOnAxis(shared_ptr<ndarray<string,1>> 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:

(ConeDomain)

ConeDomain.withShape
ConeDomain::t withShape(shared_ptr<ndarray<int,1>> shp)
ConeDomain::t withShape(int dim0)
ConeDomain::t withShape(int dim0, int dim1)
ConeDomain::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:

(ConeDomain)