Closed loop control of an LSTM model plant using MPC causing an algebraic loop error
Hi there,
I am trying to use a trained RNN LSTM model as a plant of a dynamic system and want to control one of the outputs (MPW) using MPC. I have 4 inputs (including 1 manipulated and 3 measured). When I set everything in Simulink, it generates an error as below:
Here is the plant subsystem for your review:
And the main system:
It is generating an algebraic loop error since fullstate RNN prediction block is using states (At least I think the reason is that). Does this mean that I cannot use full state prediction to generate the LSTM predictions in a closed-loop control? If so, how can I let the model know the temporal dependency and dynamics of the process?
Best regards,
MostafaHi there,
I am trying to use a trained RNN LSTM model as a plant of a dynamic system and want to control one of the outputs (MPW) using MPC. I have 4 inputs (including 1 manipulated and 3 measured). When I set everything in Simulink, it generates an error as below:
Here is the plant subsystem for your review:
And the main system:
It is generating an algebraic loop error since fullstate RNN prediction block is using states (At least I think the reason is that). Does this mean that I cannot use full state prediction to generate the LSTM predictions in a closed-loop control? If so, how can I let the model know the temporal dependency and dynamics of the process?
Best regards,
Mostafa Hi there,
I am trying to use a trained RNN LSTM model as a plant of a dynamic system and want to control one of the outputs (MPW) using MPC. I have 4 inputs (including 1 manipulated and 3 measured). When I set everything in Simulink, it generates an error as below:
Here is the plant subsystem for your review:
And the main system:
It is generating an algebraic loop error since fullstate RNN prediction block is using states (At least I think the reason is that). Does this mean that I cannot use full state prediction to generate the LSTM predictions in a closed-loop control? If so, how can I let the model know the temporal dependency and dynamics of the process?
Best regards,
Mostafa mpc, algebraic loop, lstm model MATLAB Answers — New Questions