-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
| if self.compute_initial_guess_method is not None and self.x_prev is None and self.u_prev is None: | |
| x_guess, u_guess = self.compute_initial_guess(obs) | |
| opti.set_initial(x_var, x_guess) | |
| 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.
adamhall
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request