What's the purpose of method replaceStageCircular() and cycleProblem()? #288
-
I noticed that this two methods in mpc example: Lines 191 to 192 in 6bd7a8d I noticed that these two methods are included in every MPC problem, including Simple-Robotics/simple-mpc. I personally think Additionally, if my stage_model remains unchanged throughout the entire horizon, can these two methods be omitted? Please forgive me for asking such a simple question, as I have found many examples of using this two methods without commenting on the reason. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello again @Zionshang, You are right, the purpose of The purpose of It doesn't exist on FDDP for... reasons ? I think this is an oversight actually, whoops. We'll fix it in a future release.
You mean, if your problem doesn't change? Once again, when you insert a stage into an aligator problem ( On a personal note, I think overall our API for this is not super clear or particularly ergonomic and I could've done better, it's definitely something we want to fix in the future. |
Beta Was this translation helpful? Give feedback.
-
@ManifoldFR Thank you for the comprehensive explanation - it's exceptionally clear! (・ω・)ノ I still have a small problem though. o(╥﹏╥)o.
When using Way 1 to change stages, is there a corresponding need to adjust the solver's workspace? I notice that Way 2 explicitly requires calling My concern stems from the observation that Way 1 appears to bypass the explicit reset mechanisms required in |
Beta Was this translation helpful? Give feedback.
Yes unfortunately 😬
There's no automatic mechanism at the moment which will adjust the workspace if the user decides to do something like e.g. change a stage's dimensions (add a constraint, etc). There's no shortcut to…