A fractional order PID controller is tuned using genetic algorithm , to control the speed of DC motor
- GA folder contains the code.
- Results and Screenshot folder contains the scrrenshots of tuning and results.
- Simulink_Models contains the simulink model
- Open matlab. Enter the command pathtool and then add the FOPID-tuner-using-GA/GA/extall-fomcon-matlab-a3f77e8-ToolBOX folder.
- Open file pid_omtimzation.
- Open the optimzation toolbox from the apps in the matlab folder.
- Selct option Genetic Algorithm in solver option and set the fitness function as showin the image optimization_-toolbox-paramete- setting.png, stored in the results and screenshots folder.
- Start tuning.
- Do the first step of running the project.
- Open model fractionalPID_with_dc_motor.slx from the Simulink_Models folder in the simulink.
- The physical parameters of DC motor must be present in the workspace before running the model. Set the following parameters in the workspace: J = 0.01; b = 0.1; K = 0.01; R = 1; L = 0.5;
- Set the values of paramters of Fraction Order PID by doubble right click on the Fractional PID Block.
- Run