- shape
Integer vector of length 1 or 2 giving the variable dimensions.
A scalar n is interpreted as c(n, 1).
Defaults to c(1, 1) (scalar).
- name
Optional character string name for the variable. If NULL,
an automatic name "var<id>" is generated.
- value
Optional numeric initial value (scalar, vector, or matrix
matching shape). Validated and projected onto the attribute
domain via the same path as value(var) <- val.
- var_id
Optional integer ID. If NULL, a unique ID is generated.
- latex_name
Optional character string giving a custom LaTeX name for
use in visualizations. For example, "\\mathbf{x}".
If NULL (default), visualizations auto-generate a LaTeX name.
- ...
Additional attributes: nonneg, nonpos, PSD,
NSD, symmetric, boolean, integer, etc.