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:07:34 +02:00
parent f9cdad4e4f
commit 14e85b383e
2 changed files with 2 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before After
Before After

View file

@ -23,7 +23,8 @@
\Statex Actions $\mathcal{A} = \{1, \dots, n_a\},\qquad A: \mathcal{X} \Rightarrow \mathcal{A}$
\Statex Cost function $g: \mathcal{X} \times \mathcal{A} \rightarrow \mathbb{R}$
\Statex Horizon $N$
\Procedure{DynamicProgramming}{$\mathcal{X}$, $A$, $g$, $N$}
\Statex Discounting factor $\alpha \in [0, 1]$
\Procedure{DynamicProgramming}{$\mathcal{X}$, $A$, $g$, $N$, $\alpha$}
\State $J_N(x) \gets g_N(x) \quad \forall x \in \mathcal{X}$
\For{$k = N - 1$ to $0$}
\For{$x \in \mathcal{X}$}