How to train Model Reference Controller

2 visualizzazioni (ultimi 30 giorni)
Ajai Singh
Ajai Singh il 2 Feb 2023
Risposto: Arkadiy Turevskiy il 11 Gen 2024
I have the following simulink model of Active Clamp Flyback Controller and wanted to design a closed loop control but I am running into the following error when using Model reference controller:
Error using /
Matrix dimensions must agree.
Error in nnmodref (line 473)
step_size=ceil(max([min([(rand*(max_r_int-min_r_int)+min_r_int) max_r_int]) min_r_int])/Ts);
Error in nncontrolutil (line 19)
feval(command,varargin{:});
The inputs below generated the above error and I have no clue how the matrix dimensions are mismathcing.
I have attached both the files for reference.
Thank you.
  2 Commenti
Sam Chak
Sam Chak il 3 Feb 2023
HI @Ajai Singh, Can you show the differential equation for the Active Clamp Flyback?
Ajai Singh
Ajai Singh il 7 Feb 2023
I do not have that, so I have the simulink model and was trying to do system identification but I was stuck there and then I closed the loop with a simple PI controller and it works. However, I need to use an optimization based controller such as an LQR or MPC but again they require a system model and that's the reason I used Neural Network based controller so that the controller can learn the dynamics and then I can tune the controller.

Accedi per commentare.

Risposte (1)

Arkadiy Turevskiy
Arkadiy Turevskiy il 11 Gen 2024
Hi.
This block is not actively maintained anymore. Please try Model Reference Adaptive Control block in Simulink Control Design and see if that works for you.

Categorie

Scopri di più su Model Predictive Control Toolbox in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by