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

Warning preparestate!, debug InternalModel, reduce alloc PredictiveController #102

Merged
merged 8 commits into from
Sep 18, 2024

Conversation

franckgaga
Copy link
Member

@franckgaga franckgaga commented Sep 17, 2024

  • added: print warning if preparestate! is called after moveinput! or evaloutput with current estimators
  • added: reduce allocations with moveinput! calls with new buffer objects
  • debug: evaloutput on InternalModel now include current stochastic estimate $\mathbf{\hat{y}_s}$
  • test: add test to verify evaloutput correctness on InternalModel
  • test and precompile: add preparestate! where needed to avoid the warnings

To avoid possible confusion with MHE `p` constant
…c estimate

removed: `evalŷ` method (useless with new `preparestate!`)
added: warning if `evaloutput` is called before `preparestate!` with current estimators
added: warning if `moveinput!` is called before `preparestate!`with current estimators
tests: calling `preparestate!` where needed to avoid the warnings
@franckgaga franckgaga changed the title Code cleanup, debug InternalModel and reduce alloc PredictiveController Warning preparestate!, debug InternalModel, reduce alloc PredictiveController Sep 17, 2024
@franckgaga franckgaga merged commit 58e4f1e into main Sep 18, 2024
3 of 4 checks passed
@franckgaga franckgaga deleted the cleanup_&_mpc_lessalloc branch September 18, 2024 14:47
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.

1 participant