@@ -133,6 +133,15 @@ function gentypefun_exprs(name; esc_exprs=true, gen_inplace=true, gen_outofplace
133133 exprs
134134end
135135
136+ """
137+ addodes!(network; build_jac=true, build_symfuncs=true)
138+
139+ Extend an `AbstractReactionNetwork` generated with the `@min_reaction_network`
140+ macro with everything needed to use ODE solvers.
141+
142+ Optional kwargs can be used to disable the construction of additional ODE solver
143+ components.
144+ """
136145function addodes! (rn:: DiffEqBase.AbstractReactionNetwork ; kwargs... )
137146 @unpack reactions, syms_to_ints, params_to_ints, syms = rn
138147
@@ -152,6 +161,15 @@ function addodes!(rn::DiffEqBase.AbstractReactionNetwork; kwargs...)
152161 nothing
153162end
154163
164+ """
165+ addsdes!(network; build_jac=true, build_symfuncs=true)
166+
167+ Extend an `AbstractReactionNetwork` generated with the `@min_reaction_network`
168+ macro with everything needed to use SDE solvers.
169+
170+ Optional kwargs can be used to disable the construction of additional SDE solver
171+ components.
172+ """
155173function addsdes! (rn:: DiffEqBase.AbstractReactionNetwork )
156174 @unpack reactions, syms_to_ints, params_to_ints, scale_noise = rn
157175
@@ -169,6 +187,30 @@ function addsdes!(rn::DiffEqBase.AbstractReactionNetwork)
169187 nothing
170188end
171189
190+ """
191+ addjumps!(network; build_jumps=true, build_regular_jumps=true, minimal_jumps=false)
192+
193+ Extend an `AbstractReactionNetwork` generated with the `@min_reaction_network`
194+ macro with everything needed to use jump SSA solvers.
195+
196+ Optional kwargs can be used to disable the construction of additional jump solver
197+ components.
198+
199+ Keyword arguments:
200+
201+ * `build_jumps`: if true jump rates and affects will be calculated for use in
202+ DiffEqJump SSAs.
203+
204+ * `build_regular_jumps`: if true a `RegularJump` representation of the
205+ stochastic chemical kinetics model will be calculated for use in τ-leaping
206+ methods.
207+
208+ * `minimal_jumps`: if true `ConstantRate` jumps are only constructed for
209+ non-mass action jumps. (Note, mass action jumps are still resolved within any
210+ jump simulation. This option simply speeds up the construction of the jump
211+ problem since it avoids building redundant `ConstantRate` jumps that encode
212+ `MassActionJump`s, which are subsequently ignored within jump simulations.)
213+ """
172214function addjumps! (rn:: DiffEqBase.AbstractReactionNetwork ;
173215 build_jumps= true ,
174216 build_regular_jumps= true ,
0 commit comments