-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rate function interface #314
Comments
They do take integrators, but the issue is that it needs to be interpolated to the right point. |
Ahh yes, I always mix it up with the jump rate definition. I guess I was actually thinking of the latter (which is of the form |
@ChrisRackauckas what do you think about using My thought is this would ensure rate, condition, and affect functions across callbacks and jumps all have access to integrators. Users would then always have access to the symbolic indexing. We could also then unify that rngs are stored in integrators across SciML, which fixes the issue that we store them in the JumpAggregations here, and means users would be able to use the internal rng we are using in their callback/jump functions. (It also avoids having to break/modify the definition of rate and affect functions to support an explicit rng argument.) Of course, it would then require adding this field across to most ODE/SDE integrators, which I guess could be a lot of work? |
Ahh, I see that this won't work for variable rates since they have to support being called without integrators via the ODE derivative interface: JumpProcesses.jl/src/problem.jl Line 272 in fd47a82
That's unfortunate as this seemed like a clean way to pass around rngs too. |
Is there a reason that rate functions for jumps don't take integrators? One disadvantage of this design is that one can't use the new symbolic indexing options in them.
The text was updated successfully, but these errors were encountered: