@@ -13,6 +13,30 @@ osys = convert(ODESystem, rn; combinatoric_ratelaws=false)
13
13
Disabling these rescalings should work for all conversions of ` ReactionSystem ` s
14
14
to other ` ModelingToolkit.AbstractSystem ` s.
15
15
16
+ ## How to use non-integer stoichiometric coefficients?
17
+ ``` julia
18
+ rn = @reaction_network begin
19
+ k, 2.5 * A --> 3 * B
20
+ end k
21
+ ```
22
+ or directly via
23
+ ``` julia
24
+ @parameters k b
25
+ @variables t A (t) B (t) C (t) D (t)
26
+ rx1 = Reaction (k,[B,C],[B,D], [2.5 ,1 ],[3.5 , 2.5 ])
27
+ rx2 = Reaction (2 * k, [B], [D], [1 ], [2.5 ])
28
+ rx3 = Reaction (2 * k, [B], [D], [2.5 ], [2 ])
29
+ @named mixedsys = ReactionSystem ([rx1,rx2,rx3],t,[A,B,C,D],[k,b])
30
+ osys = convert (ODESystem, mixedsys; combinatoric_ratelaws= false )
31
+ ```
32
+ Note, when using ` convert(ODESystem, mixedsys; combinatoric_ratelaws=false) ` the
33
+ ` combinatoric_ratelaws=false ` parameter must be passed. This is also true when
34
+ calling ` ODEProblem(mixedsys,...; combinatoric_ratelaws=false) ` . As described
35
+ above, this disables Catalyst's standard rescaling of reaction rates when
36
+ generating reaction rate laws, see also the [ Reaction rate laws used in
37
+ simulations] ( @ref ) section. Leaving this keyword out for systems with floating
38
+ point stoichiometry will give an error message.
39
+
16
40
## How to set default values for initial conditions and parameters?
17
41
When directly constructing a ` ReactionSystem ` these can be passed to the
18
42
constructor, and allow solving the system without needing initial condition or
0 commit comments