LQR with CVXPY

Holy crap this was easy.

And I was able to easily add a constraint on the available force. Hot damn. It is a ridiculously tiny problem I guess, but still pretty damn cool. 0.002 second runtime.

 

One thought on “LQR with CVXPY”

  1. Thanks very much for sharing this snippet, it was very useful to figure out how to use the quadform() function.

Leave a Reply

Your email address will not be published. Required fields are marked *