Skip to content

added: MovingHorizonEstimator with bound constraints on the algebraic variable â - #532

Merged
franckgaga merged 9 commits into
mainfrom
mhe_alg_bounds
Nov 27, 2026
Merged

franckgaga merged 9 commits into
mainfrom
mhe_alg_bounds

Conversation

@franckgaga

@franckgaga franckgaga commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

It's now possible to add bound constraint on the estimates of the algebraic variable $\mathbf{\hat{a}}$. They can be fixed or time-varying. The method setconstraint!(mhe::MovingHorizonEstimtor) now accepts these new keyword arguments:

  • âmin=fill(-Inf,na) / âmax=fill(+Inf,na) : estimated algebraic variable bound $\mathbf{\hat{a}_{min/max}}$
  • c_âmin=fill(0.0,na) / c_âmax=fill(0.0,na) : âmin / âmax softness weight $\mathbf{c_{\hat{a}_{min/max}}}$

or, for the time-varying option, the first letter is uppercase:

  • Âmin / Âmax / C_âmin / C_âmax : $\mathbf{\hat{A}_e}$ constraints (na*(He+1),).

I slightly modified the notation in setconstraint! extended help. The estimated state and algebraic vector over the estimation horizon is now denoted with $\mathbf{\hat{X}_e}$ and $\mathbf{\hat{A}_e}$, respectively. They are timeseries that include the arrival estimate (He+1 datapoints), which is in fact the extended vector, as used in the custom nonlinear constraint function $\mathbf{g_c}$.

@codecov-commenter

codecov-commenter commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.77778% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.60%. Comparing base (9c54825) to head (e64897d).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/estimator/mhe/construct.jl 71.42% 18 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #532      +/-   ##
==========================================
- Coverage   98.77%   98.60%   -0.17%     
==========================================
  Files          30       30              
  Lines        7172     7234      +62     
==========================================
+ Hits         7084     7133      +49     
- Misses         88      101      +13     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@franckgaga
franckgaga merged commit 0fd65e0 into main Nov 27, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants