https://technicalsource9.medium.com/how-to-design-lqr-controller-with-time-variable-parameters-5aea7ea9154c