Skip to content

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
@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.

2 participants