%%%%%%%%% BOOKLET HEADER %%%%%%%%%


\projectHeader{Türkçe Proje Başlığı}{Şirket Adı}{groupXX/group_photo.png}
\projectPeople{
  {p1, p2, p3,}, 
  {p4, p5, p6}
}

\advisors{% Industrial Advisors
  % Same rules applying to projectPeople list applies here as well.
  {Dr.\ IA1, Dr.\ IA2},
  Yük.\ Müh.\ IA3,
  % next line is left empty
  \mbox{},
  % Last item is the name of the department
  Endüstri Mühendisliği Takımı}{
  % Academic Advisors
  Prof.\ Dr.\ AA1, Doç. Dr. AA2,
  Dr.\ Öğr.\ Üyesi AA3,
  Endüstri Mühendisliği Bölümü}

\projectAbstract{% note that no line breaks are allowed inside the abstract
  Özet burada (tr). \lipsum[1]
}{% Use no more than five keywords.
  Birinci anahtar kelime, ikinci, üçüncü, dördüncü, en çok beş
}

\projectSecondHeader{Project Title in English}
%%% Body
\section{Introduction}
\label{sec:introduction-1}


\section{Problem}
\label{sec:problem}


\section{Solution}
\label{sec:solution}


\section{Conclusion}
\label{sec:conclusion}

\section{Take Your Time To Read This Section}

In the remainder of this template, you will find the useful commands such as adding figures, tables and codes. You can use overleaf to easily access all the necessary packages and edit the report collaboratively. To make sure that the format is preserved throughout the book, there are a few rules that must be followed. Read the rules from the .tex file (not pdf).

\begin{itemize}
    \item Each figure/table should be captioned. Captions should be at the bottom.
    \item Refer to the table/figure/code like the following example: "which can be seen on Figure \ref{fig:random_university_logo}". The label (argument inside the \textbackslash ref command) can be set by \textbackslash label command inside the definition of the referenced block.
    \item No need to worry about using the same label with another group.
    \item Make sure that the images you use are in \textbf{png} format, with highest resolution possible, so that it is readable.
    \item \textbf{Inserting tables, mathematical models as images will not be allowed and should absolutely be avoided, write them in latex.}
    \item Do not use additional packages, if you need a package not listed on this document or the previous latex document at the website, send us an email.
\end{itemize}

\subsection{Upload process}

Your group will receive a survey link, where you will upload the files in a zip. Below is the set of rules to be followed while preparing the zip file. Follow this guide to easily download your project from overleaf: \href{https://www.overleaf.com/learn/how-to/Downloading\_a\_Project}{https://www.overleaf.com/learn/how-to/Downloading\_a\_Project}

\begin{enumerate}
    \item Inside the zip, there will be one tex file (this file, which will contain your report, \textbf{not main.tex}) and a folder containing the images and bib file. Do not forget to adjust the resource paths inside your tex file accordingly, i.e. groupXX/image1.png, groupXX/bibfile.
    \item The folder should be named in "groupXX" format where XX is your group number in \textbf{two digits}. Examples to follow: group01, group02, group15. Examples to avoid: GrOup1, group1, grup05, projectShortcode group 55.
    \item main.tex and packages are provided to you so that you can compile your report the same way we'll do, so do not include them in the file.
\end{enumerate}

Make sure that images are of \textbf{high resolution}, \textbf{use .png format}. For charts, use the export option and increase the resolution (on R, matlab) or save them using the savefig (python-matplotlib) method with dpi>999. Do not use screenshots of code or charts.

If you are confused, feel free to confuse yourself further by reading the latex document at \href{https://courses.ie.bilkent.edu.tr/ie477/tools-for-report-writing/}{https://courses.ie.bilkent.edu.tr/ie477/tools-for-report-writing/}. It includes some other functions but it's a bit obsolete.

If you have any issues, you can submit an email containing the overleaf share link to \href{mailto:ie477@ie.bilkent.edu.tr}{ie477@ie.bilkent.edu.tr}, with subject: "GroupXX - Latex issue".

To reference, you should first add the book/article details to the .bib file. Don't bother to fill it manually, you can use bibliography generator like \href{https://zbib.org/}{ZoteroBib} and \href{https://www.mendeley.com/}{Mendeley}, these generators are not the only ones that you can use, even google scholar has a bibtex generator. To cite, you simply pass the label to the \textbackslash cite command: \cite{Miller1984} or \cite{Balseiro-etal-2013, Charles-etal-2013}.

\section{Mathematical Model}

Indices, Decision variables and parameters table, edit its parts as you need:
\begin{table}[ht]
\caption{Variables of the model}
\centering
\scalebox{0.8}{
\begin{tabular}{||c | p{7.75cm} || c | p{7.75cm} ||} 
\hline
\multicolumn{2}{||c||}{\textit{Indices}} &  \multicolumn{2}{|c||}{\textit{Decision Variables}}  \\ \hline
\multicolumn{2}{||c||}{$j \in J$, $h \in H$, $t \in T$} & $X^t_{h,j}$ & ... $t$\\ \hline
\multicolumn{2}{||c||}{\textit{Parameters}} & $Y_{h,t}$ & ... $h$ \\ \hline
$S$ & ... & $\alpha_{h,t}$ & ... $h$ at the beginning of period $t$  \\ \hline
$W^t_{h,1}$ & ... & $Z_{h,t}$ & ... \\ \hline
$W^t_{h,2}$ & ... & $I^{t}_{h,j}$ & ...$h$ at the end of period $t$ \\ \hline
$\beta$ & ...  &   \multicolumn{2}{|c||}{\textit{Auxiliary Variables}} \\ \hline 
$\beta$ & ...  & $P^1$ & ... \\ \hline 
$\theta$ & ... & $P^2$ & ... \\ \hline
$\theta_j$ &  ... & $TT^t_{h,t}$ & $\begin{cases}
      1 & \text{...}\\
      0 & \text{otherwise}
\end{cases}$ \\  \hline
$\alpha_{h,1}$ & ...   \\  \cline{1-2} % google the usage of this if you have uneven number of rows in columns
$\delta$ & ... \\ \cline{1-2}
\end{tabular}} \label{vars_pars}
\end{table}

Mathematical model example:
\setcounter{equation}{0}
\small
\begin{flalign}
    \min &\quad \max_{h \in H}\sum_{t \in T}\sum_{j \in J}DC^t_{h,j} \label{obj3} \\
    \min &\quad \max_{h \in H}\sum_{t \in T}{Y_{h,t}} \label{obj1}\\
    \text{subject to: } &\quad \sum_{h \in H}{X^{t}_{h,j}}=S^{t}_{j} & \forall t \in T, \forall j \in J \label{c1} \\
    &\quad  I^{t}_{h,j}-{U^{t}_{h,j}}={X^{t}_{h,j}}+I^{t-1}_{h,j} -W^{t}_{h,j}   &\quad \forall t \in T,  \forall h \in H,  \forall j \in J \label{c2}\\
    &\quad  I^{t}_{h,j}U^{t}_{h,j}=0  &\quad  \forall t \in T, \forall h \in H,  \forall j \in J \label{c3} \\
    &\quad SL^t_{h,j} \in \{0,1\} &\quad \forall t \in T, \forall h \in H, \forall j \in J \label{c19}
\end{flalign}
If this is your first encounter with a mathematical model, here's what some of the characters mean (also an example of numbered list):
\begin{enumerate}
    \item \&: Alignment character, aligns the text before itself (until the beginning or another \& character, whichever is before) with the same blocks before and after its current line.
    \item \textbackslash \textbackslash: Line break/new line character.
    \item \textbackslash quad: Leaves a small empty space, necessary for model to look nice.
    \item \textbackslash label block: you can reference equations inside the report using the label you set for the equation as an argument of \textbackslash ref. Do not forget to prepend your group no as shown in the rules above.
    \item You can reference any equation you need by using its label. E.g. Equation \ref{c19}.
\end{enumerate}

%%% References
% No need to write the extension
\printBib{groupXX/bib_file}

%%% Appendix.

\begin{subappendices}  
\section{Factory plan}
You can subsection-ize appendix
\subsection{Assembly lines}
\subsection{Storage}
You can (and should) provide explanations here.
\begin{figure}[H]
    \centering
    \includegraphics[width=0.5\textwidth]{groupXX/logo.png}
    \label{fig:random_university_logo}
\end{figure}

\section{Workflow}
\section{Mathematical model}
or even include mathematical models if you need.
\small
\begin{flalign}
    \min &\quad \max_{h \in H}\sum_{t \in T}\sum_{j \in J}DC^t_{h,j} \label{obj3} \\
    \min &\quad \max_{h \in H}\sum_{t \in T}{Y_{h,t}} \label{obj1}\\
    \text{subject to: } &\quad \sum_{h \in H}{X^{t}_{h,j}}=S^{t}_{j} & \forall t \in T, \forall j \in J \label{c1} \\
    &\quad  I^{t}_{h,j}-{U^{t}_{h,j}}={X^{t}_{h,j}}+I^{t-1}_{h,j} -W^{t}_{h,j}   &\quad \forall t \in T,  \forall h \in H,  \forall j \in J \label{c2}\\
    &\quad  I^{t}_{h,j}U^{t}_{h,j}=0  &\quad  \forall t \in T, \forall h \in H,  \forall j \in J \label{c3} \\
    &\quad SL^t_{h,j} \in \{0,1\} &\quad \forall t \in T, \forall h \in H, \forall j \in J \label{c19}
\end{flalign}

\end{subappendices}

%%%%%%%% Features description

\chapter*{Features}

\blindfootnote{If you are a \LaTeX{} beginner consider the excellent \href{https://www.overleaf.com/learn}{Overleaf tutorial}. --The guy who created the sleek template, not an IE477 staff.}

\subsection{Mathematics}

This template uses \texttt{amsmath} and \texttt{amssymb}, which are the de-facto standard for typesetting mathematics. Additionally, \texttt{esint} provides alternative integral symbols (\emph{cf.} Table 78 in \cite{ackerberg2006}) and \texttt{bm} is used for bold math symbols like vectors (see \eqref{eq:gauss_law}).

A few custom macros have also been added such as \texttt{\tbs{}rbk}, \texttt{\tbs{}sbk} and \texttt{\tbs{}cbk} for respectively round, square and curly brackets, \texttt{\tbs{}abs} for absolute value, \texttt{\tbs{}norm} for norm, \texttt{\tbs{}fact} for factorial and \texttt{\tbs{}diff} for up-right differential.
$$
    \rbk{\frac{\pi}{2}}, \quad \sbk{\frac{\pi}{2}}, \quad \cbk{\frac{\pi}{2}}, \quad \abs{\frac{\pi}{2}}, \quad \norm{\frac{\pi}{2}}, \quad \fact{n} = \prod_{i = 1}^{n} i, \quad \frac{\diff \bm{x}}{\diff t} = \bm{v}
$$

Here are some examples showcasing what is possible with the default packages of \texttt{sleek}.

\begin{equation}\label{eq:gauss_law}
    \oiint_S \bm{E} \cdot \diff \bm{s} = \iiint_V \frac{\rho}{\varepsilon_0} \diff V
\end{equation}

\begin{equation*}
    e = \sum_{n=0}^\infty \frac{1}{n!}
\end{equation*}

\begin{subequations}
    \begin{align}
        \frac{\diff x}{\diff t} & = \alpha x - \beta xy \\
        \frac{\diff y}{\diff t} & = \delta xy - \gamma y
    \end{align}
\end{subequations}

\begin{align*}
    \ln \abs{x} + C & = \int \frac{1}{x} \,\diff x \\
    \exp(x) & = \lim_{n \to \infty} \rbk{1 + \frac{x}{n}}^n
\end{align*}

\begin{equation}
    \left\{
    \begin{aligned}
        x & = r \sin \theta \cos \phi \\
        y & = r \sin \theta \sin \phi \\
        z & = r \cos \theta
    \end{aligned}
    \right.
\end{equation}

\begin{alignat*}{2}
                          & & P(A, B)  & = P(A \mid B) P(B)                        \\
    \Leftrightarrow \quad & & P(A \mid B) & = \frac{P(A, B)}{P(B)}                 \\
                          & &          & = P(B \mid A) \frac{P(A)}{P(B)}
\end{alignat*}

\subsection{Units}

The \texttt{siunitx} package provides three commands to typeset numbers and quantities -- \texttt{\tbs{}num}, \texttt{\tbs{}si} and \texttt{\tbs{}SI} -- as well as various units (\emph{cf.} Table \ref{tab:siunitx_units}).

It is possible to write, both in text or math modes, numbers without units (\emph{e.g.} \num{1}, \num{1.0}, \num{-1}, \num{3.14159}, \num{e100}, $N_A = \num{6.022e23}$), units without quantity (\emph{e.g.} $\si{\joule} = \si{\newton\meter} = \si{\kilogram\meter\squared\per\second\squared}$) and, finally, quantities with their units (\emph{e.g.} \SI{9.81}{\meter\per\second\squared}, $c = \SI{299.6e6}{\meter\per\second}$).

\subsection{Lists}

Sleek Template uses \texttt{enumitem} to enhance the listing capabilities of \LaTeX{}. There are three lists environments :
\begin{enumerate}
    \item \texttt{itemize} for unordered lists;
    \item \texttt{enumerate} for ordered lists;
    \item \texttt{description} for descriptive lists.
\end{enumerate}

In a list, each element is preceded by the command \texttt{\tbs{}item}. It is possible to modify the labels
\begin{itemize}
    \item individually with \texttt{\tbs{}item[newLabel]};
    \item for the whole environment with the \texttt{label=newLabel} option.
\end{itemize}

In the case of \texttt{enumerate}, \texttt{newLabel} can contain special expressions (\emph{cf.} Table \ref{tab:enumerate_special_expressions}) that will adapt to the item number. For example, \texttt{label=(\tbs{}alph*)} defines the label sequence \enquote{(a), (b), (c), ...}. Still in the case of \texttt{enumerate}, the  \texttt{\tbs{}setcounter} and \texttt{\tbs{}addtocounter} commands allow to modify the current item number.

One could want to reduce the space between items with the \texttt{noitemsep} option or to delete the left margin with the \texttt{leftmargin=*} option.

It is also possible to write nested lists. Here follows a very condensed example.

\begin{itemize}[leftmargin=*]
    \item Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    Arcu ac tortor dignissim convallis aenean et tortor. In eu mi bibendum neque egestas congue quisque.

    \item[$+$] Semper quis lectus nulla at volutpat diam ut. Felis eget velit aliquet sagittis id. Blandit aliquam etiam erat velit scelerisque in dictum non consectetur.
    \begin{equation}
        a^2 + b^2 = c^2
    \end{equation}

    \item Nibh sed pulvinar proin gravida hendrerit lectus. Pretium aenean pharetra magna ac placerat vestibulum lectus mauris. Non consectetur a erat nam at lectus urna duis.
    \begin{enumerate}[noitemsep, label=\roman*.]
        \item Nibh tortor id aliquet lectus. Sit amet justo donec enim diam vulputate ut pharetra sit.
        \setcounter{enumi}{3}
        \item Condimentum id venenatis a condimentum vitae. Quis eleifend quam adipiscing vitae proin sagittis nisl.
        \addtocounter{enumi}{15}
        \item Proin sagittis nisl rhoncus mattis rhoncus urna neque viverra.
    \end{enumerate}

    \item Elit scelerisque mauris pellentesque pulvinar pellentesque habitant morbi tristique senectus.
        \begin{description}
            \item[Ridiculus] mus mauris vitae ultricies leo. Mollis aliquam ut porttitor leo a diam. Velit egestas dui id ornare arcu odio ut sem nulla.
            \item[Nullam vehicula] ipsum a arcu. Nibh sit amet commodo nulla facilisi nullam. At erat pellentesque adipiscing commodo elit. Libero volutpat sed cras ornare arcu dui.
        \end{description}
\end{itemize}

\subsection{Figures}

Thanks to the \texttt{graphicx} package, it is possible to include external graphic documents (images, plots, etc.) in your document with the \texttt{\tbs{}includegraphics} command. Most image type format (\texttt{jpg}, \texttt{png}, \texttt{bmp}, etc.) are supported by this command. However, it should be noted that it is highly preferable to use vectorial types, such as \texttt{pdf} or \texttt{eps}.

\begin{figure}[H]
    \centering
    \includegraphics[width=0.5\textwidth]{groupXX/logo.png}
    \noskipcaption{Random University logo.}
    \label{fig:random_university_logo}
\end{figure}

\subsection{Tables}

The packages \texttt{multicol} and \texttt{multirow} comes handy for complex table formatting such as multi-column or multi-row cells.

\begin{table}[H]
    \caption{Example of multi-column cells.}
    \centering
    \begin{tabular}{|r|r|c|l|}
        \hline
        \multicolumn{3}{|l|}{a} & qrs  \\ \hline
         b &  ef &     jkl      & tuvx \\ \hline
        cd & ghi &     mnop     & wyz  \\ \hline
    \end{tabular}
    \label{tab:multicol_example}
\end{table}

\begin{table}[H]
    \caption{Example of multi-row cells.}
    \centering
    \begin{tabular}{|l|c|r|}
        \hline
        \multirow{3}{2cm}{a} &   b   &    c \\ \cline{2-3}
                             &  de   &   fg \\ \cline{2-3}
                             &  hij  &  klm \\ \hline
        nopq                 & rstuv & wxyz \\ \hline
    \end{tabular}
    \label{tab:multirow_example}
\end{table}

\newpage

\chapter{Tables}

\begin{table}[h]
    \caption{Available text fonts in \LaTeX{}.}
    \centering
    \begin{tabular}{>{\ttfamily\tbs{}}ll}
        \toprule
        emph\{abcABC123\} & \emph{abcABC123} \\
        bfseries\{abcABC123\} & \bfseries{abcABC123} \\
        itshape\{abcABC123\} & \itshape{abcABC123} \\
        lowercase\{abcABC123\} & \lowercase{abcABC123} \\
        normalfont\{abcABC123\} & \normalfont{abcABC123} \\
        textbf\{abcABC123\} & \textbf{abcABC123} \\
        textit\{abcABC123\} & \textit{abcABC123} \\
        textsc\{abcABC123\} & \textsc{abcABC123} \\
        textsf\{abcABC123\} & \textsf{abcABC123} \\
        textsl\{abcABC123\} & \textsl{abcABC123} \\
        textsubscript\{abcABC123\} & \textsubscript{abcABC123} \\
        textsuperscript\{abcABC123\} & \textsuperscript{abcABC123} \\
        texttt\{abcABC123\} & \texttt{abcABC123} \\
        underline\{abcABC123\} & \underline{abcABC123} \\
        uppercase\{abcABC123\} & \uppercase{abcABC123} \\
        \bottomrule
    \end{tabular}
    \label{tab:text_fonts}
\end{table}

\begin{table}[h]
    \caption{Available math fonts in \LaTeX{} and AMS.}
    \centering
    \begin{tabular}{>{\ttfamily\$\tbs{}}l<{\$}l}
        \toprule
        mathcal\{abcABC123\} & $\mathcal{abcABC123}$ \\
        mathit\{abcABC123\} & $\mathit{abcABC123}$ \\
        mathnormal\{abcABC123\} & $\mathnormal{abcABC123}$ \\
        mathrm\{abcABC123\} & $\mathrm{abcABC123}$ \\
        mathbb\{abcABC123\} & $\mathbb{abcABC123}$ \\
        mathfrak\{abcABC123\} & $\mathfrak{abcABC123}$ \\
        \bottomrule
    \end{tabular}
    \label{tab:math_fonts}
\end{table}

\begin{table}[h]
    \caption{Available units in the \texttt{siunitx} package.}
    \centering
    \begin{tabular}{>{\ttfamily}lr|>{\ttfamily}lr|>{\ttfamily}lr}
        \toprule
        metre & \si{\metre} & second & \si{\second} & mole & \si{\mole} \\
        meter & \si{\meter} & ampere & \si{\ampere} & candela & \si{\candela} \\
        kilogram & \si{\kilogram} & kelvin & \si{\kelvin} &  &  \\
        \midrule
        hertz & \si{\hertz} & farad & \si{\farad} & lumen & \si{\lumen} \\
        newton & \si{\newton} & ohm & \si{\ohm} & lux & \si{\lux} \\
        pascal & \si{\pascal} & siemens & \si{\siemens} & becquerel & \si{\becquerel} \\
        joule & \si{\joule} & weber & \si{\weber} & gray & \si{\gray} \\
        watt & \si{\watt} & tesla & \si{\tesla} & sievert & \si{\sievert} \\
        coulomb & \si{\coulomb} & henry & \si{\henry} &  &  \\
        volt & \si{\volt} & celsius & \si{\celsius} &  &  \\
        \midrule
        angstrom & \si{\angstrom} & day & \si{\day} & liter & \si{\liter} \\
        arcminute & \si{\arcminute} & degree & \si{\degree} & litre & \si{\litre} \\
        arcsecond & \si{\arcsecond} & electronvolt & \si{\electronvolt} & minute & \si{\minute} \\
        barn & \si{\barn} & gram & \si{\gram} & neper & \si{\neper} \\
        bar & \si{\bar} & hectare & \si{\hectare} & tonne & \si{\tonne} \\
        bel & \si{\bel} & hour & \si{\hour} &  &  \\
        \midrule
        yocto & \si{\yocto} & milli & \si{\milli} & mega & \si{\mega} \\
        zepto & \si{\zepto} & centi & \si{\centi} & giga & \si{\giga} \\
        atto & \si{\atto} & deci & \si{\deci} & tera & \si{\tera} \\
        femto & \si{\femto} & deca & \si{\deca} & peta & \si{\peta} \\
        pico & \si{\pico} & deka & \si{\deka} & exa & \si{\exa} \\
        nano & \si{\nano} & hecto & \si{\hecto} & zetta & \si{\zetta} \\
        micro & \si{\micro} & kilo & \si{\kilo} & yotta & \si{\yotta} \\
        \bottomrule
    \end{tabular}
    \label{tab:siunitx_units}
\end{table}

\begin{table}[h]
    \caption{Special expressions for the label of \texttt{enumerate} environments.}
    \centering
    \begin{tabular}{ll}
        \toprule
        \textbf{Expression} & \textbf{Description} \\
        \midrule
        \texttt{\tbs{}arabic*} & Arabic numbers (1, 2, 3, ...) \\
        \texttt{\tbs{}alph*} & Lowercase letters (a, b, c, ...) \\
        \texttt{\tbs{}Alph*} & Uppercase letters (A, B, C, ...) \\
        \texttt{\tbs{}roman*} & Lowercase Roman numerals (i, ii, iii, ...) \\
        \texttt{\tbs{}Roman*} & Lowercase Roman numerals (I, II, III, ...) \\
        \bottomrule
    \end{tabular}
    \label{tab:enumerate_special_expressions}
\end{table}