Adding jump to JumpProblem defined from Catalyst model

Hi,

Does anyone know if it’s possible to add a newly defined jump to a JumpProblem which is directly defined from a Catalyst.jl model? This is easily done when building a model straight from Jumps, just add another one to the JumpSet, but I was wondering if it was possible to access the JumpSet from the Catalyst output and add another separately defined jump.

I want to add a conditional event to my model which is defined as a Jump (instead of using callbacks).

Thanks!

Open an issue. In general this can be hard because jumps tend to codegen / aggregate together. But you could tag one on after, just right before the jump aggregation. I think this is more for an issue / feature request where you also show an example of what you’re trying to do in order to motivate it a bit more.

Can you explain what you want your event to do / when it should fire? To make sense as a jump it has to have a well-defined rate function that determines (stochastically) when it fires.