-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix type instability in LinMPC
and NonLinMPC
(introduced in 1.1.0)
#130
Conversation
`ControllerConstraint{NT}` is no longer concrete `ControllerConstraint{NT, GCfunc}` is
oh well it happens! I will work on that a little bit tomorrow. But I have a party on Saturday. so not Saturday. And not Sunday while we're at it XD 🎉 🎉 🎉 |
It's a common pitfall. Ways to protect yourself against future such changes are
|
Yeah I'll implement your second option instead. I did not know that |
LinMPC
and NonLinMPC
(introduced in 1.2.0) LinMPC
and NonLinMPC
(introduced in 1.1.0)
- it's dangerous with `setmodel!` (if `L_Hp` change, `noR̂u` can be incorrect - the code is simpler (no branching) - computational gains are negligible
…s (bis) the matrices `buffer.Ẽ` and `buffer.S̃` are added to store intermediary results
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #130 +/- ##
==========================================
- Coverage 98.99% 98.99% -0.01%
==========================================
Files 24 24
Lines 3676 3675 -1
==========================================
- Hits 3639 3638 -1
Misses 37 37 ☔ View full report in Codecov by Sentry. |
ControllerConstraint{NT}
is no longer concreteControllerConstraint{NT, GCfunc}
is