Create a variable AST node
Usage
ast_variable(name, dims = ast_dims(), vtype = NULL, bounds = NULL, ...)Arguments
- name
Name of the variable.
- dims
Optional vector of dimension
dimsobjects.- vtype
Optional variable type as declared in the source model (e.g.
"positive","binary","integer").- bounds
Optional list of bounds with elements
loand/orup.- ...
Additional fields stored on the node (passed to
new_ast()).
