Commit 5e6102b5 by sp2668

### clean tex files

parent 591cf4f9
 ... @@ -90,30 +90,30 @@ page\footnote{\url{https://nworbmot.org/courses/complex_renewable_energy_network ... @@ -90,30 +90,30 @@ page\footnote{\url{https://nworbmot.org/courses/complex_renewable_energy_network They describe (quasi-real) time series for wind power generation $$W(t)$$, solar power generation $$S(t)$$ and load $$L(t)$$ in Great Britain (GB), Germany (DE) and Europe (EU). The time step is $$1\e{h}$$ and the time series are several years long. They describe (quasi-real) time series for wind power generation $$W(t)$$, solar power generation $$S(t)$$ and load $$L(t)$$ in Great Britain (GB), Germany (DE) and Europe (EU). The time step is $$1\e{h}$$ and the time series are several years long. \begin{enumerate}[(a)] \begin{enumerate}[(a)] \item Check that the wind and solar time series are normalized to 'per-unit of installed \mbox{capacity}', and that the load time series is normalized to MW. \item Check that the wind and solar time series are normalized to 'per-unit of installed \mbox{capacity}', and that the load time series is normalized to MW. \item For all three regions, calculate the maximum, mean, and variance of the time series. \item For all three regions, calculate the maximum, mean, and variance of the time series. \item For all three regions, plot the time series $$W(t)$$, \item For all three regions, plot the time series $$W(t)$$, $$S(t)$$, $$S(t)$$, $$L(t)$$ for a winter month (January) and a summer month (July). $$L(t)$$ for a winter month (January) and a summer month (July). \item For all three regions, plot the duration curve for $$W(t)$$, $$S(t)$$, $$L(t)$$. \item For all three regions, plot the duration curve for $$W(t)$$, $$S(t)$$, $$L(t)$$. \item For all three regions, plot the probability density function of $$W(t)$$, $$S(t)$$, $$L(t)$$. \item For all three regions, plot the probability density function of $$W(t)$$, $$S(t)$$, $$L(t)$$. \item Apply a (Fast) Fourier Transform to the the three time series $X \in W(t), S(t), L(t)$: \item Apply a (Fast) Fourier Transform to the the three time series $X \in W(t), S(t), L(t)$: \begin{equation*} \begin{equation*} \tilde{X}(\omega) = \int_0^T X(t) e^{\i \omega t} \,\ud t \, . \tilde{X}(\omega) = \int_0^T X(t) e^{\i \omega t} \,\ud t \, . \end{equation*} \end{equation*} For all three regions, plot the energy spectrum For all three regions, plot the energy spectrum $\left| \tilde{\Delta}(\omega) \right|^2$ as a function of $\left| \tilde{\Delta}(\omega) \right|^2$ as a function of $\omega$. Discuss the relationship of these results with the $\omega$. Discuss the relationship of these results with the findings obtained in (b)-(e). findings obtained in (b)-(e). \item Normalize the time series to one, so that $$\expect{W} = \expect{S} = \expect{L} = 1$$. \item Normalize the time series to one, so that $$\expect{W} = \expect{S} = \expect{L} = 1$$. Now, for all three regions, plot the mismatch time series Now, for all three regions, plot the mismatch time series \begin{equation*} \begin{equation*} \Delta(t) = \gamma \alpha W(t) + \gamma (1 - \alpha) S(t) - L(t) \Delta(t) = \gamma \alpha W(t) + \gamma (1 - \alpha) S(t) - L(t) \end{equation*} \end{equation*} for the same winter and summer months as in (c). Choose for the same winter and summer months as in (c). Choose $$\alpha \in \{0.0, 0.5, 0.75, 1.0\}$$ with $$\gamma = 1$$, $$\alpha \in \{0.0, 0.5, 0.75, 1.0\}$$ with $$\gamma = 1$$, and $\gamma \in \{0.5, 0.75, 1.0, 1.25, 1.5\}$ with $\alpha = 0.75$. and $\gamma \in \{0.5, 0.75, 1.0, 1.25, 1.5\}$ with $\alpha = 0.75$. \item For all three regions, repeat (b)-(f) for the mismatch time series. \item For all three regions, repeat (b)-(f) for the mismatch time series. \end{enumerate} \end{enumerate} \pagebreak \pagebreak ... @@ -145,17 +145,17 @@ Figure \ref{fig:seasonalvariations} shows approximations to the ... @@ -145,17 +145,17 @@ Figure \ref{fig:seasonalvariations} shows approximations to the seasonal variations of wind and solar power generation $$W(t)$$ seasonal variations of wind and solar power generation $$W(t)$$ and $$S(t)$$ and load $$L(t)$$: and $$S(t)$$ and load $$L(t)$$: \begin{align*} \begin{align*} W(t) & = 1 + A_W \cos \omega t \\ W(t) & = 1 + A_W \cos \omega t \\ S(t) & = 1 - A_S \cos \omega t \\ S(t) & = 1 - A_S \cos \omega t \\ L(t) & = 1 + A_L \cos \omega t L(t) & = 1 + A_L \cos \omega t \end{align*} \end{align*} The time series are normalized to The time series are normalized to $$\expect{W} = \expect{S} = \expect{L} := \frac{1}{T} \int_0^T L(t) \(\expect{W} = \expect{S} = \expect{L} := \frac{1}{T} \int_0^T L(t) \ud t = 1$$, and the constants have the values \ud t = 1\), and the constants have the values \begin{align*} \begin{align*} \omega & = \frac{2\pi}{T} & T & = 1 \e{year} \\ \omega & = \frac{2\pi}{T} & T & = 1 \e{year} \\ A_W & = 0.4 & A_S & = 0.75 & A_L & = 0.1 A_W & = 0.4 & A_S & = 0.75 & A_L & = 0.1 \end{align*} \end{align*} ~\\ ~\\ ... @@ -188,21 +188,21 @@ A_W & = 0.4 & A_S & = 0.75 & A_L & = 0.1 ... @@ -188,21 +188,21 @@ A_W & = 0.4 & A_S & = 0.75 & A_L & = 0.1 I found the python notebook based notes of Robert Johansson to be a I found the python notebook based notes of Robert Johansson to be a comprehensive kick starter\footnote{\url{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/tree/master/}}. comprehensive kick starter\footnote{\url{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/tree/master/}}. \begin{itemize} \begin{itemize} \item \item \href{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-0-Scientific-Computing-with-Python.ipynb}{Lecture~0} covers installation and getting ready. \href{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-0-Scientific-Computing-with-Python.ipynb}{Lecture~0} covers installation and getting ready. \item \item \href{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-1-Introduction-to-Python-Programming.ipynb}{Lecture~1} \href{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-1-Introduction-to-Python-Programming.ipynb}{Lecture~1} zooms through most basic general python control structures (only zooms through most basic general python control structures (only brush over it and stop reading early, i.e. if you read the word brush over it and stop reading early, i.e. if you read the word \verb+classes+ you already know too much). \verb+classes+ you already know too much). \item \href{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-2-Numpy.ipynb}{Lecture~2} is the most important and closely connected to the exercises. \item \href{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-2-Numpy.ipynb}{Lecture~2} is the most important and closely connected to the exercises. \item You might as well stop now, but if you \emph{are} hooked, I recommend \href{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-3-Scipy.ipynb}{Lecture~3} for more physics and \href{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-4-Matplotlib.ipynb}{Lecture~4} for prettier graphs. \item You might as well stop now, but if you \emph{are} hooked, I recommend \href{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-3-Scipy.ipynb}{Lecture~3} for more physics and \href{http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-4-Matplotlib.ipynb}{Lecture~4} for prettier graphs. \end{itemize} \end{itemize} Further reference material of help is: Further reference material of help is: \begin{itemize} \begin{itemize} \item The website-books \url{http://python-course.eu/} (english), \url{http://python-kurs.eu/} (german); especially if you only \emph{very} quickly skim over the \href{http://www.python-course.eu/course.php}{python2 tutorial} and switch over to the \href{http://www.python-course.eu/numerical_programming.php}{numerical python} stuff early; especially of interest might be the \href{http://www.python-course.eu/pandas.php}{pandas} bit in the end, which will make the exercises a breeze at the expense of yet another package to learn. \item The website-books \url{http://python-course.eu/} (english), \url{http://python-kurs.eu/} (german); especially if you only \emph{very} quickly skim over the \href{http://www.python-course.eu/course.php}{python2 tutorial} and switch over to the \href{http://www.python-course.eu/numerical_programming.php}{numerical python} stuff early; especially of interest might be the \href{http://www.python-course.eu/pandas.php}{pandas} bit in the end, which will make the exercises a breeze at the expense of yet another package to learn. \item the exhaustive (overly so) official python tutorial\footnote{\url{https://docs.python.org/2/tutorial/}} available in \href{https://docs.python.org/2/tutorial/}{english} and \href{https://py-tutorial-de.readthedocs.org/de/python-3.3/index.html}{german}; which will NOT introduce you to numpy or scipy. \item the exhaustive (overly so) official python tutorial\footnote{\url{https://docs.python.org/2/tutorial/}} available in \href{https://docs.python.org/2/tutorial/}{english} and \href{https://py-tutorial-de.readthedocs.org/de/python-3.3/index.html}{german}; which will NOT introduce you to numpy or scipy. \end{itemize} \end{itemize} ... ...
No preview for this file type
 ... @@ -125,17 +125,17 @@ to feed their load $L_N$. Figure \ref{fig:variations} shows approximations to th ... @@ -125,17 +125,17 @@ to feed their load $L_N$. Figure \ref{fig:variations} shows approximations to th \vspace{-0.5em} \vspace{-0.5em} \begin{align*} \begin{align*} G_{N,w}(t) &= Cf_w(1+A_w \sin \omega_w t), \\ G_{N,w}(t) & = Cf_w(1+A_w \sin \omega_w t), \\ G_{S,s}(t) &= Cf_s(1+A_s \sin \omega_s t), \\ G_{S,s}(t) & = Cf_s(1+A_s \sin \omega_s t), \\ L_{N/S}(t) &= A_{l,N/S}. L_{N/S}(t) & = A_{l,N/S}. \end{align*} \end{align*} The capacity factors and constants are The capacity factors and constants are \vspace{-0.25em} \vspace{-0.25em} \begin{align*} \begin{align*} A_{l,N} &= 20 \si{\giga\watt}, &A_{l,S}&= 30 \si{\giga\watt},\\ A_{l,N} & = 20 \si{\giga\watt}, & A_{l,S} & = 30 \si{\giga\watt}, \\ Cf_w &= 0.3, &A_w &= 0.9, &\omega_w &= \frac{2\pi}{7 \text{d}}, \\ Cf_w & = 0.3, & A_w & = 0.9, & \omega_w & = \frac{2\pi}{7 \text{d}}, \\ Cf_s &= 0.12, &A_s &= 1.0, &\omega_s &= \frac{2\pi}{1 \text{d}}. \\ Cf_s & = 0.12, & A_s & = 1.0, & \omega_s & = \frac{2\pi}{1 \text{d}}. \\ \end{align*} \end{align*} \vspace{-0.3em} \vspace{-0.3em} For now, assume the stores are lossless. Losses will be considered in III.2. For now, assume the stores are lossless. Losses will be considered in III.2. ... @@ -160,7 +160,7 @@ For now, assume the stores are lossless. Losses will be considered in III.2. ... @@ -160,7 +160,7 @@ For now, assume the stores are lossless. Losses will be considered in III.2. \item What do you imagine would change if you considered the storage losses given in Table 1 in your results (a)-(d)? Support your statement with a graphical illustration. \item What do you imagine would change if you considered the storage losses given in Table 1 in your results (a)-(d)? Support your statement with a graphical illustration. \end{enumerate} \end{enumerate} Now we lift the restriction against transmission and allow them to bridge their 500 km separation with a transmission line. Now we lift the restriction against transmission and allow them to bridge their 500 km separation with a transmission line. \begin{enumerate}[(e)] \begin{enumerate}[(e)] % (e) % (e) ... ...
 ... @@ -122,17 +122,17 @@ Imagine a two-node Germany. The South can install solar panels with a capacity f ... @@ -122,17 +122,17 @@ Imagine a two-node Germany. The South can install solar panels with a capacity f to feed their load $L_N$. Figure \ref{fig:variations} shows approximations to the daily and synoptic variations of per-unit wind and solar power generation $$G_{N,w}(t)$$ and $$G_{S,s}(t)$$ and a constant load $$L_{N/S}(t)$$: to feed their load $L_N$. Figure \ref{fig:variations} shows approximations to the daily and synoptic variations of per-unit wind and solar power generation $$G_{N,w}(t)$$ and $$G_{S,s}(t)$$ and a constant load $$L_{N/S}(t)$$: \begin{align*} \begin{align*} G_{N,w}(t) &= Cf_w(1+A_w \sin \omega_w t), \\ G_{N,w}(t) & = Cf_w(1+A_w \sin \omega_w t), \\ G_{S,s}(t) &= Cf_s(1+A_s \sin \omega_s t), \\ G_{S,s}(t) & = Cf_s(1+A_s \sin \omega_s t), \\ L_{N/S}(t) &= A_{l,N/S}. L_{N/S}(t) & = A_{l,N/S}. \end{align*} \end{align*} The capacity factors and constants are The capacity factors and constants are \begin{align*} \begin{align*} A_{l,N} &= 20 \si{\giga\watt}, &A_{l,S}&= 30 \si{\giga\watt},\\ A_{l,N} & = 20 \si{\giga\watt}, & A_{l,S} & = 30 \si{\giga\watt}, \\ Cf_w &= 0.3, &A_w &= 0.9, &\omega_w &= \frac{2\pi}{7 \text{d}}, \\ Cf_w & = 0.3, & A_w & = 0.9, & \omega_w & = \frac{2\pi}{7 \text{d}}, \\ Cf_s &= 0.12, &A_s &= 1.0, &\omega_s &= \frac{2\pi}{1 \text{d}}. \\ Cf_s & = 0.12, & A_s & = 1.0, & \omega_s & = \frac{2\pi}{1 \text{d}}. \\ \end{align*} \end{align*} For now, assume the stores are lossless. Losses will be considered in III.2. For now, assume the stores are lossless. Losses will be considered in III.2. ... @@ -167,23 +167,23 @@ For now, assume the stores are lossless. Losses will be considered in III.2. ... @@ -167,23 +167,23 @@ For now, assume the stores are lossless. Losses will be considered in III.2. In the North: In the North: \begin{align*} \begin{align*} G_{s,storage,dispatch}^N &= \max ( \pm g_s^N(t)) \\ G_{s,storage,dispatch}^N & = \max ( \pm g_s^N(t)) \\ &= \max (\pm [L_N(t) - G_{N,w} \cdot G_{N,w}(t)]) \\ & = \max (\pm [L_N(t) - G_{N,w} \cdot G_{N,w}(t)]) \\ &= \max (\pm [L_N(t) - \frac{A_{l,N}}{Cf_w}\cdot Cf_w\cdot (1+A_w \sin \omega_w t)]) \\ & = \max (\pm [L_N(t) - \frac{A_{l,N}}{Cf_w}\cdot Cf_w\cdot (1+A_w \sin \omega_w t)]) \\ &= \max (\pm [L_N(t) - A_{l,N} + A_{l,N} A_w \sin \omega_w t)]) \\ & = \max (\pm [L_N(t) - A_{l,N} + A_{l,N} A_w \sin \omega_w t)]) \\ &= \max (\pm [A_{l,N} A_w \sin \omega_w t)]) \\ & = \max (\pm [A_{l,N} A_w \sin \omega_w t)]) \\ &= A_{l,N} A_w = 0.9 \cdot 20 \si{\giga\watt} = 18 \si{\giga\watt} & = A_{l,N} A_w = 0.9 \cdot 20 \si{\giga\watt} = 18 \si{\giga\watt} \end{align*} \end{align*} In the South: In the South: \begin{align*} \begin{align*} G_{s,storage,dispatch}^S &= \max ( \pm g_s^S(t)) \\ G_{s,storage,dispatch}^S & = \max ( \pm g_s^S(t)) \\ &= \max (\pm [L_S(t) - G_{S,s} \cdot G_{S,s}(t)^{m(t)}]) \\ & = \max (\pm [L_S(t) - G_{S,s} \cdot G_{S,s}(t)^{m(t)}]) \\ &= \max (\pm [L_S(t) - \frac{A_{l,S}}{Cf_s}\cdot Cf_s\cdot (1+A_s \sin \omega_s t)]) \\ & = \max (\pm [L_S(t) - \frac{A_{l,S}}{Cf_s}\cdot Cf_s\cdot (1+A_s \sin \omega_s t)]) \\ &= \max (\pm [L_S(t) - A_{l,S} + A_{l,S} A_s \sin \omega_s t)]) \\ & = \max (\pm [L_S(t) - A_{l,S} + A_{l,S} A_s \sin \omega_s t)]) \\ &= \max (\pm [A_{l,S} A_s \sin \omega_s t)]) \\ & = \max (\pm [A_{l,S} A_s \sin \omega_s t)]) \\ &= A_{l,S} A_s = 1.0 \cdot 30 \si{\giga\watt} = 30 \si{\giga\watt} & = A_{l,S} A_s = 1.0 \cdot 30 \si{\giga\watt} = 30 \si{\giga\watt} \end{align*} \end{align*} % (c) % (c) ... @@ -193,13 +193,13 @@ For now, assume the stores are lossless. Losses will be considered in III.2. ... @@ -193,13 +193,13 @@ For now, assume the stores are lossless. Losses will be considered in III.2. E_s = \max_t e_s(t) = \max_t \int_{0}^{t} (-g_s(t')) \;\mathrm{d}t' E_s = \max_t e_s(t) = \max_t \int_{0}^{t} (-g_s(t')) \;\mathrm{d}t' \end{shaded} \end{shaded} In the North: In the North: \begin{align*} \begin{align*} e_s^N(t) &= \int_{0}^{t} -g_s^N(t') \;\mathrm{d}t' = \int_{0}^{t} A_{l,N} A_w \sin \omega_w t' \;\mathrm{d}t' \\ e_s^N(t) & = \int_{0}^{t} -g_s^N(t') \;\mathrm{d}t' = \int_{0}^{t} A_{l,N} A_w \sin \omega_w t' \;\mathrm{d}t' \\ &= A_{l,N} A_w \frac{-\cos(\omega_w t')}{\omega_w}\Big|_0^t = A_{l,N} A_w \frac{1-\cos(\omega_w t')}{\omega_w} & = A_{l,N} A_w \frac{-\cos(\omega_w t')}{\omega_w}\Big|_0^t = A_{l,N} A_w \frac{1-\cos(\omega_w t')}{\omega_w} \end{align*} \end{align*} \begin{equation*} \begin{equation*} ... @@ -209,8 +209,8 @@ For now, assume the stores are lossless. Losses will be considered in III.2. ... @@ -209,8 +209,8 @@ For now, assume the stores are lossless. Losses will be considered in III.2. In the South: In the South: \begin{align*} \begin{align*} e_s^S(t) &= \int_{0}^{t} -g_s^S(t') \;\mathrm{d}t' = \int_{0}^{t} A_{l,S} A_s \sin \omega_s t' \;\mathrm{d}t' \\ e_s^S(t) & = \int_{0}^{t} -g_s^S(t') \;\mathrm{d}t' = \int_{0}^{t} A_{l,S} A_s \sin \omega_s t' \;\mathrm{d}t' \\ &= A_{l,S} A_s \frac{-\cos(\omega_s t')}{\omega_s}\Big|_0^t = A_{l,S} A_s \frac{1-\cos(\omega_s t')}{\omega_s} & = A_{l,S} A_s \frac{-\cos(\omega_s t')}{\omega_s}\Big|_0^t = A_{l,S} A_s \frac{1-\cos(\omega_s t')}{\omega_s} \end{align*} \end{align*} \begin{equation*} \begin{equation*} ... @@ -229,17 +229,17 @@ For now, assume the stores are lossless. Losses will be considered in III.2. ... @@ -229,17 +229,17 @@ For now, assume the stores are lossless. Losses will be considered in III.2. The minimal (lossless) corresponding cost to supply constant demand by using hydrogen as storage technology are The minimal (lossless) corresponding cost to supply constant demand by using hydrogen as storage technology are \begin{align*} \begin{align*} P_h^N &= 750 \text{\EUR{}}\si{\per\kilo\watt} \cdot G_{s,storage,dispatch}^N + 10 \text{\EUR{}}\si{\per\kilo\watt\hour} \cdot E_s^N \\ P_h^N & = 750 \text{\EUR{}}\si{\per\kilo\watt} \cdot G_{s,storage,dispatch}^N + 10 \text{\EUR{}}\si{\per\kilo\watt\hour} \cdot E_s^N \\ &= 13.5 \cdot 10^9 \eur + 10 \cdot 10^9 \eur \\ & = 13.5 \cdot 10^9 \eur + 10 \cdot 10^9 \eur \\ &= 23.5 \cdot 10^9 \eur & = 23.5 \cdot 10^9 \eur \end{align*} \end{align*} The minimal (lossless) corresponding cost to supply constant demand by using batteries as storage technology are: The minimal (lossless) corresponding cost to supply constant demand by using batteries as storage technology are: \begin{align*} \begin{align*} P_b^N &= 300 \text{\EUR{}}\si{\per\kilo\watt} \cdot G_{s,storage,dispatch}^N + 200 \text{\EUR{}}\si{\per\kilo\watt\hour} \cdot E_s^N \\ P_b^N & = 300 \text{\EUR{}}\si{\per\kilo\watt} \cdot G_{s,storage,dispatch}^N + 200 \text{\EUR{}}\si{\per\kilo\watt\hour} \cdot E_s^N \\ &= 5.4 \cdot 10^9 \eur + 200 \cdot 10^9 \eur \\ & = 5.4 \cdot 10^9 \eur + 200 \cdot 10^9 \eur \\ &= 205.4 \cdot 10^9 \eur & = 205.4 \cdot 10^9 \eur \end{align*} \end{align*} The minimal (lossless) total system cost using hydrogen storages accumulates to The minimal (lossless) total system cost using hydrogen storages accumulates to ... @@ -261,17 +261,17 @@ For now, assume the stores are lossless. Losses will be considered in III.2. ... @@ -261,17 +261,17 @@ For now, assume the stores are lossless. Losses will be considered in III.2. The minimal (lossless) corresponding cost to supply constant demand by using hydrogen as storage technology are The minimal (lossless) corresponding cost to supply constant demand by using hydrogen as storage technology are \begin{align*} \begin{align*} P_h^S &= 1200 \text{\EUR{}}\si{\per\kilo\watt} \cdot G_{s,storage,dispatch}^S + 10 \text{\EUR{}}\si{\per\kilo\watt\hour} \cdot E_s^S \\ P_h^S & = 1200 \text{\EUR{}}\si{\per\kilo\watt} \cdot G_{s,storage,dispatch}^S + 10 \text{\EUR{}}\si{\per\kilo\watt\hour} \cdot E_s^S \\ &= 22.5 \cdot 10^9 \eur + 2.3 \cdot 10^9 \eur \\ & = 22.5 \cdot 10^9 \eur + 2.3 \cdot 10^9 \eur \\ &= 24.8 \cdot 10^9 \eur & = 24.8 \cdot 10^9 \eur \end{align*} \end{align*} The minimal (lossless) corresponding cost to supply constant demand by using batteries as storage technology are: The minimal (lossless) corresponding cost to supply constant demand by using batteries as storage technology are: \begin{align*} \begin{align*} P_b^S &= 300 \text{\EUR{}}\si{\per\kilo\watt} \cdot G_{s,storage,dispatch}^S + 200 \text{\EUR{}}\si{\per\kilo\watt\hour} \cdot E_s^S \\ P_b^S & = 300 \text{\EUR{}}\si{\per\kilo\watt} \cdot G_{s,storage,dispatch}^S + 200 \text{\EUR{}}\si{\per\kilo\watt\hour} \cdot E_s^S \\ &= 9 \cdot 10^9 \eur + 46 \cdot 10^9 \eur \\ & = 9 \cdot 10^9 \eur + 46 \cdot 10^9 \eur \\ &= 54 \cdot 10^9 \eur & = 54 \cdot 10^9 \eur \end{align*} \end{align*} The minimal (lossless) total system cost using hydrogen storages accumulates to The minimal (lossless) total system cost using hydrogen storages accumulates to ... @@ -309,29 +309,29 @@ For now, assume the stores are lossless. Losses will be considered in III.2. ... @@ -309,29 +309,29 @@ For now, assume the stores are lossless. Losses will be considered in III.2. The total price of electricity is given by The total price of electricity is given by \begin{align*} \begin{align*} P_{tot} &=\frac{ E^N \cdot \tilde{P}_{w+h}^N + E^S \cdot \tilde{P}_{s+h}^S + (E^N - E^S)\cdot 200 \eur\si{\per\kilo\watt}}{E^N + E^S} \\ P_{tot} & =\frac{ E^N \cdot \tilde{P}_{w+h}^N + E^S \cdot \tilde{P}_{s+h}^S + (E^N - E^S)\cdot 200 \eur\si{\per\kilo\watt}}{E^N + E^S} \\ &= \frac{E^N \cdot \tilde{P}_{w+h}^N + (50\si{\giga\watt} - E^N) \cdot \tilde{P}_{s+h}^S + (2E^N - 50\si{\giga\watt})\cdot 200 \eur\si{\per\kilo\watt}}{E^N + E^S} \\ & = \frac{E^N \cdot \tilde{P}_{w+h}^N + (50\si{\giga\watt} - E^N) \cdot \tilde{P}_{s+h}^S + (2E^N - 50\si{\giga\watt})\cdot 200 \eur\si{\per\kilo\watt}}{E^N + E^S} \\ &= \frac{E^N (\tilde{P}_{w+h}^N - \tilde{P}_{s+h}^S + 400 \eur \si{\per\kilo\watt}) + 50 \si{\giga\watt} (\tilde{P}_{s+h}^S - 200 \eur \si{\per\kilo\watt})}{E^N + E^S} \\ & = \frac{E^N (\tilde{P}_{w+h}^N - \tilde{P}_{s+h}^S + 400 \eur \si{\per\kilo\watt}) + 50 \si{\giga\watt} (\tilde{P}_{s+h}^S - 200 \eur \si{\per\kilo\watt})}{E^N + E^S} \\ \end{align*} \end{align*} Now, minimising the term for a choice of $E^N$ will yield Now, minimising the term for a choice of $E^N$ will yield \begin{align*} \begin{align*} E^N &= 50 \si{\giga\watt} E^N & = 50 \si{\giga\watt} \end{align*} \end{align*} such that all power would be produced from wind in the North and the total system cost is such that all power would be produced from wind in the North and the total system cost is \begin{align*} \begin{align*} \min P_{tot} &= \frac{-0.6 \cdot 50 \cdot 10^9 \eur + 5.8 \cdot 50 \cdot 10^9 \eur}{50 \si{\giga\watt}} \\ \min P_{tot} & = \frac{-0.6 \cdot 50 \cdot 10^9 \eur + 5.8 \cdot 50 \cdot 10^9 \eur}{50 \si{\giga\watt}} \\ &= \frac{260 \cdot 10^9 \eur}{50 \si{\giga\watt}} = 5.2 \cdot 10^9 \eur \si{\per\giga\watt} & = \frac{260 \cdot 10^9 \eur}{50 \si{\giga\watt}} = 5.2 \cdot 10^9 \eur \si{\per\giga\watt} \end{align*} \end{align*} Compared to the weighted electricity cost of North and South without transmission Compared to the weighted electricity cost of North and South without transmission \begin{align*} \begin{align*} \min \tilde{P}_{tot} &= \frac{20\si{\giga\watt}\cdot 5 \cdot 10^9 \eur \si{\per\giga\watt} + 30\si{\giga\watt}\cdot 6 \cdot 10^9 \eur \si{\per\giga\watt}}{50 \si{\giga\watt}} \\ \min \tilde{P}_{tot} & = \frac{20\si{\giga\watt}\cdot 5 \cdot 10^9 \eur \si{\per\giga\watt} + 30\si{\giga\watt}\cdot 6 \cdot 10^9 \eur \si{\per\giga\watt}}{50 \si{\giga\watt}} \\ &= \frac{280 \cdot 10^9 \eur}{50 \si{\giga\watt}} = 5.6 \cdot 10^9 \eur \si{\per\giga\watt} & = \frac{280 \cdot 10^9 \eur}{50 \si{\giga\watt}} = 5.6 \cdot 10^9 \eur \si{\per\giga\watt} \end{align*} \end{align*} the system cost could be reduced by approx.\ 7 \%. the system cost could be reduced by approx.\ 7 \%. ... ...
No preview for this file type
 ... @@ -101,82 +101,69 @@ ... @@ -101,82 +101,69 @@ %===================================================================== %===================================================================== \begin{document} \begin{document} \begin{center} \begin{center} \textbf{\Large Energy System Modelling }\\ \textbf{\Large Energy System Modelling }\\ {SS 2018, Karlsruhe Institute of Technology}\\ {SS 2018, Karlsruhe Institute of Technology}\\ {Institute of Automation and Applied Informatics}\\ [1em] {Institute of Automation and Applied Informatics}\\ [1em] \textbf{\textsc{\Large Tutorial IV: Electricity Markets}}\\ \textbf{\textsc{\Large Tutorial IV: Electricity Markets}}\\ \small Will be worked on in the exercise session on Tuesday, 17 July 2018.\$1.5em] \small Will be worked on in the exercise session on Tuesday, 17 July 2018.\\[1.5em] \end{center} \end{center} \vspace{1em} \vspace{1em} %=============== ====================================================== %=============== ====================================================== \paragraph{Problem IV.1 \normalsize (Shadow prices of limits on consumption).}~\\ \paragraph{Problem IV.1 \normalsize (Shadow prices of limits on consumption).}~\\ %===================================================================== %===================================================================== Suppose that the utility for the electricity consumption of an industrial company is given by Suppose that the utility for the electricity consumption of an industrial company is given by \[ \[ U(q) = 70q - 3q^2 [\textrm{\euro}/h] \quad , \quad q_{min}=2\leq q \leq q_{max}=10, U(q) = 70q - 3q^2 [\textrm{\euro}/h] \quad , \quad q_{min}=2\leq q \leq q_{max}=10,$ \] where $q$ is the demand in MW and $q_{min}, q_{max}$ are the minimum and maximum demand. \\ where $q$ is the demand in MW and $q_{min}, q_{max}$ are the minimum and maximum demand. \\ [1em] [1em] Assume that the company is maximising its net surplus for a given electricity price $\pi$, i.e. it maximises $\max_{q} \left[U(q) - Assume that the company is maximising its net surplus for a given electricity price$\pi$, i.e. it maximises$\max_{q} \left[U(q) - \pi q\right]$. \pi q\right]$. \begin{enumerate}[(a)] \begin{enumerate}[(a)] \item If the price is $\pi = 5$~\euro/MWh, what is the optimal \item If the price is $\pi = 5$~\euro/MWh, what is the optimal demand $q^*$? What is the value of the KKT multiplier $\mu_{max}$ demand $q^*$? What is the value of the KKT multiplier $\mu_{max}$ for the constraint $q \leq q_{max}=10$ at this optimal solution? for the constraint $q \leq q_{max}=10$ at this optimal solution? What is the value of $\mu_{min}$ for $q \geq q_{min} = 2$? What is the value of $\mu_{min}$ for $q \geq q_{min} = 2$? \item Suppose now the electricity price is $\pi = 60$~\euro/MWh. What are \item Suppose now the electricity price is $\pi = 60$~\euro/MWh. What are the optimal demand $q^*$, $\mu_{max}$ and $\mu_{min}$ now? the optimal demand $q^*$, $\mu_{max}$ and $\mu_{min}$ now? \end{enumerate} \end{enumerate} %=============== ====================================================== %=============== ====================================================== \paragraph{Problem VI.2 \normalsize (Economic dispatch in a single bidding zone).}~\\ \paragraph{Problem VI.2 \normalsize (Economic dispatch in a single bidding zone).}~\\ %===================================================================== %===================================================================== Consider an electricity market with two generator types, one with variable cost $c = 20\emwh$, capacity $K = 300\mw$ and a dispatch rate of $Q_1$~[MW] and another with variable cost $c=50\emwh$, capacity $K=400\mw$ and a dispatch rate of $Q_2$~[MW]. The demand has utility function $U(Q) = 8000Q - 5Q^2$~[\euro/h] for a consumption rate of $Q$~[MW]. Consider an electricity market with two generator types, one with variable cost $c = 20\emwh$, capacity $K = 300\mw$ and a dispatch rate of $Q_1$~[MW] and another with variable cost $c=50\emwh$, capacity $K=400\mw$ and a dispatch rate of $Q_2$~[MW]. The demand has utility function $U(Q) = 8000Q - 5Q^2$~[\euro/h] for a consumption rate of $Q$~[MW]. \begin{enumerate}[(a)] \begin{enumerate}[(a)] \item What are the objective function and constraints required for an optimisation problem to maximise short-run social welfare in this market? \item What are the objective function and constraints required for an optimisation problem to maximise short-run social welfare in this market? \item Write down the Karush-Kuhn-Tucker (KKT) conditions for this problem. \item Write down the Karush-Kuhn-Tucker (KKT) conditions for this problem. \item Determine the optimal rate of production of the generators and the value of all KKT multipliers. What is the interpretation of the respective KKT multipliers? \item Determine the optimal rate of production of the generators and the value of all KKT multipliers. What is the interpretation of the respective KKT multipliers? \end{enumerate} \end{enumerate} %%=============== ====================================================== %=============== ====================================================== %\paragraph{Problem II.3 \normalsize (Revenue, profit and consumer surplus).}~\\ \paragraph{Problem IV.3 \normalsize (efficient dispatch in a two-bus power system).}~\\ %%===================================================================== %===================================================================== % %Consider the example of bids and offers in an electricity market from \begin{figure}[h] %slides 28 to 31 from Lecture 2 on 18.04.2016 (taken from the book %Kirschen and Strbac pages 56-58). % %\begin{enumerate}[(a)] % \item Compute the revenue and profit of each generating company and the net % surplus of each consuming company. % \item If consumer company Orange'' withdraws its offers from the market, how do the market price and the profits/surpluses of generators and consumers change? %\end{enumerate} %=============== ====================================================== \paragraph{Problem IV.3 \normalsize (efficient dispatch in a two-bus power system).}~\\ %===================================================================== \begin{figure}[h] \centering \centering \includegraphics[width=14cm]{two-bus} \includegraphics[width=14cm]{two-bus} \label{fig:two-bus} \caption{A simple two-bus power system.} \caption{A simple two-bus power system.} \end{figure} \label{test} \end{figure} Consider the two-bus power system shown in Figure \ref{fig:two-bus}, where the two nodes represent two markets, each with different total demand, and one generator at each node. At node A the demand is $D_A = 2000 \si{\mega\watt}$, whereas at node B the demand is $D_B = 1000 \si{\mega\watt}$. Furthermore, there is a transmission line with a capacity denoted by $F_{AB}$. The marginal cost of production of the generators connected to buses A and B are given respectively by the following expressions: Consider the two-bus power system shown in Figure \ref{test}, where the two nodes represent two markets, each with different total demand, and one generator at each node. At node A the demand is $D_A = 2000 \si{\mega\watt}$, whereas at node B the demand is $D_B = 1000 \si{\mega\watt}$. Furthermore, there is a transmission line with a capacity denoted by $F_{AB}$. The marginal cost of production of the generators connected to buses A and B are given respectively by the following expressions: \begin{align*} \begin{align*} MC_A & = 20 + 0.03 P_A \hspace{1cm}\eur/\si{\mega\watt\hour} \\ MC_A & = 20 + 0.03 P_A \hspace{1cm}\eur/\si{\mega\watt\hour} \\ MC_B & = 15 + 0.02 P_B \hspace{1cm} \eur/\si{\mega\watt\hour} MC_B & = 15 + 0.02 P_B \hspace{1cm} \eur/\si{\mega\watt\hour} \end{align*} \end{align*} Assume that the demand $D_*$ is constant and insensitive to price, that energy is sold at its marginal cost of production and that there are no limits on the output of the generators. Assume that the demand $D_*$ is constant and insensitive to price, that energy is sold at its marginal cost of production and that there are no limits on the output of the generators. \begin{enumerate}[(a)] \begin{enumerate}[(a)] \item Calculate the price of electricity at each bus, the production \item Calculate the price of electricity at each bus, the production of each generator, the flow on the line, and the value of any KKT of each generator, the flow on the line, and the value of any KKT multipliers for the following cases: multipliers for the following cases: ... @@ -189,11 +176,11 @@ ... @@ -189,11 +176,11 @@ \end{enumerate} \end{enumerate} \item Calculate the generator revenues, generator profits, consumer payments and consumer net surplus for all the cases considered in the above problem. Who benefits from the line connecting these two buses? \item Calculate the generator revenues, generator profits, consumer payments and consumer net surplus for all the cases considered in the above problem. Who benefits from the line connecting these two buses? \item Calculate the congestion surplus for case (v). For what values of the flow on the line between buses A and B is the congestion surplus equal to zero? \item Calculate the congestion surplus for case (v). For what values of the flow on the line between buses A and B is the congestion surplus equal to zero? \end{enumerate} \end{enumerate} %=============== ====================================================== %=============== ====================================================== \paragraph{Problem IV.4 \normalsize (bidding in africa with pypsa).}~\\ \paragraph{Problem IV.4 \normalsize (bidding in africa with pypsa).}~\\ %===================================================================== %===================================================================== ... ...
 ... @@ -6,12 +6,6 @@ ... @@ -6,12 +6,6 @@ "source": [ "source": [ "# Simple electricity market examples\n", "# Simple electricity market examples\n", "\n", "\n", "This Jupyter notebook is meant for teaching purposes. To use it, you need to install a Python environment with Jupyter notebooks, and the Python for Power System Analysis (PyPSA) library. See\n", "\n", "https://pypsa.org/doc/installation.html\n", "\n", "for tips on installation.\n", "\n", "It gradually builds up more and more complicated energy-only electricity markets in PyPSA, starting from a single bidding zone, going up to multiple bidding zones connected with transmission (NTCs) along with variable renewables and storage.\n", "It gradually builds up more and more complicated energy-only electricity markets in PyPSA, starting from a single bidding zone, going up to multiple bidding zones connected with transmission (NTCs) along with variable renewables and storage.\n", "\n", "\n", "Available as a Jupyter notebook at http://www.pypsa.org/examples/simple-electricity-market-examples.ipynb." "Available as a Jupyter notebook at http://www.pypsa.org/examples/simple-electricity-market-examples.ipynb." ... @@ -29,9 +23,7 @@ ... @@ -29,9 +23,7 @@ { { "cell_type": "code", "cell_type": "code", "execution_count": 1, "execution_count": 1, "metadata": { "metadata": {}, "collapsed": true }, "outputs": [], "outputs": [],