# Deep learning and optimal control: what’s the connection?

**Optimal control → more stable and accurate deep learning**

$$u_{n+1} = u_n + h \sigma (W_n u_n + b_n)$$

**Deep learning → more efficient optimal control solvers**

For example, the following figure is a slice of a 4D distance function trained with data generated from Eikonal solutions with black dots as sources. This slice shows the shortest distance from each point in a domain(with an obstacle) towards the source (0.3,0.1).