Constructs an dims object, which represents the declared dimensions
of a variable, parameter, or equation in a structured symbolic model. Each
dimension is typically represented as a set reference (set) or as a
symbolic identifier (symbol). This is similar to index, but
specifically for dimensions.
Arguments
- ...
One or more dimension expressions, typically created using
ast_set()orast_symbol(). Expected AST objects or character strings, comma-separated. If character strings are provided, they will be converted tosymbolobjects.
Examples
ast_dims(list(ast_set("tech"), ast_set("region")))
#> <AST dims>
#> [tech,region]
ast_dims(ast_symbol("t"))
#> <AST dims>
#> [t]
