Skip to content

Conversation

@franckgaga
Copy link
Member

Applies to LinearMPC, NonLinMPC and MovingHorizonEstimator
getinfo is an expensive function but as mentioned in the doc, the function is not called at all when debug logging is disabled.

It can be useful to get additionnal context in github CI. It theoretically allows the user to save the debug logging with full context in a separate file.

Before this change, I was only showing JuMP.solution_summary in the debug log.

the `Union` type was overly complex and `getinfo` should not be used in "normal" operation, only for troubleshoothing. The computational performance are not that important (there is already many allocations in this function)
The full output without ellipsis can still be shown in the REPL with the following logger:
`debuglogger = ConsoleLogger(stderr, Logging.Debug, show_limited=false)`
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 98.88%. Comparing base (3ed42e4) to head (371a150).

Files with missing lines Patch % Lines
src/controller/execute.jl 75.00% 1 Missing ⚠️
src/estimator/mhe/execute.jl 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #152      +/-   ##
==========================================
- Coverage   98.88%   98.88%   -0.01%     
==========================================
  Files          24       24              
  Lines        3766     3765       -1     
==========================================
- Hits         3724     3723       -1     
  Misses         42       42              

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

@franckgaga franckgaga merged commit 84f6688 into main Jan 23, 2025
3 of 4 checks passed
@franckgaga franckgaga deleted the debug_moreinfo branch January 23, 2025 21:50
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