Hi
I’m trying to add constraints on the states in Matlab and have a question. I have 6 state variables: [X1, X2, X3, X4, X5, X6], and I want to impose the following three constraints with slack variables:
- X3<100
- X4<100
- X5<100
To implement this in Acados, can I use the following settings?
Code
AcadosConstraints.idxbx = [2, 3, 4];
AcadosConstraints.idxsbx = [2, 3, 4];
AcadosConstraints.ubx = [100, 100, 100];
AcadosConstraints.lbx = -[ACADOS_INFTY, ACADOS_INFTY, ACADOS_INFTY];
Best regards,