Declaring discretized state space model as constraint

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

If that’s your model, that’s your model. iI looks like it could be right. But the forum readers don’t know what your model is supposed to be, so can’t say for sure whether you did it right.