An acausal modeling framework for automatically parallelized scientific machine learning (SciML) in Julia. A computer algebra system for integrated symbolics for physics-informed machine learning and automated transformations of differential equations
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
@parameters begin
a[1:N] = 10, [description = ""]
end
end
Should add N as a kwarg.
@mtkmodel A begin
@structural_parameters begin
N = 5
end
@parameters begin
a[1:N] = 10, [description = ""]
end
end
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