Skip to content

Commit

Permalink
change name
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoming committed Feb 2, 2024
1 parent 20e9076 commit 1932463
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ makedocs(;
edit_link="main",
assets=String[],
),
pages=["Home" => "index.md", "Tutorial" =>"predator_prey_tutorial.md", "API" => "api.md"],
pages=["Home" => "index.md", "Tutorial" => "PredatorPreyTutorial.md", "API" => "api.md"],
warnonly=true,
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
```@meta
EditURL = "../../examples/predator_prey_tutorial.jl"
EditURL = "../../examples/PredatorPreyTutorial.jl"
```

# Tutorial: Using LinearNoiseApproximation.jl to solve a Lotka-Volterra model

This example demonstrates how to use `LinearNoiseApproximation.jl` package to solve a Lotka-Volterra model using the Linear Noise Approximation (LNA) and compare it to the stochastic
trajectories obtained using the Gillespie algorithm.

````@example predator_prey_tutorial
````@example PredatorPreyTutorial
using LinearNoiseApproximation
using DifferentialEquations
using Catalyst
Expand All @@ -27,7 +27,7 @@ The corresponding ODE system reads
\end{equation}
```

````@example predator_prey_tutorial
````@example PredatorPreyTutorial
rn = @reaction_network begin
@parameters α β δ
@species U(t) V(t)
Expand All @@ -40,7 +40,7 @@ end
## Convert the model to a JumpSystem for the Gillespie algorithm
Using `Catalyst.jl` we can convert `ReactionSystem` to a `JumpSystem` which can be used to simulate the stochastic trajectories using the Gillespie algorithm.

````@example predator_prey_tutorial
````@example PredatorPreyTutorial
jumpsys = convert(JumpSystem, rn)
#define the initial conditions, parameters, and time span
Expand Down
File renamed without changes.

0 comments on commit 1932463

Please sign in to comment.