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
using ModelingToolkit
using ModelingToolkit: t_nounits as t, D_nounits as D
@variablesx(t)
@parameters A B
@named M =ODESystem([D(x) ~ A + B], t; parameter_dependencies = [B ~2A])
parameters(M) # gives only A, but I expected A and B
Is this intended? I would like B to remain accessible from parameters(M).
The text was updated successfully, but these errors were encountered:
I expected parameters(sys) to return all (independent and dependent parameters). My model construction is conditional on something like if B in parameters(sys) (and I do not care if B is dependent or independent).
Could parameters(sys) also return dependent parameters? Or is there a better way to check if a system has a given (independent or dependent) parameter?
Is this intended? I would like
B
to remain accessible fromparameters(M)
.The text was updated successfully, but these errors were encountered: