5.6. Var¶
- class Var(TensorLike)¶
The decision variable to be optimized.
Properties
The solution of this variable.
The declared attribute for variable.
The value for variable to warm start. Its initial value is None, which indicates that no start value specified.
Methods
Construct a new variable.
- property X: np.ndarray¶
The solution of this variable.
- property attr: int¶
The declared attribute for variable.
Attributes include:
nonneg = 0
nonpos = 1
symmetric = 2
diag = 3
PSD = 4
NSD = 5
pos = 6
neg = 7
For example, if variable is declared as PSD, this value is 16(1 << 4).
- property start: ArrayLike¶
The value for variable to warm start. Its initial value is None, which indicates that no start value specified.
- __init__(name: str = None, *shape: int, **attr: bool)¶
Construct a new variable.