I wanted get feedback from the experts in the community.
I declared constraint as follows. dq is the initial condition for state x.
subject to
x(1,1)==dq(1);
x(2,1)==dq(2);
x(3,1)==dq(3);
x(4,1)==dq(4);
for k=1:N-1
x(:,k+1)==A*x(:,k)+B*u(:,k);
end
I could solve the problem but I want to get feedback if I don’t it right.
Thank you in advance.
Much appreciated