Professional Documents
Culture Documents
Semester Project
Semester Project
BY
Name ID Signature
Advisor Name
i
Declaration
we, the undersigned, declare that this Project is our original work, has not been presented for a
degree in this or any other universities, and all sources of materials used for the Project have been
fully acknowledged.
_______________________ _________
Name Signature
This Project has been submitted for examination with my approval as a university advisor.
_____________________ __________________
ii
Acknowledgment
First of all, we would like to express our gratitude for GOD to help the accomplishment of this
project.
Secondly, we would like to express our gratitude and sincere thanks to our respected advisor,
“Mr. Alemneh Bzuayehu” for the guidance and support that he has provided throughout the
course of this work project. We would like to thank all our friends and instructors of Department
of Electrical and Computer engineering for their extreme help throughout our course of study at
this institute.
We would like to express gratitude to our head of Department, Electrical and Computer
Engineering “Mr. Degu Mena”.
Finally, we express our gratitude to faculty and all other members who supported us either directly
or indirectly for the completion of this project.
iii
Table of content
Table of Contents
Declaration................................................................................................................................................... ii
Acknowledgment ........................................................................................................................................ iii
Table of content .......................................................................................................................................... iv
List of Figure ............................................................................................................................................... v
List of Table ................................................................................................................................................ vi
List of acronyms ........................................................................................................................................ vii
Abstract..................................................................................................................................................... viii
Chapter One ................................................................................................................................................ 1
1 Introduction ......................................................................................................................................... 1
1.1 Back Ground of the Study .......................................................................................................... 1
1.2 Problem Statement...................................................................................................................... 5
1.3 Objective of the Study................................................................................................................. 6
1.3.1 General Objective ............................................................................................................... 6
1.3.2 Specific Objectives .............................................................................................................. 6
1.4 Methodology ................................................................................................................................ 6
1.5 Contribution of the Project ...................................................................................................... 10
1.6 Scope........................................................................................................................................... 10
1.7 Organization of the Project ...................................................................................................... 10
Chapter Two .............................................................................................................................................. 12
2 Literature Review ............................................................................................................................. 12
Chapter Three ........................................................................................................................................... 15
3 System Design and Analysis ............................................................................................................. 15
3.1 PID Controller Design .............................................................................................................. 15
3.1.1 Integral PID controller ..................................................................................................... 15
3.1.2 GA Based on PID Controller ........................................................................................... 17
Chapter Four ............................................................................................................................................. 20
4 Simulation Results and Discussion .................................................................................................. 20
4.1 Simulation Results of Inverted Pendulum Using PID Controller ........................................ 20
4.2 Simulation Result of Inverted Pendulum using FOPID Controller Based on GA .............. 22
4.3 Simulation Results of Inverted Pendulum using PID and FOPID Controller .................... 23
iv
Chapter Five .............................................................................................................................................. 24
5 Conclusion and Recommendation ................................................................................................... 24
5.1 Conclusion ................................................................................................................................. 24
5.2 Recommendations ..................................................................................................................... 24
Reference ................................................................................................................................................... 25
Appendix .................................................................................................................................................... 26
v
List of Figure
Figure 1. 1: Simple Inverted Pendulum Setup, ............................................................................................. 1
Figure 1. 2: Inverted Pendulums parametric presentation ............................................................................ 7
Figure 1. 3: Inverted Pendulums free body diagram ..................................................................................... 7
Figure 1. 4: Pendulums free body diagram. .................................................................................................. 8
v
List of Table
Table 1. 1: parameters and values ................................................................................................................. 9
vi
List of acronyms
DC__ Direct Current
vii
Abstract
The inverted pendulum is a classical control problem, which involves developing a system to
balance a pendulum. The Dynamics of Cart Inverted Pendulum is related to many real life
applications like missile launching system, balancing systems like human walking. This is a highly
Unstable and non-linear system. This system is a under actuated system and also a non-minimum
phase system so design a Controller for Inverted Pendulum System is very complex. Generally,
PID Controllers are widely used for control applications. The performance of PID Controller can
be improved by appropriate setting of fractional integral and derivative actions. In this paper
modeling of an inverted pendulum has been done and then different controllers have been used for
stabilization of the pendulum. The design methods of integer order controllers and fractional order
controllers are given. The majority of tasks is carried out by means of the FOMCON (“Fractional
–Order Modeling and Control”) toolbox running in the MATLAB computing environment. The
simulation results prove that the proposed method can achieve high performance comparing the
integer order PID controller, as whole the fractional order PID controller is the best controller.
viii
Chapter One
1 Introduction
1.1 Back Ground of the Study
The inverted pendulum is among the most difficult systems being an inherently unstable system,
is a very common control problem, and so being one of the most important classical problems, the
control of inverted pendulum has been a project interest in the field of control engineering. Due to
its importance this is a choice of dynamic system to analyze its dynamic model and propose a
control law [1]. The aim of this case study is to stabilize the Inverted Pendulum (IP) such that the
position of the cart on the track is controlled quickly and accurately so that the pendulum is always
erected in its inverted position during such movements. Realistically, this simple mechanical
system is representative of a class of altitude control problems whose goal is to maintain the desired
vertically oriented position at all times.
The problem associated with stabilization of Inverted Pendulum is a very basic and benchmark
problem of Control System. The design of Inverted Pendulum consists of a DC motor, Cart,
Pendulum and Cart driving mechanism.
2
industry, especially when speed of the response is not an issue. A control without D mode is used
when:
Fast response of the system is not required
Large disturbances and noise are present during operation of the process
There is only one energy storage in process (capacitive or inductive)
There are large transport delays in the system.
PID Controller: PID controller has all the necessary dynamics: fast reaction on change of the
controller input (D mode), increase in control signal to lead error towards zero (I mode) and
suitable action inside control error area to eliminate oscillations (P mode). Derivative mode
improves stability of the system and enables increase in gain K and decrease in integral time
constant Ti, which increases speed of the controller response. PID controller is used when dealing
with higher order capacitive processes (processes with more than one energy storage) when their
dynamic is not similar to the dynamics of an integrator (like in many thermal processes). PID
controller is often used in industry, but also in the control of mobile objects when stability and
precise reference following are required. Conventional autopilot is for the most part PID type
controllers.
A Proportional-Integral-Derivative controller (PID) is widely used in industrial control systems.
It’s a simple yet versatile controller. In the field of process control systems the PID controller have
proved their usefulness by providing satisfactory control but in many situations PID controllers
may not provide optimal control.
Introduction to Genetic Algorithm PID: In 1975, GA was proposed firstly by (Holland, 1976).
It is an optimization algorithm and applied to various fields, including business, science, and
engineering. Based on the survival-of the-fittest strategy proposed by Darwin, this algorithm will
eliminate unfit components to select the fittest component by Man-made fitness functions
generation by generation.
GA is stochastic global search methods based on the mechanics of natural selection and natural
genetic. They are iterative method widely used in optimization problems in general branches of
science and technology. It was first proposed by Holland in 1976. GA offer some advantages over
other search tools in the following ways (Magaji and Mustafa, 2010):
3
GAs use probabilistic transition rules not deterministic ones
GAs work on encoding parameters set rather than the parameter set itself (except where
real-valued individuals are used)
GAs do not require derivative information or other auxiliary knowledge; only the objective
function and the corresponding fitness levels influence the directions of the research.
FOPID Controller: Fractional order control has been applied with success in rigid robots
Subhransu Padhee, Abhinav Gautam, Yaduvir Singh, and Gagandeep Kaur (2011). In Manue F.
Silva, J. A. Tenreiro Machado and A. M. Lopes. (2003-04) fractional control is applied to Hexapod
Robot. In Manue F. Silva, J. A. Tenreiro Machado. (2006) a fractional order position/force
algorithm is proposed for legged robot and control algorithms have superior performance.
Fractional order PID controller is also used in Genetic Algorithm to tune the parameters of the
Fractional Order PID controller Subhransu Padhee, Abhinav Gautam, Yaduvir Singh, and
Gagandeep Kaur (2011).
FO-PID controllers have a number of advantages compared to the conventional PID controllers.
These include [5]: (1) more degrees of freedom (more tuning parameters), (2) better performance
with high order systems, and (3) better response in the case of non-minimum phase systems.
Various methods for tuning the parameters of FO-PID controllers have been proposed in the
literature.
They can be categorized as analytical-based [6], graphical-based [7], and optimization-based [8].
In the optimization-based approach, the controller’s parameters are computed to achieve some
predefined time domain specifications [9]. In the analytical approach, the controller’s parameters
are found by solving a system of analytical equations in order to achieve some pre-specified
frequency-domain specifications. Graphical tuning approaches are based on space plotting of the
stabilizing region where some predetermined frequency domain specifications are satisfied.
Varun Aggarwal, Meng Mao and Una-May O’Reilly discusses a low power self-tuning analog
proportional-integral-derivative controller model. By using a model-free tuning method, it
overcomes problems associated with reconfigurable analog arrays. In comparison to a self-tuning
digital PID controller, it combines the advantages of low power, no quantization noise, high
bandwidth and high speed. Prototype hardware used is a commercially available field
programmable analog array (FPAA) and Particle Swarm Optimization (PSO) as the tuning method.
4
The developed scheme is to correct the variance in measurement and shows that a self-tuned
controller can outperform a hand tuned solution and demonstrate adaptability to plant drift.
Digital PID controller: In most books on digital control one is quickly introduced to the z-
transform and the z-plane, as opposed to the s-plane, which we have used primarily for the root
locus in designing PID controllers. We have chosen not to use the z-transform here to explain
digital controls. Rather the explanation here is more practical. It explains digital controls more
directly, discusses how to implement a digital PID, and describes several phenomena to be aware
of when implementing digital control systems.
5
1.3 Objective of the Study
1.3.1 General Objective
The aim of the project is Comparison of PID and GA based on PID with FOPID Controller for
Stabilizing Inverted Pendulum System.
1.4 Methodology
Pole placement, also known as full state feedback, is a method employed in feedback control
system theory to place the closed-loop poles of a plant in determined locations. This is desirable
because the location of the poles corresponds directly to the eigenvalues of the system, which
control the characteristics of the response of the system. This method is widely used in systems
with multiple inputs and multiple outputs.
6
stabilizing controller, namely an optimal controller. The mathematical model is based on the
following principles: The resulting non-linear model is then linearized. In this section defines the
system dynamics of Inverted Pendulum with the help of Newton’s law of motion. According to
the system dynamics the system has two degree of freedom the one is for cart movement and the
other one is for Pendulums rotational motion.
M- Cart mass, m- Pendulum mass, J- Moment of inertia, L- Pendulum length, b- Cart friction co-
efficient, g – Gravitational force
𝑚𝑑2
𝑁= (𝑋 + 𝐿 sin 𝜃) = 𝑚𝑥̈ + 𝑚𝜃̈ 𝐿 cos 𝜃 − 𝑚(𝜃̇)2 𝐿 sin 𝜃 (1.2)
𝑑𝑡 2
7
Figure 1. 4: Pendulums free body diagram.
Here vertical reaction force is defined by P and this given by weight given by the pendulum on
cart. Here 𝐿 cos 𝜃 is given by the Pendulums displacement from the pivot. So
𝑚𝑑2
𝑃 + 𝑚𝑔 = (𝑥 + 𝐿 cos 𝜃) = 𝑚𝐿𝜃̈ sin 𝜃 + 𝑚(𝜃̇)2 𝐿 cos 𝜃 (1.3)
𝑑𝑡 2
Velocity of center of mass is denoted by 𝑉𝑐𝑚𝑡 now if will taking the sum of moments we get
Now put the values of (1.2) and (1.3) in equation no (1.4) we get
𝑚𝐿
𝜃̈ = 𝜎 [(𝐹 − 𝑏𝑥̇ ) cos 𝜃 − 𝑚(𝜃̇)2 𝐿 cos 𝜃 sin 𝜃 + (𝑚 + 𝑀)𝑔 sin 𝜃] (1.6)
1
𝑥̈ = 𝜎 [(𝐽 + 𝑚𝐿2 )(𝐹 − 𝑏𝑥̇ − 𝑚𝐿𝜃̇ 2 sin 𝜃) + 𝑚𝐿2 𝑔 sin 𝜃 cos 𝜃] (1.7)
Linearization of the inverted pendulum. Here in this section the description about the linearization
of the non-linear equations are given. Here we use tailors series expansion for Linearize the non-
linear equations. We have to stabilize the pendulum angle at the Inverted position so assume
𝜃=0 (1.9)
sin 𝜃 = 𝜃 (1.10)
8
cos 𝜃 = 1 (1.11)
𝐴𝑛𝑑 𝜃̇ 2 = 0
𝑍̇1 0 1 0 0 0
(𝐽+𝑚𝐿2 ) 𝑚2 𝐿2 𝑔 𝑚𝐿𝑏𝑡
𝑍1 (𝐽+𝑚𝐿2
𝑍̇2 0 − − 𝑍
𝜎′ 𝜎2 𝜎′ 𝜎′
= [ 2 ]+ (1.15)
𝑍̇3 0 0 0 1 𝑍3 0
𝑚𝐿𝑏 (𝑀+𝑚)𝑚𝑔𝐿 (𝑀+𝑚)𝑏𝑡 𝑍4 −𝑚𝐿
[𝑍̇4 ] [ 0 𝜎′ 𝜎′
− 𝜎′ ] [ 𝜎′ ]
And the output equation is given by
𝑥
1 0 0 0 𝑥̇
𝑌=[ ][ ] (1.16)
0 0 1 0 𝜃̇
𝜃̈
Now if we neglect the cart friction co-efficient then the transfer functions will be as
𝑋(𝑆) (𝐽+𝑚𝐿2 )𝑆 2 −𝑚𝑔𝐿
= 𝑆2 (𝑀𝑚𝐿2 +(𝑀+𝑚)𝐽)𝑆2 −𝑚𝑔𝐿(𝑀+𝑚) (1.17)
𝐹(𝑆)
𝜃(𝑆) 𝑚𝐿𝑠2
= 𝑠2 (𝑀𝑚𝐿2 +(𝑀+𝑚)𝐽)𝑠2 −𝑚𝑔𝐿(𝑚+𝑀) (1.18)
𝐹(𝑆)
Parameters values
Mass of cart (M) 3kg
Mass of pendulum (m) 0.15kg
Moment in inertia (J) 0.054kg-m2
Length of pendulum (L) 0.2m
9
Cart friction co-efficient (b) 0.05Ns/m
Acceleration due to gravity (g) 10m/s2
1.6 Scope
The scope of the project is to study and design the control system of an unstable system, in this
case an inverted pendulum. The first step will be to simulate different alternatives on a computer
with a modeled system of the reality. After that, once the simulations are stable, the control system
will be used on the real system of the inverted pendulum control system. The final goal is to be
able to stabilize the pendulum in its upright position while keeping the cart oscillating around a
desired position, to evaluate the different alternatives and to draw conclusions.
10
Chapter Two: - Literature Review: the previous proposed action about this project have been
written by different authors and their limitation parts.
Chapter Three: - System Design and Analysis: how it’s design this inverted pendulum system by
using the integral PID and fractional order PID controller and its comparison of the simulation
.output results in MATLAB
11
Chapter Two
2 Literature Review
In this section, the project work proposed by several persons and accepted in the field of modeling
and stabilizing inverted pendulum using numerous control strategies is presented. Persons have
been worked out on the stabilizing of inverted pendulum using various control techniques. Some
of the techniques are the P controller method, PI controller method, PD controller method, FOP
controller method, FOPI controller method and FOPD controller
Inverted Pendulum is a very important control problem in the application areas of Control System.
The use of Inverted Pendulum take place first time in Great Britain in the year of 1844 for design
purpose of a Seismometer.
A.Hashim and O. Ahmed present PI based speed stabilizing the inverted pendulum to stable high
non stable system. However, the PI controller requires exact mathematical model to control the
system. When there are system parametric variations, the behavior of the system is unsatisfactory
and it deviates from the desired performance. Also this control method is not satisfactory because
the PI gains are selected by using trial and error.
Smriti Rao, Ravi Mishra, 2Assistant Professor SSTC Bhilai, and Chhattisgarh, India, © 2014
IJEDR: Proportional (P) Controller: A P controller system is a type of linear feedback control
system. The P controller system is more complex than on-off control systems like a bi-metallic
domestic thermostat, but simpler than a PID control system used in something like an automobile
cruise control In general it can be said that P controller can’t stabilize higher order processes.
For the 1st order processes, meaning the processes with one energy storage, a large increase in
gain can be tolerated. Proportional controller can stabilize only 1st order unstable process.
Changing controller gain K can change closed loop dynamics.
Limitations
12
Smriti Rao, Ravi Mishra: Proportional Integral (PI) Controller: At present, the PI controller is
most widely adopted in industrial application due to its simple structure, easy to design and low
cost. Despite these advantages, the PI controller fails when the controlled object is highly nonlinear
and uncertain. PI controller will eliminate forced oscillations and steady state error resulting in
operation of on-off controller and P controller respectively. However, introducing integral mode
has a negative effect on speed of the response and overall stability of the system. Thus, PI
controller will not increase the speed of response. It can be expected since PI controller does not
have means to predict what will happen with the error in near future. This problem can be solved
by introducing derivative mode which has ability to predict what will happen with the error in near
future and thus to decrease a reaction time of the controller. PI controllers are very often used in
industry, especially when speed of the response is not an issue
Limitation
The disadvantage in P-I controller is that high peak overshoot. To reduce that peak overshoot
considerably we can use this I-P controller.
13
and Automatic continue to publish papers on PID controllers. For example, Issue 1 in Volume 26
of IEEE Control Systems Magazine, 2006, is a special issue on PID.
Turk J Elec Eng & Comp Sci (2018) 26: 2768 – 2778 © TÜBİTAK doi: 10.3906/elk-1712-183
recently, fractional-order modeling has attracted the attention of researchers and developers in the
field of control system design. It has been shown that fractional-order differential equations can
describe the behavior of many real-life dynamical systems better than their integer-order
counterparts [10]. Using fractional order modeling, a generalized version of the classical PID
controllers, known as fractional-order PID (FO-PID), was proposed [11]. Various methods for
tuning the parameters of FO-PID controllers have been proposed in the literature.
To modify previous worked project by PI, PD, by PID controller for stabilizing inverted pendulum
system by modifying settling time, pick time, rise time, overshoot, and by reducing steady state
error . PID controller has all the necessary dynamics: fast reaction on change of the controller input
(D mode), increase in control signal to lead error towards zero (I mode) and suitable action inside
control error area to eliminate oscillations (P mode). Derivative mode improves stability of the
system and enables increase in gain K and decrease in integral time constant Ti, which increases
speed of the controller response. PID controller is used when dealing with higher order capacitive
processes (processes with more than one energy storage) when their dynamic is not similar to the
dynamics of an integrator (like in many thermal processes).
14
Chapter Three
15
The control signal u is entirely based on the error generated e. The command input r is also called
the set-point weighting in process control literature. The mathematical representation of the control
action is
Here C1 and C2 are the PID Controllers. One is displacement controller and another one is angle
controller. P1 and P2 are the Plant transfer functions. We give angle reference as zero as we have
to stabilize the Pendulum angle to Zero.
Now if we simplify the block diagram then we get characteristic equation as
1 − p1 c1 + p2 c2 (3.1)
Now from the desired pole location we get the characteristic equation as
Here we have six unknown and five equations. Thus we assume Kd2 as 10.
After Comparing equation (3.2) and (3.3) we get the PID gain values as follows.
C1:- Kp1 = 43.3, Ki1 = 33.796, Kd1 = 2.254 And
16
3.1.2 GA Based on PID Controller
Initialization: In the initialization, the first thing to do is to decide the coding structure.
Coding for a solution, termed a chromosome in GA literature, is usually described as string
of symbols from {0, 1}. These components of the chromosome are then labeled as genes.
The number of bits that must be used to describe the parameters is problem dependent.
Selection: GA uses proportional selection; the population of next generation is determined
by independent random experiments.
Crossover: Cross over is an important random operator in GA and the function of this
operator is to generate a new ‘child ‘chromosome from two ‘parents ‘chromosomes by
combining the information extracted from the parents.
Mutation: Mutation is another important component in GA, though it is usually conceived
as a background operator. It operates independently on each individual by probabilistically
perturbing each bit string. A usual way of mutation used in GA is to generate a random
number between zero and one and then make a random change in the v-the element of the
string with probability belonging to (0, 1).
Encoding & Decoding: The design variables are mapped onto a fixed-length binary digit
string, which are constructed over the binary alphabet {0, 1}, and is concatenated head-to-
tail to form one long string referred as a chromosome. That is, every string contains all
design variables. The physical values of the design variables are obtained by decoding the
string.
Fitness Function: In GA, the value of fitness represents the performance, which is used to
rank the string, and the ranking is used to determine how to allocate reproductive
opportunities. This means that individuals with higher fitness value will have higher
probability of selection as a parent. Fitness thus is some measure of goodness to be
optimized. The fitness function is essentially the objective function for the problem.
The process begins with a set of solutions. This process is initialization and then followed by
selection which means choosing random solutions. There are two methods for initialize the
population and they are random initialization and heuristic initialization. The diversity of the
population should be maintained. The population size should not be very large. Therefore, an
optimal population size needs to be decided. Parent solutions are selected to form new offspring.
This process will stop when a stopping criterion is reached [11]. The terminating conditions are;
17
A solution is found which satisfies minimum criteria
Fixed number of generations reached
Allocated budget reached
Manual inspection
The continuous transfer function of FOPID is obtained through Laplace transform, which is given
by:
Here in this section, two cases of fractional order controller is discussed. The first one is fractional
order PID controller (FOPID) design without considering the damping of the system and the
second one is fractional order PID controller design with considering the damping of the system.
The integer order PID controller (IOPID) has the transfer function as,
𝑘𝑖
𝐶(𝑆)𝑃𝑖𝑑 = 𝑘𝑃 + + 𝑘𝑑 𝑠 (3.6)
𝑠
And the fractional order PID controller (FOPID) has the transfer function as,
𝑘
𝐶(𝑆)𝑓𝑜𝑝𝑖𝑑 = 𝑘𝑝 + 𝑠𝛼𝑖 + 𝑘𝑑 𝑠 𝛽 (3.7)
Including integer order PID controller (IOPID), three cases are presented here for designing of
controllers and there comparison is also shown in this section.
SET block indicates the desired points at which the system get to stable. Disturbance is the external
input which can be applied either on cart or on pendulum. The controller will react with the input
and the feedback and control the POAC system.
18
Clearly in equation (1.23), selecting𝛼 = 𝛽 = 1, a classical PID controller can be obtained. The
options of𝛼 = 1, 𝛽 = 0, 𝛼 = 0, 𝛽 = 1, respectively corresponds to traditional PI and PD
controllers.
Traditional (classical) PID controller are the special type of the fractional 𝑃𝐼 𝛼 𝐷𝛽 controller and
expected that the controller 𝑃𝐼 𝛼 𝐷𝛽 may enhance the systems control performance J.Samardzic,
M.P.Lazarevic, B. Cvetkovic (2011). Since this kind of controller has five parameters to tune
(𝑘𝑝 , 𝑘𝑑 , 𝑘𝑖 , 𝛼, 𝛽), up to five design specifications for the controlled system can be met, this is, two
more than in the case of a traditional PID controller, where 𝛼 = 1 𝑎𝑛𝑑 𝛽 = 1. It is essential to
study which specifications are more interesting as far as performance and robustness are
concerned. All these constraints will be taken into account in the tuning technique in order to take
advantage of the introduction of the fractional orders C. A. Monje, YangQuan Chen, B. M.
Vinagre, Dingy Xue, Vicente Feliu. (2010).The aim of this system is to make the cart position and
pendulum angle to be stable at desired (set) points.
19
Chapter Four
20
Table 4. 1: performance of PID controller
Controller PID
Controller PID
21
4.2 Simulation Result of Inverted Pendulum using FOPID Controller Based
on GA
22
4.3 Simulation Results of Inverted Pendulum using PID and FOPID
Controller
23
Chapter Five
5.2 Recommendations
The project is boundless. At the end of this study many points could be taken as recommended
future works.
The work done in this project Genetic Algorithm based (GA) optimization method is applied to
determine the optimized parameters of the PID controller, but there are other optimization methods
like Particle Swarm Optimization (PSO) and Sequential Quadratic Programing (SQP) those may
increase the performance of controllers and linearized inverter pendulum using intelligent
controller (Fuzzy logic, neural network and fuzzy logic neural network) also the project extended
for hardware implementation.
24
Reference
[1] Krishnan R. Electric Motor Drives: Modeling, Analysis, and Control. 1st ed. Upper Saddle
River, NJ, USA: Prentice Hall, 2001.
[2] Soliman HM, Saleem A, Tutunji TA, Al Ratrout S. Robust digital pole-placer for electric drives
based on uncertain Diophantine equation and interval mathematics. T I Meas Control 2018; 40:
2546-2559.
[3] Astrom K, Hagglund I. PID Controllers: Theory, Design and Tuning. 2nd ed. Durham, NC,
USA: Instrument Society of America, 1995. 2777
[4] Rahimian M, Tavazoei M. Improving integral square error performance with implementable
fractional-order PI controllers. Optim Contr Appl Met 2014; 35: 303-323.
[5] Podlubny I. Fractional-order systems and PID controllers. IEEE T Automat Contr 1999; 44:
208-213.
[7] Yeroglu C, Onat C, Tan N. A new tuning method for PIDcontroller. In: Proceedings of the
Electrical and Electronics Engineering; 5–8 Nov 2009; Bursa, Turkey.
[8] Monje A, Chen YQ, Vinagre BM, Xue D, Feliu V. Fractional-order Systems and Controls:
Fundamentals and Applications. 1st ed. London, UK: Springer-Verlag, 2010.
[9] Zeng GQ, Chen J, Dai YX, Li LM, Zheng CW, Chen MR. Design of fractional order PID
controller for automatic regulator voltage system based on multi-objective extremal optimization.
Neurocomputing 2015; 160: 173-184.
[11] Ogata K. Modern Control Engineering. 5th ed. Upper Saddle River, NJ, USA: Pearson, 2009.
25
Appendix
Appendix A:
clc
clear
%%GA initiazation.
nvars=5;% number of design variables.
A=[];%inequuality constrait at A
b=[];%inequality constraint at b
Aeq=[];%equality cnstraint at A
beq=[];%equality constraint at b
nonIcon=[];% no nonlinear constraints.
lb = [0;0;0;0;0;0]; %% lower bound of the variables.
ub = [200;200;1;200;1];%% upper bound of the variables.
[x,fval] = ga(@myobj,nvars,[],[],[],[],lb, ub);
Appendix B:
function y=myobj(x)
assignin('base','x1',x(1));
assignin('base','x2',x(2));
assignin('base','x3',x(3));
[~,~,yout]=sim('inverter',10);
q=yout;
[m,~]=size(q);
v=0;
R=0;
for i=1:m
v=v+(R-q(i))^2;
end
y=v;
end
26