forked from harryzhangOG/Deep-RL-Notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathilqr.tex
More file actions
14 lines (14 loc) · 668 Bytes
/
Copy pathilqr.tex
File metadata and controls
14 lines (14 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
\begin{algorithm}[t!]
\caption{Iterative LQR (iLQR)}
\begin{algorithmic}[1]
\label{alg:ilqr}
\WHILE{until convergence}
\STATE $F_t = \nabla_{x_t,u_t}f(\delta x_t, \delta u_t)$
\STATE $C_t = \nabla^2_{x_t,u_t}c(\delta x_t, \delta u_t)$
\STATE $c_t = \nabla_{x_t,u_t}c(\delta x_t, \delta u_t)$
\STATE Run LQR backward recursion on state $\delta x_t = x_t - \hat{x_t}$ and action $\delta u_t = u_t - \hat{u_t}$
\STATE Run forward pass with real nonlinear dynamics and $u_t = K_t(x_t-\hat{x_t}) + k_t + \hat{u_t}$
\STATE Update $\hat{x_t}$ and $\hat{u_t}$ based on states and actions in forward pass
\ENDWHILE
\end{algorithmic}
\end{algorithm}