@@ -133,6 +133,15 @@ function gentypefun_exprs(name; esc_exprs=true, gen_inplace=true, gen_outofplace
133
133
exprs
134
134
end
135
135
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
+ """
136
145
function addodes! (rn:: DiffEqBase.AbstractReactionNetwork ; kwargs... )
137
146
@unpack reactions, syms_to_ints, params_to_ints, syms = rn
138
147
@@ -152,6 +161,15 @@ function addodes!(rn::DiffEqBase.AbstractReactionNetwork; kwargs...)
152
161
nothing
153
162
end
154
163
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
+ """
155
173
function addsdes! (rn:: DiffEqBase.AbstractReactionNetwork )
156
174
@unpack reactions, syms_to_ints, params_to_ints, scale_noise = rn
157
175
@@ -169,6 +187,30 @@ function addsdes!(rn::DiffEqBase.AbstractReactionNetwork)
169
187
nothing
170
188
end
171
189
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
+ """
172
214
function addjumps! (rn:: DiffEqBase.AbstractReactionNetwork ;
173
215
build_jumps= true ,
174
216
build_regular_jumps= true ,
0 commit comments