Setting time-varying soft bounds on state from Matlab

Hi :wave:

I am using acados on Matlab, and dealing with time-varying state constraints.
I can successfully change hard constraints from one call to another using ocp_solver.set with parameters constr_lbx constr_ubx, constr_lh, constr_uh, but how to do the same for soft state constraints ?
The Python Interface mention lsbx, usbx, etc. for the set function, is it maybe that it is not implemented in Matlab, or am I missing something ?

Best regards, and warm thanks for this wonderful optimal control package :slight_smile:

Hi :waving_hand:

you still set constr_lbx, constr_ubx, etc. The values lsbx are the bounds on the slacks which shouldn’t be adapted.

Best, Katrin

1 Like