Robotics, Programming, Cpp.
where Q and R are positive semi-definite matrices. The difference here is that the summation extends to infinity, indicating that the cost is being minimized over an infinite time horizon. The optimal control input uk​ in LQR is given by a linear state feedback control law: ​where K is the optimal