diff --git a/tutorial-6/Tutorial06-Solution.ipynb b/tutorial-6/Tutorial06-Solution.ipynb new file mode 100644 index 0000000000000000000000000000000000000000..ad32219ddf1d1fb405fdf8f40288462b79b93606 --- /dev/null +++ b/tutorial-6/Tutorial06-Solution.ipynb @@ -0,0 +1,875 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Energy System Modelling - Tutorial 06\n", + "\n", + "Clustering the European Grid\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Tasks:**\n", + ">-Load a European Power Grid
\n", + ">-Calculate order and size
\n", + ">-Use clustering algorithm
\n", + ">-Study the impact of the number of clusters on minimum installed capacities
\n" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "import yaml\n", + "import pypsa\n", + "import numpy as np\n", + "import xarray as xr\n", + "import pandas as pd\n", + "#\n", + "import matplotlib as mpl\n", + "import matplotlib.pyplot as plt\n", + "import matplotlib.lines as mlines\n", + "from sklearn.cluster import KMeans\n", + "#\n", + "%matplotlib inline\n", + "import time\n", + "\n", + "import tutorial\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Introduction – the European grid" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Import base.nc,
\n", + "plot it with library.plot_network(network_base,option=\"kV\",basemap=\"no\")