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.
1 parent ffffe5a commit c5cdad3Copy full SHA for c5cdad3
src/parameters.jl
@@ -62,7 +62,7 @@ toparam(s::Num) = wrap(toparam(value(s)))
62
63
Maps the variable to an unknown.
64
"""
65
-tovar(s::Union{Symbolic, Symbolics.Arr}) = setmetadata(s, MTKVariableTypeCtx, VARIABLE)
+tovar(s::Union{Symbolic, Symbolics.Arr}) = setmetadata(unwrap(s), MTKVariableTypeCtx, VARIABLE)
66
tovar(s::Num) = Num(tovar(value(s)))
67
68
0 commit comments