Skip to main content
. Author manuscript; available in PMC: 2023 Aug 31.
Published in final edited form as: Lett Biomath. 2023 May 26;10(1):87–103.

Figure 2:

Figure 2:

Visualization of the Tau-Hybrid simulation of a coupled discrete-continuous system. The model features three reactions: R1:A+B, R2:A, R3:B. The values of the reaction indicator variables, r1, r2, and r3 are shown along with the populations of species A, which is set to be continuous, and species B, which is set to be discrete. The population of B changes discretely when r1 or r3 fire, which occurs when their value crosses the y = 0 axis and becomes positive. We then use (11) to determine the number of times the reaction is fired and then reset the reaction indicator value to logURN (a negative value). The reaction R2 is simulated as deterministic because it depends only on species marked as continuous. Therefore, the indicator variable r2 is ignored and the population of A changes continuously. The population of A also changes discretely when R1 fires. The simulation τ step size is calculated adaptively, and the state of the simulation is sampled for output every 0.1 time units. All other options use the defaults (e.g., LSODA integrator).