Hello everyone. When building a model in ModelingToolkit, there is the option of doing it with the macro @mtkmodel. Inside the macro, we can define structural parameters for defining numerical variables. For example,
const me = 0.511
@mtkmodel MyModel begin
@structural_parameters begin
mass = me
end
@variables begin
y(t)
end
@equations begin
y ~ exp(- 1 / t) * mass
end
end
Is it possible to do the same with the System constructor? It doesn’t have a structural_parameters keyword argument. From reading the docs, I haven’t found anything else yet.
I’m interested in knowing this because for the equations I need to define, it’s simpler to do so with the System approach. However, such equations depend on some parameters that are not symbolic, just constants, and some fixed matrices.