I’m using the acados matlab interface for a heavy duty truck model. As a time dependent model is quite uncomfortable regarding vehicle trajectory planning I try setting a spatial model. Unfortunately acados get’s problems when I add the location dependency. I have reduced my model to velocity only:
v = SX.sym(‘v’);
x = vertcat( v );
vdot = SX.sym(‘vdot’);
x_dot = vertcat( vdot );
F_drive = SX.sym(‘F_drive’);
u = vertcat(F_drive);
dv = F_drive / (mass * v);
and restricted the velocity between 1 and 27 m/s, as well as the engine force between zero and a positive maximum. The initial velocity is 1, y and y_e are 25 m/s. Running this minimal model with a sqp-solver at standard settings results in solver error 4, which is a qp-error. This means the problem is misconditioned or not solvable. Can you help me fix this?
did you initialize the solver explicitly?
This can definitely help.
Also, the problem can be infeasible due to some constraints, which you could formulate as soft constraints.