Skip to content

changed: NonLinMPC defaults to transcription=MultipleShooting() - #539

Open
franckgaga wants to merge 11 commits into
mainfrom
nmpc_ms_default
Open

franckgaga wants to merge 11 commits into
mainfrom
nmpc_ms_default

Conversation

@franckgaga

@franckgaga franckgaga commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Warning

This is a breaking change, the default transcription method for NonLinMPC based on LinModel or NonLinModel is now MultipleShooting(), instead of SingleShooting(). The default for NonLinModelDAE is still the collocation method defined in model.transcription, like before.

Four justifications for this breaking change:

  1. This is the "consensus" in the literature: multiple shooting is generally faster and more robust for highly nonlinear models.
  2. From my experiences on the pendulum, the MultipleShooting() is always faster than SingleShooting() (now that the logic is always based on MOI.VectorNonlinearOracle).
  3. It helps convergence from my experiences on the pendulum, especially for funnelsqp and filtersqp presets of UnoSolver.jl.
  4. This is the default transcription method used by MATLAB nlmpc object when the plant model is discrete-time, so this is a smooth transition for people coming from there.

This breaking change can be easily reverted by explicitly specifying transcription=SingleShooting() in NonLinMPC constructor.

Except for `NonLinModelDAE`, in which it defaults to the collocation method defined in `model.transcription`, as it was the case before.
To improve coverage of `SingleShooting` transcription.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant