Robotics, Programming, Cpp.
control gain matrix. The optimal control gain can be obtained by solving the discrete-time algebraic Riccati equation: where P is the solution to the Riccati equation. Once P is obtained, the optimal control gain K is given by: The example I solve can be formulated as follows, Inverted pendulum (by