Closed TorkelE closed 5 months ago
Was this ever supported? I thought there was always a data flow of parameters to values. You can solve this in a modeling sense by defining a parameter that is then used as the initial condition?
Yes, in MTK8 if you define a parameter as a function of states then it is calculated based on their initial values, and Catalyst relied on this to determine the value of conserved constants.
Defining a parameter that gives an initial condition wouldn't work, we want to allow someone to specify initial values for all species and then automatically calculate the value of the conserved quantity from it to use in the reduced model as a parameter.
Would it make sense to create a decorator to indicate we want the initial value? i.e. p ~ initialvalue(A) + initialvalue(B)
for @species A(t) B(t)
?
Needed for e.g. conservation laws in Catalyst.
MWE:
gives a
@AayushSabharwal