\documentclass{buIE47xbooklet}
%\documentclass[print]{buIE47xbooklet}
%\documentclass[nocoverpage,print]{buIE47xbooklet}
% You can give the following options inside [...] before {...}
% nocoverpage: removes the cover page. cover page contains project short name and team number.
% print      : removes the hyperlink colors

% Use in paper preamble \addtitlepagetop, \addtitlepagebottom, \addtitlepageleft, \addtitlepageright with negative lengths
% (e.g., \addtitlepagetop{-1cm}) to enlarge titlepage margins if necessary (e.g., to fit all material into one page)

% Proje ismi
%\TRprojectname{Mekanik Bölümü için Muayene}
\TRprojectname{Mekanik Bölümü için Muayene Sistemi Tasarımı ve Uygulaması} 

% Project name
\ENGprojectname{Design and Application of Inspection System \index{system!inspection} for Mechanics Department}

% Company name
\TRcompany{Arçelik Bulaşık Makinesi İşletmesi}

% Team numbers
\teamno{10}

% Project short name
\projectshortcode{ARMEK}  

% Team members
\teammembers{%
  Kudret Arman,
  Alper Ayhan,
  A. Burcu Çolak,\\
  Ali Hüseyin Demirci,
  Fatih Ergen,
  Dilek Ölez 
}

% Industrial advisors
% Use optional form \IA[team]{...} if you have two or more IAs
\IA[team]{%
	N. Tanzer Tunçalp \\
	Otomasyon ve Bilgi Sistemleri Yöneticisi
}

% Academic advisor(s)
% Use optional form \AA[team]{...} if you have two or more AAs
\AA{%
	Dr.\ Öğr.\ Üyesi\ M. Murat Fadıloğlu\\
	Endüstri Mühendisliği Bölümü
}

% Özet
\TRabstract{%
  Arçelik Bulaşık Makinesi İşletmesi'nde, süreçlerini başarımlarını ve ürünlerin kalitesini ölçen
  bir sistemin olmayışı, işletmenin üretkenliğini olumsuz etkilemektedir. Projemizin amacı veri kaybını önlemek ve ürün kalitesini ve üretkenliği arttırmak için gerekli kullanılması kolay sistemleri kurulmuştur. Bunun için Microsoft.NET üzerinde VisualBasic.NET programlama dili ve Oracle 9.2 veritabanı beraber kullanılmıştır. Yaptığımız pilot verimlilik çalışmasına göre,  kurduğumuz sistem sayesinde üretim zamanından \%8 tasarruf edildiği, verimliliğin \%3 arttığı görülmüştür.
}

% Anahtar Sözcükler
\TRkeywords {
	Arayüz, örgü ergonomi, kalite ve başarım geliştirme, süreç analizi
}


% Abstract
\ENGabstract{%
  In the Arçelik Dishwasher Factory, lack of control system \index{system!control} to calculate the performance of processes and the quality of products affects the productivity process negatively. The aim of this project is to prevent the data loss and to prepare the necessary infrastructure for the quality and improvement workers by designing and implementing a fast and user-friendly control system. The system is developed on Microsoft.NET \index{software!Microsoft.NET} platform using VisualBasic.NET \index{software!VisualBasic.NET} programming language and Oracle \index{database!Oracle}  9.2 database. By the help of this system a sample efficiency improvement study was conducted and the efficiency is improved by 8\% in terms of time and 3\% in terms of productivity. 
}

% Keywords
\ENGkeywords {
  GUI (Graphical User Interface), grid ergonomics, quality and performance improvement, process analysis.
}

% Bibliography file name
\bibfilename{booklet.bib}

% Team photo file name
\teamphoto{figures/group_photo.png}


\begin{document}

\section{Introduction}
\label{sec:introduction}

This document shows  how to create tables, figures, refer to them, and cite others' work. Read it along with \href{https://www.latex-project.org/}{LaTeX} code to learn how to produce the desired format.

\subsection{Including Plots}
\label{sec:including-plots}

You can include figures like Figure \ref{fig:pressure} along with its data in a table as in Table \ref{tab:pressure}.
\begin{table}[!h]
  \centering
    \caption{The first six records of pressure  versus  temperature}
  \label{tab:pressure}
  \begin{tabular}{cc}
    \toprule
    temperature & pressure \\
    \midrule             
    0 & 2e-4 \\
    20 & 0.0012 \\
    40 & 0.006 \\
    60 & 0.03 \\
    80 & 0.09 \\
    100 & 0.27 \\
     \bottomrule
  \end{tabular}
\end{table}


\begin{figure}[!h]
  \centering
  \includegraphics[width=.95\textwidth]{figures/pressure.png}
  \caption{Pressure vs. temperature}
  \label{fig:pressure}
\end{figure}

\subsection{Including Long Tables}

For long tables resuming over more than a page, you can use \texttt{longtable} environment. You can assign labels to tables and refer them anywhere in the report. \href{http://users.sdsc.edu/~ssmallen/latex/longtable.html}{For example}, Table \ref{tbl:longexample} lists multiple solutions to a problem.
\begin{longtable}{lll}
	\caption[Feasible triples for a highly variable Grid]{Feasible triples for 
		highly variable Grid, MLMMH.} \label{grid_mlmmh}
	\label{tbl:longexample} \\
	
	\toprule 
	\multicolumn{1}{c}{\textbf{Time (s)}} & 
	\multicolumn{1}{c}{\textbf{Triple chosen}} & 
	\multicolumn{1}{c}{\textbf{Other feasible triples}} \\ 
	\midrule
	\endfirsthead
	
	\multicolumn{3}{l}%
	{{\tablename\ \thetable{} -- continued from previous page}} \\
	\toprule
	\multicolumn{1}{c}{\textbf{Time (s)}} &
	\multicolumn{1}{c}{\textbf{Triple chosen}} &
	\multicolumn{1}{c}{\textbf{Other feasible triples}} \\
	\midrule
	\endhead
	
	\midrule
	\multicolumn{3}{r}{{Continued on next page}} \\ 
	\endfoot
	
	\midrule
	\endlastfoot
	
	0 & (1, 11, 13725) & (1, 12, 10980), (1, 13, 8235), (2, 2, 0) \\
	2745 & (1, 12, 10980) & (1, 13, 8235), (2, 2, 0), (2, 3, 0) \\
	5490 & (1, 12, 13725) & (2, 2, 2745), (2, 3, 0) \\
	8235 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
	10980 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
	13725 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
	16470 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0) \\
	19215 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
	21960 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
	24705 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
	27450 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
	30195 & (2, 2, 2745) & (2, 3, 0) \\
	32940 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0) \\
	35685 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0) \\
	38430 & (1, 13, 10980) & (2, 2, 2745), (2, 3, 0) \\
	41175 & (1, 12, 13725) & (1, 13, 10980), (2, 2, 2745), (2, 3, 0) \\
	43920 & (1, 13, 10980) & (2, 2, 2745), (2, 3, 0) \\
	46665 & (2, 2, 2745) & (2, 3, 0) \\
	49410 & (2, 2, 2745) & (2, 3, 0) \\
	52155 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
	54900 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0)
\end{longtable}


Table \ref{tbl:materials} is another longtable example, where we control the second column width, which forces long texts in the cells to wrap and continue on a new line. 
\begin{longtable}{c p{6cm}}
	\caption{Materials stored in Aselsan \index{model!inventory} \index{inventory!model} \index{problem!inventory} inventory. There are 23 critical materials and ...} 
	\label{tbl:materials} \\
	\toprule
	Material & Description \\
	\midrule
	% Everything above \endhead will repeat on every new page that table extends to.
	\endhead
	MA &  Devices, systems, software purchased from subcontractor \\
	MB & Electronic modulers \\
	MC & Capacitators \\
	MD & ... \\
	ME & ... \\
	MF & ... \\
	MG & ... \\
	MI & Another very very very very very very long description \\
	MH & ... \\
	MW & RF and microwave elements \\
	\bottomrule
\end{longtable}


\subsection{Including Computer Code Listings}

Use \texttt{lstlisting} environment to list codes. 

\begin{lstlisting}[language=C, numbers=left, xleftmargin=3ex, breaklines=true, frame=single,
	caption = {An example C code to illustrate with lstlisting environment from Wikipedia},
	label = lst:cexample]
	#include <stdio.h>
	#define N 10
	/* Block
	* comment */
	
	int main()
	{
		int i;
		
		// Line comment.
		puts("Hello world!");
		
		for (i = 0; i < N; i++)
		{
			puts("LaTeX is also great for programmers!");
		}
		
		return 0;
	}
\end{lstlisting}


Anywhere in the report you can refer to a listing by using label assigned to that listing.


\subsubsection{A pseudocode example}

You can specify the keywords that you want to be typeset bold; see Listing \ref{lst:intdiv}, with optional keywords argument to \emph{lstlisting} environment.

%https://tex.stackexchange.com/questions/111116/what-is-the-best-looking-pseudo-code-package

\begin{lstlisting}[numbers=left,
	mathescape=true, 
	xleftmargin=3ex,
	breaklines=true, 
	frame=tb, 
%	frame=tB, 
	extendedchars=true, 
	keywords={input, output, return, datatype, function, in, if, else, foreach, while, begin, end},
	caption = {Integer division},
	label=lst:intdiv]	
input: int N, int D
output: int

begin
 res $\gets$ 0
 while N $\geq$ D 
   N $\gets$ N - D
   res $\gets$ res + 1      
 end
 return respdfla
end  
\end{lstlisting}

\section{Report Format}
\label{sec:format}

The first paragraphs in each section/subsection/... should not be indented. All others should be indented 1 cm. There must be no line blanking between paragraphs. LaTeX used with buIE47xbooklet document class will take care of all these and the remaining formatting requirements.

\subsection{Margins}
\label{sec:margins}

All headings, tables, figures, texts and appendices must be between the spacing limits that are determined by margins, there must no text outside of these limits. Please ensure that all tables and figures that you used in the text and appendix are  between the margins.

\subsection{Headings}
\label{sec:headings}

 The first character of each word must be a capital letter. In the headings of reports written in Turkish, conjunctions like ‘ve’, 'ile' must be written in lowercase. In the headings of reports written in English, auxiliary words like ‘the’, ‘on’, ‘for’ must be written in lowercase. All headings must be enumerated. 

\subsection{Subheading}
\label{sec:subheading}

The first character of a subheading must be uppercase, and other characters must be lowercase. There must be no dot after the last character of any headings or subheadings. 

Headings should not be  chained without any remarks in between. When a new section or sub section or sub sub section is created, greet the reader with the purpose of section and give a brief review of its content and the contents of its sub sections.

\subsubsection{Sub sub heading}
\label{sec:sub-sub-heading}

The same subheading rules apply. A fourth subheading should not be used like 3.2.2.1. If there is a heading, definition etc.\ that you do not want to enumerate, it must be written in italic and there must be ``:” (double dot) after that. \emph{Example:}

\begin{description}
\item[MDB] Main distribution base.
\item[MDB network] the network that is created by main distribution bases and their connection.
\end{description}

\subsection{Bulleting and Indexing}
\label{sec:bulleting-indexing}

\subsubsection{Bulleting}
\label{sec:bulleting}

Use \texttt{itemize} and \texttt{enumerate} environments to create bullet and enumerated lists, respectively. \emph{Example:}

The objectives can be listed in more detail as follows:

\begin{itemize}
\item Measuring the performance of molds, operators and press machines
  where products are produced, in line with the expectations of the
  enterprise.

  \begin{enumerate}
  \item Measuring the molds \index{mold} in which the products are produced, in
    line with the expectations of the enterprise.
  \item Measuring the molds in which the products are produced, in
    line with the citations of the enterprise.
  \end{enumerate}
  
\item A system design \index{system!design} that will allow the measurement of the quality \index{control!quality}
  of all kinds of raw materials, semi-finished products and especially
  the materials from the supplier companies that are processed in
  press machines.

\item All performance analysis \index{analysis!system performance} reports are designed to be available to
  senior management \index{management!senior} in an intranet  environment and include multiple
  user levels (senior management, system management \index{management!system} \index{system!management}  and operators),
  allowing all units to access the data in the fastest way.
\end{itemize}


\subsubsection{Figures and Tables}
\label{sec:figures-tables}

\subsubsection*{Tables}

Tables should be within the specified writing range and should not protrude in any way. The title of the table should be numbered; see Table \ref{tab:materials} as an example, centered on the table and there should be one empty line before and after the table.
\begin{table}[!h]
  \centering
    \caption{Daily average intermediate stock levels in mechanical production.}
    \label{tab:materials}
    \begin{tabular}{ll}
      \toprule
      Material Name & Material Level   \\
      \midrule
      Chasis        & 5,000            \\
      Side Wall     & 15,000-17,000    \\
      Door          & 15,000-17,000    \\
      TOTAL         & 35,000-39,000    \\
      \bottomrule
    \end{tabular}
\end{table}

\subsubsection*{Figures}

Figures should be within the specified writing range and should not protrude in any way. All graphics and photographs except tables should be presented as figures.  Figures should be included in the text and should be legible. The title of the figure should be numbered, centered below the figure; see Figure \ref{fig:ui} as an example, and an empty line should be left before and after the figure.
\begin{figure}[!h]
  \centering
  \includegraphics[width=0.95\textwidth]{figures/ui.png}
  \caption{User interface example}
  \label{fig:ui}
\end{figure}

\subsubsection*{Referencing the tables and figures}

When referring to the figures and tables, the name of the figure and the table can be written in parentheses (Table \ref{tab:materials}), or in the sentence ``as shown in Figure \ref{fig:pressure}''. All the other uses (see table-\ref{tab:materials}, figure: \ref{fig:pressure}) are not correct.

\subsubsection{Mathematical expressions}
\label{sec:math-expr}

The letters and symbols in mathematical expressions are as inline or displayed math environments \cite{lshort}. Inline and displayed math example Wikipedia (\citeyear{wiki:news}):

\begin{quote}
The standard newsvendor profit function \index{newsvendor profit function} \index{problem!newsvendor} is $f(p) = E[p \min(p, D)] - c p$, where $D$ is the random demand with cdf $F$, each unit is sold for price $p$ and purchased for price $c$, the number of units stocked (decision variable) is $q$. The stocking quantity of the newsvendor \index{newsvendor} that maximizes expected profit \index{profit!expected} is given by
$$
q^* = F^{-1}\left( \frac{p-c}{p}\right).
$$

Fertilizer linear programming \index{programming!linear} example \citep{wiki:lin}:
\begin{alignat*}{5}
\text{Maximize} \quad S_1 &x_1 + S_2 &x_2 &&&\quad(\text{maximize the revenue}) \\
\text{s.t} \qquad\\
    & x_1 +  \phantom{} & x_2 &\le L & &\quad (\text{limit on total area}) \\
 F_1& x_1 +         F_2 & x_2 &\le F & &\quad (\text{limit on fertilize}) \\
 P_1& x_1 +         P_2 & x_2 &\le P & &\quad (\text{limit on pesticide}) \\
    & x_1 \ge 0,        & x_2 &\ge 0 & &\quad (\text{cannot plant a negative area}).
\end{alignat*}
\end{quote}

\noindent Another example. This time objective function and constraints are numbered and labeled, so they can be referred in the text without having to remember the equation numbers:
\begin{quote}
	The decision variables are
\begin{align*}
	x_{ij}= 
	\begin{cases}
		1, &\quad \text{if task i is assigned agent $j$},\\
		0, &\quad \text{otherwise,}
	\end{cases}
\end{align*}
for every $i\in I,\;j\in J$, and the model is
\begin{align}
	\min        & \quad \sum_{i \in I}\sum_{j \in J}c_{ij}x_{ij}, \\
	\text{s.t.} & \notag \\
	&\quad \sum_{j \in J}x_{ij} = 1 \quad  \forall i\in I \label{eq:assignconst}\\
	&\quad \sum_{i \in I}a_{ijk}x_{ij} \leq b_{jk} \quad \forall k\in K \quad \forall j\in J, \label{eq:budgetconst}\\
	&\quad x_{ij} \in\{0,1\}\quad\forall i\in I,\; j\in J, \label{eq:binaryconst}
\end{align}
where $I$ is the index set of tasks, $J$ is the index set of agents, and $K$ is the index set of resources used by agents to perform these tasks. $a_{ijk}$ is the amount of resource $k$ used by agent $j$ in performing task $i$, $b_{jk}$ is the amount of resource $k$ available to agent $j$, and $c_{ij}$ is the cost of assigning task $i$ to agent $j$. Constraint \eqref{eq:assignconst} is assigned to exactly one agent, whereas \eqref{eq:budgetconst} is the budget constraint \index{constraint!budget}.
\end{quote}
You can use \texttt{eqnarray, multline, gather, gathered, cases, aligned, split} environments and their \texttt{*}-versions for numbered and unnumbered displayed equations, respectively. You may consult user’s guide for the \texttt{amsmath} package \citep{Society2002} for examples.

\subsubsection{Bibliography}
\label{sec:bibliography}

Bibliography should be included at the end of the report before the appendices. The title of the bibliography should not be numbered and should be written in bold and 12-point. LaTeX will again take care of these requirements.

All articles, books, internet pages etc.\ citations should be included in the text and listed in the bibliography. \textbf{Studies not referred to in the text should not be included in the bibliography.}

\subsubsection{Index}

At the end of the booklet, there will be an index of \textbf{concepts, terms, algorithms, software}, etc.\ used by the projects along with page numbers for the readers to easily reach to the places where they are presented. Do not forget to contribute to the index. 

To add a term and page number to the index, all you have to do is to insert \verb=\index{<index-key>}= into your document near the place where the \verb=<index-key>= is mentioned, defined, or discussed. Check the last page of this report for examples. 

If you have used \textit{minimum spanning tree algorithm}, for example, in your project, then add \verb=\index{algorithm!minimum spanning tree}= near the place where you describe the algorithm and/or how you have used it.  \index{algorithm!minimum spanning tree} The key \emph{minimum spanning tree} and page number will appear under key \textit{algorithm} in the index (check the last page of this report).

If you used \textit{Excel, Python, R, Stan, SQL}, etc to implement your solutions, then near the place where you describe your implementations add \verb=\index{software!Excel}=, \verb=\index{software!Python}=, and so on. \index{software!Excel} \index{software!Python} 
\index{software!R} \index{software!Shiny}

If you have used forecasting methods \textit{arima, ETS, Holt, Holt-Winters}, add \verb=\index{forecasting!arima}=, \verb=\index{forecasting!ETS}=, etc. \index{forecasting!arima}  \index{forecasting!ETS}

For database systems \textit{MS Access, SQLite} add \verb=\index{database!MS Access}=, \index{database!MS Access} \verb=\index{database!SQLite}=;  \index{database!SQLite}. 

Some other key term examples (not exhaustive):

\begin{itemize}
\item	information systems: \textit{MRP, SAP}, \index{information system!SAP} \index{information system!MRP}

\item programming: linear, mixed integer, nonlinear, dynamic, goal, conic
quadratic mixed-integer program \index{programming!MIP} \index{algorithm!policy iteration} \index{programming!dynamic} \index{programming!conic quadratic MIP}

\item algorithms: shortest path, Wagner-Whitin, genetic, apriori, analytical hiearchy processes (AHP)  \index{algorithm!shortest path} \index{algorithm!Wagner-Whitin} \index{inventory!Wagner-Whitin algorithm} \index{analytical hiearchy processes (AHP)}

\item model: stochastic, mathematical \index{model!stochastic} \index{model!linear prog.|see {\emph{programming}}} \index{programming!linear} \index{model!mathematical}

\item optimization: CPLEX, Gurobi, GAMS, Xpress, open-solver \index{optimization!CPLEX} \index{optimization!GAMS} \index{optimization!open-solver} \index{optimization!Gurobi} \index{optimization|seealso {\emph{programming}}} \index{optimization!heuristic}
\index{optimization!XPress}

\item data analysis: linear regression, anova, logistic regression, kNN, SVM, Naive Bayes, clustering, deep learning, neural network, apiori algorithm

\item quality control: Shewart chart 

\item problem: line balancing, assignment, vehicle routing, scheduling, team formation, p-median\index{problem!line balancing} \index{problem!team formation}

\item system: inventory management, supply chain, transportation, FMCG, \index{system!inventory management} \index{inventory!management system}

\item inventory: safety stock,  kardex, \index{inventory!safety stock} \index{kardex}

\item forecasting: sarima, intermittent demand, Croston, seasonality, MASE, MAPE, MAE, MSE

\item scheduling: annual leave, 

\item production planning \index{production planning}

\item supply chain: milk run, network optimization \index{supply chain!milk run} \index{supply chain} \index{supply chain!network optimization}

\item management: disaster \index{management!disaster}

\item constraint: subtour elimination, annual leave \index{constraint!subtour elimination}
\index{constraint!annual leave}

\item terms: cycle time, \index{cycle time},  milk run, bill of materials, configuration change, omni-channel retailing, distribution network design, fashion industry \index{configuration change}   \index{retailing!omni-channel}
\index{distribution network design}
\index{fashion industry}

\end{itemize}

% if there is only one appendix, use \appendix[<title of appendix>] and \subsection* if needed
\appendix

Appendices should start on a separate page. The title should be written in bold and capital letters. All appendices should be labeled consecutively and each one must have a title.

\section{Raw Material Flow Chart}
\label{sec:flowapp}

\begin{figure}[!h]
  \centering
  \includegraphics[width=0.95\textwidth]{figures/flow.png}
  \caption{Raw Material Flow Chart shows that ...}
  \label{fig:flowfig}
\end{figure}

\clearpage
\section{Locations of the Distribution Centers \index{distribution centers}}
\label{sec:locat-distr-cent}

\begin{figure}[!h]
  \centering
  \includegraphics[height=0.75\textheight]{figures/location.png}
  \caption{Solid triangles show the hubs \index{problem!hub location} whereas solid circles are the demand points}
  \label{fig:locfig}
\end{figure}

See \cite{CIBBA06}.

\end{document}

