Using LSTM network in Nonlinear MPC design?
Ältere Kommentare anzeigen
Hello everyone,
I would like to identify a system that has three inputs [u_1(k) u_2(k) y(k-1)] and single output as y(k) using LSTM time series estimation. I have a couple of questions regarding the implementation of this model in nonlinear MPC.
Based on the documentation of NMPC, I need to define a function for a state called StateFcn and an output called OutputFcn. As my model is based on the LSTM network, I was wondering how I can do that? Unfortunately, I couldn't find any example when I dig more into it. It worth mentioning that I am using GT-suit co-simulation as a virtual test machine, and I am going to implement this LSTM-based MPC to that.
Thank you in advance for your help.
3 Kommentare
Ze Liu
am 25 Dez. 2022
Hi Armin
Have you solved this problem? If so, can you please share the solution?
You can contact me via email:mrliuze@163.com
Thank you very much!
Dun-Ren Liu
am 26 Dez. 2022
I face the same problem.can you please share the solution?
thanks~
MD RAHAT
am 14 Sep. 2023
I am having exactly same problem. Can you please guide me a little if you have found the solution to it
Antworten (1)
Niccolò Dal Santo
am 30 Jul. 2021
0 Stimmen
Hi Armin,
If I understand correctly you'd want train an LSTM for a time series with feedback. You can follow this example which shows how do that:
You should define your inputs as a three-elements vector ([u_1(k) u_2(k) y(k)], hence numFeatures = 3), one response and train your LSTM accordingly.
For further reading, here is an example for training an LSTM with more than one input feature: https://www.mathworks.com/help/deeplearning/ug/sequence-to-sequence-regression-using-deep-learning.html
Hope this helps.
Cheers,
Niccolò
1 Kommentar
Armin Norouzi
am 17 Aug. 2021
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!