Skip to content

Commit 8de3c9e

Browse files
committed
fixes
1 parent 62b8004 commit 8de3c9e

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ makedocs(sitename = "Catalyst.jl",
4141
clean = true,
4242
pages = pages,
4343
pagesonly = true,
44-
warnonly = [:missing_docs])
44+
warnonly = true)
4545

4646
deploydocs(repo = "github.com/SciML/Catalyst.jl.git";
4747
push_preview = true)

docs/src/assets/Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ IncompleteLU = "0.2"
5151
JumpProcesses = "9.11"
5252
Latexify = "0.16"
5353
LinearSolve = "2.30"
54-
ModelingToolkit = "9.15"
54+
ModelingToolkit = "9.16.0"
5555
NonlinearSolve = "3.12"
5656
Optim = "1.9"
5757
Optimization = "3.25"
@@ -68,5 +68,5 @@ SpecialFunctions = "2.4"
6868
StaticArrays = "1.9"
6969
SteadyStateDiffEq = "2.2"
7070
StochasticDiffEq = "6.65"
71-
StructuralIdentifiability = "0.5.7"
72-
Symbolics = "5.28"
71+
StructuralIdentifiability = "0.5.8"
72+
Symbolics = "5.30.1"

docs/src/model_creation/examples/smoluchowski_coagulation_equation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,6 @@ plot!(ϕ, sol[3,:] / Nₒ, line = (:dot, 4, :purple), label = "Analytical sol--X
147147

148148
---
149149
## References
150-
[^1]: [https://en.wikipedia.org/wiki/Smoluchowski\_coagulation\_equation](https://en.wikipedia.org/wiki/Smoluchowski_coagulation_equation)
151-
[^2]: Scott, W. T. (1968). Analytic Studies of Cloud Droplet Coalescence I, Journal of Atmospheric Sciences, 25(1), 54-65. Retrieved Feb 18, 2021, from https://journals.ametsoc.org/view/journals/atsc/25/1/1520-0469\_1968\_025\_0054\_asocdc\_2\_0\_co\_2.xml
152-
[^3]: Ian J. Laurenzi, John D. Bartels, Scott L. Diamond, A General Algorithm for Exact Simulation of Multicomponent Aggregation Processes, Journal of Computational Physics, Volume 177, Issue 2, 2002, Pages 418-449, ISSN 0021-9991, https://doi.org/10.1006/jcph.2002.7017.
150+
1. [https://en.wikipedia.org/wiki/Smoluchowski\_coagulation\_equation](https://en.wikipedia.org/wiki/Smoluchowski_coagulation_equation)
151+
2. Scott, W. T. (1968). Analytic Studies of Cloud Droplet Coalescence I, Journal of Atmospheric Sciences, 25(1), 54-65. Retrieved Feb 18, 2021, from https://journals.ametsoc.org/view/journals/atsc/25/1/1520-0469\_1968\_025\_0054\_asocdc\_2\_0\_co\_2.xml
152+
3. Ian J. Laurenzi, John D. Bartels, Scott L. Diamond, A General Algorithm for Exact Simulation of Multicomponent Aggregation Processes, Journal of Computational Physics, Volume 177, Issue 2, 2002, Pages 418-449, ISSN 0021-9991, https://doi.org/10.1006/jcph.2002.7017.

docs/src/model_creation/parametric_stoichiometry.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ revsys = @reaction_network revsys begin
1515
end
1616
reactions(revsys)
1717
```
18-
Notice, as described in the [Reaction rate laws used in simulations](@ref)
18+
Notice, as described in the [Reaction rate laws used in simulations](@ref introduction_to_catalyst_ratelaws)
1919
section, the default rate laws involve factorials in the stoichiometric
2020
coefficients. For this reason we explicitly specify `m` and `n` as integers (as
2121
otherwise ModelingToolkit will implicitly assume they are floating point).
@@ -68,28 +68,30 @@ osys = complete(osys)
6868
equations(osys)
6969
show(stdout, MIME"text/plain"(), equations(osys)) # hide
7070
```
71+
Specifying the parameter and initial condition values,
7172
```@example s1
7273
p = (k₊ => 1.0, k₋ => 1.0, m => 2, n => 2)
7374
u₀ = [A => 1.0, B => 1.0]
7475
oprob = ODEProblem(osys, u₀, (0.0, 1.0), p)
7576
nothing # hide
7677
```
77-
We can now solve and plot the system
78-
```@julia
78+
we can now solve and plot the system
79+
```@example s1
7980
sol = solve(oprob, Tsit5())
8081
plot(sol)
8182
```
8283

8384
An alternative approach to avoid the issues of using mixed floating point and
8485
integer variables is to disable the rescaling of rate laws as described in
85-
[Reaction rate laws used in simulations](@ref) section. This requires passing
86-
the `combinatoric_ratelaws=false` keyword to `convert` or to `ODEProblem` (if
87-
directly building the problem from a `ReactionSystem` instead of first
88-
converting to an `ODESystem`). For the previous example this gives the following
89-
(different) system of ODEs
86+
[Reaction rate laws used in simulations](@ref introduction_to_catalyst_ratelaws)
87+
section. This requires passing the `combinatoric_ratelaws=false` keyword to
88+
`convert` or to `ODEProblem` (if directly building the problem from a
89+
`ReactionSystem` instead of first converting to an `ODESystem`). For the
90+
previous example this gives the following (different) system of ODEs where we
91+
now let `m` and `n` be floating point valued parameters (the default):
9092
```@example s1
9193
revsys = @reaction_network revsys begin
92-
@parameters m::Int64 n::Int64
94+
@parameters m n
9395
k₊, m*A --> (m*n)*B
9496
k₋, B --> A
9597
end
@@ -99,7 +101,7 @@ equations(osys)
99101
show(stdout, MIME"text/plain"(), equations(osys)) # hide
100102
```
101103
Since we no longer have factorial functions appearing, our example will now run
102-
even with floating point values for `m` and `n`:
104+
with `m` and `n` treated as floating point parameters:
103105
```@example s1
104106
p = (k₊ => 1.0, k₋ => 1.0, m => 2.0, n => 2.0)
105107
oprob = ODEProblem(osys, u₀, (0.0, 1.0), p)

0 commit comments

Comments
 (0)