Skip to content
Snippets Groups Projects
Commit 6e2f343a authored by Alex's avatar Alex
Browse files

dalek example over

parent be30349d
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ Again, just like in our previous example, we shall consider agent and variable t ...@@ -23,7 +23,7 @@ Again, just like in our previous example, we shall consider agent and variable t
In our example, the cost function will be defined as a maximisation of the surveillance space covered. In our example, the cost function will be defined as a maximisation of the surveillance space covered.
In this case, Daleks who are the only ones capable of covering an area should be highly rewarded for doing so, and areas which can be covered by two Daleks who can also cover another area should ultimately be surveiled only by one of them. In this case, Daleks who are the only ones capable of covering an area should be highly rewarded for doing so, and areas which can be covered by two Daleks who can also cover another area should ultimately be surveiled only by one of them.
Considering the position of the 5 Daleks, we can model the prolem as the following constraints graph: Considering the position of the 5 Daleks, we can model the prolem as the following constraints graph (see \ref{fig:dalek}):
\begin{figure} \begin{figure}
\centering \centering
...@@ -46,7 +46,7 @@ Considering the position of the 5 Daleks, we can model the prolem as the followi ...@@ -46,7 +46,7 @@ Considering the position of the 5 Daleks, we can model the prolem as the followi
\label{fig:dalek} \label{fig:dalek}
\end{figure} \end{figure}
With utility functions modeled as follows, translating the necessity to cover a maximal number of zones. With utility functions modeled as given in \ref{tab:dalek-utilities}, translating the necessity to cover a maximal number of zones.
\begin{table}[ht] \begin{table}[ht]
...@@ -227,11 +227,6 @@ Considering the position of the 5 Daleks, we can model the prolem as the followi ...@@ -227,11 +227,6 @@ Considering the position of the 5 Daleks, we can model the prolem as the followi
\end{tabular} \end{tabular}
\caption{Binary utility functions according to surveillance directions} \caption{Binary utility functions according to surveillance directions}
\label{tab:dalek-utilities} \label{tab:dalek-utilities}
\end{table} \end{table}
...@@ -420,6 +415,9 @@ Considering the position of the 5 Daleks, we can model the prolem as the followi ...@@ -420,6 +415,9 @@ Considering the position of the 5 Daleks, we can model the prolem as the followi
\subsection{Modelling of the problem with SCADCOP API} \subsection{Modelling of the problem with SCADCOP API}
This problem can be modelled as follows with the scadcop library.
\begin{lstlisting} \begin{lstlisting}
object DalekSurveillanceSystem extends App { object DalekSurveillanceSystem extends App {
val n = NominalValue("North") val n = NominalValue("North")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment