We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parse_variable
1 parent 8712f99 commit 3c728a3Copy full SHA for 3c728a3
docs/src/basics/FAQ.md
@@ -82,6 +82,16 @@ parameter_index(sys, sym)
82
Note that while the variable index will be an integer, the parameter index is a struct of
83
type `ParameterIndex` whose internals should not be relied upon.
84
85
+## Can I index with strings?
86
+
87
+Strings are not considered symbolic variables, and thus cannot directly be used for symbolic
88
+indexing. However, ModelingToolkit does provide a method to parse the string representation of
89
+a variable, given the system in which that variable exists.
90
91
+```@docs
92
+ModelingToolkit.parse_variable
93
+```
94
95
## Transforming value maps to arrays
96
97
ModelingToolkit.jl allows (and recommends) input maps like `[x => 2.0, y => 3.0]`
0 commit comments