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