# 14.2.38 Class SymmetricVariable¶

mosek.fusion.SymmetricVariable

In some cases using this variable instead of a standard `Variable` can reduce the number of instantiated variables by approximately 50%.

Implements

`Variable`

Members

Expression.Eval – Evaluate the expression and push the result onto the work stack.

Expression.GetDim – Return the d’th dimension in the expression.

Variable.Antidiag – Return the anti-diagonal of a variable matrix.

Variable.AsExpr – Create an expression corresponding to the variable object.

Variable.Diag – Return the diagonal of a variable matrix.

Variable.Dual – Get the dual solution value of the variable.

Variable.FromTril – Convert from a linear representation of the lower triangular part of a square variable into a square variable.

Variable.GetModel – Return the model to which the variable belongs.

Variable.GetND – Get the number of dimensions in the variable shape.

Variable.GetShape – Return the shape of the variable.

Variable.GetSize – Get the total number of elements in the variable.

Variable.Index – Return a single entry in the variable.

Variable.Level – Return the primal value of the variable as an array.

Variable.MakeContinuous – Drop integrality constraints on the variable, if any.

Variable.MakeInteger – Apply integrality constraints on the variable. Has no effect on elements of semidefinite matrix variables.

Variable.Pick – Create a one-dimensional variable by picking a list of indexes from this variable.

Variable.Remove – Remove the variable from the model.

Variable.Reshape – Reshape the variable. The new shape must have the same total size as the current.

Variable.SetLevel – Input solution values for this variable

Variable.Slice – Create a slice variable by picking a range of indexes for each variable dimension.

Variable.ToString – Create a string representation of the variable.

Variable.Transpose – Transpose the variable.

Variable.Tril – Convert a square variable into a linear representation of the lower triangular part of the variable.

Implemented by