Repository navigation
changed: algebraic variable at left limit for predicted outputs in MPC and MHE - #466
Merged
Merged
Conversation
This get VERY confusing with ZOH, it's better to be as precise as possible in the notation, and to stick to a convention: - The predicted output, both in MPC and MHE, are computed from the `â0` vectors and `h!` function, ALWAYS corresponding to the left limit of the sampling instants. This convention is intuitive since it's the holding of the inputs for `Ts` seconds that change the predicted outputs. - The variables in `Ā` are strictly reserved for the dynamic function `fq!`. - It does not mean that `â0` vectors are never used in the `fq!`. A notorious exception is the MHE with `p=1` : the last `â0` vector is used in the last trapezoid, for example.
MovingHorizonEstimator
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #466 +/- ##
==========================================
+ Coverage 97.19% 97.21% +0.02%
==========================================
Files 28 28
Lines 6879 6865 -14
==========================================
- Hits 6686 6674 -12
+ Misses 193 191 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This get VERY confusing with zero order hold inputs, it's better to be as precise as possible in the notation, and to stick to this convention everywhere in the codebase:
Caution
The predicted output$\mathbf{\hat{y}}$ , both for MPC and MHE, are computed from the $\mathbf{\hat{a}_0}$ vectors and the
h!function, ALWAYS corresponding to the left limit of the sampling instants (with one single exception, see below).Some details about this convention:
fq!.fq!function. A notorious exception is the MHE withp=1: the lastTrapezoidalCollocationtranscription, bundled in theTrapezoidalCollocationandOrthogonalCollocationdocstrings.direct=false(useless ifdirect=true). Only strictly proper plant models are supported in this package, thus the predicted output at the left limit and at the right limit are equals.