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¶
axis(int a) -> ConeDomain
Set the dimension along which the cones are created.
- Parameters
a
(int
)- Return
- ConeDomain.axisIsSet¶
axisIsSet() -> bool
Returns true if the cone axis was set
- Return
(
bool
)
- ConeDomain.getAxis¶
getAxis() -> int
Get the dimension along which the cones are created.
- Return
(
int
)
- ConeDomain.integral¶
integral() -> ConeDomain
Modify a given domain restricting its elements to be integral.
- Return
- ConeDomain.withNamesOnAxis¶
withNamesOnAxis(str[] names, int axis) -> ConeDomain
Set index names in a specific axis.
- Parameters
names
(str
[]) – List of names, this must match the actual dimension on that axis.axis
(int
) – The axis to change names on.
- Return
- ConeDomain.withShape¶
withShape(int[] shp) -> ConeDomain withShape(int dim0) -> ConeDomain withShape(int dim0, int dim1) -> ConeDomain withShape(int dim0, int dim1, int dim2) -> ConeDomain
Set the shape of the domain.
- Parameters
shp
(int
[]) – The shape of the domaindim0
(int
) – First dimensiondim1
(int
) – Second dimensiondim2
(int
) – Third dimension
- Return