It is a very simple and straight forward question.
I realy need your kind response on this...
for quadratic programming problem MATLAB has the function quadprog..i.e.,
x = quadprog(H,f,A,b)
here i can see H,f,A,b has to be known..i have gone through many literatuers but didnt find any straight forward way to find these four values form a state space system.
for example,
i have
xdot=Ax+Bu
y=Cx
and for QP i have
J=0.5xtranspose H x +ftranspose x
A x