14.2.36 Class SliceConstraint

mosek.fusion.SliceConstraint

An alias for a subset of constraints from a single ModelConstraint.

This class acts as a proxy for accessing a portion of a ModelConstraint. It is possible to access and modify the properties of the original variable using this alias. It does not access the Model directly, only through the original variable.

Implements:

Constraint

Members:

Constraint.Dual – Get the dual solution values of the constraint.

Constraint.GetModel – Return the model that the constraint belongs to.

Constraint.GetND – Return the number of dimensions in the constraint shape.

Constraint.GetShape – Return the constraint’s shape.

Constraint.GetSize – Return the total number of elements in the constraint.

Constraint.Index – Get a single element from a constraint.

Constraint.Level – Get the primal solution values of the constraint.

Constraint.Remove – Remove the constraint from the model.

Constraint.Slice – Create a slice constraint.

Constraint.Update – Update part of a constraint.

SliceConstraint.ToString – Create a human readable string representation of the constraint.

Implemented by:

BoundInterfaceConstraint

SliceConstraint.ToString
string ToString()

Create a human readable string representation of the constraint.

Return:

(string)