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.