Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added: slightly speed up NonLinMPC and MovingHorizonEstimator #149

Merged
merged 13 commits into from
Jan 15, 2025

Conversation

franckgaga
Copy link
Member

@franckgaga franckgaga commented Jan 14, 2025

  • forcing specialization in the NLP functions by using Vararg{T, N} instead of splatting (see this tip)
  • skipping computations in extended_predictions when possible
  • also improved code reuse in the NLP functions to improve code maintainability

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.88%. Comparing base (0015711) to head (23cfcf5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #149   +/-   ##
=======================================
  Coverage   98.88%   98.88%           
=======================================
  Files          24       24           
  Lines        3751     3766   +15     
=======================================
+ Hits         3709     3724   +15     
  Misses         42       42           

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

@franckgaga franckgaga changed the title Added: improve NonLinMPC and MovingHorizonEstimator performance Added: slightly speed up NonLinMPC and MovingHorizonEstimator Jan 15, 2025
@franckgaga franckgaga merged commit 6613a1e into main Jan 15, 2025
3 of 4 checks passed
@franckgaga franckgaga deleted the fasterNLPfunctions branch January 15, 2025 15:29
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.

2 participants