Skip to content

Conversation

@franckgaga
Copy link
Member

@franckgaga franckgaga commented Sep 7, 2025

This is a preview of the new printed string:

NonLinMPC controller with a sample time Ts = 0.1 s:
├ estimator: UnscentedKalmanFilter
├ model: NonLinModel
├ optimizer: Ipopt 
├ transcription: TrapezoidalCollocation
├ gradient: AutoForwardDiff
├ jacobian: AutoSparse (AutoForwardDiff, TracerSparsityDetector, GreedyColoringAlgorithm)
└ dimensions:
  ├ 20 prediction steps Hp
  ├  2 control steps Hc
  ├  0 slack variable ϵ (control constraints)
  ├  1 manipulated inputs u (1 integrating states)
  ├  3 estimated states x̂
  ├  1 measured outputs ym (0 integrating states)
  ├  0 unmeasured outputs yu
  └  0 measured disturbances d

The NonLinModel, ExtendedKalmanFilter, MovingHorizonEstimator and NonLinMPC now also print the differentiation backends.

I also renamed $\epsilon$ to $\varepsilon$ for the slack variable of MovingHorizonEstimator, to use a different symbol than MPCs in the pretty-print string and in the documentation. I added a deprecated field in getinfo(estim) to avoid breaking changes.

@franckgaga franckgaga changed the title added: clearer pretty-print of objects with trees added: clearer pretty-print of objects with trees + print differentiation backends Sep 7, 2025
@franckgaga franckgaga changed the title added: clearer pretty-print of objects with trees + print differentiation backends added: clearer pretty-print with trees + print differentiation backends Sep 7, 2025
To use a different symbol than MPC slack variable.
Added a deprecated `:ϵ` field in `getinfo(estim)` to avoid breaking changes
@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.60%. Comparing base (f2f5b2e) to head (ff3289d).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #244      +/-   ##
==========================================
+ Coverage   98.56%   98.60%   +0.03%     
==========================================
  Files          26       26              
  Lines        4403     4435      +32     
==========================================
+ Hits         4340     4373      +33     
+ Misses         63       62       -1     

☔ View full report in Codecov by Sentry.
📢 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 merged commit 77163a7 into main Sep 7, 2025
4 of 5 checks passed
@franckgaga franckgaga deleted the prettier_print branch September 16, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants