Skip to content

added: InternalModel now supports NonLinModelDAE - #491

Merged
franckgaga merged 3 commits into
mainfrom
imc_dae
Oct 28, 2026
Merged

franckgaga merged 3 commits into
mainfrom
imc_dae

Conversation

@franckgaga

@franckgaga franckgaga commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

The InternalModel estimator just runs the simulations in open loop. It doesn't care how the simulations are computed. It can be therefore a linear description, a nonlinear ODE or a nonlinear DAE. Note that for the DAE case, simulating the model in open-loop means solving nonlinear root problems using Ipopt.jl by default. More precisely:

  • One single root solving in preparestate! (to compute the current algebraic variable and then the predicted outputs)
  • One single root solving in updatestate! (to update the differential states)

This PR introduces the support for NonLinModelDAE in the InternalModel estimator, to implement a NonLinMPC with an internal model structure. Note that the same limitations apply: it does not support unstable or integrating plant model.

@codecov-commenter

codecov-commenter commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.18%. Comparing base (b8c9964) to head (900d0d6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #491      +/-   ##
==========================================
+ Coverage   97.15%   97.18%   +0.03%     
==========================================
  Files          28       28              
  Lines        6987     6995       +8     
==========================================
+ Hits         6788     6798      +10     
+ Misses        199      197       -2     
Flag Coverage Δ
unittests 97.18% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@franckgaga franckgaga changed the title added: InternalModel supports NonLinModelDAE added: InternalModel now supports NonLinModelDAE Oct 27, 2026
@franckgaga
franckgaga merged commit 55ed356 into main Oct 28, 2026
17 of 18 checks passed
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.

2 participants