diff --git a/concept/allocation.html b/concept/allocation.html index 95fb91754..df3b023d9 100644 --- a/concept/allocation.html +++ b/concept/allocation.html @@ -578,7 +578,7 @@

4.4 Example

The following is an example of an optimization problem for the example shown here:

-
+
Code
using Ribasim
diff --git a/dev/callstacks.html b/dev/callstacks.html
index b275af15b..1f7d1a893 100644
--- a/dev/callstacks.html
+++ b/dev/callstacks.html
@@ -297,7 +297,7 @@ 

On this page

1 Call stacks

-
+
Code
using CairoMakie
@@ -319,7 +319,7 @@ 

1 Call stacks

1.1 Parameter initialization

Parameter initialization is the process of reading the parameter values from the input files and storing them in data structures for easy access in the core. Most notable here is the convergence of many paths to load_structvector and parse_static_and_time, as these are needed for parameter initialization for most node types.

-
+
Code
using SQLite
@@ -353,7 +353,7 @@ 

1.2 water_balance!

water_balance! is the right hand side function of the system of ODEs that is solved by the Ribasim core (for more details see here). The various formulate_flow! methods are for flow rates as determined by different node types.

-
+
Code
using OrdinaryDiffEqCore: get_du
@@ -375,7 +375,7 @@ 

1.3 Allocation initialization

In this part of the code the data structures for allocation are set up. Most endpoints in allocation_init.jl set up data structures as defined in JuMP.jl.

-
+
Code
toml_path = normpath(
@@ -401,7 +401,7 @@ 

1.4 Allocation run

Running the allocation algorithm consists of running the optimization itself (which is handled in JuMP.jl), and all Ribasim functions around it are used for communicating data between the optimization problem and the physical layer, as well as gathering output data. Fore more information on the allocation algorithm see here.

-
+
Code
model = Ribasim.Model(toml_path)
@@ -420,7 +420,7 @@ 

1.5 Discrete control

Discrete control works by a FunctionCallingCallback, changing parameters when a change in control state is detected (see also here).

-
+
Code
toml_path =
@@ -444,7 +444,7 @@ 

1.6 Writing output

Writing output (currently) happens only after the full simulation is finished. For more information on the different output tables see here.

-
+
Code
toml_path = normpath(@__DIR__, "../../generated_testmodels/basic_transient/ribasim.toml")
@@ -899,7 +899,7 @@ 

-