Position Control of DC Motor Using Genetic Algorithm Based PID Controller
Position Control of DC Motor Using Genetic Algorithm Based PID Controller
Sri Ram(08981A0264
ADVANTAGES OF DC MOTOR
Ease of control. Quick starting, stopping, reversing and acceleration. Delivers high starting torque DC motors are conveniently portable and well suited to special applications such as traction.
CONTROL OF DC MOTORS
Speed control Controlling the Dc Motor based on its speed is called speed control. Flux control method
CONTROLLERS
Proportional Controllers. Integral Controllers. Proportional-Plus-Integral Controllers. Proportional-Plus-Derivative Controllers. Proportional-Plus-Integral-Plus-Derivative Controllers.
PID CONTROLLER
For control over steady state and transient errors we use a PID controller. The transfer function of a PID controller is given as, D(S)=Kp+K/s+KdS
In order to get acceptable performance the constants Kp, Kd and Ki must be adjusted. This adjustment process is called tuning the controller
Second method uses ultimate gain and ultimate period of oscillation to determine the characteristics.
tf1 = tf(num1,den1)
responseZN = stepoinfo(tf1)
FITNESS FUNCTION
Genetic Algorithm is an iterative process where the operation is made on a set of individuals each time. These individual values are nothing but the values that are best suited for the best results. Fitness function is the main function which is the base of the Genetic Algorithm, all the calculations are based on the fitness values obtained from the fitness function. Fitness function gives the fitness value for each set of individuals and the future generations are made from those obtained best fittest value.
GA TOOLBOX
GA tool box is obtained by typing gatool in the command window in the Matlab.
GA TOOLBOX
In order to solve a problem using the GA Toolbox we need to give certain inputs to it, they are Fitness Function Number of unknown variables The lower and upper bounds of each of the variables After giving these values there will be a start button which is used to start the genetic algorithm process.
The final best values are displayed in the box named Final Point below the result panel.
SELECTION
Selection of the initial individuals in the GA toolbox is done by something called the random number generator which is present in the Matlab. GA mainly runs on the basis of the fitness values obtained after each iteration and the reproduction is done based on those individual fitness values to create best offspring's. In GA toolbox we need to specify the following in this criteria Fitness scaling Rank based
REPRODUCTION
After obtaining the fitness values of the first generation we need to reproduce these values of each individual obtained in the first generation to create offspring's. In GA toolbox we need to specify the following in this criteria Crossover Fraction 0.9 Mutation function Constrain dependent Crossover function Single Point
PLOT FUNCTIONS
GA toolbox also specifies certain plots for visual understanding of the process that is going on, the following is the plot we took in our project.
Kd = 0.21415197220282672
CONCLUSION
We have controlled the position of the DC Motor successfully.
We have proved that the Genetic Algorithm method of tuning the PID controller is much more effective than the Ziegler Nichols method.
THANK YOU
QUERIES ??