2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

Improve pseudocode

This commit is contained in:
Martin Thoma 2016-08-02 16:08:01 +02:00
parent 14e85b383e
commit 45e56d0320
5 changed files with 4 additions and 2 deletions

View file

@ -26,7 +26,7 @@
\Procedure{PolicyIteration}{$\mathcal{X}$, $A$, $g$, $f$}
\State Initialize $\pi$ arbitrarily
\While{$\pi$ is not converged}
\State $J \gets$ solve system of linear equations $I - \alpha \cdot F(\pi) \cdot J = g(\pi)$
\State $J \gets$ solve system of linear equations $(I - \alpha \cdot F(\pi)) \cdot J = g(\pi)$
\For{$x \in \mathcal{X}$}
\For{$a \in A(x)$}