Skip to content

No initial guess in linear MPC #177

@tfarger

Description

@tfarger

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

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.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions