Skip to content

Commit 179d251

Browse files
committed
where the $dW_1(t)$ and $dW_2(t)$ terms described the noise added through the Chemical Langevin Equations. Finally, we can simulate and plot the results.transfer text updates from home pr
1 parent 730fa6a commit 179d251

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,10 @@ plot(sol; lw = 5)
160160
![ODE simulation](docs/src/assets/readme_ode_plot.svg)
161161

162162
#### Stochastic jump simulations
163-
The same model can be used as input to other types of simulations. E.g. here we instead perform a
164-
jump simulation
163+
The same model can be used as input to other types of simulations. E.g. here we instead generate and simulate a stochastic chemical kinetics jump process model.
165164
```julia
166165
# Create and simulate a jump process (here using Gillespie's direct algorithm).
167-
# Note that integer (not decimal) initial conditions are used.
166+
# The initial conditions are now integers as we track exact populations for each species.
168167
using JumpProcesses
169168
u0_integers = [:S => 50, :E => 10, :SE => 0, :P => 0]
170169
dprob = DiscreteProblem(model, u0_integers, tspan, ps)
@@ -197,7 +196,7 @@ cell_model = @reaction_network begin
197196
kᵢ/V, Gᴾ --> G
198197
end
199198
```
200-
In this case, we would instead like to perform stochastic simulations, so we transform our model to an SDE:
199+
We now study the system as a Chemical Langevin Dynamics SDE model, which can be generated as follows
201200
```julia
202201
u0 = [:V => 25.0, :G => 50.0, :Gᴾ => 0.0]
203202
tspan = (0.0, 20.0)
@@ -212,7 +211,7 @@ dGᴾ(t) &= \left( \frac{kₚ*(sin(t)+1)}{V(t)} G(t) - \frac{kᵢ}{V(t)} Gᴾ(t)
212211
dV(t) &= \left(g \cdot Gᴾ(t)\right) dt
213212
\end{align*}
214213
```
215-
where the $dW_1(t)$ and $dW_2(t)$ terms described the noise added through the Chemical Langevin Equations. Finally, we can simulate and plot the results.
214+
where the $dW_1(t)$ and $dW_2(t)$ terms represent independent Brownian Motions, encoding the noise added by the Chemical Langevin Equation. Finally, we can simulate and plot the results.
216215
```julia
217216
using StochasticDiffEq
218217
sol = solve(sprob, EM(); dt = 0.05)

0 commit comments

Comments
 (0)