Originally posted by: michelco
Hello
I need some help constructing the Q,l and r matrices for a circular constraint using cplexqcp in an MPC application.
The constraint is: (x-x_ref)^2 + (y-y_ref)^2 <= w, where w is the radius of the circle. The system has 7 states, 4 inputs and a slack variable and a prediction horizon of 30, thus the decision variable has (7+4+1)*30 = 360 variables. Since the reference is changing at each step in the horizon I should get 30 constraints, of the form given above (just a slightly different value for the ref's at each step). I just can't seem to construct the matrices correctly, r becoms 30x1, l 30x360 but Q becomes 360x360 which cplexqcp deems to be wrong (which it probably is). Anyone can help me out a little bit?
Best regards MC
#CPLEXOptimizers#DecisionOptimization