This code identifies an ARX model of a system using Genetic Algorithms method in a GUI interfcae and compares the identified model with the model generated using the Least Error method.
The real system O/P, GA model generated O/p and Least Error model O/P are all compared in a single plot, while the Sum of Absolute Error is calculated and displayed for both models for comparison.
GA parameters are initialized with default parameters, but could easily be modified from the GUI interface.
The GUI is initialized with a ready I/P and O/P data and ARX orders as well, so you can hit "Estimate Model" to test the code without having to generate I/O data. (you can replace this data with your own)
Sam Elshamy (2020). System Identification using GA with a GUI interface (https://www.mathworks.com/matlabcentral/fileexchange/11576-system-identification-using-ga-with-a-gui-interface), MATLAB Central File Exchange. Retrieved .
Does anyone know to export data from this gui to workspace.
Can I use the GUI with 2014a
When I tried it I get the following error:
Attempt to reference field of non-structure array.
Error in identga>estimate_Callback (line 93)
if get(handles.estimate, 'value') == get(handles.estimate, 'max');
Error in gui_mainfcn (line 95)
Error in identga (line 48)
Error while evaluating uicontrol Callback
i have a question about this code..what is the type of selection method used here ??
great work, excellent for explaining the use of GA in a simple, yet interesting application.
Also a very good and intuitive GUI.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!