I am trying to use ParametricNDSolve
to solve a set of ODEs, but I want to give a range for the parameter before solving the equations. How can I constrain the range of the parameter that ParametricNDSolve
should use?
For example, in the equation below, I want to try and solve the ODEs for a
between 4 and 6 only.
ParametricNDSolve[{y'[t] == a y[t], y[0] == 1}, y, {t, 0, 10}, {a}]
sol = y /. ParametricNDSolve[....]
you can justsol[4]
to havea=4
and also for othera
that you're interested in. $\endgroup$