You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Parameters and variables arrays in @mtkmodel allows the length to be defined while defining the MTKModel. While doesn't allow user to specify/modify the length.
Describe the solution you’d like
@mtkmodel A begin@parametersbegin
a[1:N] =10, [description =""]
endend
Should add N as a kwarg.
@mtkmodel A begin@structural_parametersbegin
N =5end@parametersbegin
a[1:N] =10, [description =""]
endend
Should create a of length 5, while allowing user to override with N.
Is your feature request related to a problem? Please describe.
Parameters and variables arrays in
@mtkmodel
allows the length to be defined while defining the MTKModel. While doesn't allow user to specify/modify the length.Describe the solution you’d like
Should add
N
as a kwarg.Should create
a
of length 5, while allowing user to override withN
.Additional context
X-ref: https://discourse.julialang.org/t/modelingtoolkit-change-parameter-vector-size-based-on-structural-parameter/109914
The text was updated successfully, but these errors were encountered: