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 Axis(int a)
Set the dimension along which the cones are created.
- Parameters:
a
(int
)- Return:
- 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 Integral()
Modify a given domain restricting its elements to be integral.
- Return:
- ConeDomain.WithNamesOnAxis¶
ConeDomain 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:
- ConeDomain.WithShape¶
ConeDomain WithShape(int[] shp) ConeDomain WithShape(int dim0) ConeDomain WithShape(int dim0, int dim1) ConeDomain 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: