Help with LQR (optimization assignment)

1 次查看(过去 30 天)
Adam
Adam 2013-12-19
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 个)

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by