Skip to content

Commit

Permalink
deploy: 8d89e74
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Aug 29, 2024
1 parent 4838364 commit 3347b8e
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 42 deletions.
20 changes: 10 additions & 10 deletions concept/allocation.html
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,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="bf0c65e4" class="cell" data-execution_count="1">
<div id="78ba69c9" 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 @@ -597,26 +597,26 @@ <h2 data-number="4.4" class="anchored" data-anchor-id="example"><span class="hea
<span id="cb1-18"><a href="#cb1-18" aria-hidden="true" tabindex="-1"></a><span class="fu">println</span>(p.allocation.allocation_models[<span class="fl">1</span>].problem)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>Min F[(Basin #5, UserDemand #6)]² + F[(Basin #2, UserDemand #3)]²
<pre><code>Min F[(Basin #2, UserDemand #3)]² + F[(Basin #5, UserDemand #6)]²
Subject to
F[(Basin #5, UserDemand #6)] ≥ 0
F[(UserDemand #6, Basin #5)] ≥ 0
F[(FlowBoundary #1, Basin #2)] ≥ 0
F[(Basin #2, UserDemand #3)] ≥ 0
F[(TabulatedRatingCurve #7, Terminal #8)] ≥ 0
F[(Basin #2, LinearResistance #4)] ≥ 0
F[(LinearResistance #4, Basin #2)] ≥ 0
F[(Basin #5, TabulatedRatingCurve #7)] ≥ 0
F[(TabulatedRatingCurve #7, Terminal #8)] ≥ 0
F[(UserDemand #3, Basin #2)] ≥ 0
F[(Basin #2, UserDemand #3)] ≥ 0
F[(FlowBoundary #1, Basin #2)] ≥ 0
F[(Basin #5, UserDemand #6)] ≥ 0
F[(UserDemand #6, Basin #5)] ≥ 0
F[(LinearResistance #4, Basin #5)] ≥ 0
F[(Basin #5, LinearResistance #4)] ≥ 0
source[(FlowBoundary #1, Basin #2)] : F[(FlowBoundary #1, Basin #2)] ≤ 172800
source_user[UserDemand #3] : F[(UserDemand #3, Basin #2)] ≤ 0
source_user[UserDemand #6] : F[(UserDemand #6, Basin #5)] ≤ 0
flow_conservation[Basin #5] : -F[(Basin #5, UserDemand #6)] + F[(UserDemand #6, Basin #5)] - F[(Basin #5, TabulatedRatingCurve #7)] + F[(LinearResistance #4, Basin #5)] - F[(Basin #5, LinearResistance #4)] = 0
flow_conservation[TabulatedRatingCurve #7] : F[(Basin #5, TabulatedRatingCurve #7)] - F[(TabulatedRatingCurve #7, Terminal #8)] = 0
flow_conservation[TabulatedRatingCurve #7] : -F[(TabulatedRatingCurve #7, Terminal #8)] + F[(Basin #5, TabulatedRatingCurve #7)] = 0
flow_conservation[Basin #2] : F[(FlowBoundary #1, Basin #2)] - F[(Basin #2, UserDemand #3)] - F[(Basin #2, LinearResistance #4)] + F[(LinearResistance #4, Basin #2)] + F[(UserDemand #3, Basin #2)] = 0
flow_conservation[Basin #5] : -F[(Basin #5, TabulatedRatingCurve #7)] - F[(Basin #5, UserDemand #6)] + F[(UserDemand #6, Basin #5)] + F[(LinearResistance #4, Basin #5)] - F[(Basin #5, LinearResistance #4)] = 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 #2] : -F[(Basin #2, LinearResistance #4)] + F[(LinearResistance #4, Basin #2)] + F[(UserDemand #3, Basin #2)] - F[(Basin #2, UserDemand #3)] + F[(FlowBoundary #1, Basin #2)] = 0
flow_conservation[Terminal #8] : F[(TabulatedRatingCurve #7, Terminal #8)] = 0
</code></pre>
</div>
Expand Down
8 changes: 4 additions & 4 deletions guide/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ <h1 data-number="2"><span class="header-section-number">2</span> Model with disc
<div id="cell-51" class="cell" data-execution_count="27">
<div class="sourceCode cell-code" id="cb34"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb34-1"><a href="#cb34-1" aria-hidden="true" tabindex="-1"></a>model.plot()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand Down Expand Up @@ -806,7 +806,7 @@ <h1 data-number="3"><span class="header-section-number">3</span> Model with PID
<div id="cell-77" class="cell" data-execution_count="39">
<div class="sourceCode cell-code" id="cb52"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb52-1"><a href="#cb52-1" aria-hidden="true" tabindex="-1"></a>model.plot()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:329: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:334: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand Down Expand Up @@ -1367,7 +1367,7 @@ <h1 data-number="6"><span class="header-section-number">6</span> Guidance of mod
<div id="cell-155" class="cell" data-execution_count="74">
<div class="sourceCode cell-code" id="cb103"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb103-1"><a href="#cb103-1" aria-hidden="true" tabindex="-1"></a>model.plot()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:329: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:334: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand Down Expand Up @@ -1570,7 +1570,7 @@ <h1 data-number="7"><span class="header-section-number">7</span> Model with cont
<div id="cell-184" class="cell" data-execution_count="89">
<div class="sourceCode cell-code" id="cb125"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb125-1"><a href="#cb125-1" aria-hidden="true" tabindex="-1"></a>model.plot()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand Down
Binary file modified guide/examples_files/figure-html/cell-18-output-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified guide/examples_files/figure-html/cell-19-output-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified guide/examples_files/figure-html/cell-68-output-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions reference/node/basin.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion reference/node/discrete-control.html
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ <h1 class="title">DiscreteControl</h1>


<p>Set parameters of other nodes based on model state conditions (e.g.&nbsp;Basin level). The table below shows which parameters are controllable for a given node type.</p>
<div id="d2050967" class="cell" data-execution_count="1">
<div id="2e7a5171" 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 Down
2 changes: 1 addition & 1 deletion reference/node/manning-resistance.html
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ <h1 data-number="2"><span class="header-section-number">2</span> Equations</h1>
\end{cases}
\end{align}
\]</span></p>
<div id="25619745" class="cell" data-execution_count="1">
<div id="b73540af" class="cell" data-execution_count="1">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> numpy <span class="im">as</span> np</span>
Expand Down
2 changes: 1 addition & 1 deletion reference/node/tabulated-rating-curve.html
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ <h2 data-number="1.1" class="anchored" data-anchor-id="static"><span class="head
<section id="interpolation" class="level3" data-number="1.1.1">
<h3 data-number="1.1.1" class="anchored" data-anchor-id="interpolation"><span class="header-section-number">1.1.1</span> Interpolation</h3>
<p>The <span class="math inline">\(Q(h)\)</span> relationship of a tabulated rating curve is defined as a linear interpolation.</p>
<div id="f60dcad5" class="cell" data-execution_count="1">
<div id="e9a2dd74" class="cell" data-execution_count="1">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> numpy <span class="im">as</span> np</span>
Expand Down
28 changes: 14 additions & 14 deletions reference/test-models.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ <h1 class="title">Test models</h1>


<p>Ribasim developers use the following models in their testbench and in order to test new features.</p>
<div id="6b382ed4" class="cell" data-execution_count="1">
<div id="88f5941c" class="cell" data-execution_count="1">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> ribasim_testmodels</span>
Expand Down Expand Up @@ -401,7 +401,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand All @@ -414,7 +414,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand All @@ -427,7 +427,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand All @@ -440,7 +440,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:329: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:334: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand All @@ -467,7 +467,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand All @@ -494,7 +494,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand All @@ -514,7 +514,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand All @@ -541,7 +541,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:329: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:334: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand Down Expand Up @@ -589,7 +589,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand All @@ -609,7 +609,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:329: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:334: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand All @@ -622,7 +622,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:329: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:334: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand All @@ -635,7 +635,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand Down Expand Up @@ -669,7 +669,7 @@ <h1 class="title">Test models</h1>
</div>
</div>
<div class="cell-output cell-output-stderr">
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:344: FutureWarning:
<pre><code>/home/runner/work/Ribasim/Ribasim/python/ribasim/ribasim/model.py:349: FutureWarning:

The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation.
</code></pre>
Expand Down
4 changes: 2 additions & 2 deletions reference/validation.html
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ <h1 class="title">Validation</h1>
<section id="connectivity" class="level1" data-number="1">
<h1 data-number="1"><span class="header-section-number">1</span> Connectivity</h1>
<p>In the table below, each column shows which node types are allowed to be downstream (or ‘down-control’) of the node type at the top of the column.</p>
<div id="998d0345" class="cell" data-execution_count="1">
<div id="2f3cd6c6" 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 Down Expand Up @@ -699,7 +699,7 @@ <h1 data-number="1"><span class="header-section-number">1</span> Connectivity</h
<section id="neighbor-amounts" class="level1" data-number="2">
<h1 data-number="2"><span class="header-section-number">2</span> Neighbor amounts</h1>
<p>The table below shows for each node type between which bounds the amount of in- and outneighbors must be, for both flow and control edges.</p>
<div id="084ee658" class="cell" data-execution_count="2">
<div id="50d342d9" class="cell" data-execution_count="2">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>flow_in_min <span class="op">=</span> <span class="fu">Vector</span><span class="dt">{String}</span>()</span>
Expand Down
Loading

0 comments on commit 3347b8e

Please sign in to comment.