\documentclass[a4paper,11pt]{article}
\usepackage{graphicx}
\usepackage[font=normal,textfont=it]{caption}
\DeclareCaptionType{Code} %Preparation for eventual code numbering
\renewcommand{\theCode}{\arabic{Code}}

\usepackage{subcaption}
%\usepackage[numbers]{natbib}
\usepackage{url}
\usepackage{array}
\usepackage{makecell}
\usepackage{comment}
\usepackage{setspace}
%\usepackage{fixltx2e}
%% Language and font encodings

\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{libertinus} % Use font of arbitrary sizes 
                        % (removes bibliography font warning)
\usepackage{csquotes} % Removes a compilation warning
\usepackage{changepage}

\usepackage{lipsum}
\usepackage[acronym]{glossaries}

\makenoidxglossaries
\loadglsentries[acronym]{glossaries.tex}


%SI Package
\usepackage[binary-units=true]{siunitx}
%\sisetup{group-separator = \text{\,}}
%\sisetup{group-minimum-digits = {4}}

%footnote
\usepackage[bottom]{footmisc}

%% Sets page size and margins
\usepackage[a4paper,top=2cm,bottom=2cm,left=2cm,right=2cm,marginparwidth=1.75cm]{geometry}

%% Useful packages
\usepackage{amsmath}
\DeclareMathOperator{\E}{\mathbb{E}}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage{textcomp} %defines \perthousand and \micro for gensymb
\usepackage{gensymb} %math in text
\usepackage[unicode=true,pdfusetitle,
   bookmarks=true,
   bookmarksnumbered=false,
   bookmarksopen=false,
   breaklinks=false,
   pdfborder={0 0 1},
   backref=false,
   colorlinks=false]{hyperref}
%\usepackage[colorinlistoftodos]{todonotes}
%\usepackage[colorlinks=true, allcolors=black]{hyperref}

%packages for hyperlinperlin
%\usepackage{hyperref}
%\hypersetup{pdftex,colorlinks=false,allcolors=black}
%\usepackage{hypcap}

%Bibliography
\usepackage[sorting=none]{biblatex}
\addbibresource{references.bib}



\usepackage{chngcntr}
%\counterwithin{figure}{section}
\counterwithin{table}{section}

%\usepackage[table,xcdraw]{xcolor}
\usepackage{amssymb}
\usepackage{float}
\usepackage{adjustbox}
\usepackage{textgreek}
\usepackage{multirow}
\usepackage{color}
\usepackage[table,xcdraw,dvipsnames]{xcolor}
\usepackage{wrapfig}
\usepackage[final]{pdfpages}
\usepackage{listings}
\lstset{
  basicstyle=\ttfamily,
  columns=fullflexible,
}
\renewcommand{\familydefault}{\sfdefault}

\title{Inter-seasonal Performance of Gaussian Process-based
Model Predictive Control of Buildings}

\author{Radu C. Martin}

%header
%\usepackage[headsep=0.5cm,margin=1.5cm,bottom=2cm,headheight=5pt,includeheadfoot]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength\headheight{35pt}
\setlength\footskip{27pt}
\fancyhf{Inter-seasonal GP MPC control for buildings}
\rhead{\includegraphics[width=2cm]{Logo-EPFL.png}}
\lhead{}
%\renewcommand{\footrulewidth}{0.1pt}
\cfoot{\thepage}

\usepackage[framed,numbered,autolinebreaks,useliterate]{mcode}

\setlength{\parskip}{0.5em}

\setlength\parindent{0pt}


% Define new user commands
\newcommand{\pdome}{Polyd\^ome}
\newcommand{\model}[3]{$\mathcal{M}$($l_w = #1$, $l_u = #2$, $l_y = #3$)}
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}

\begin{document}
\selectlanguage{english}

\input{Sections/00_First_Page.tex}

\tableofcontents
\clearpage

\printnoidxglossary[type=\acronymtype]
\clearpage

\input{Sections/10_Introduction.tex}
\input{Sections/30_Gaussian_Processes_Background.tex}
\input{Sections/40_CARNOT_model.tex}
\input{Sections/50_Choice_of_Hyperparameters.tex}
\input{Sections/60_The_MPC_Problem.tex}
\input{Sections/70_Implementation.tex}
\input{Sections/80_Results.tex}
\input{Sections/90_Conclusion.tex}
\printbibliography[heading=bibintoc]
\appendix
\input{Sections/99A_GP_hyperparameters_validation.tex}
\input{Sections/99C_hyperparameters_results.tex}
\end{document}
