{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Workflow for a district optimization\n",
    "\n",
    "In this application of the FINE framework, a small district is modeled and optimized.\n",
    "\n",
    "All classes which are available to the user are utilized and examples of the selection of different parameters within these classes are given.\n",
    "\n",
    "The workflow is structures as follows:\n",
    "1. Required packages are imported and the input data path is set\n",
    "2. An energy system model instance is created\n",
    "3. Commodity sources are added to the energy system model\n",
    "4. Commodity conversion components are added to the energy system model\n",
    "5. Commodity storages are added to the energy system model\n",
    "6. Commodity transmission components are added to the energy system model\n",
    "7. Commodity sinks are added to the energy system model\n",
    "8. The energy system model is optimized\n",
    "9. Selected optimization results are presented\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 1. Import required packages and set input data path\n",
    "\n",
    "The FINE framework is imported which provides the required classes and functions for modeling the energy system."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "import FINE as fn\n",
    "from getData import getData\n",
    "import pandas as pd\n",
    "data = getData()\n",
    "\n",
    "%load_ext autoreload\n",
    "%autoreload 2\n",
    "%matplotlib inline  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 2. Create an energy system model instance \n",
    "\n",
    "The structure of the energy system model is given by the considered locations, commodities, the number of time steps as well as the hours per time step.\n",
    "\n",
    "The commodities are specified by a unit (i.e. 'GW_electric', 'GW_H2lowerHeatingValue', 'Mio. t CO2/h') which can be given as an energy or mass unit per hour. Furthermore, the cost unit and length unit are specified."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "locations = data['locations']\n",
    "commodityUnitDict = {'electricity': 'kW_el', 'methane': 'kW_CH4_LHV','heat':'kW_th'}\n",
    "commodities = {'electricity','methane','heat'}\n",
    "numberOfTimeSteps=8760\n",
    "hoursPerTimeStep=1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM = fn.EnergySystemModel(locations=locations, commodities=commodities, numberOfTimeSteps=8760,\n",
    "                           commodityUnitsDict=commodityUnitDict,\n",
    "                           hoursPerTimeStep=1, costUnit='€', lengthUnit='m', verboseLogLevel=2)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 3. Add commodity sources to the energy system model"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Electricity Purchase"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "esM.add(fn.Source(esM=esM, name='Electricity purchase', commodity='electricity', hasCapacityVariable=False,\n",
    "                  operationRateMax=data['El Purchase, operationRateMax'], commodityCost=0.298))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Natural Gas Purchase"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM.add(fn.Source(esM=esM, name='NaturalGas purchase', commodity='methane', hasCapacityVariable=False,\n",
    "                  operationRateMax=data['NG Purchase, operationRateMax'], commodityCost=0.065))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### PV"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM.add(fn.Source(esM=esM,\n",
    "                  name='PV',\n",
    "                  commodity='electricity',\n",
    "                  hasCapacityVariable=True,\n",
    "                  hasIsBuiltBinaryVariable=True,\n",
    "                  operationRateMax=data['PV, operationRateMax'], \n",
    "                  capacityMax=data['PV, capacityMax'],\n",
    "                  interestRate = 0.04,\n",
    "                  economicLifetime = 20,\n",
    "                  investIfBuilt=1000,\n",
    "                  investPerCapacity=1400,\n",
    "                  opexIfBuilt = 10,\n",
    "                  bigM = 40))   "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 4. Add conversion components to the energy system model"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Boiler"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM.add(fn.Conversion(esM=esM,\n",
    "                      name='Boiler',\n",
    "                      physicalUnit = 'kW_th',\n",
    "                      commodityConversionFactors={'methane':-1.1, 'heat':1},\n",
    "                      hasIsBuiltBinaryVariable=True,\n",
    "                      hasCapacityVariable=True,\n",
    "                      interestRate = 0.04,\n",
    "                      economicLifetime = 20,\n",
    "                      investIfBuilt=2800,\n",
    "                      investPerCapacity=100,\n",
    "                      opexIfBuilt = 24,\n",
    "                      bigM = 200))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 5. Add commodity storages to the energy system model"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Thermal Storage "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM.add(fn.Storage(esM=esM,\n",
    "                   name='Thermal Storage',\n",
    "                   commodity='heat',\n",
    "                   selfDischarge=0.001,\n",
    "                   hasIsBuiltBinaryVariable=True,\n",
    "                   capacityMax=data['TS, capacityMax'],\n",
    "                   interestRate = 0.04,\n",
    "                   economicLifetime = 25,\n",
    "                   investIfBuilt=23,\n",
    "                   investPerCapacity=24,\n",
    "                   bigM = 250))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Battery Storage"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM.add(fn.Storage(esM=esM,\n",
    "                   name='Battery Storage',\n",
    "                   commodity='electricity',\n",
    "                   cyclicLifetime=10000,\n",
    "                   chargeEfficiency=0.95,\n",
    "                   dischargeEfficiency=0.95,\n",
    "                   chargeRate=0.5,\n",
    "                   dischargeRate=0.5,\n",
    "                   hasIsBuiltBinaryVariable=True,\n",
    "                   capacityMax=data['BS, capacityMax'],\n",
    "                   interestRate = 0.04,\n",
    "                   economicLifetime = 12,\n",
    "                   investIfBuilt=2000,\n",
    "                   investPerCapacity=700,\n",
    "                   bigM = 110))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 6. Add commodity transmission components to the energy system model"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "collapsed": true
   },
   "source": [
    "### Cable Electricty"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM.add(fn.Transmission(esM=esM,\n",
    "                        name='E_Distribution_Grid',\n",
    "                        commodity='electricity',\n",
    "                        losses=0.00001,\n",
    "                        distances = data['cables, distances'],\n",
    "                        capacityFix=data['cables, capacityFix']))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Natural Gas Pipeline"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM.add(fn.Transmission(esM=esM,\n",
    "                        name='NG_Distribution_Grid',\n",
    "                        commodity='methane',\n",
    "                        distances = data['NG, distances'],\n",
    "                        capacityFix=data['NG, capacityFix']))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 7. Add commodity sinks to the energy system model\n",
    "\n",
    "### Electricity Demand"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM.add(fn.Sink(esM=esM, name='Electricity demand', commodity='electricity',\n",
    "                hasCapacityVariable=False, operationRateFix=data['Electricity demand, operationRateFix']))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Heat Demand"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM.add(fn.Sink(esM=esM, name='BuildingsHeat', commodity='heat',\n",
    "                hasCapacityVariable=False, operationRateFix=data['Heat demand, operationRateFix']))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 8. Optimize energy system model"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "All components are now added to the model and the model can be optimized. If the computational complexity of the optimization should be reduced, the time series data of the specified components can be clustered before the optimization and the parameter timeSeriesAggregation is set to True in the optimize call."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "esM.cluster(numberOfTypicalPeriods=7)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Using license file C:\\Users\\t.gross\\gurobi.lic\r\n",
      "Academic license - for non-commercial use only\r\n",
      "Read LP format model from file C:\\Users\\T58C8~1.GRO\\AppData\\Local\\Temp\\tmpkjfuuo8p.pyomo.lp\r\n",
      "Reading time = 0.14 seconds\r\n",
      "x25341: 45047 rows, 25341 columns, 125011 nonzeros\r\n",
      "Changed value of parameter QCPDual to 1\r\n",
      "   Prev: 0  Min: 0  Max: 1  Default: 0\r\n",
      "Changed value of parameter Threads to 3\r\n",
      "   Prev: 0  Min: 0  Max: 1024  Default: 0\r\n",
      "Parameter logfile unchanged\r\n",
      "   Value:   Default: \r\n",
      "Changed value of parameter cuts to 0\r\n",
      "   Prev: -1  Min: -1  Max: 3  Default: -1\r\n",
      "Changed value of parameter method to 2\r\n",
      "   Prev: -1  Min: -1  Max: 5  Default: -1\r\n"
     ]
    }
   ],
   "source": [
    "esM.optimize(timeSeriesAggregation=True, optimizationSpecs='cuts=0 method=2')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 9. Selected results output"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Sources and Sink"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>bd1</th>\n",
       "      <th>bd2</th>\n",
       "      <th>bd3</th>\n",
       "      <th>bd4</th>\n",
       "      <th>bd5</th>\n",
       "      <th>bd6</th>\n",
       "      <th>grid1</th>\n",
       "      <th>grid2</th>\n",
       "      <th>grid3</th>\n",
       "      <th>grid4</th>\n",
       "      <th>grid5</th>\n",
       "      <th>grid6</th>\n",
       "      <th>grid7</th>\n",
       "      <th>transformer</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Component</th>\n",
       "      <th>Property</th>\n",
       "      <th>Unit</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>BuildingsHeat</th>\n",
       "      <th>operation</th>\n",
       "      <th>[kW_th*h/a]</th>\n",
       "      <td>213008</td>\n",
       "      <td>211961</td>\n",
       "      <td>212160</td>\n",
       "      <td>212865</td>\n",
       "      <td>212988</td>\n",
       "      <td>213361</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Electricity demand</th>\n",
       "      <th>operation</th>\n",
       "      <th>[kW_el*h/a]</th>\n",
       "      <td>24719</td>\n",
       "      <td>19409.3</td>\n",
       "      <td>24892.8</td>\n",
       "      <td>17439.8</td>\n",
       "      <td>23310</td>\n",
       "      <td>19718.3</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"3\" valign=\"top\">Electricity purchase</th>\n",
       "      <th>TAC</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>27319.8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>commodCosts</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>27319.8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>operation</th>\n",
       "      <th>[kW_el*h/a]</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>91677.2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"3\" valign=\"top\">NaturalGas purchase</th>\n",
       "      <th>TAC</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>91267.8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>commodCosts</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>91267.8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>operation</th>\n",
       "      <th>[kW_CH4_LHV*h/a]</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.40412e+06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"8\" valign=\"top\">PV</th>\n",
       "      <th>TAC</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>1926.4</td>\n",
       "      <td>0</td>\n",
       "      <td>1863.36</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1797.63</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>capacity</th>\n",
       "      <th>[kW_el]</th>\n",
       "      <td>17.8889</td>\n",
       "      <td>0</td>\n",
       "      <td>17.277</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>16.6389</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>capexCap</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>1842.82</td>\n",
       "      <td>0</td>\n",
       "      <td>1779.78</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1714.04</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>capexIfBuilt</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>73.5818</td>\n",
       "      <td>0</td>\n",
       "      <td>73.5818</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>73.5818</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>invest</th>\n",
       "      <th>[€]</th>\n",
       "      <td>26044.5</td>\n",
       "      <td>0</td>\n",
       "      <td>25187.8</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>24294.4</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>isBuilt</th>\n",
       "      <th>[-]</th>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>operation</th>\n",
       "      <th>[kW_el*h/a]</th>\n",
       "      <td>16130.5</td>\n",
       "      <td>0</td>\n",
       "      <td>15612.6</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>14859.8</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>opexIfBuilt</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>10</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                        bd1      bd2      bd3  \\\n",
       "Component            Property     Unit                                          \n",
       "BuildingsHeat        operation    [kW_th*h/a]        213008   211961   212160   \n",
       "Electricity demand   operation    [kW_el*h/a]         24719  19409.3  24892.8   \n",
       "Electricity purchase TAC          [€/a]                   0        0        0   \n",
       "                     commodCosts  [€/a]                 NaN      NaN      NaN   \n",
       "                     operation    [kW_el*h/a]           NaN      NaN      NaN   \n",
       "NaturalGas purchase  TAC          [€/a]                   0        0        0   \n",
       "                     commodCosts  [€/a]                 NaN      NaN      NaN   \n",
       "                     operation    [kW_CH4_LHV*h/a]      NaN      NaN      NaN   \n",
       "PV                   TAC          [€/a]              1926.4        0  1863.36   \n",
       "                     capacity     [kW_el]           17.8889        0   17.277   \n",
       "                     capexCap     [€/a]             1842.82        0  1779.78   \n",
       "                     capexIfBuilt [€/a]             73.5818        0  73.5818   \n",
       "                     invest       [€]               26044.5        0  25187.8   \n",
       "                     isBuilt      [-]                     1        0        1   \n",
       "                     operation    [kW_el*h/a]       16130.5        0  15612.6   \n",
       "                     opexIfBuilt  [€/a]                  10        0       10   \n",
       "\n",
       "                                                        bd4     bd5      bd6  \\\n",
       "Component            Property     Unit                                         \n",
       "BuildingsHeat        operation    [kW_th*h/a]        212865  212988   213361   \n",
       "Electricity demand   operation    [kW_el*h/a]       17439.8   23310  19718.3   \n",
       "Electricity purchase TAC          [€/a]                   0       0        0   \n",
       "                     commodCosts  [€/a]                 NaN     NaN      NaN   \n",
       "                     operation    [kW_el*h/a]           NaN     NaN      NaN   \n",
       "NaturalGas purchase  TAC          [€/a]                   0       0        0   \n",
       "                     commodCosts  [€/a]                 NaN     NaN      NaN   \n",
       "                     operation    [kW_CH4_LHV*h/a]      NaN     NaN      NaN   \n",
       "PV                   TAC          [€/a]                   0       0  1797.63   \n",
       "                     capacity     [kW_el]                 0       0  16.6389   \n",
       "                     capexCap     [€/a]                   0       0  1714.04   \n",
       "                     capexIfBuilt [€/a]                   0       0  73.5818   \n",
       "                     invest       [€]                     0       0  24294.4   \n",
       "                     isBuilt      [-]                     0       0        1   \n",
       "                     operation    [kW_el*h/a]             0       0  14859.8   \n",
       "                     opexIfBuilt  [€/a]                   0       0       10   \n",
       "\n",
       "                                                   grid1 grid2 grid3 grid4  \\\n",
       "Component            Property     Unit                                       \n",
       "BuildingsHeat        operation    [kW_th*h/a]        NaN   NaN   NaN   NaN   \n",
       "Electricity demand   operation    [kW_el*h/a]        NaN   NaN   NaN   NaN   \n",
       "Electricity purchase TAC          [€/a]                0     0     0     0   \n",
       "                     commodCosts  [€/a]              NaN   NaN   NaN   NaN   \n",
       "                     operation    [kW_el*h/a]        NaN   NaN   NaN   NaN   \n",
       "NaturalGas purchase  TAC          [€/a]                0     0     0     0   \n",
       "                     commodCosts  [€/a]              NaN   NaN   NaN   NaN   \n",
       "                     operation    [kW_CH4_LHV*h/a]   NaN   NaN   NaN   NaN   \n",
       "PV                   TAC          [€/a]                0     0     0     0   \n",
       "                     capacity     [kW_el]            NaN   NaN   NaN   NaN   \n",
       "                     capexCap     [€/a]              NaN   NaN   NaN   NaN   \n",
       "                     capexIfBuilt [€/a]              NaN   NaN   NaN   NaN   \n",
       "                     invest       [€]                NaN   NaN   NaN   NaN   \n",
       "                     isBuilt      [-]                NaN   NaN   NaN   NaN   \n",
       "                     operation    [kW_el*h/a]        NaN   NaN   NaN   NaN   \n",
       "                     opexIfBuilt  [€/a]              NaN   NaN   NaN   NaN   \n",
       "\n",
       "                                                   grid5 grid6 grid7  \\\n",
       "Component            Property     Unit                                 \n",
       "BuildingsHeat        operation    [kW_th*h/a]        NaN   NaN   NaN   \n",
       "Electricity demand   operation    [kW_el*h/a]        NaN   NaN   NaN   \n",
       "Electricity purchase TAC          [€/a]                0     0     0   \n",
       "                     commodCosts  [€/a]              NaN   NaN   NaN   \n",
       "                     operation    [kW_el*h/a]        NaN   NaN   NaN   \n",
       "NaturalGas purchase  TAC          [€/a]                0     0     0   \n",
       "                     commodCosts  [€/a]              NaN   NaN   NaN   \n",
       "                     operation    [kW_CH4_LHV*h/a]   NaN   NaN   NaN   \n",
       "PV                   TAC          [€/a]                0     0     0   \n",
       "                     capacity     [kW_el]            NaN   NaN   NaN   \n",
       "                     capexCap     [€/a]              NaN   NaN   NaN   \n",
       "                     capexIfBuilt [€/a]              NaN   NaN   NaN   \n",
       "                     invest       [€]                NaN   NaN   NaN   \n",
       "                     isBuilt      [-]                NaN   NaN   NaN   \n",
       "                     operation    [kW_el*h/a]        NaN   NaN   NaN   \n",
       "                     opexIfBuilt  [€/a]              NaN   NaN   NaN   \n",
       "\n",
       "                                                    transformer  \n",
       "Component            Property     Unit                           \n",
       "BuildingsHeat        operation    [kW_th*h/a]               NaN  \n",
       "Electricity demand   operation    [kW_el*h/a]               NaN  \n",
       "Electricity purchase TAC          [€/a]                 27319.8  \n",
       "                     commodCosts  [€/a]                 27319.8  \n",
       "                     operation    [kW_el*h/a]           91677.2  \n",
       "NaturalGas purchase  TAC          [€/a]                 91267.8  \n",
       "                     commodCosts  [€/a]                 91267.8  \n",
       "                     operation    [kW_CH4_LHV*h/a]  1.40412e+06  \n",
       "PV                   TAC          [€/a]                       0  \n",
       "                     capacity     [kW_el]                   NaN  \n",
       "                     capexCap     [€/a]                     NaN  \n",
       "                     capexIfBuilt [€/a]                     NaN  \n",
       "                     invest       [€]                       NaN  \n",
       "                     isBuilt      [-]                       NaN  \n",
       "                     operation    [kW_el*h/a]               NaN  \n",
       "                     opexIfBuilt  [€/a]                     NaN  "
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "esM.getOptimizationSummary(\"SourceSinkModel\", outputLevel=2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 17576 characters]\n",
      "text/plain": [
       "<Figure size 864x288 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig, ax = fn.plotOperationColorMap(esM, 'PV', 'bd1')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 24348 characters]\n",
      "text/plain": [
       "<Figure size 864x288 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig, ax = fn.plotOperationColorMap(esM, 'Electricity demand', 'bd1')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 23636 characters]\n",
      "text/plain": [
       "<Figure size 864x288 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig, ax = fn.plotOperationColorMap(esM, 'Electricity purchase', 'transformer')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 19576 characters]\n",
      "text/plain": [
       "<Figure size 864x288 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig, ax = fn.plotOperationColorMap(esM, 'NaturalGas purchase', 'transformer')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Conversion"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>bd1</th>\n",
       "      <th>bd2</th>\n",
       "      <th>bd3</th>\n",
       "      <th>bd4</th>\n",
       "      <th>bd5</th>\n",
       "      <th>bd6</th>\n",
       "      <th>grid1</th>\n",
       "      <th>grid2</th>\n",
       "      <th>grid3</th>\n",
       "      <th>grid4</th>\n",
       "      <th>grid5</th>\n",
       "      <th>grid6</th>\n",
       "      <th>grid7</th>\n",
       "      <th>transformer</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Component</th>\n",
       "      <th>Property</th>\n",
       "      <th>Unit</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"8\" valign=\"top\">Boiler</th>\n",
       "      <th>TAC</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>902.759</td>\n",
       "      <td>1003.31</td>\n",
       "      <td>960.287</td>\n",
       "      <td>1101.52</td>\n",
       "      <td>1017.92</td>\n",
       "      <td>979.634</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>capacity</th>\n",
       "      <th>[kW_th]</th>\n",
       "      <td>91.4262</td>\n",
       "      <td>105.092</td>\n",
       "      <td>99.2445</td>\n",
       "      <td>118.438</td>\n",
       "      <td>107.077</td>\n",
       "      <td>101.874</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>capexCap</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>672.73</td>\n",
       "      <td>773.282</td>\n",
       "      <td>730.258</td>\n",
       "      <td>871.489</td>\n",
       "      <td>787.889</td>\n",
       "      <td>749.605</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>capexIfBuilt</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>206.029</td>\n",
       "      <td>206.029</td>\n",
       "      <td>206.029</td>\n",
       "      <td>206.029</td>\n",
       "      <td>206.029</td>\n",
       "      <td>206.029</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>invest</th>\n",
       "      <th>[€]</th>\n",
       "      <td>11942.6</td>\n",
       "      <td>13309.2</td>\n",
       "      <td>12724.5</td>\n",
       "      <td>14643.8</td>\n",
       "      <td>13507.7</td>\n",
       "      <td>12987.4</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>isBuilt</th>\n",
       "      <th>[-]</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>operation</th>\n",
       "      <th>[kW_th*h/a]</th>\n",
       "      <td>213031</td>\n",
       "      <td>211993</td>\n",
       "      <td>212188</td>\n",
       "      <td>212878</td>\n",
       "      <td>213002</td>\n",
       "      <td>213380</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>opexIfBuilt</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>24</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                        bd1      bd2      bd3      bd4  \\\n",
       "Component Property     Unit                                              \n",
       "Boiler    TAC          [€/a]        902.759  1003.31  960.287  1101.52   \n",
       "          capacity     [kW_th]      91.4262  105.092  99.2445  118.438   \n",
       "          capexCap     [€/a]         672.73  773.282  730.258  871.489   \n",
       "          capexIfBuilt [€/a]        206.029  206.029  206.029  206.029   \n",
       "          invest       [€]          11942.6  13309.2  12724.5  14643.8   \n",
       "          isBuilt      [-]                1        1        1        1   \n",
       "          operation    [kW_th*h/a]   213031   211993   212188   212878   \n",
       "          opexIfBuilt  [€/a]             24       24       24       24   \n",
       "\n",
       "                                        bd5      bd6 grid1 grid2 grid3 grid4  \\\n",
       "Component Property     Unit                                                    \n",
       "Boiler    TAC          [€/a]        1017.92  979.634     0     0     0     0   \n",
       "          capacity     [kW_th]      107.077  101.874     0     0     0     0   \n",
       "          capexCap     [€/a]        787.889  749.605     0     0     0     0   \n",
       "          capexIfBuilt [€/a]        206.029  206.029     0     0     0     0   \n",
       "          invest       [€]          13507.7  12987.4     0     0     0     0   \n",
       "          isBuilt      [-]                1        1     0     0     0     0   \n",
       "          operation    [kW_th*h/a]   213002   213380     0     0     0     0   \n",
       "          opexIfBuilt  [€/a]             24       24     0     0     0     0   \n",
       "\n",
       "                                   grid5 grid6 grid7 transformer  \n",
       "Component Property     Unit                                       \n",
       "Boiler    TAC          [€/a]           0     0     0           0  \n",
       "          capacity     [kW_th]         0     0     0           0  \n",
       "          capexCap     [€/a]           0     0     0           0  \n",
       "          capexIfBuilt [€/a]           0     0     0           0  \n",
       "          invest       [€]             0     0     0           0  \n",
       "          isBuilt      [-]             0     0     0           0  \n",
       "          operation    [kW_th*h/a]     0     0     0           0  \n",
       "          opexIfBuilt  [€/a]           0     0     0           0  "
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "esM.getOptimizationSummary(\"ConversionModel\", outputLevel=2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 18056 characters]\n",
      "text/plain": [
       "<Figure size 864x288 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig, ax = fn.plotOperationColorMap(esM, 'Boiler', 'bd1')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Storage"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>bd1</th>\n",
       "      <th>bd2</th>\n",
       "      <th>bd3</th>\n",
       "      <th>bd4</th>\n",
       "      <th>bd5</th>\n",
       "      <th>bd6</th>\n",
       "      <th>grid1</th>\n",
       "      <th>grid2</th>\n",
       "      <th>grid3</th>\n",
       "      <th>grid4</th>\n",
       "      <th>grid5</th>\n",
       "      <th>grid6</th>\n",
       "      <th>grid7</th>\n",
       "      <th>transformer</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Component</th>\n",
       "      <th>Property</th>\n",
       "      <th>Unit</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"8\" valign=\"top\">Thermal Storage</th>\n",
       "      <th>TAC</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>186.247</td>\n",
       "      <td>287.596</td>\n",
       "      <td>239.629</td>\n",
       "      <td>203.143</td>\n",
       "      <td>160.089</td>\n",
       "      <td>277.432</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>capacity</th>\n",
       "      <th>[kW_th*h]</th>\n",
       "      <td>120.273</td>\n",
       "      <td>186.244</td>\n",
       "      <td>155.021</td>\n",
       "      <td>131.272</td>\n",
       "      <td>103.247</td>\n",
       "      <td>179.628</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>capexCap</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>184.775</td>\n",
       "      <td>286.123</td>\n",
       "      <td>238.157</td>\n",
       "      <td>201.671</td>\n",
       "      <td>158.616</td>\n",
       "      <td>275.96</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>capexIfBuilt</th>\n",
       "      <th>[€/a]</th>\n",
       "      <td>1.47228</td>\n",
       "      <td>1.47228</td>\n",
       "      <td>1.47228</td>\n",
       "      <td>1.47228</td>\n",
       "      <td>1.47228</td>\n",
       "      <td>1.47228</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>invest</th>\n",
       "      <th>[€]</th>\n",
       "      <td>2909.56</td>\n",
       "      <td>4492.84</td>\n",
       "      <td>3743.51</td>\n",
       "      <td>3173.52</td>\n",
       "      <td>2500.92</td>\n",
       "      <td>4334.07</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>isBuilt</th>\n",
       "      <th>[-]</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>operationCharge</th>\n",
       "      <th>[kW_th*h/a]</th>\n",
       "      <td>9662.53</td>\n",
       "      <td>10509.4</td>\n",
       "      <td>11329.9</td>\n",
       "      <td>6040.31</td>\n",
       "      <td>6124.25</td>\n",
       "      <td>10010.6</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>operationDischarge</th>\n",
       "      <th>[kW_th*h/a]</th>\n",
       "      <td>9640.16</td>\n",
       "      <td>10478.1</td>\n",
       "      <td>11301.8</td>\n",
       "      <td>6027.41</td>\n",
       "      <td>6110.07</td>\n",
       "      <td>9990.87</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                    bd1      bd2      bd3  \\\n",
       "Component       Property           Unit                                     \n",
       "Thermal Storage TAC                [€/a]        186.247  287.596  239.629   \n",
       "                capacity           [kW_th*h]    120.273  186.244  155.021   \n",
       "                capexCap           [€/a]        184.775  286.123  238.157   \n",
       "                capexIfBuilt       [€/a]        1.47228  1.47228  1.47228   \n",
       "                invest             [€]          2909.56  4492.84  3743.51   \n",
       "                isBuilt            [-]                1        1        1   \n",
       "                operationCharge    [kW_th*h/a]  9662.53  10509.4  11329.9   \n",
       "                operationDischarge [kW_th*h/a]  9640.16  10478.1  11301.8   \n",
       "\n",
       "                                                    bd4      bd5      bd6  \\\n",
       "Component       Property           Unit                                     \n",
       "Thermal Storage TAC                [€/a]        203.143  160.089  277.432   \n",
       "                capacity           [kW_th*h]    131.272  103.247  179.628   \n",
       "                capexCap           [€/a]        201.671  158.616   275.96   \n",
       "                capexIfBuilt       [€/a]        1.47228  1.47228  1.47228   \n",
       "                invest             [€]          3173.52  2500.92  4334.07   \n",
       "                isBuilt            [-]                1        1        1   \n",
       "                operationCharge    [kW_th*h/a]  6040.31  6124.25  10010.6   \n",
       "                operationDischarge [kW_th*h/a]  6027.41  6110.07  9990.87   \n",
       "\n",
       "                                               grid1 grid2 grid3 grid4 grid5  \\\n",
       "Component       Property           Unit                                        \n",
       "Thermal Storage TAC                [€/a]           0     0     0     0     0   \n",
       "                capacity           [kW_th*h]     NaN   NaN   NaN   NaN   NaN   \n",
       "                capexCap           [€/a]         NaN   NaN   NaN   NaN   NaN   \n",
       "                capexIfBuilt       [€/a]         NaN   NaN   NaN   NaN   NaN   \n",
       "                invest             [€]           NaN   NaN   NaN   NaN   NaN   \n",
       "                isBuilt            [-]           NaN   NaN   NaN   NaN   NaN   \n",
       "                operationCharge    [kW_th*h/a]   NaN   NaN   NaN   NaN   NaN   \n",
       "                operationDischarge [kW_th*h/a]   NaN   NaN   NaN   NaN   NaN   \n",
       "\n",
       "                                               grid6 grid7 transformer  \n",
       "Component       Property           Unit                                 \n",
       "Thermal Storage TAC                [€/a]           0     0           0  \n",
       "                capacity           [kW_th*h]     NaN   NaN         NaN  \n",
       "                capexCap           [€/a]         NaN   NaN         NaN  \n",
       "                capexIfBuilt       [€/a]         NaN   NaN         NaN  \n",
       "                invest             [€]           NaN   NaN         NaN  \n",
       "                isBuilt            [-]           NaN   NaN         NaN  \n",
       "                operationCharge    [kW_th*h/a]   NaN   NaN         NaN  \n",
       "                operationDischarge [kW_th*h/a]   NaN   NaN         NaN  "
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "esM.getOptimizationSummary(\"StorageModel\", outputLevel=2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 15292 characters]\n",
      "text/plain": [
       "<Figure size 864x288 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig, ax = fn.plotOperationColorMap(esM, 'Thermal Storage', 'bd1', \n",
    "                                   variableName='stateOfChargeOperationVariablesOptimum')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Transmission"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>bd1</th>\n",
       "      <th>bd2</th>\n",
       "      <th>bd3</th>\n",
       "      <th>bd4</th>\n",
       "      <th>bd5</th>\n",
       "      <th>bd6</th>\n",
       "      <th>grid1</th>\n",
       "      <th>grid2</th>\n",
       "      <th>grid3</th>\n",
       "      <th>grid4</th>\n",
       "      <th>grid5</th>\n",
       "      <th>grid6</th>\n",
       "      <th>grid7</th>\n",
       "      <th>transformer</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Component</th>\n",
       "      <th>Property</th>\n",
       "      <th>Unit</th>\n",
       "      <th>LocationIn</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"28\" valign=\"top\">E_Distribution_Grid</th>\n",
       "      <th rowspan=\"14\" valign=\"top\">capacity</th>\n",
       "      <th rowspan=\"14\" valign=\"top\">[kW_el]</th>\n",
       "      <th>bd1</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd2</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd3</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd4</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd5</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd6</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid1</th>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid2</th>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid3</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid4</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid5</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid6</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid7</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>transformer</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"14\" valign=\"top\">operation</th>\n",
       "      <th rowspan=\"14\" valign=\"top\">[kW_el*h/a]</th>\n",
       "      <th>bd1</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.01542e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd2</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.18948e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd3</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.43162e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd4</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.4109e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd5</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.39864e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd6</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.06182e+06</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid1</th>\n",
       "      <td>3.02431e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.99605e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.26468e+06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid2</th>\n",
       "      <td>NaN</td>\n",
       "      <td>2.20911e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.91514e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.55628e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid3</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.44127e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.496e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.84356e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid4</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.79421e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>894041</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid5</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.42856e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>845324</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.87117e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid6</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.42213e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.84085e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.47214e+06</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid7</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.06683e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.46639e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>transformer</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.35576e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"22\" valign=\"top\">NG_Distribution_Grid</th>\n",
       "      <th rowspan=\"14\" valign=\"top\">capacity</th>\n",
       "      <th rowspan=\"14\" valign=\"top\">[kW_CH4_LHV]</th>\n",
       "      <th>bd1</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd2</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd3</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd4</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd5</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bd6</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid1</th>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid2</th>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid3</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid4</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid5</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid6</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid7</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>transformer</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"8\" valign=\"top\">operation</th>\n",
       "      <th rowspan=\"8\" valign=\"top\">[kW_CH4_LHV*h/a]</th>\n",
       "      <th>grid1</th>\n",
       "      <td>234334</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.16979e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid2</th>\n",
       "      <td>NaN</td>\n",
       "      <td>233192</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>936594</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid3</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>233407</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>703187</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid4</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>703187</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid5</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>234166</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>469021</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid6</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>234302</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>234718</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>grid7</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>234718</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>transformer</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.40412e+06</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                     bd1  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1              10000   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1        3.02431e+06   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1              10000   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1             234334   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                     bd2  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2              10000   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2        2.20911e+06   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2              10000   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2             233192   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                     bd3  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3              10000   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3        3.44127e+06   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3              10000   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3             233407   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                     bd4  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5              10000   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5        4.42856e+06   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5              10000   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5             234166   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                     bd5  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6              10000   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6        4.42213e+06   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6              10000   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6             234302   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                     bd6  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7              10000   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7        3.06683e+06   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7              10000   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7             234718   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                   grid1  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                10000   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2              10000   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer        10000   \n",
       "                     operation [kW_el*h/a]      bd1          3.01542e+06   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2        1.91514e+06   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer  1.35576e+06   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                10000   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2              10000   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer        10000   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2                  0   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer  1.40412e+06   \n",
       "\n",
       "                                                                   grid2  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                10000   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1              10000   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3              10000   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2          2.18948e+06   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1        1.99605e+06   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3          2.496e+06   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                10000   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1              10000   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3              10000   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1        1.16979e+06   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                  0   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                   grid3  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                10000   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2              10000   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4              10000   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3          3.43162e+06   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2        2.55628e+06   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4        2.79421e+06   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                10000   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2              10000   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4              10000   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2             936594   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                  0   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                   grid4  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3              10000   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5              10000   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3        2.84356e+06   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5             845324   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3              10000   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5              10000   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3             703187   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                  0   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                   grid5  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                10000   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4              10000   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6              10000   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4           4.4109e+06   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4             894041   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6        1.84085e+06   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                10000   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4              10000   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6              10000   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4             703187   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6                  0   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                   grid6  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                10000   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5              10000   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7              10000   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5          4.39864e+06   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5        1.87117e+06   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7        3.46639e+06   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                10000   \n",
       "                                                bd6                  NaN   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5              10000   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7              10000   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5             469021   \n",
       "                                                grid6                NaN   \n",
       "                                                grid7                  0   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                                   grid7  \\\n",
       "Component            Property  Unit             LocationIn                 \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                10000   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6              10000   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_el*h/a]      bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6          3.06182e+06   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6        3.47214e+06   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN   \n",
       "                                                bd2                  NaN   \n",
       "                                                bd3                  NaN   \n",
       "                                                bd4                  NaN   \n",
       "                                                bd5                  NaN   \n",
       "                                                bd6                10000   \n",
       "                                                grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6              10000   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                NaN   \n",
       "                                                grid2                NaN   \n",
       "                                                grid3                NaN   \n",
       "                                                grid4                NaN   \n",
       "                                                grid5                NaN   \n",
       "                                                grid6             234718   \n",
       "                                                grid7                NaN   \n",
       "                                                transformer          NaN   \n",
       "\n",
       "                                                             transformer  \n",
       "Component            Property  Unit             LocationIn                \n",
       "E_Distribution_Grid  capacity  [kW_el]          bd1                  NaN  \n",
       "                                                bd2                  NaN  \n",
       "                                                bd3                  NaN  \n",
       "                                                bd4                  NaN  \n",
       "                                                bd5                  NaN  \n",
       "                                                bd6                  NaN  \n",
       "                                                grid1              10000  \n",
       "                                                grid2                NaN  \n",
       "                                                grid3                NaN  \n",
       "                                                grid4                NaN  \n",
       "                                                grid5                NaN  \n",
       "                                                grid6                NaN  \n",
       "                                                grid7                NaN  \n",
       "                                                transformer          NaN  \n",
       "                     operation [kW_el*h/a]      bd1                  NaN  \n",
       "                                                bd2                  NaN  \n",
       "                                                bd3                  NaN  \n",
       "                                                bd4                  NaN  \n",
       "                                                bd5                  NaN  \n",
       "                                                bd6                  NaN  \n",
       "                                                grid1        1.26468e+06  \n",
       "                                                grid2                NaN  \n",
       "                                                grid3                NaN  \n",
       "                                                grid4                NaN  \n",
       "                                                grid5                NaN  \n",
       "                                                grid6                NaN  \n",
       "                                                grid7                NaN  \n",
       "                                                transformer          NaN  \n",
       "NG_Distribution_Grid capacity  [kW_CH4_LHV]     bd1                  NaN  \n",
       "                                                bd2                  NaN  \n",
       "                                                bd3                  NaN  \n",
       "                                                bd4                  NaN  \n",
       "                                                bd5                  NaN  \n",
       "                                                bd6                  NaN  \n",
       "                                                grid1              10000  \n",
       "                                                grid2                NaN  \n",
       "                                                grid3                NaN  \n",
       "                                                grid4                NaN  \n",
       "                                                grid5                NaN  \n",
       "                                                grid6                NaN  \n",
       "                                                grid7                NaN  \n",
       "                                                transformer          NaN  \n",
       "                     operation [kW_CH4_LHV*h/a] grid1                  0  \n",
       "                                                grid2                NaN  \n",
       "                                                grid3                NaN  \n",
       "                                                grid4                NaN  \n",
       "                                                grid5                NaN  \n",
       "                                                grid6                NaN  \n",
       "                                                grid7                NaN  \n",
       "                                                transformer          NaN  "
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "esM.getOptimizationSummary(\"TransmissionModel\", outputLevel=2)"
   ]
  }
 ],
 "metadata": {
  "anaconda-cloud": {},
  "kernelspec": {
   "display_name": "Python 3",
   "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.6.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1
}
