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

updates on algorithms

parent ab9717cf
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ We define $N(a_i)$ the set of neighbouring agents for $a_i$: ...@@ -21,6 +21,7 @@ We define $N(a_i)$ the set of neighbouring agents for $a_i$:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
From an agent's perspective, the MGM algorithm is performed as follows:
\begin{algorithm} \begin{algorithm}
\DontPrintSemicolon \DontPrintSemicolon
...@@ -54,6 +55,7 @@ supervisor ! informValue(self.val) ...@@ -54,6 +55,7 @@ supervisor ! informValue(self.val)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
While from a system-centered perpsective, it goes as such:
\begin{algorithm} \begin{algorithm}
\DontPrintSemicolon \DontPrintSemicolon
...@@ -92,7 +94,7 @@ a boolean b set to true if the goal is miniMax, false if maxiMin} ...@@ -92,7 +94,7 @@ a boolean b set to true if the goal is miniMax, false if maxiMin}
(bestVal, best-$\delta$) $\mapsfrom max($results) \CommentSty{//max over $\delta$ and corresponding v} (bestVal, best-$\delta$) $\mapsfrom max($results) \CommentSty{//max over $\delta$ and corresponding v}
} }
\KwReturn{(bestVal, best-$\delta$)} \KwReturn{(bestVal, best-$\delta$)}
\caption{Evaluate} \caption{evaluate(currentLocalContext, currentValue, domainX, b)}
\label{algo:MGM-evaluate} \label{algo:MGM-evaluate}
\end{algorithm} \end{algorithm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...@@ -115,7 +117,7 @@ a boolean b set to true if the goal is miniMax, false if maxiMin} ...@@ -115,7 +117,7 @@ a boolean b set to true if the goal is miniMax, false if maxiMin}
advice $\mapsfrom$ false advice $\mapsfrom$ false
} }
\KwReturn{advice} \KwReturn{advice}
\caption{Decide} \caption{decide(currentOffer, bestDelta, b)}
\label{algo:MGM-decide} \label{algo:MGM-decide}
\end{algorithm} \end{algorithm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment