Sina-97 / ANPC_Control_Microgrid

An adaptive neural predictive controller for microgrid secondary control in Matlab Simulink - Change directory to the folder
8 stars 0 forks source link

Inquiries about error during running #1

Open ZhangYH1999 opened 3 months ago

ZhangYH1999 commented 3 months ago

Hello, sina.

Thanks for sharing the model!

When I'm running the model in the simulink of 2022b and I have changed the directory of Matlab to this folder, but I get an error as follows: Error in 'Adaptive_Neural_Controller_F_V/NN Predictive Controller2/S-Function' while executing MATLAB S-function 'predopt1', flag = 0 (initialize), at start of simulation. Caused by: No system or file called 'ptest3sim21' found.

Do you know why this is happening? Has this happened to you before?

Sina-97 commented 3 months ago

Hello, Thank you for your review and comment. I forgot to add the 'ptest3sim21' file to the repository. I have added it now so you can check it again.