\section{eo\-VRPUtils Namespace Reference}
\label{namespaceeo_v_r_p_utils}\index{eoVRPUtils@{eoVRPUtils}}
A set of structures and utility functions for the VRP-TW problem.  


\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \bf{Client\-Data}
\begin{CompactList}\small\item\em Information regarding each client in the dataset. \item\end{CompactList}\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef \bf{eo\-VRPUtils::Client\-Data} \bf{Client\-Data\-T}\label{namespaceeo_v_r_p_utils_7e63908fdf744829e9f781fbd4e84157}

\begin{CompactList}\small\item\em Renaming of struct \doxyref{Client\-Data}{p.}{structeo_v_r_p_utils_1_1_client_data}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \bf{compute\-Distances} ()
\begin{CompactList}\small\item\em Computes the distance between two clients. \item\end{CompactList}\item 
void \bf{get\-Time\-Window} (unsigned \_\-client, double \&\_\-ready\-Time, double \&\_\-due\-Time, double \&\_\-service\-Time)
\begin{CompactList}\small\item\em Returns the time window information of a given client. \item\end{CompactList}\item 
float \bf{distance} (unsigned \_\-from, unsigned \_\-to)
\begin{CompactList}\small\item\em A function to get the distance between two clients. \item\end{CompactList}\item 
float \bf{polar\-Angle} (unsigned \_\-from, unsigned \_\-to)
\begin{CompactList}\small\item\em Computes de polar angle between clients. \item\end{CompactList}\item 
void \bf{load} (const char $\ast$\_\-file\-Name)
\begin{CompactList}\small\item\em Loads the problem data from a given file. \item\end{CompactList}\item 
void \bf{print\-Route} (const Route \&\_\-route)
\begin{CompactList}\small\item\em Prints a route to the standard output. \item\end{CompactList}\item 
void \bf{print\-Routes} (Routes \&\_\-routes)
\begin{CompactList}\small\item\em Prints a set of routes to the standard output. \item\end{CompactList}\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
static std::vector$<$ \bf{Client\-Data\-T} $>$ \bf{clients}\label{namespaceeo_v_r_p_utils_cca56d985813005c1859bf4965b00308}

\begin{CompactList}\small\item\em Vector to store clients's information. \item\end{CompactList}\item 
static std::vector$<$ std::vector$<$ double $>$ $>$ \bf{dist}\label{namespaceeo_v_r_p_utils_e2976c5bc5da08aca013ebaf87196ee1}

\begin{CompactList}\small\item\em Distance matrix. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
A set of structures and utility functions for the VRP-TW problem. 

\subsection{Function Documentation}
\index{eoVRPUtils@{eo\-VRPUtils}!computeDistances@{computeDistances}}
\index{computeDistances@{computeDistances}!eoVRPUtils@{eo\-VRPUtils}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void eo\-VRPUtils::compute\-Distances ()}\label{namespaceeo_v_r_p_utils_f09f4dc5739c56f1a30a3ae8532502d3}


Computes the distance between two clients. 

The computed distances will be stored in dist. 

Definition at line 108 of file eo\-VRPUtils.h.

References clients, and dist.

Referenced by load().\index{eoVRPUtils@{eo\-VRPUtils}!getTimeWindow@{getTimeWindow}}
\index{getTimeWindow@{getTimeWindow}!eoVRPUtils@{eo\-VRPUtils}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void eo\-VRPUtils::get\-Time\-Window (unsigned {\em \_\-client}, double \& {\em \_\-ready\-Time}, double \& {\em \_\-due\-Time}, double \& {\em \_\-service\-Time})}\label{namespaceeo_v_r_p_utils_a2926351e32e88b8c477c15537c41e1c}


Returns the time window information of a given client. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-client}]The client whose information we want to know. \item[{\em \_\-ready\-Time}]Return value. The beginning of the client's time window. \item[{\em \_\-due\-Time}]Return value. The end of the client's time window. \item[{\em \_\-service\-Time}]Return value. The client's service time. \end{description}
\end{Desc}


Definition at line 139 of file eo\-VRPUtils.h.

References clients.

Referenced by eo\-VRP::decode(), and eo\-VRPInit::evaluate\-Insertion().\index{eoVRPUtils@{eo\-VRPUtils}!distance@{distance}}
\index{distance@{distance}!eoVRPUtils@{eo\-VRPUtils}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}float eo\-VRPUtils::distance (unsigned {\em \_\-from}, unsigned {\em \_\-to})}\label{namespaceeo_v_r_p_utils_b9df85a56a60d65bc6c127b959319d7b}


A function to get the distance between two clients. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-from}]The first client. \item[{\em \_\-to}]The second client. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The distance between \_\-from and \_\-to. \end{Desc}


Definition at line 157 of file eo\-VRPUtils.h.

References clients, and dist.

Referenced by eo\-VRP::decode(), eo\-VRPInit::evaluate\-Insertion(), eo\-VRPInit::select\-Best\-Client\-As\-Seed(), eo\-VRPInit::select\-Cheapest\-Client(), and eo\-VRPInit::select\-Farthest\-Client\-As\-Seed().\index{eoVRPUtils@{eo\-VRPUtils}!polarAngle@{polarAngle}}
\index{polarAngle@{polarAngle}!eoVRPUtils@{eo\-VRPUtils}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}float eo\-VRPUtils::polar\-Angle (unsigned {\em \_\-from}, unsigned {\em \_\-to})}\label{namespaceeo_v_r_p_utils_4d6ec814ae3e31508ebc6f51eeefb8a7}


Computes de polar angle between clients. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-from}]The first client. \item[{\em \_\-to}]The second client. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The polar angle between \_\-from and \_\-to. \end{Desc}


Definition at line 174 of file eo\-VRPUtils.h.

References clients.

Referenced by eo\-VRPInit::select\-Cheapest\-Client().\index{eoVRPUtils@{eo\-VRPUtils}!load@{load}}
\index{load@{load}!eoVRPUtils@{eo\-VRPUtils}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void eo\-VRPUtils::load (const char $\ast$ {\em \_\-file\-Name})}\label{namespaceeo_v_r_p_utils_3ce087ce36a197c4fce6419e71ae3d41}


Loads the problem data from a given file. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-file\-Name}]The file to load data from. \end{description}
\end{Desc}
\begin{Desc}
\item[Warning:]No error check is performed! \end{Desc}


Definition at line 199 of file eo\-VRPUtils.h.

References clients, and compute\-Distances().\index{eoVRPUtils@{eo\-VRPUtils}!printRoute@{printRoute}}
\index{printRoute@{printRoute}!eoVRPUtils@{eo\-VRPUtils}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void eo\-VRPUtils::print\-Route (const Route \& {\em \_\-route})}\label{namespaceeo_v_r_p_utils_98b134f2b63fe5ed3155b0379a5fb912}


Prints a route to the standard output. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-route}]The route to print. \end{description}
\end{Desc}


Definition at line 241 of file eo\-VRPUtils.h.\index{eoVRPUtils@{eo\-VRPUtils}!printRoutes@{printRoutes}}
\index{printRoutes@{printRoutes}!eoVRPUtils@{eo\-VRPUtils}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void eo\-VRPUtils::print\-Routes (Routes \& {\em \_\-routes})}\label{namespaceeo_v_r_p_utils_57f6a32cc66da26d57459a1560e6ee5d}


Prints a set of routes to the standard output. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-routes}]The set of routes to print. \end{description}
\end{Desc}


Definition at line 264 of file eo\-VRPUtils.h.