Skip to content

Commit

Permalink
Use OrdinaryDiffEq where remake was added
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE authored Jul 12, 2024
1 parent 154bdbf commit c993485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/model_simulation/simulation_structure_interfacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ get_S(oprob)
## [Interfacing using symbolic representations](@id simulation_structure_interfacing_symbolic_representation)
When e.g. [programmatic modelling is used](@ref programmatic_CRN_construction), species and parameters can be represented as *symbolic variables*. These can be used to index a problem, just like symbol-based representations can. Here we create a simple [two-state model](@ref basic_CRN_library_two_states) programmatically, and use its symbolic variables to check, and update, an initial condition:
```@example structure_indexing_symbolic_variables
using Catalyst
using Catalyst, OrdinaryDiffEq
t = default_t()
@species X1(t) X2(t)
@parameters k1 k2
Expand Down Expand Up @@ -183,4 +183,4 @@ oprob[two_state_model.X1 + two_state_model.X2]
This can be used to form symbolic expressions using model quantities when a model has been created using the DSL (as an alternative to @unpack). Alternatively, [creating an observable](@ref dsl_advanced_options_observables), and then interface using its `Symbol` representation, is also possible.

!!! warn
With interfacing with a simulating structure using symbolic variables stored in a `ReactionSystem` model, ensure that the model is complete.
With interfacing with a simulating structure using symbolic variables stored in a `ReactionSystem` model, ensure that the model is complete.

0 comments on commit c993485

Please sign in to comment.