Infinite Horizon Discrete-Time LQR

https://en.wikipedia.org/wiki/Linear%E2%80%93quadratic_regulator