Skip to content

Commit

Permalink
deploy: cae6838
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Sep 19, 2024
1 parent 81f5c35 commit 1bef87f
Show file tree
Hide file tree
Showing 66 changed files with 4,991 additions and 3,106 deletions.
6 changes: 5 additions & 1 deletion changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./guide/quickstart.html">
<a class="nav-link" href="./tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
28 changes: 16 additions & 12 deletions concept/allocation.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down Expand Up @@ -574,7 +578,7 @@ <h2 data-number="4.3" class="anchored" data-anchor-id="the-optimization-constrai
<section id="example" class="level2" data-number="4.4">
<h2 data-number="4.4" class="anchored" data-anchor-id="example"><span class="header-section-number">4.4</span> Example</h2>
<p>The following is an example of an optimization problem for the example shown <a href="../guide/examples.html#model-with-allocation-user-demand">here</a>:</p>
<div id="ddf7d776" class="cell" data-execution_count="1">
<div id="8dd273bf" class="cell" data-execution_count="1">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">using</span> <span class="bu">Ribasim</span></span>
Expand All @@ -598,25 +602,25 @@ <h2 data-number="4.4" class="anchored" data-anchor-id="example"><span class="hea
<div class="cell-output cell-output-stdout">
<pre><code>Min F[(Basin #2, UserDemand #3)]² + F[(Basin #5, UserDemand #6)]²
Subject to
flow_conservation[TabulatedRatingCurve #7] : -F[(TabulatedRatingCurve #7, Terminal #8)] + F[(Basin #5, TabulatedRatingCurve #7)] = 0
flow_conservation[Basin #2] : F[(UserDemand #3, Basin #2)] - F[(Basin #2, UserDemand #3)] - F[(Basin #2, LinearResistance #4)] + F[(LinearResistance #4, Basin #2)] + F[(FlowBoundary #1, Basin #2)] = 0
flow_conservation[Basin #5] : F[(UserDemand #6, Basin #5)] + F[(LinearResistance #4, Basin #5)] - F[(Basin #5, LinearResistance #4)] - F[(Basin #5, UserDemand #6)] - F[(Basin #5, TabulatedRatingCurve #7)] = 0
flow_conservation[LinearResistance #4] : F[(Basin #2, LinearResistance #4)] - F[(LinearResistance #4, Basin #2)] - F[(LinearResistance #4, Basin #5)] + F[(Basin #5, LinearResistance #4)] = 0
flow_conservation[Basin #5] : -F[(Basin #5, TabulatedRatingCurve #7)] + F[(LinearResistance #4, Basin #5)] - F[(Basin #5, LinearResistance #4)] + F[(UserDemand #6, Basin #5)] - F[(Basin #5, UserDemand #6)] = 0
flow_conservation[Terminal #8] : F[(TabulatedRatingCurve #7, Terminal #8)] = 0
flow_conservation[LinearResistance #4] : -F[(LinearResistance #4, Basin #5)] + F[(Basin #5, LinearResistance #4)] + F[(Basin #2, LinearResistance #4)] - F[(LinearResistance #4, Basin #2)] = 0
flow_conservation[Basin #2] : F[(FlowBoundary #1, Basin #2)] - F[(Basin #2, UserDemand #3)] + F[(UserDemand #3, Basin #2)] - F[(Basin #2, LinearResistance #4)] + F[(LinearResistance #4, Basin #2)] = 0
flow_conservation[TabulatedRatingCurve #7] : F[(Basin #5, TabulatedRatingCurve #7)] - F[(TabulatedRatingCurve #7, Terminal #8)] = 0
source[(FlowBoundary #1, Basin #2)] : F[(FlowBoundary #1, Basin #2)] ≤ 172800
source_user[UserDemand #6] : F[(UserDemand #6, Basin #5)] ≤ 0
source_user[UserDemand #3] : F[(UserDemand #3, Basin #2)] ≤ 0
F[(FlowBoundary #1, Basin #2)] ≥ 0
F[(Basin #5, TabulatedRatingCurve #7)] ≥ 0
F[(LinearResistance #4, Basin #5)] ≥ 0
F[(Basin #5, LinearResistance #4)] ≥ 0
F[(UserDemand #6, Basin #5)] ≥ 0
F[(Basin #2, UserDemand #3)] ≥ 0
F[(TabulatedRatingCurve #7, Terminal #8)] ≥ 0
F[(Basin #5, UserDemand #6)] ≥ 0
F[(UserDemand #3, Basin #2)] ≥ 0
F[(Basin #2, UserDemand #3)] ≥ 0
F[(Basin #2, LinearResistance #4)] ≥ 0
F[(LinearResistance #4, Basin #2)] ≥ 0
F[(FlowBoundary #1, Basin #2)] ≥ 0
F[(LinearResistance #4, Basin #5)] ≥ 0
F[(Basin #5, LinearResistance #4)] ≥ 0
F[(Basin #5, UserDemand #6)] ≥ 0
F[(Basin #5, TabulatedRatingCurve #7)] ≥ 0
</code></pre>
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion concept/concept.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion concept/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion concept/equations.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion concept/modelconcept.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion concept/numerics.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/addnode.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/allocation.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/benchmark.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/bmi.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/ci.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/python.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/qgis.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/qgis_test_plan.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
6 changes: 5 additions & 1 deletion dev/release.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/quickstart.html">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../guide/examples.html">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down
12 changes: 5 additions & 7 deletions guide/coupling.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="../guide/quickstart.html" aria-current="page">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="../guide/examples.html" aria-current="page">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down Expand Up @@ -148,12 +152,6 @@
<ul class="list-unstyled mt-1">
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../guide/quickstart.html" class="sidebar-item-text sidebar-link">
<span class="menu-text">Quick start guide</span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../guide/examples.html" class="sidebar-item-text sidebar-link">
<span class="menu-text">Examples</span></a>
</div>
Expand Down
12 changes: 5 additions & 7 deletions guide/delwaq.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@
<span class="menu-text">Overview</span></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="../guide/quickstart.html" aria-current="page">
<a class="nav-link" href="../tutorial/natural-flow.html">
<span class="menu-text">Tutorials</span></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="../guide/examples.html" aria-current="page">
<span class="menu-text">How-to guides</span></a>
</li>
<li class="nav-item">
Expand Down Expand Up @@ -181,12 +185,6 @@
<ul class="list-unstyled mt-1">
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../guide/quickstart.html" class="sidebar-item-text sidebar-link">
<span class="menu-text">Quick start guide</span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../guide/examples.html" class="sidebar-item-text sidebar-link">
<span class="menu-text">Examples</span></a>
</div>
Expand Down
Loading

0 comments on commit 1bef87f

Please sign in to comment.