14.2.33 Class RangedVariable¶
- mosek.fusion.RangedVariable¶
Represents a ranged variable.
The dual of a ranged variable is the difference between upper and lower dual. To get them separately use the intermediate objects created with
RangedVariable.LowerBoundVar
andRangedVariable.UpperBoundVar
.- Implements
- Members
BaseVariable.Antidiag – Return the antidiagonal of a square variable matrix.
BaseVariable.AsExpr – Create an expression corresponding to the variable object.
BaseVariable.Diag – Return the diagonal of a square variable matrix.
BaseVariable.Dual – Get the dual solution value of the variable.
BaseVariable.Eval – Evaluate the expression and push the result onto the work stack.
BaseVariable.FromTril – Convert from a trilinear representation into a square variable.
BaseVariable.GetDim – Return the d’th dimension in the expression.
BaseVariable.GetModel – Get the Model object that the variable belongs to.
BaseVariable.GetND – Get the number of dimensions in the variable shape.
BaseVariable.GetShape – Get the variable shape.
BaseVariable.GetSize – Get the total number of elements in the variable.
BaseVariable.Index – Return a variable slice of size 1 corresponding to a single element in the variable object..
BaseVariable.Level – Get the primal solution value of the variable.
BaseVariable.MakeContinuous – Drop integrality constraints on the variable, if any.
BaseVariable.MakeInteger – Apply integrality constraints on the variable. Has no effect on elements of semidefinite matrix variables.
BaseVariable.Pick – Create a one-dimensional variable by picking a list of indexes from this variable.
BaseVariable.Reshape – Reshape the variable. The new shape must have the same total size as the current.
BaseVariable.SetLevel – Input solution values for this variable
BaseVariable.Slice – Create a slice variable by picking a range of indexes for each variable dimension.
BaseVariable.ToString – Create a string representation of the variable.
BaseVariable.Transpose – Transpose the variable.
BaseVariable.Tril – Convert from a square variable to a trilinear representation.
ModelVariable.Remove – Remove the variable from the model.
RangedVariable.LowerBoundVar – Obtain the interface to the variable’s lower bound.
RangedVariable.UpperBoundVar – Obtain the interface to the variable’s upper bound.
- RangedVariable.LowerBoundVar¶
BoundInterfaceVariable LowerBoundVar()
Obtain the interface to the variable’s lower bound.
- Return
- RangedVariable.UpperBoundVar¶
BoundInterfaceVariable UpperBoundVar()
Obtain the interface to the variable’s upper bound.
- Return