You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There currently is no initial guess implemented in LinearMPC.
In regular nonlinear MPC there is an initial guess computation using either ipopt or a constant LQR gain, that sets the initial values of the solver at the first time step, see
opti.set_initial(u_var, u_guess) # Initial guess for optimization problem.
This is not implemented in the LinearMPC class
I am not sure if the initial guess is needed in the linear MPC. I think the MPC solver should get the same result in the first time step without initial guess. It could be useful for solver performance or something similar.
The text was updated successfully, but these errors were encountered:
The recent MPC PR MPC warm-starting and acados implementation #161, to some extent, focuses on improving the runtime. The warm-starting for linear MPC is not prioritized since it runs sufficiently fast.
Also, I was hesitant about whether warm-starting linear MPC with a nonlinear ipopt solution makes sense because the linear MPC will satisfy only the linearized dynamics instead of the nonlinear one. But I guess it will be better than not using it.
In general, we could have the initial guess computation for completeness if you don't find any evidence against it. If you agree we should have it, please react with a thumb-up, and then I will add it.
There currently is no initial guess implemented in LinearMPC.
In regular nonlinear MPC there is an initial guess computation using either ipopt or a constant LQR gain, that sets the initial values of the solver at the first time step, see
safe-control-gym/safe_control_gym/controllers/mpc/mpc.py
Lines 340 to 343 in 253f25c
This is not implemented in the LinearMPC class
I am not sure if the initial guess is needed in the linear MPC. I think the MPC solver should get the same result in the first time step without initial guess. It could be useful for solver performance or something similar.
The text was updated successfully, but these errors were encountered: