Название | Smart Systems for Industrial Applications |
---|---|
Автор произведения | Группа авторов |
Жанр | Программы |
Серия | |
Издательство | Программы |
Год выпуска | 0 |
isbn | 9781119762041 |
Figure 2.7 Fitness with mutation probabilities.
2.6 Simulation Results and Discussion
2.6.1 MATLAB Genetic Algorithm Tool Box
MPLAB established by Microchip Technology is an exclusive integrated software setting for the improvement of applications in PIC microcontrollers. MPLABX is the state-of-the art edition of MPLAB, developed on the Net Beans platform. They support project management, code editing, debugging, and programming of Microchip 8-bit PIC and AVR (including ATMEGA) microcontrollers, 16-bit PIC24 and dsPIC microcontrollers, as well as 32-bit SAM (ARM) and PIC32 (MIPS) microcontroller (Figure 2.8).
GA finds its extensive application in control engineering. MATLAB has an integrated GA toolbox which helps the control engineers to apply genetic search methods effectively. Figure 2.9 is the GA toolbox in finding solution to control system design problems.
2.6.2 Simulation Results
A high level matrix language containing M file with MATLAB code is developed to set the five parameters for position control of the piston. The software is analyzed for different values of reference input and the characteristics graph are taken down with the gain of Kp, Ki, and Kd.
Figure 2.8 Flowchart of genetic algorithm.
2.6.2.1 Reference = 500 (Error)
When the reference value is set as 500 and the Kp, Ki, and Kd values are taken manually (10, 0.5, and 3) without using GA, then the output will be coming as follows. Figures 2.10, 2.11 and 2.12 shows the control error, control action and system output.
Figure 2.9 Genetic algorithm tool box.
Figure 2.10 Control error.
Figure 2.11 Control action.
Figure 2.12 System output.
Figures 2.13 a, b and c shows the piston displacement at a reference = 500 (error) using Kp = 10, Ki = 0.5 and Kd = 3 without GA.
Figure 2.13 (a) Control error for reference value 500 (error).
Figure 2.13 (b) Control action for reference value 500 (error).
Figure 2.13 (c) System output for reference value 500 (error).
Here, the displacement of the piston is not settled at a reference value. Hence, this output is considered as error. To rectify this, we use GA.
2.6.2.2 Reference = 500
When the reference value is set as 500 and the Kp, Ki, and Kd values are taken by execution of iterations in GA, then the error is minimized and the displacement is settled at the reference value in the output as shown in Figures 2.14a, b and c.
The Kp, Ki, and Kd values obtained by GA are 0.221923828125,1.32339 6901967211, and 0.12735267270242523.
2.6.2.3 Reference = 1,500
When the reference value is set as 1,500 and the Kp, Ki, and Kd values are taken by execution of iterations in GA, then the error is minimized and the displacement is settled at the reference value in the output as shown in Figures 2.15 a, b and c.
The Kp, Ki, and Kd values obtained by GA are 0. 38281, 0.19672, and 0.24252.
Figure 2.14 (a) Control error for reference value 500.
Figure 2.14 (b) Control action for reference value 500.
Figure 2.14 (c) System output for reference value 500 (error).
Figure 2.15 (a) Control action for reference value 1,500.
Figure