{ "cells": [ { "cell_type": "markdown", "id": "83754fea", "metadata": {}, "source": [ "(creek-intake-example)=\n", "# Modelling stable creek intakes\n", "\n", "Creek intakes are modelled as tiny [reservoirs](reservoir) connected to a tunnel network in SHOP, typically connected directly on the main tunnel of a large [plant](plant). Since the reservoir volumes of creek intakes are so small compared to the flow in the tunnel network, it can be challenging to model a stable system when creek intakes are present. This example will describe general rules and best practice for modelling creek intakes in SHOP. Note that this example does not use the old [creek_intake](creek_intake) object in combination with a [junction](junction), as this way of modelling is deprecated.\n", "\n", "The system that will be used to illustrate the creek intake modelling in SHOP is based on the code in the function build_model() found in the creek_model.py script:" ] }, { "cell_type": "code", "execution_count": 1, "id": "fce87ccf", "metadata": {}, "outputs": [], "source": [ "from pyshop import ShopSession\n", "import pandas as pd\n", "import numpy as np\n", "import plotly.graph_objects as go\n", "from plotly.subplots import make_subplots\n", "\n", "from creek_model import build_model" ] }, { "cell_type": "markdown", "id": "15494da0", "metadata": {}, "source": [ "The resulting topology is shown below:" ] }, { "cell_type": "code", "execution_count": 2, "id": "fed9f298", "metadata": {}, "outputs": [ { "data": { "image/svg+xml": [ "\n", "\n", "\n", "\n", "\n", "\n", "%3\n", "\n", "\n", "\n", "reservoir_Reservoir\n", "\n", "Reservoir\n", "\n", "\n", "\n", "tunnel_Rsv_N1\n", "\n", "Rsv_N1\n", "\n", "\n", "\n", "reservoir_Reservoir->tunnel_Rsv_N1\n", "\n", "\n", "\n", "\n", "river_Spill_rsv\n", "\n", "Spill_rsv\n", "\n", "\n", "\n", "reservoir_Reservoir->river_Spill_rsv\n", "\n", "\n", "\n", "\n", "reservoir_Creek1\n", "\n", "Creek1\n", "\n", "\n", "\n", "tunnel_Creek1_N1\n", "\n", "Creek1_N1\n", "\n", "\n", "\n", "reservoir_Creek1->tunnel_Creek1_N1\n", "\n", "\n", "\n", "\n", "river_Spill_C1\n", "\n", "Spill_C1\n", "\n", "\n", "\n", "reservoir_Creek1->river_Spill_C1\n", "\n", "\n", "\n", "\n", "reservoir_Creek2\n", "\n", "Creek2\n", "\n", "\n", "\n", "tunnel_Creek2_N2\n", "\n", "Creek2_N2\n", "\n", "\n", "\n", "reservoir_Creek2->tunnel_Creek2_N2\n", "\n", "\n", "\n", "\n", "river_Spill_C2\n", "\n", "Spill_C2\n", "\n", "\n", "\n", "reservoir_Creek2->river_Spill_C2\n", "\n", "\n", "\n", "\n", "reservoir_Creek3\n", "\n", "Creek3\n", "\n", "\n", "\n", "tunnel_Creek3_N3\n", "\n", "Creek3_N3\n", "\n", "\n", "\n", "reservoir_Creek3->tunnel_Creek3_N3\n", "\n", "\n", "\n", "\n", "river_Spill_C3\n", "\n", "Spill_C3\n", "\n", "\n", "\n", "reservoir_Creek3->river_Spill_C3\n", "\n", "\n", "\n", "\n", "tunnel_N1_N2\n", "\n", "N1_N2\n", "\n", "\n", "\n", "tunnel_Rsv_N1->tunnel_N1_N2\n", "\n", "\n", "\n", "\n", "tunnel_N2_N3\n", "\n", "N2_N3\n", "\n", "\n", "\n", "tunnel_N1_N2->tunnel_N2_N3\n", "\n", "\n", "\n", "\n", "tunnel_N3_plant\n", "\n", "N3_plant\n", "\n", "\n", "\n", "tunnel_N2_N3->tunnel_N3_plant\n", "\n", "\n", "\n", "\n", "plant_Plant\n", "\n", "Plant\n", "\n", "\n", "\n", "tunnel_N3_plant->plant_Plant\n", "\n", "\n", "\n", "\n", "tunnel_Creek1_N1->tunnel_N1_N2\n", "\n", "\n", "\n", "\n", "tunnel_Creek2_N2->tunnel_N2_N3\n", "\n", "\n", "\n", "\n", "tunnel_Creek3_N3->tunnel_N3_plant\n", "\n", "\n", "\n", "\n" ], "text/plain": [ "" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "shop = build_model()\n", "shop.model.build_connection_tree()" ] }, { "cell_type": "markdown", "id": "332c0107", "metadata": {}, "source": [ "A single large reservoir called Reservoir sits at the far end of a long tunnel stretch down to the plant. Three small creek intake reservoirs, Creek1 to 3, are connected to the main tunnel of the plant. All reservoirs have [river](river) objects connected to them that acts as spillways with [up_head_flow_curve](river:up_head_flow_curve) defining the flow out of the reservoirs." ] }, { "cell_type": "markdown", "id": "ac585dac", "metadata": {}, "source": [ "## Modelling the reservoir of a creek intake\n", "\n", "The reservoirs representing creek intakes should be modelled using the following principles:\n", "\n", "### Storage capacity\n", "The reservoir of a creek intake represents the volume of the tunnel segment in addition to any small dam at the top of the creek intake. In this model, the [max_vol](reservoir:max_vol) it is set to 0.001 Mm3 for all three creek intakes.\n", "\n", "### Upper and lower regulation levels\n", "The [hrl](reservoir:hrl) of the creek intake reservoirs should be the top of the dam or tunnel entrance of the creek intake. Above this level, water will spill out of the creek. The [lrl](reservoir:lrl) should be set to the lrl of the large reservoir in the network. If the lrl of the creek intake reservoirs are set lower than the lrl of the main reservoir, problems can arise if the large reservoir is empty.\n", "\n", "### Volume to level conversion\n", "One of the most important factors of modelling a creek intake reservoir is the [vol_head curve](reservoir:vol_head). Since the reservoir capacity is so small, the level of a creek intake reservoir can change very rapidly over a time step in the optimization model. It is therefore important to model the vol_head curve with the __same gradient in all segments__. The simple way to do this is to set 0 Mm3 for lrl, max_vol for hrl, and then choose some additional height above hrl and calculate the volume that will ensure a constant gradient. Choosing the level of $\\textup{hrl} + \\Delta$ for the final point on the vol_head curve should result in a volume of $V = (1+\\frac{\\Delta}{\\textup{hrl}-\\textup{lrl}})\\cdot V_{\\textup{max}}$. This means that the reservoir level can potentially go far above the actual intake of the creek, but this will not happen if the spillway of the creek intake is modelled correctly.\n", "\n", "### Flow_descr\n", "Before SHOP 16.4.0, the [flow_descr](reservoir:flow_descr) attribute on the reservoir object would be used in the tunnel network simulations when a reservoir in the network had a level above hrl. SHOP now only uses the vol_head curve in these calculations, but for older SHOP versions it is important to define a flow_descr on the creek intake reservoirs even though a river is used to model the spillage.\n", "\n", "\n", "The values for max_vol, hrl, lrl, and the vol_head curve of each reservoir in the model is printed below:" ] }, { "cell_type": "code", "execution_count": 3, "id": "03c6f2d3", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Reservoir\n", "max_vol: 50.0\n", "lrl: 80.0\n", "hrl: 100.0\n", "vol_head:\n", "0.0 80.0\n", "5.0 85.0\n", "12.0 90.0\n", "20.0 95.0\n", "50.0 100.0\n", "60.0 102.0\n", "Name: 0.0, dtype: float64\n", "\n", "Creek1\n", "max_vol: 0.001\n", "lrl: 80.0\n", "hrl: 110.0\n", "vol_head:\n", "0.000 80.0\n", "0.001 110.0\n", "0.002 140.0\n", "Name: 0.0, dtype: float64\n", "\n", "Creek2\n", "max_vol: 0.001\n", "lrl: 80.0\n", "hrl: 105.0\n", "vol_head:\n", "0.000 80.0\n", "0.001 105.0\n", "0.002 130.0\n", "Name: 0.0, dtype: float64\n", "\n", "Creek3\n", "max_vol: 0.001\n", "lrl: 80.0\n", "hrl: 101.0\n", "vol_head:\n", "0.000 80.0\n", "0.001 101.0\n", "0.002 121.0\n", "Name: 0.0, dtype: float64\n", "\n" ] } ], "source": [ "for rsv in shop.model.reservoir:\n", " print(rsv.get_name())\n", " print(\"max_vol:\",rsv.max_vol.get())\n", " print(\"lrl:\",rsv.lrl.get())\n", " print(\"hrl:\",rsv.hrl.get())\n", " print(\"vol_head:\")\n", " print(rsv.vol_head.get())\n", " print(\"\")" ] }, { "cell_type": "markdown", "id": "b6a5528f", "metadata": {}, "source": [ "## Modelling the tunnels connecting the creek intakes\n", "\n", "The creek intake reservoirs are connected to the main tunnel with short tunnel objects with low [loss coefficients](tunnel:loss_factor). Note that setting the loss coefficients to zero may lead to instabilities when solving the tunnel network equations, so the loss factors should always be larger than zero. In this case, the tunnels connecting the creeks have a loss coefficient of 1e-6, while the main tunnel segments have much higher losses. 1e-6 is about 0.1% of the sum of all loss factors in the tunnel network:" ] }, { "cell_type": "code", "execution_count": 4, "id": "afaf79c8", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Loss in Rsv_N1: 0.00015, 14.96 % of sum loss factor\n", "\n", "Loss in N1_N2: 2.5e-05, 2.49 % of sum loss factor\n", "\n", "Loss in N2_N3: 2.5e-05, 2.49 % of sum loss factor\n", "\n", "Loss in N3_plant: 0.0008, 79.76 % of sum loss factor\n", "\n", "Loss in Creek1_N1: 1e-06, 0.10 % of sum loss factor\n", "\n", "Loss in Creek2_N2: 1e-06, 0.10 % of sum loss factor\n", "\n", "Loss in Creek3_N3: 1e-06, 0.10 % of sum loss factor\n", "\n" ] } ], "source": [ "sum_loss_factor = sum(t.loss_factor.get() for t in shop.model.tunnel)\n", "\n", "for t in shop.model.tunnel:\n", " loss = t.loss_factor.get()\n", " print(f\"Loss in {t.get_name()}: {loss}, {100*loss/sum_loss_factor:.2f} % of sum loss factor\")\n", " print(\"\")" ] }, { "cell_type": "markdown", "id": "6c348fd6", "metadata": {}, "source": [ "## Modelling the main tunnel\n", "\n", "The main tunnel from the large reservoir to the plant is split into 4 tunnel segments to allow creek intakes to connect at different points in the system. 15% of the main tunnel loss happens in the first tunnel segment between the large reservoir and the first creek intake, then 2.5% loss is added between each creek before 80% of the loss happens after the last creek intake. The main tunnel is modelled as flat at the lrl of the large reservoir before it drops off down to the plant in the final tunnel segment. This is seen in the [start_height](tunnel:start_height) and [end_height](tunnel:end_height) of each tunnel:" ] }, { "cell_type": "code", "execution_count": 5, "id": "2181476f", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Rsv_N1: starts at 80.0 masl, ends at 80.0 masl\n", "\n", "N1_N2: starts at 80.0 masl, ends at 80.0 masl\n", "\n", "N2_N3: starts at 80.0 masl, ends at 80.0 masl\n", "\n", "N3_plant: starts at 80.0 masl, ends at 0.0 masl\n", "\n", "Creek1_N1: starts at 80.0 masl, ends at 80.0 masl\n", "\n", "Creek2_N2: starts at 80.0 masl, ends at 80.0 masl\n", "\n", "Creek3_N3: starts at 80.0 masl, ends at 80.0 masl\n", "\n" ] } ], "source": [ "for t in shop.model.tunnel:\n", " start = t.start_height.get()\n", " print(f\"{t.get_name()}: starts at {t.start_height.get()} masl, ends at {t.end_height.get()} masl\")\n", " print(\"\")" ] }, { "cell_type": "markdown", "id": "a62b739f", "metadata": {}, "source": [ "## Modelling the spillways\n", "\n", "The [overflow example](reservoir-overflow) gives a general overview of how to modell spillage in SHOP. For creek intakes, it is recommended to add a river object with a simple [up_head_flow_curve](river:up_head_flow_curve) to each creek reservoir. The [upstream_elevation](river:upstream_elevation) of the river should be the hrl of the reservoirs, and using a single segment in the up_head_flow_curve is usually sufficient. Setting a [flow_cost](river:flow_cost) on the spill rivers is also common practice, but not strictly necessary as long as the creek reservoirs has a [water value](water-value-descriptions) consistent with the larger reservoir(s) in the tunnel system. In this model, no flow_cost is added to the rivers connected to the creek intake reservoirs, and the [energy_value_input](reservoir:energy_value_input) of all creeks are set to the same as the large reservoir." ] }, { "cell_type": "markdown", "id": "9b883f06", "metadata": {}, "source": [ "## General recommendations and considerations\n", "\n", "- Start simple and expand the modelling of creeks in the system gradually. This allows the user to verify that the main components in the system function as expected before adding more complexity.\n", "- Consider aggregating creek intakes that are close together with low losses between them. Large tunnel systems increase the complexity and calculation time of SHOP.\n", "- Make sure the initial reservoir levels of the whole tunnel system are consistent to avoid numerical trouble." ] }, { "cell_type": "markdown", "id": "32831012", "metadata": {}, "source": [ "## Optimizing a dry system state\n", "\n", "It is good practice to test the stability of the modelling in both wet and dry system conditions. First the a dry system state with all reservoirs at lrl and low inflow is optimized:" ] }, { "cell_type": "code", "execution_count": 6, "id": "5c54524c", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Dry objective value: -2418.800137270766\n" ] } ], "source": [ "shop = build_model()\n", "\n", "#Set initial state of the reservoirs to empty\n", "for r in shop.model.reservoir:\n", " r.start_head.set(r.lrl.get())\n", "\n", "#Create a random inflow profile that is used for all three creeks\n", "np.random.seed(10)\n", "t = [shop.get_time_resolution()[\"starttime\"] + pd.Timedelta(minutes=60*i) for i in range(24)]\n", "inflow_profile = pd.Series(np.random.rand(24), index=t)\n", "\n", "shop.model.reservoir[\"Creek1\"].inflow.set(1*inflow_profile)\n", "shop.model.reservoir[\"Creek2\"].inflow.set(3*inflow_profile)\n", "shop.model.reservoir[\"Creek3\"].inflow.set(2*inflow_profile)\n", "\n", "#No inflow on the large reservoir\n", "shop.model.reservoir[\"Reservoir\"].inflow.set(0)\n", "\n", "#Run a standard optimization\n", "\n", "shop.set_universal_mip(\"off\",[])\n", "shop.start_sim([],[3])\n", "shop.set_universal_mip(\"on\",[])\n", "shop.start_sim([],[2])\n", "shop.set_code(['incremental'], [])\n", "shop.start_sim([],[5])\n", "\n", "dry_objective = shop.model.objective.average_objective.total.get()\n", "print(\"Dry objective value:\",dry_objective)" ] }, { "cell_type": "markdown", "id": "08aebb5f", "metadata": {}, "source": [ "As expected, the power plant produces very little since the system is dry. Enough water is saved to produce some power during the price peak towards the end of the optimization horizon. \n", "\n", "All reservoir levels slowly increase in the beginning when the power plant is offline, and the inflow into the creeks flow into the larger reservoir. When the power plant draws water, the reservoir levels drop quickly in the closest creek intakes while it takes a little longer for the main upstream reservoir to be affected." ] }, { "cell_type": "code", "execution_count": 7, "id": "ca6eaddf", "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Plant", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 19.56925411756704, 15.53996095951718, 7.046765354029395, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Price", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "xaxis": "x", "y": [ 29.56, 28.46, 26.66, 24.48, 24.01, 21.23, 22.62, 25.04, 26.24, 32.21, 41.34, 43.51, 43.02, 44.29, 46.24, 50.61, 59.47, 64.99, 61.74, 55.07, 48.01, 44.01, 45.2, 38.0 ], "yaxis": "y2" } ], "layout": { "barmode": "stack", "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Production and market price" }, "xaxis": { "anchor": "y", "domain": [ 0.0, 0.94 ] }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Production [MW]" } }, "yaxis2": { "anchor": "x", "overlaying": "y", "side": "right", "title": { "text": "Energy price [€/MWh]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Reservoir", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00", "2024-01-02T00:00:00" ], "y": [ 80.0, 80.01665935059755, 80.01710672922609, 80.03079259039627, 80.0469648816156, 80.05773113436541, 80.06258584888538, 80.06686345816152, 80.08328947311641, 80.08694124477073, 80.08884903316611, 80.10365167289284, 80.12424259976736, 80.12432695729186, 80.13538962465239, 80.15294032954627, 80.166169157082, 80.18175721490526, 80.08649805788306, 80.02438982495808, 80.0, 80.01171877884498, 80.01478899710479, 80.02285259507212, 80.0374123767652 ] }, { "name": "Creek1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00", "2024-01-02T00:00:00" ], "y": [ 80.0, 80.00932838896124, 80.01679014168108, 80.02436083202603, 80.03969197698567, 80.05226742197, 80.05979802014492, 80.06436414120284, 80.07599979350088, 80.08476158659286, 80.08773171394982, 80.09680038102107, 80.11607551457419, 80.12429094768194, 80.12984693701956, 80.14532414229934, 80.1598284371867, 80.1750449238921, 80.04126380401586, 80.0193009071731, 80.00842947653817, 80.00628487276762, 80.01264185309506, 80.01859208631222, 80.03038525644436 ] }, { "name": "Creek2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00", "2024-01-02T00:00:00" ], "y": [ 80.0, 80.00970456864054, 80.01679225202477, 80.02461149232954, 80.04004956487073, 80.05242467370553, 80.05982850666292, 80.06438950244875, 80.07636631619036, 80.08478107166081, 80.0877333049111, 80.09709894322192, 80.11665234370186, 80.1242909714012, 80.13000904852723, 80.14574566293578, 80.16006686614128, 80.17541151061131, 80.02335965129745, 80.01100089992903, 80.00699908920681, 80.00631783541655, 80.01343006604306, 80.01796906045509, 80.03060075006391 ] }, { "name": "Creek3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00", "2024-01-02T00:00:00" ], "y": [ 80.0, 80.00999952742579, 80.01695567642274, 80.0248428200866, 80.04046855149797, 80.052743682696, 80.06000653782289, 80.06449967268546, 80.07671119329557, 80.0849802676529, 80.08780470891287, 80.09736885600857, 80.11720887520676, 80.12446721663906, 80.13017093997273, 80.14618357422059, 80.16044642059406, 80.17590307692556, 80.0, 80.0, 80.0, 80.01087419516784, 80.01420017132594, 80.01803369816948, 80.03076008913983 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Reservoir levels" }, "yaxis": { "title": { "text": "Level [masl]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Reservoir", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Creek1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.771320643266746, 0.0207519493594015, 0.6336482349262754, 0.7488038825386119, 0.4985070123025904, 0.22479664553084766, 0.19806286475962398, 0.7605307121989587, 0.16911083656253545, 0.08833981417401027, 0.6853598183677972, 0.9533933461949365, 0.003948266327914451, 0.5121922633857766, 0.8126209616521135, 0.6125260668293881, 0.7217553174317995, 0.29187606817063316, 0.9177741225129434, 0.7145757833976906, 0.5425443680112613, 0.14217004760152696, 0.3733407600514692, 0.6741336150663453 ] }, { "name": "Creek2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 2.313961929800238, 0.0622558480782045, 1.9009447047788264, 2.246411647615836, 1.4955210369077712, 0.674389936592543, 0.5941885942788719, 2.2815921365968763, 0.5073325096876063, 0.2650194425220308, 2.056079455103392, 2.8601800385848097, 0.011844798983743354, 1.53657679015733, 2.4378628849563406, 1.8375782004881644, 2.1652659522953988, 0.8756282045118995, 2.7533223675388303, 2.1437273501930716, 1.6276331040337837, 0.4265101428045809, 1.1200222801544077, 2.022400845199036 ] }, { "name": "Creek3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 1.542641286533492, 0.041503898718803, 1.2672964698525508, 1.4976077650772237, 0.9970140246051808, 0.4495932910616953, 0.39612572951924796, 1.5210614243979175, 0.3382216731250709, 0.17667962834802053, 1.3707196367355945, 1.906786692389873, 0.007896532655828903, 1.0243845267715532, 1.625241923304227, 1.2250521336587763, 1.443510634863599, 0.5837521363412663, 1.8355482450258869, 1.4291515667953811, 1.0850887360225225, 0.2843400952030539, 0.7466815201029384, 1.3482672301326906 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Reservoir inflow" }, "yaxis": { "title": { "text": "Inflow [m3/s]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "#Plot production and market price\n", "fig = make_subplots(specs=[[{\"secondary_y\": True}]])\n", "fig.update_layout(barmode=\"stack\", title=\"Production and market price\")\n", "fig.update_yaxes(title_text=\"Energy price [€/MWh]\", secondary_y=True)\n", "fig.update_yaxes(title_text=\"Production [MW]\", secondary_y=False)\n", "\n", "for plant in shop.model.plant:\n", "\n", " prod = plant.production.get()\n", " fig.add_trace(go.Scatter(x=prod.index, y=prod.values, name=plant.get_name()))\n", "\n", "price = shop.model.market.spot.sale_price.get()\n", "fig.add_trace(go.Scatter(x=price.index, y=price.values, name=\"Price\"),secondary_y=True)\n", "fig.show()\n", "\n", "#Plot reservoir levels\n", "fig = go.Figure()\n", "for rsv in shop.model.reservoir:\n", " level = rsv.head.get()\n", " fig.add_trace(go.Scatter(x=level.index, y=level.values, name=rsv.get_name()))\n", "\n", "fig.update_layout(title=\"Reservoir levels\")\n", "fig.update_yaxes(title_text=\"Level [masl]\")\n", "fig.show()\n", "\n", "#Plot reservoir inflow\n", "fig = go.Figure()\n", "for rsv in shop.model.reservoir:\n", " inflow = rsv.inflow.get()\n", " fig.add_trace(go.Scatter(x=inflow.index, y=inflow.values, name=rsv.get_name()))\n", "\n", "fig.update_layout(title=\"Reservoir inflow\")\n", "fig.update_yaxes(title_text=\"Inflow [m3/s]\")\n", "fig.show()" ] }, { "cell_type": "markdown", "id": "9c39616b", "metadata": {}, "source": [ "The tunnel flow is shown in the figure below. As the reservoir volumes of the creek intakes are so small, most of the inflow goes directly into the larger reservoir. For these calm conditions, there are virtually no deviations between the optimized tunnel [flow](tunnel:flow) and the post-calculated [physical_flow](tunnel:physical_flow) in the tunnels (note the scale on the y-axis)." ] }, { "cell_type": "code", "execution_count": 8, "id": "890d8bab", "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Rsv_N1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ -4.627597388206867, -0.12427184126297539, -3.8016281028280052, -4.492303116477467, -2.9906257638405647, -1.3485318111013085, -1.188224798927279, -4.562781931913835, -1.014381015087952, -0.5299412209390324, -4.111844368537119, -5.719701909589089, -0.02343264569400194, -3.0729631557028085, -4.8751958038538605, -3.6746743154804657, -4.330016062019632, 26.460876950610178, 17.25228692360913, 6.77495137724296, -3.2552163458282055, -0.852838405501839, -2.239888324258528, -4.04438380363653 ] }, { "name": "N1_N2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ -3.8563631189119847, -0.10358898220653491, -3.168049966886405, -3.74364118898478, -2.4922351908433855, -1.1238048933313414, -0.9902042130663392, -3.8023589572361542, -0.8453513062392289, -0.4416289079442526, -3.4265685193088675, -4.766487036852975, -0.019560448191162937, -2.560822336662751, -4.062718149658041, -3.062282547677812, -3.608401637983252, 26.753991732853702, 18.170264406278015, 7.489627822035418, -2.712652120374618, -0.71072721882927, -1.8666026589590703, -3.370359384720063 ] }, { "name": "N2_N3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ -1.5425090176521976, -0.04141188616593302, -1.26719214255541, -1.497401075508289, -0.9968516551448902, -0.4494972215494355, -0.3960662965184206, -1.5208998963475167, -0.338112293834629, -0.17664226801389193, -1.3705931268533742, -1.906524258273497, -0.007800522848522911, -1.0243090806957105, -1.6250301159729064, -1.2248634716697087, -1.443306181737521, 27.63130940246908, 20.923724093276498, 9.63339963679208, -1.0850114468542755, -0.284296100809428, -0.7466308120759078, -1.3480988916277923 ] }, { "name": "N3_plant", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 28.217388299087133, 22.759272338302388, 11.062484653809372, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Creek1_N1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.7712342692948825, 0.020682859056439983, 0.6335781359416001, 0.7486619274926891, 0.49839057299717987, 0.2247269177699687, 0.19802058586093954, 0.7604229746776805, 0.16902970884872076, 0.08831231299477915, 0.6852758492282487, 0.9532148727361112, 0.0038721975028426026, 0.5121408190400579, 0.8124776541958191, 0.6123917678026533, 0.7216144240363791, 0.29311478224356136, 0.9179774826688948, 0.7146764447924584, 0.5425642254535811, 0.14211118667256917, 0.37328566529945845, 0.674024419046603 ] }, { "name": "Creek2_N2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 2.3138541012597873, 0.06217709604060189, 1.9008578243309955, 2.2462401134764898, 1.495383535698495, 0.6743076717819053, 0.5941379165479184, 2.281459060888636, 0.5072390124046013, 0.2649866399303609, 2.055975392455494, 2.859962778579476, 0.011759925342639702, 1.5365132559670407, 2.4376880336851343, 1.8374190760081028, 2.1650954562457314, 0.8773176696153868, 2.7534596869984798, 2.1437718147566516, 1.627640673520342, 0.4264311180198419, 1.1199718468831625, 2.022260493092271 ] }, { "name": "Creek3_N3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 1.5425090176521983, 0.041411886165933186, 1.2671921425554098, 1.4974010755082903, 0.9968516551448894, 0.44949722154943483, 0.39606629651842035, 1.520899896347518, 0.33811229383463004, 0.17664226801389382, 1.3705931268533762, 1.9065242582734951, 0.00780052284852328, 1.0243090806957111, 1.6250301159729061, 1.224863471669709, 1.443306181737521, 0.5860788966180593, 1.8355482450258866, 1.4290850170173075, 1.0850114468542746, 0.28429610080942824, 0.7466308120759075, 1.3480988916277916 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Tunnel flow" }, "yaxis": { "title": { "text": "Flow [m3/s]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Rsv_N1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 2.3897243561776804e-07, -1.1913121324425013e-06, 2.2838208688646944e-06, -1.989772941080048e-06, 4.861455478177845e-07, 4.420029851015528e-07, -6.139655139847378e-08, -3.378176556267931e-07, -6.916899690789791e-07, 1.6194052180340535e-06, -4.3715593545101683e-07, -1.154779615930579e-06, 6.347352147495489e-07, 1.511009403376562e-06, -2.2499439298329094e-06, 4.791459433661771e-07, 1.369216459945477e-05, -1.9650442727225936e-05, 5.501800359297704e-06, -2.117715664162745e-06, 1.0289048182343663e-06, 1.788174199401915e-05, -1.4900046249710641e-05, -1.3126125533169386e-05 ] }, { "name": "N1_N2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 1.7261761042774992e-07, -8.620243417273299e-07, 1.6570594985054754e-06, -1.4515617974275585e-06, 3.6495567634631243e-07, 3.124491176897948e-07, -4.3014585893175195e-08, -2.4558627442772263e-07, -4.950025827010762e-07, 1.167452268802105e-06, -3.182224630471353e-07, -8.370162642989953e-07, 4.742388996330227e-07, 1.0764047497779927e-06, -1.6339736390591497e-06, 3.7102871441874186e-07, 1.0477042824419414e-05, -1.4666591376055749e-05, 3.453650172957623e-06, -8.869625309770868e-07, -2.6583676708824555e-06, 2.0768971816464976e-05, -1.5768212927813607e-05, -1.07197523888658e-05 ] }, { "name": "N2_N3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 9.70794347132653e-08, -4.873083608372686e-07, 9.434493526416787e-07, -8.360620322722667e-07, 2.1971666608333607e-07, 1.7355252690531842e-07, -2.68990135166014e-08, -1.3988176306156674e-07, -2.74432143954062e-07, 6.623019046803069e-07, -1.896192836081667e-07, -4.7318461526835165e-07, 2.8148743511785534e-07, 5.985735203051235e-07, -9.347737204290496e-07, 2.3030523732536778e-07, 6.208853975619988e-06, -8.570247281625143e-06, 1.5823869752296105e-06, 9.467064110424417e-07, -5.3791627570021205e-06, 1.5617845077975367e-05, -8.907296259130781e-06, -7.030583447642513e-06 ] }, { "name": "N3_plant", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -7.105427357601002e-15, 0.0, -3.552713678800501e-15, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Creek1_N1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ -6.635482519001812e-08, 3.2928779021904053e-07, -6.267613704702413e-07, 5.382111449847571e-07, -1.2118987108289403e-07, -1.2955386585744577e-07, 1.838196519998725e-08, 9.223138053293667e-08, 1.9668738410194564e-07, -4.5195294987032675e-07, 1.1893346940627936e-07, 3.177633486339815e-07, -1.604963115187097e-07, -4.3460465326550235e-07, 6.159702901076258e-07, -1.0811722950254676e-07, -3.215121775479446e-06, 4.983851385476079e-06, -2.0481501760150067e-06, 1.230753133185658e-06, -3.6872724956671377e-06, 2.8872298226678694e-06, -8.681666774368324e-07, 2.4065032804276854e-06 ] }, { "name": "Creek2_N2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ -7.553817527039541e-08, 3.747159808970002e-07, -7.136101456417521e-07, 6.154997640450688e-07, -1.4523901037399867e-07, -1.3889659133958787e-07, 1.611557221004034e-08, 1.0570451003388825e-07, 2.20570440134793e-07, -5.051503638164867e-07, 1.286031801051024e-07, 3.6383164703224224e-07, -1.927514648378259e-07, -4.778312290287801e-07, 6.991999184080555e-07, -1.4072347775950789e-07, -4.268188848577381e-06, 6.096344108197371e-06, -1.8712631990602802e-06, 1.8336689313613874e-06, -2.720795086785799e-06, -5.151126738656142e-06, 6.860916668571804e-06, 3.6891689418894202e-06 ] }, { "name": "Creek3_N3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ -9.707943404713149e-08, 4.87308361003802e-07, -9.434493528637233e-07, 8.360620336045343e-07, -2.1971666686049218e-07, -1.7355252757145223e-07, 2.6899013239045644e-08, 1.3988176439383437e-07, 2.744321450087739e-07, -6.623019027929278e-07, 1.8961928560656816e-07, 4.731846134919948e-07, -2.8148743474835924e-07, -5.985735196389896e-07, 9.34773720207005e-07, -2.3030523688127857e-07, -6.208853975619988e-06, 8.570247277073229e-06, -1.5823869801145918e-06, -9.467063992740776e-07, 5.379162756113942e-06, -1.5617845077753323e-05, 8.907296258908737e-06, 7.0305834469763795e-06 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Tunnel flow deviation from post-calculated flow" }, "yaxis": { "title": { "text": "Flow [m3/s]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "fig = go.Figure()\n", "for t in shop.model.tunnel:\n", " flow = t.flow.get()\n", " fig.add_trace(go.Scatter(x=flow.index, y=flow.values, name=t.get_name())) \n", "\n", "fig.update_layout(title=\"Tunnel flow\")\n", "fig.update_yaxes(title_text=\"Flow [m3/s]\")\n", "fig.show() \n", "\n", "fig = go.Figure()\n", "for t in shop.model.tunnel:\n", " flow = t.flow.get()\n", " pflow = t.physical_flow.get()\n", " fig.add_trace(go.Scatter(x=flow.index, y=flow.values-pflow.values, name=t.get_name())) \n", "\n", "fig.update_layout(title=\"Tunnel flow deviation from post-calculated flow\")\n", "fig.update_yaxes(title_text=\"Flow [m3/s]\")\n", "fig.show() " ] }, { "cell_type": "markdown", "id": "0a0b5023", "metadata": {}, "source": [ "There is no flow in any of the spillways, as expected. As for the tunnel flow, the deviation between the optimized [flow](river:flow) and post-calculated [physical_flow](river:physical_flow) is zero for all rivers." ] }, { "cell_type": "code", "execution_count": 9, "id": "80c972b6", "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Spill_rsv", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "River flow" }, "yaxis": { "title": { "text": "Flow [m3/s]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Spill_rsv", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "River flow deviation from post-calculated flow" }, "yaxis": { "title": { "text": "Flow [m3/s]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "#Plot river flow\n", "fig = go.Figure()\n", "for r in shop.model.river:\n", " flow = r.flow.get()\n", " fig.add_trace(go.Scatter(x=flow.index, y=flow.values, name=r.get_name()))\n", "\n", "fig.update_layout(title=\"River flow\")\n", "fig.update_yaxes(title_text=\"Flow [m3/s]\")\n", "fig.show()\n", "\n", "fig = go.Figure()\n", "for r in shop.model.river:\n", " flow = r.flow.get()\n", " pflow = r.physical_flow.get()\n", " fig.add_trace(go.Scatter(x=flow.index, y=flow.values-pflow.values, name=r.get_name()))\n", "\n", "fig.update_layout(title=\"River flow deviation from post-calculated flow\")\n", "fig.update_yaxes(title_text=\"Flow [m3/s]\")\n", "fig.show()" ] }, { "cell_type": "markdown", "id": "33790dd3", "metadata": {}, "source": [ "## Optimizing a wet system state\n", "\n", "In the wet system state, all reservoirs start at hrl and the creek intakes receive 10 times the amount of inflow compared to the dry case." ] }, { "cell_type": "code", "execution_count": 10, "id": "839981a4", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Wet objective value: -521669.04006049596\n" ] } ], "source": [ "shop = build_model()\n", "\n", "#Set initial state of the reservoirs to full\n", "for r in shop.model.reservoir:\n", " r.start_head.set(r.hrl.get())\n", " \n", "#Create a random inflow profile that is used for all three creeks\n", "np.random.seed(10)\n", "t = [shop.get_time_resolution()[\"starttime\"] + pd.Timedelta(minutes=60*i) for i in range(24)]\n", "inflow_profile = pd.Series(np.random.rand(24), index=t)\n", "\n", "shop.model.reservoir[\"Creek1\"].inflow.set(10*inflow_profile)\n", "shop.model.reservoir[\"Creek2\"].inflow.set(30*inflow_profile)\n", "shop.model.reservoir[\"Creek3\"].inflow.set(20*inflow_profile)\n", "\n", "#No inflow on the large reservoir\n", "shop.model.reservoir[\"Reservoir\"].inflow.set(0)\n", "\n", "#Run a standard optimization\n", "\n", "shop.set_universal_mip(\"off\",[])\n", "shop.start_sim([],[3])\n", "shop.set_universal_mip(\"on\",[])\n", "shop.start_sim([],[2])\n", "shop.set_code(['incremental'], [])\n", "shop.start_sim([],[5])\n", "\n", "wet_objective = shop.model.objective.average_objective.total.get()\n", "print(\"Wet objective value:\",wet_objective)" ] }, { "cell_type": "markdown", "id": "ae8f695c", "metadata": {}, "source": [ "The power plant has to operate in almost all hours to avoid spillage losses in the system, but is still able to ramp down when the prices are low. \n", "\n", "The initial reservoir levels of all creek intakes are high above the large reservoir, but this initial difference is quickly eliminated due to the operation of the power plant and the relatively low losses in the system. The reservoir levels in the three creeks vary rapidly from hour to hour as inflow and power plant discharge changes." ] }, { "cell_type": "code", "execution_count": 11, "id": "81b98835", "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Plant", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 63.754768446208665, 55.028250363103794, 22.88729172855025, 9.999936363847297, 9.999950958577902, 9.99996762247683, 9.999968323099317, 9.999932694982991, 9.999969507648032, 9.999967179230534, 55.45052054670371, 63.8216161680751, 63.064393017358654, 63.531096724278726, 66.32273801067478, 69.99974832113398, 69.99976220851283, 69.99966336812902, 69.99978865936244, 69.99976083961326, 67.67744024174598, 63.04073580513128, 63.23914564430193, 0.0 ] }, { "name": "Price", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "xaxis": "x", "y": [ 29.56, 28.46, 26.66, 24.48, 24.01, 21.23, 22.62, 25.04, 26.24, 32.21, 41.34, 43.51, 43.02, 44.29, 46.24, 50.61, 59.47, 64.99, 61.74, 55.07, 48.01, 44.01, 45.2, 38.0 ], "yaxis": "y2" } ], "layout": { "barmode": "stack", "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Production and market price" }, "xaxis": { "anchor": "y", "domain": [ 0.0, 0.94 ] }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Production [MW]" } }, "yaxis2": { "anchor": "x", "overlaying": "y", "side": "right", "title": { "text": "Energy price [€/MWh]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Reservoir", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00", "2024-01-02T00:00:00" ], "y": [ 100.0, 99.98286895339571, 99.94481265436683, 99.95119723475605, 99.97041853425823, 99.98062585956183, 99.98097264547987, 99.98035589083112, 100.0, 99.99834628633333, 99.99377974507584, 99.9796453201315, 99.96896703071428, 99.92412866726674, 99.89755634298076, 99.87963954562275, 99.85115002747797, 99.82664943104578, 99.78626471271846, 99.76888700707576, 99.7440680721861, 99.71499825698142, 99.67512442650744, 99.64355923311102, 99.66781008964479 ] }, { "name": "Creek1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00", "2024-01-02T00:00:00" ], "y": [ 110.0, 99.84874079330922, 99.25985941616051, 100.01952366183542, 100.14972137467538, 100.00909197971679, 99.97657783246446, 99.98956779796076, 100.17257054473696, 99.99408157927068, 99.97870899742621, 99.87920663519465, 99.90309815967024, 99.0526545603861, 99.53565778388968, 99.74004654018609, 99.48568169116821, 99.54258489723392, 99.06222249305799, 99.61510359057108, 99.4683298447949, 99.32373832786527, 98.96040258781348, 99.1909188096449, 99.94914387613122 ] }, { "name": "Creek2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00", "2024-01-02T00:00:00" ], "y": [ 105.0, 99.81111200605099, 99.17858372222543, 99.99686652746048, 100.16702177931526, 100.02027131868051, 99.979877091905, 99.98841519881708, 100.18649666238773, 99.99171159000326, 99.97681220641728, 99.85722519485756, 99.88484773886917, 98.91669368336417, 99.46936282889395, 99.70677169062016, 99.4150810912936, 99.48441525559471, 98.93950955615728, 99.57832293692023, 99.41150602533187, 99.25073169399437, 98.84454426062155, 99.11186154252118, 99.97892759899014 ] }, { "name": "Creek3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00", "2024-01-02T00:00:00" ], "y": [ 101.0, 99.68685735799397, 99.07639413057731, 99.9952432502781, 100.17305000987847, 100.01940095639006, 99.98088780321578, 99.98751136668247, 100.18934148887378, 99.98228087953308, 99.97281908974922, 99.78831288851224, 99.8050707935043, 98.75676117319883, 99.37138358646811, 99.61936736750363, 99.27802440033012, 99.3630968788574, 98.77039720697667, 99.48577059289995, 99.28663772505917, 99.12194715734049, 98.70345526252308, 99.00560293168277, 100.00866458498189 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Reservoir levels" }, "yaxis": { "title": { "text": "Level [masl]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Reservoir", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Creek1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 7.71320643266746, 0.207519493594015, 6.336482349262754, 7.488038825386118, 4.9850701230259045, 2.2479664553084766, 1.9806286475962398, 7.605307121989587, 1.6911083656253545, 0.8833981417401027, 6.853598183677972, 9.533933461949365, 0.039482663279144514, 5.121922633857766, 8.126209616521136, 6.1252606682938815, 7.217553174317995, 2.9187606817063316, 9.177741225129434, 7.145757833976906, 5.425443680112613, 1.4217004760152696, 3.733407600514692, 6.741336150663453 ] }, { "name": "Creek2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 23.13961929800238, 0.622558480782045, 19.009447047788264, 22.464116476158356, 14.955210369077713, 6.743899365925429, 5.941885942788719, 22.815921365968762, 5.073325096876063, 2.650194425220308, 20.56079455103392, 28.601800385848097, 0.11844798983743354, 15.365767901573298, 24.378628849563405, 18.375782004881643, 21.652659522953986, 8.756282045118995, 27.533223675388303, 21.43727350193072, 16.276331040337837, 4.265101428045809, 11.200222801544076, 20.224008451990358 ] }, { "name": "Creek3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 15.42641286533492, 0.41503898718803, 12.672964698525508, 14.976077650772236, 9.970140246051809, 4.495932910616953, 3.9612572951924796, 15.210614243979174, 3.382216731250709, 1.7667962834802053, 13.707196367355944, 19.06786692389873, 0.07896532655828903, 10.243845267715532, 16.25241923304227, 12.250521336587763, 14.43510634863599, 5.837521363412663, 18.35548245025887, 14.291515667953812, 10.850887360225226, 2.843400952030539, 7.466815201029384, 13.482672301326906 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Reservoir inflow" }, "yaxis": { "title": { "text": "Inflow [m3/s]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "#Plot production and market price\n", "fig = make_subplots(specs=[[{\"secondary_y\": True}]])\n", "fig.update_layout(barmode=\"stack\", title=\"Production and market price\")\n", "fig.update_yaxes(title_text=\"Energy price [€/MWh]\", secondary_y=True)\n", "fig.update_yaxes(title_text=\"Production [MW]\", secondary_y=False)\n", "\n", "for plant in shop.model.plant:\n", "\n", " prod = plant.production.get()\n", " fig.add_trace(go.Scatter(x=prod.index, y=prod.values, name=plant.get_name()))\n", "\n", "price = shop.model.market.spot.sale_price.get()\n", "fig.add_trace(go.Scatter(x=price.index, y=price.values, name=\"Price\"),secondary_y=True)\n", "fig.show()\n", "\n", "#Plot reservoir levels\n", "fig = go.Figure()\n", "for rsv in shop.model.reservoir:\n", " level = rsv.head.get()\n", " fig.add_trace(go.Scatter(x=level.index, y=level.values, name=rsv.get_name()))\n", "\n", "fig.update_layout(title=\"Reservoir levels\")\n", "fig.update_yaxes(title_text=\"Level [masl]\")\n", "fig.show()\n", "\n", "#Plot reservoir inflow\n", "fig = go.Figure()\n", "for rsv in shop.model.reservoir:\n", " inflow = rsv.inflow.get()\n", " fig.add_trace(go.Scatter(x=inflow.index, y=inflow.values, name=rsv.get_name()))\n", "\n", "fig.update_layout(title=\"Reservoir inflow\")\n", "fig.update_yaxes(title_text=\"Inflow [m3/s]\")\n", "fig.show()" ] }, { "cell_type": "markdown", "id": "1d1810d3", "metadata": {}, "source": [ "The flow in the tunnel system is much more dramatic in the wet system state, and the direction of flow into and out of the large reservoir changes multiple times during the optimization. This is due to the changes in the operation of the power plant and the large but random changes in inflow from hour to hour. There are some slight deviations between the flow and physical_flow in this run, which means that there is a small error in the linearization of the non-linear tunnel network equations. However, the deviations are very small compared to the flow in the tunnels." ] }, { "cell_type": "code", "execution_count": 12, "id": "241b1987", "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Rsv_N1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 28.55174434048193, 63.4271650481369, -10.640967315379322, -32.035499170277895, -17.01220883935032, -0.5779765300599298, 1.0279244145745778, -32.74018194812506, 2.756189444446826, 7.610902095812302, 23.557374907246736, 17.79714902868865, 74.73060574590147, 44.28720714330766, 29.86132893002133, 47.48253024130157, 40.83432738698165, 67.30786387884932, 28.962842737841004, 41.36489148278749, 48.44969200777751, 66.45638412331463, 52.60865566068483, -40.418094222932126 ] }, { "name": "N1_N2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 36.35894391395208, 63.640137147088716, -4.31151889431731, -24.54866587926992, -12.02583659229705, 1.6702909821672827, 3.0084327847111587, -25.136569296013054, 4.448950485679488, 8.49444257627559, 30.411894409094195, 27.3308612728188, 74.77796288695177, 49.40465752509612, 37.98564605805837, 53.61014613967897, 48.05135367976196, 70.23107236059427, 38.13546469354905, 48.51200833292905, 53.87647449823204, 67.8814488191452, 56.33992885173812, -33.68377867473614 ] }, { "name": "N2_N3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 59.55621752299834, 64.26972371993246, 14.688836122301698, -2.0864400170211037, 2.9310043374544046, 8.41463917283432, 8.950223859643481, -2.3228488351950785, 9.524439861139161, 11.144802550205648, 50.97401770470194, 55.93235474151121, 74.90716814407257, 64.76428465838576, 62.361637031380354, 71.98916915121977, 69.70324282311257, 78.99340891348481, 65.66159044248438, 69.95113535609964, 70.15459192002919, 72.15106344089516, 67.5371814612611, -13.469404290039881 ] }, { "name": "N3_plant", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 75.0, 64.69283761753604, 27.349646731942258, 12.887285692486577, 12.903176978393589, 12.911081516693807, 12.911393541559885, 12.885095698171591, 12.90939548934113, 12.911723989639848, 64.68365463027678, 75.0, 75.0, 75.0, 78.61077605567871, 84.2442056064209, 84.13722387441359, 84.83877021964719, 84.00761028181836, 84.24528505669683, 81.00765772691736, 75.0, 75.0, 0.0 ] }, { "name": "Creek1_N1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 7.807199573470151, 0.2129720989379846, 6.32944842106206, 7.486833291007969, 4.986372247053299, 2.2482675122274793, 1.980508370137941, 7.60361265211203, 1.6927610412315237, 0.8835404804608847, 6.854519501846783, 9.533712244130149, 0.047357141050293844, 5.117450381788288, 8.12431712803691, 6.12761589837738, 7.217026292780349, 2.9232084817449975, 9.172621955708015, 7.147116850141499, 5.426782490454554, 1.4250646958305637, 3.73127319105329, 6.734315548195986 ] }, { "name": "Creek2_N2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 23.197273609046256, 0.629586572824551, 19.000355016618986, 22.462225862248857, 14.956840929751431, 6.744348190667378, 5.94179107493414, 22.813720460817983, 5.075489375458114, 2.650359973926818, 20.562123295606803, 28.60149346869241, 0.12920525712082237, 15.359627133289633, 24.375990973322, 18.379023011540824, 21.651889143350637, 8.76233655289052, 27.526125748935378, 21.439127023170585, 16.27811742179714, 4.269614621749952, 11.197252609522966, 20.21437438469626 ] }, { "name": "Creek3_N3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 15.443782477001665, 0.42311389760359364, 12.660810609640572, 14.973725709507681, 9.972172640939222, 4.496442343859998, 3.961169681919111, 15.207944533367694, 3.38495562819966, 1.7669214394297275, 13.709636925573365, 19.067645258488785, 0.09283185592740902, 10.235715341613968, 16.249139024298415, 12.255036455201171, 14.433981051300972, 5.84536130616241, 18.346019839333955, 14.294149700597222, 10.853065806888171, 2.8489365591048426, 7.462818538738912, 13.469404290039881 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Tunnel flow" }, "yaxis": { "title": { "text": "Flow [m3/s]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Rsv_N1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.00011419811435686711, -0.0005110252167952467, 0.0006594436277218563, 0.00014661936894810879, -0.000699150006333582, -3.252428506173022e-05, 0.00033220009418055696, 0.00018237087240180472, -0.00011565266362412174, -4.1989385202612084e-05, 1.8430677666714246e-05, -0.00021903207414553094, 0.0008451090800605243, -0.0014532259751121046, 0.0006422685296563202, 0.0002674144799996725, -0.00019914743075588603, 0.0001614515054200183, -0.00028939179663112213, 0.00043390303144263953, -0.0001850776335743376, -0.00017921477306970246, 2.606345461941828e-05, 0.00028916864324912694 ] }, { "name": "N1_N2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 3.4130252785757875e-05, -0.00017931653422209592, 0.0002553939970928454, 0.00012589118080441608, -0.0004471562284642516, 1.2531923747616247e-05, 0.00023862561797027837, 0.00011020367597325276, -0.0001050658038108665, -3.36314859161746e-05, 2.1042040465601985e-05, -0.00016686930736398153, 0.0006598185228625653, -0.0011216220768091034, 0.0004979223454526505, 0.00020384062358402844, -0.00015658394487871874, 0.0001247875724033065, -0.0002228689253414018, 0.0003353327382953353, -0.0001452927477956223, -0.00013843871150243103, 2.2600139850226242e-05, 0.0002230559798377385 ] }, { "name": "N2_N3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ -5.76572576704848e-06, -3.223913793704014e-06, 3.1010821507138076e-05, 8.117485955594361e-05, -0.00022659980705919125, 2.9615222128853702e-05, 0.00013697793129097136, 4.952361075716283e-05, -7.127233039305736e-05, -2.25005444391968e-05, 1.5677965158999996e-05, -0.00010090793946204712, 0.0003949116894261806, -0.0006627929677733846, 0.0002994986389879273, 0.00011699860991143396, -9.592256739665572e-05, 7.491886428567796e-05, -0.00013086443806287207, 0.00019924636806933904, -9.005193328448513e-05, -8.198767753242464e-05, 1.6378577612385925e-05, 0.00013199688566167822 ] }, { "name": "N3_plant", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 2.842170943040401e-14, -7.105427357601002e-15, -3.552713678800501e-15, -2.1316282072803006e-14, -1.7763568394002505e-15, 3.552713678800501e-15, 1.7763568394002505e-15, 1.4210854715202004e-14, -2.4868995751603507e-14, 2.842170943040401e-14, 0.0, 0.0, 0.0, 0.0, 0.0, 1.4210854715202004e-14, 0.0, 2.842170943040401e-14, -1.4210854715202004e-14, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Creek1_N1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ -8.006786157199741e-05, 0.00033170866874424054, -0.0004040496305801611, -2.0728188149021776e-05, 0.0002519937778995285, 4.505620907657715e-05, -9.357447485025538e-05, -7.216719640901204e-05, 1.0586858675720734e-05, 8.357896883914862e-06, 2.6113621229839623e-06, 5.216276677977305e-05, -0.00018529055720043625, 0.00033160389813158275, -0.0001443461843368965, -6.357385643074309e-05, 4.256348591891168e-05, -3.6663932975411484e-05, 6.65228712541932e-05, -9.857029320681221e-05, 3.978488579470252e-05, 4.0776061559499865e-05, -3.4633147696361277e-06, -6.611266341494115e-05 ] }, { "name": "Creek2_N2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ -3.9895978552806355e-05, 0.00017609260123629955, -0.0002243831756061354, -4.471632120939262e-05, 0.00022055642138063547, 1.7083298722297968e-05, -0.00010164768486209397, -6.0680065207208145e-05, 3.3793471858167834e-05, 1.1130938236014742e-05, -5.364076255176542e-06, 6.596136790193441e-05, -0.00026490683342408894, 0.000458829109021508, -0.0001984237064434069, -8.684201366193633e-05, 6.0661377499826585e-05, -4.986870813716848e-05, 9.200448733537314e-05, -0.00013608637023665437, 5.524081451113716e-05, 5.6451033978888177e-05, -6.221562253827528e-06, -9.105909417428393e-05 ] }, { "name": "Creek3_N3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 5.765725774153907e-06, 3.22391382823195e-06, -3.1010821501809005e-05, -8.117485955949633e-05, 0.00022659980707651073, -2.961522161903929e-05, -0.000136977928581139, -4.9523609730428575e-05, 7.12723280988925e-05, 2.2500539943015596e-05, -1.5677966597849036e-05, 0.00010090793945849441, -0.0003949116894407523, 0.0006627929675069311, -0.0002994986389346366, -0.0001169986098688014, 9.59225673646813e-05, -7.4918864251039e-05, 0.00013086443806642478, -0.00019924636804447005, 9.005193328270877e-05, 8.19876775297601e-05, -1.637857759817507e-05, -0.00013199688566167822 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Tunnel flow deviation from post-calculated flow" }, "yaxis": { "title": { "text": "Flow [m3/s]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "#Plot tunnel flow\n", "fig = go.Figure()\n", "for t in shop.model.tunnel:\n", " flow = t.flow.get()\n", " fig.add_trace(go.Scatter(x=flow.index, y=flow.values, name=t.get_name()))\n", "\n", "fig.update_layout(title=\"Tunnel flow\")\n", "fig.update_yaxes(title_text=\"Flow [m3/s]\")\n", "fig.show()\n", "\n", "#Plot tunnel flow\n", "fig = go.Figure()\n", "for t in shop.model.tunnel:\n", " flow = t.flow.get()\n", " pflow = t.physical_flow.get()\n", " fig.add_trace(go.Scatter(x=flow.index, y=flow.values-pflow.values, name=t.get_name()))\n", "\n", "fig.update_layout(title=\"Tunnel flow deviation from post-calculated flow\")\n", "fig.update_yaxes(title_text=\"Flow [m3/s]\")\n", "fig.show()" ] }, { "cell_type": "markdown", "id": "e86ceff6", "metadata": {}, "source": [ "SHOP is able to avoid spillage in the wet system state, but spillage from creek intakes are not uncommon. Specifying a [mip_flag](river:mip_flag) (or using the command [set universal_river_mip /on](set_universal_river_mip)) and adding a [flow_cost](river:flow_cost) on the creek spillways can be considered when there is a lot of spillage in the system. However, it is important to consider that adding high spillage penalties in a system where spillage is unavoidable can simply make the calculation time longer. This can happen when the objective function is increased a lot due to (spillage) penalties." ] }, { "cell_type": "code", "execution_count": 13, "id": "fd994c77", "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Spill_rsv", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "River flow" }, "yaxis": { "title": { "text": "Flow [m3/s]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "Spill_rsv", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C1", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C2", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] }, { "name": "Spill_C3", "type": "scatter", "x": [ "2024-01-01T00:00:00", "2024-01-01T01:00:00", "2024-01-01T02:00:00", "2024-01-01T03:00:00", "2024-01-01T04:00:00", "2024-01-01T05:00:00", "2024-01-01T06:00:00", "2024-01-01T07:00:00", "2024-01-01T08:00:00", "2024-01-01T09:00:00", "2024-01-01T10:00:00", "2024-01-01T11:00:00", "2024-01-01T12:00:00", "2024-01-01T13:00:00", "2024-01-01T14:00:00", "2024-01-01T15:00:00", "2024-01-01T16:00:00", "2024-01-01T17:00:00", "2024-01-01T18:00:00", "2024-01-01T19:00:00", "2024-01-01T20:00:00", "2024-01-01T21:00:00", "2024-01-01T22:00:00", "2024-01-01T23:00:00" ], "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "River flow deviation from post-calculated flow" }, "yaxis": { "title": { "text": "Flow [m3/s]" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "#Plot river flow\n", "fig = go.Figure()\n", "for r in shop.model.river:\n", " flow = r.flow.get()\n", " fig.add_trace(go.Scatter(x=flow.index, y=flow.values, name=r.get_name()))\n", "\n", "fig.update_layout(title=\"River flow\")\n", "fig.update_yaxes(title_text=\"Flow [m3/s]\")\n", "fig.show()\n", "\n", "fig = go.Figure()\n", "for r in shop.model.river:\n", " flow = r.flow.get()\n", " pflow = r.physical_flow.get()\n", " fig.add_trace(go.Scatter(x=flow.index, y=flow.values-pflow.values, name=r.get_name()))\n", "\n", "fig.update_layout(title=\"River flow deviation from post-calculated flow\")\n", "fig.update_yaxes(title_text=\"Flow [m3/s]\")\n", "fig.show()" ] }, { "cell_type": "markdown", "id": "f0e838c3", "metadata": {}, "source": [ "## creek_model.py" ] }, { "cell_type": "code", "execution_count": 14, "id": "5e3aa79e", "metadata": { "Collapsed": "false", "tags": [ "remove-input" ] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "from pyshop import ShopSession\n", "import pandas as pd\n", "import numpy as np\n", "\n", "def build_model() -> ShopSession:\n", "\n", " shop = ShopSession()\n", "\n", " shop.set_time_resolution(pd.Timestamp(\"2024-01-01\"), pd.Timestamp(\"2024-01-02\"), \"hour\")\n", "\n", " rsv = shop.model.reservoir.add_object(\"Reservoir\")\n", " rsv.lrl.set(80)\n", " rsv.hrl.set(100)\n", " rsv.max_vol.set(50)\n", " rsv.vol_head.set(pd.Series([80,85,90,95,100,102], index=[0,5,12,20,50,60]))\n", "\n", " creek1 = shop.model.reservoir.add_object(\"Creek1\")\n", " creek1.lrl.set(80)\n", " creek1.hrl.set(110)\n", " creek1.max_vol.set(0.001)\n", " creek1.vol_head.set(pd.Series([80,110,140], index=[0,0.001,0.002]))\n", "\n", " creek2 = shop.model.reservoir.add_object(\"Creek2\")\n", " creek2.lrl.set(80)\n", " creek2.hrl.set(105)\n", " creek2.max_vol.set(0.001)\n", " creek2.vol_head.set(pd.Series([80,105,130], index=[0,0.001,0.002]))\n", "\n", " creek3 = shop.model.reservoir.add_object(\"Creek3\")\n", " creek3.lrl.set(80)\n", " creek3.hrl.set(101)\n", " creek3.max_vol.set(0.001)\n", " creek3.vol_head.set(pd.Series([80,101,121], index=[0,0.001,0.002]))\n", "\n", " tunnel1 = shop.model.tunnel.add_object(\"Rsv_N1\")\n", " tunnel1.start_height.set(80)\n", " tunnel1.end_height.set(80)\n", " tunnel1.loss_factor.set(0.00015)\n", "\n", " tunnel2 = shop.model.tunnel.add_object(\"N1_N2\")\n", " tunnel2.start_height.set(80)\n", " tunnel2.end_height.set(80)\n", " tunnel2.loss_factor.set(0.000025)\n", "\n", " tunnel3 = shop.model.tunnel.add_object(\"N2_N3\")\n", " tunnel3.start_height.set(80)\n", " tunnel3.end_height.set(80)\n", " tunnel3.loss_factor.set(0.000025)\n", "\n", " tunnel4 = shop.model.tunnel.add_object(\"N3_plant\")\n", " tunnel4.start_height.set(80)\n", " tunnel4.end_height.set(0)\n", " tunnel4.loss_factor.set(0.0008)\n", "\n", " tunnelC1 = shop.model.tunnel.add_object(\"Creek1_N1\")\n", " tunnelC1.start_height.set(80)\n", " tunnelC1.end_height.set(80)\n", " tunnelC1.loss_factor.set(1e-6)\n", "\n", " tunnelC2 = shop.model.tunnel.add_object(\"Creek2_N2\")\n", " tunnelC2.start_height.set(80)\n", " tunnelC2.end_height.set(80)\n", " tunnelC2.loss_factor.set(1e-6)\n", "\n", " tunnelC3 = shop.model.tunnel.add_object(\"Creek3_N3\")\n", " tunnelC3.start_height.set(80)\n", " tunnelC3.end_height.set(80)\n", " tunnelC3.loss_factor.set(1e-6)\n", "\n", " river1 = shop.model.river.add_object(\"Spill_rsv\")\n", " river1.upstream_elevation.set(100)\n", " river1.up_head_flow_curve.set([pd.Series([0,50],index=[100,102], name=0)])\n", " river1.flow_cost.set(1000)\n", "\n", " river2 = shop.model.river.add_object(\"Spill_C1\")\n", " river2.upstream_elevation.set(110)\n", " river2.up_head_flow_curve.set([pd.Series([0,50],index=[110,112], name=0)])\n", "\n", " river3 = shop.model.river.add_object(\"Spill_C2\")\n", " river3.upstream_elevation.set(105)\n", " river3.up_head_flow_curve.set([pd.Series([0,50],index=[105,107], name=0)])\n", "\n", " river4 = shop.model.river.add_object(\"Spill_C3\")\n", " river4.upstream_elevation.set(101)\n", " river4.up_head_flow_curve.set([pd.Series([0,50],index=[101,102], name=0)])\n", "\n", " plant = shop.model.plant.add_object(\"Plant\")\n", " plant.outlet_line.set(0)\n", " plant.main_loss.set([0])\n", " plant.penstock_loss.set([0.0001, 0.0002])\n", "\n", " q = [5,7.5,10,12.5,15,17.5,20,22.5,25,27.5,30,32.5,35,37.5,40,42.5,45,47.5,50]\n", " eff = [80.0, 82.15033783783784, 84.12612612612612, 85.92736486486487, 87.55405405405406, 89.00619369369369, 90.28378378378379, 91.38682432432432, 92.31531531531532, 93.06925675675676, 93.64864864864865, 94.053490990991, 94.28378378378379, 94.33952702702703, 94.22072072072072, 93.92736486486487, 93.45945945945945, 92.81700450450451, 92.0]\n", "\n", " gen1 = shop.model.generator.add_object(\"G1\")\n", " gen1.penstock.set(1)\n", " gen1.p_min.set(5)\n", " gen1.p_max.set(35)\n", " gen1.p_nom.set(35)\n", " gen1.gen_eff_curve.set(pd.Series([95,95],index=[5,35]))\n", " gen1.turb_eff_curves.set([pd.Series(eff,index=q, name=70), pd.Series(np.array(eff)+2,index=q,name=100)])\n", " gen1.startcost.set(500)\n", "\n", " gen2 = shop.model.generator.add_object(\"G2\")\n", " gen2.penstock.set(2)\n", " gen2.p_min.set(5)\n", " gen2.p_max.set(35)\n", " gen2.p_nom.set(35)\n", " gen2.gen_eff_curve.set(pd.Series([95,95],index=[5,35]))\n", " gen2.turb_eff_curves.set([pd.Series(eff,index=q, name=70), pd.Series(np.array(eff)+2,index=q,name=100)])\n", " gen2.startcost.set(500)\n", "\n", " rsv.connect_to(tunnel1)\n", " tunnel1.connect_to(tunnel2)\n", " tunnel2.connect_to(tunnel3)\n", " tunnel3.connect_to(tunnel4)\n", " tunnel4.connect_to(plant)\n", "\n", " creek1.connect_to(tunnelC1)\n", " tunnelC1.connect_to(tunnel2)\n", "\n", " creek2.connect_to(tunnelC2)\n", " tunnelC2.connect_to(tunnel3)\n", "\n", " creek3.connect_to(tunnelC3)\n", " tunnelC3.connect_to(tunnel4)\n", "\n", " rsv.connect_to(river1)\n", " creek1.connect_to(river2)\n", " creek2.connect_to(river3)\n", " creek3.connect_to(river4)\n", "\n", "\n", " plant.connect_to(gen1)\n", " plant.connect_to(gen2)\n", "\n", " market = shop.model.market.add_object(\"spot\")\n", "\n", " t = [pd.Timestamp(\"2024-01-01\") + pd.Timedelta(hours=i) for i in range(24)]\n", " p = [29.56,28.46,26.66,24.48,24.01,21.23,22.62,25.04,26.24,32.21,41.34,43.51,43.02,44.29,46.24,50.61,59.47,64.99,61.74,55.07,48.01,44.01,45.20,38.00]\n", " market.sale_price.set(pd.Series(p, index=t))\n", " market.max_sale.set(10000)\n", "\n", " for r in shop.model.reservoir:\n", " r.energy_value_input.set(40)\n", "\n", " return shop\n" ] } ], "source": [ "with open('creek_model.py', 'r') as f:\n", " print(f.read())" ] } ], "metadata": { "jupytext": { "text_representation": { "extension": ".md", "format_name": "myst", "format_version": 0.13, "jupytext_version": "1.16.2" } }, "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.13.9" }, "source_map": [ 12, 21, 29, 33, 36, 40, 61, 70, 76, 83, 89, 94, 100, 108, 114, 144, 150, 185, 189, 208, 212, 232, 238, 268, 274, 309, 313, 334, 338, 358, 362 ] }, "nbformat": 4, "nbformat_minor": 5 }