Skip to content

Commit 5630cb5

Browse files
Update 04-diffeqbio_II_networkproperties.jmd
1 parent ac0fea8 commit 5630cb5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tutorials/models/04-diffeqbio_II_networkproperties.jmd

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: Samuel Isaacson
44
---
55

66
The [DiffEqBiological
7-
API](http://docs.juliadiffeq.org/latest/apis/diffeqbio.html) provides a
7+
API](http://docs.juliadiffeq.org/dev/apis/diffeqbio.html) provides a
88
collection of functions for easily accessing network properties, and for
99
incrementally building and extending a network. In this tutorial we'll go
1010
through the API, and then illustrate how to programmatically construct a
@@ -45,7 +45,7 @@ display("text/latex", "$x");
4545
---
4646
## Network Properties
4747
[Basic
48-
properties](http://docs.juliadiffeq.org/latest/apis/diffeqbio.html#Basic-properties-1)
48+
properties](http://docs.juliadiffeq.org/dev/apis/diffeqbio.html#Basic-properties-1)
4949
of the generated network include the `speciesmap` and `paramsmap` functions we
5050
examined in the last tutorial, along with the corresponding `species` and
5151
`params` functions:
@@ -61,7 +61,7 @@ The numbers of species, parameters and reactions can be accessed using
6161
`numspecies(rn)`, `numparams(rn)` and `numreactions(rn)`.
6262

6363
A number of functions are available to access [properties of
64-
reactions](http://docs.juliadiffeq.org/latest/apis/diffeqbio.html#Reaction-Properties-1)
64+
reactions](http://docs.juliadiffeq.org/dev/apis/diffeqbio.html#Reaction-Properties-1)
6565
within the generated network, including `substrates`, `products`, `dependents`,
6666
`ismassaction`, `substratestoich`, `substratesymstoich`, `productstoich`,
6767
`productsymstoich`, and `netstoich`. Each of these functions takes two
@@ -93,7 +93,7 @@ and `productstoich` are defined similarly.
9393

9494
Several functions are also provided that calculate different types of
9595
[dependency
96-
graphs](http://docs.juliadiffeq.org/latest/apis/diffeqbio.html#Dependency-Graphs-1).
96+
graphs](http://docs.juliadiffeq.org/dev/apis/diffeqbio.html#Dependency-Graphs-1).
9797
These include `rxtospecies_depgraph`, which provides a mapping from reaction
9898
index to the indices of species whose population changes when the reaction
9999
occurs:
@@ -136,7 +136,7 @@ returning information that is already stored within the generated
136136
`reaction_network`. For these functions, modifying the returned data structures
137137
may lead to inconsistent internal state within the network. As such, they should
138138
be used for accessing, but not modifying, network properties. The [API
139-
documentation](http://docs.juliadiffeq.org/latest/apis/diffeqbio.html)
139+
documentation](http://docs.juliadiffeq.org/dev/apis/diffeqbio.html)
140140
indicates which functions return newly allocated data structures and which
141141
return data stored within the `reaction_network`.
142142

@@ -158,7 +158,7 @@ extended through a programmatic interface: `@min_reaction_network` and
158158
`@empty_reaction_network`. We now give an introduction to constructing these
159159
more minimal network representations, and how they can be programmatically
160160
extended. See also the relevant [API
161-
section](http://docs.juliadiffeq.org/latest/apis/diffeqbio.html#Reaction-Network-Generation-Macros-1).
161+
section](http://docs.juliadiffeq.org/dev/apis/diffeqbio.html#Reaction-Network-Generation-Macros-1).
162162

163163
The `@min_reaction_network` macro works identically to the `@reaction_network`
164164
macro, but the generated network will only be complete with respect to its
@@ -187,7 +187,7 @@ the missing reactions. Note, it is required that species and parameters be
187187
defined before any reactions using them are added. The necessary network
188188
extension functions are given by `addspecies!`, `addparam!` and `addreaction!`,
189189
and described in the
190-
[API](http://docs.juliadiffeq.org/latest/apis/diffeqbio.html#Functions-to-Add-Species,-Parameters-and-Reactions-to-a-Network-1). To complete `rnmin` we first add the relevant
190+
[API](http://docs.juliadiffeq.org/dev/apis/diffeqbio.html#Functions-to-Add-Species,-Parameters-and-Reactions-to-a-Network-1). To complete `rnmin` we first add the relevant
191191
species:
192192

193193
```julia
@@ -271,7 +271,7 @@ evaluating Jacobians. For large networks this can give a significant speed-up in
271271
the time required for constructing an ODE model. Each function and its
272272
associated keyword arguments are described in the API section, [Functions to add
273273
ODEs, SDEs or Jumps to a
274-
Network](http://docs.juliadiffeq.org/latest/apis/diffeqbio.html#Functions-to-Add-ODEs,-SDEs-or-Jumps-to-a-Network-1).
274+
Network](http://docs.juliadiffeq.org/dev/apis/diffeqbio.html#Functions-to-Add-ODEs,-SDEs-or-Jumps-to-a-Network-1).
275275

276276
Let's extend `rnmin` to include the needed functions for use in ODE
277277
solvers:
@@ -281,13 +281,13 @@ addodes!(rnmin)
281281
```
282282

283283
The [Generated Functions for
284-
Models](http://docs.juliadiffeq.org/latest/apis/diffeqbio.html#Generated-Functions-for-Models-1)
284+
Models](http://docs.juliadiffeq.org/dev/apis/diffeqbio.html#Generated-Functions-for-Models-1)
285285
section of the API shows what functions have been generated. For ODEs these
286286
include `oderhsfun(rnmin)`, which returns a function of the form `f(du,u,p,t)`
287287
which evaluates the ODEs (i.e. the time derivatives of `u`) within `du`. For
288288
each generated function, the corresponding expressions from which it was
289289
generated can be retrieved using accessors from the [Generated
290-
Expressions](http://docs.juliadiffeq.org/latest/apis/diffeqbio.html#Generated-Expressions-1)
290+
Expressions](http://docs.juliadiffeq.org/dev/apis/diffeqbio.html#Generated-Expressions-1)
291291
section of the API. The equations within `du` can be retrieved using the
292292
`odeexprs(rnmin)` function. For example:
293293

@@ -324,7 +324,7 @@ derivative functions with respect to the parameters. `paramjacfun(rnmin)` then
324324
returns the generated function. It has the form `fpjac(dPJ,u,p,t)`, which
325325
given the current solution `u` evaluates the Jacobian matrix with respect to
326326
parameters `p` within `dPJ`. For use in DifferentialEquations.jl solvers, an
327-
[`ODEFunction`](http://docs.juliadiffeq.org/latest/features/performance_overloads.html)
327+
[`ODEFunction`](http://docs.juliadiffeq.org/dev/features/performance_overloads.html)
328328
representation of the ODEs is available from `odefun(rnmin)`.
329329

330330
`addsdes!` and `addjumps!` work similarly to complete the network for use in

0 commit comments

Comments
 (0)