Help with LQR (optimization assignment)
1 次查看(过去 30 天)
显示 更早的评论
Hi everybody,
I am working on an assignment where we are asked to minimize objective function (8) subject to constraints (7). We are asked to find the solution analytically. I am trying to use the LQR function in matlab to do this. So I'm trying to use [K, S, e] = LQR(A,B,Q,R) it seems like A and B should be left as they appear, R should be eye(100,100), but what should Q be? I tried Q = jacobian(jacobian(J,U),U), but that didn't work. I guess I should mention that I'm not very good at math and don't really know what I'm doing! Any suggestions would be much appreciated (I'm not even should if the LQR function is really best for this situation!)!
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!