PSO-TUNED PID CONTROLLER FOR COUPLED-TANK SYSTEM (CTS) VIA PRIORITY-BASED FITNESS SCHEME

Similar documents
FINAL YEAR PROJECT REPORT TITLE: MODELING AND PSO-BASED LQR CONTROLLER DESIGN FOR COUPLED TANK SYSTEM FIONA SERINA DAUD B

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FINAL YEAR PROJECT 2 BEKU 4894

TRACKING PERFORMANCE OF A HOT AIR BLOWER SYSTEM USING PID CONTROLLER WITH PSO AND HARMONIC SEARCH ALGORITHM ANDY HENG POH SENG

OPTIMAL PROPORTIONAL INTEGRAL DERIVATIVE CONTROLLER FOR AUTOMATIC VOLTAGE REGULATOR SYSTEM USING PARTICLE SWARM OPTIMIZATION ALGORITHM

Analysis of Transient Response for Coupled Tank System via Conventional and Particle Swarm Optimization (PSO) Techniques

PERFORMANCE OF INVERSE RESPONSE PROCESS WITH VARIATION OF PROCESS PARAMETERS AND TUNING METHODS LOW YEOK CHAN

PID Control Tuning VIA Particle Swarm Optimization for Coupled Tank System

SPEED CONTROL OF DC MOTOR USING PID CONTROLLER IMPLEMENTATION WITH VISUAL BASIC NURUL IZZATI BINTI PANDAK JABO

SOFTWARE PROCESS FOR INTEGRATED PATTERN ORIENTED ANALYSIS AND DESIGN (POAD) AND COMPONENT ORIENTED PROGRAMMING (COP) ON EMBEDDED REAL-TIME SYSTEMS

STRUCTURE AND TUNING INTERNAL MODEL CONTROL FOR INTEGRATING PROCESS

OPTIMIZATION OF PID PARAMETERS FOR HYDRAULIC POSITIONING SYSTEM UTILIZING VARIABLE WEIGHT GREY-TAGUCHI AND PARTICLE SWARM OPTIMIZATION

SYSTEM IDENTIFICATION AND POSITION CONTROL OF PNEUMATIC ACTUATOR USING EMBEDDED SYSTEM TAHA MOHAMMED AHMED SADEQ

HIRZI BIN MOHD ISHAK UNIVERSITI TEKNOLOGI MALAYSIA

PARTICLE SWARM OPTIMIZATION FOR MPPT : SIMULATION AND ANALYSIS NOOR DZULAIKHA BINTI DAUD UNIVERSITI TEKNOLOGI MALAYSIA

SYSTEM IDENTIFICATION AND CONTROL OF THE HORIZONTAL MOTION OF A TWIN ROTOR MULTI-INPUT MULTI-OUTPUT SYSTEM (TRMS) NURUL HAZIRAH BINTI ABD AZIZ

MOHD IZZAT BIN DZOLKAFLE

SELF-TUNING PID CONTROLLER FOR ACTIVATED SLUDGE SYSTEM HUONG PEI CHOO

Signature. Supervisor :.. ~.~H-.~.~0~P..?.j.~H~~~.. ~.~.~ Date :...?./!!./~~ ~

PID IMPLEMENTATION OF UMP MINI AUTOMATION PLANT PART 1 - HEATING TANK LEE MING JIE

PRODUCT DESIGN IMPROVEMENT USING DESIGN FOR MANUFACTURE AND ASSEMBLY (DFMA) METHODOLOGY

SYSTEM IDENTIFICATION AND INTELLIGENT CONTROL OF AUTOMOTIVE AIR CONDITIONING SYSTEM. MOHD FIRDAUS BIN MOHAMED

SIMULATION AND OPTIMIZATION OF ELECTRICAL DISCHARGE MACHINING PROCESS USING MATLAB ELNAZ KARIMPOUR UNIVERSITI TEKNOLOGI MALAYSIA

PID CONTROL SYSTEM IMPLEMENTATION IN EMBEDDED SYSTEM FOR DC MOTOR SPEED CONTROL ARIFF BIN CHE MOHD NOOR

EVALUATION ALGORITHM- BASED ON PID CONTROLLER DESIGN FOR THE UNSTABLE SYSTEMS

iii I hereby declare that this report is the result of my own work except for quotes as cited in the references

HARMONIC MODELING IN POWER DISTRIBUTION SYSTEM USING TIME SERIES SIMULATION CHE KU FARHANA BINTI CHE KU AMRAN UNIVERSITI TEKNOLOGI MALAYSIA

DEVELOPMENT OF DYNAMIC EQUIVALENTS FOR INTERCONNECTED POWER SYSTEMS USING IDENTIFICATION APPROACHES KOK BOON CHING UNIVERSITI TEKNOLOGI MALAYSIA

SPACE VECTOR MODULATION FOR FIVE-PHASE INDUCTION SPEED DRIVE CONTROL NORAZELINA BINTI KAMISMAN. of Bachelor in Electrical Engineering

LAPORAN PROJEK SARJANA MUDA

ARDUINO-BASED TEMPERATURE MONITOR- ING AND CONTROL VIA CAN BUS MOHAMMAD HUZAIFAH BIN CHE MANAF UNIVERSITI MALAYSIA PAHANG

TUNING OF PID CONTROLLERS USING PARTICLE SWARM OPTIMIZATION

MODELING OF IMAGE PROCESSING ALGORITHMS FOR HARDWARE-SOFTWARE CO-SIMULATION IBRAHIM ISA UNIVERSITI TEKNOLOGI MALAYSIA

STRESS DETECTION USING GALVANIC SKIN RESPONSE SHAHNAZ SAKINAH BINTI SHAIFUL BAHRI UNIVERSITI MALAYSIA PAHANG

NURSYAHIDA ASHIKIN BINTI NOR IZLANIN

SPEED CONTROL OF BUCK-CONVERTER DRIVEN DC MOTOR USING PD-TYPE FUZZY LOGIC CONTROLLER ZAKARIA BIN ABDUL RAHMAN

ARDUINO BASED WATER LEVEL MONITOR- ING AND CONTROL VIA CAN BUS TUAN ABU BAKAR BIN TUAN ISMAIL UNIVERSITI MALAYSIA PAHANG

Signature : NOR MANIHA BINTI ABDUL GHANI

PUMP SCHEDULING OPTIMIZATION FOR WATER SUPPLY SYSTEM USING ADAPTIVE WEIGHTED SUM GENETIC ALGORITHM FOLORUNSO TALIHA ABIODUN

CONSTRUCTABILITY COMPARISON BETWEEN IBS AND CONVENTIONAL CONSTRUCTION EHSAN HARIRCHIAN UNIVERSITI TEKNOLOGI MALAYSIA

WIRELESS POWER TRANSFER MONITORING. Ahmad Faiz Bin Ahmad Azahar Bachelor of Electrical Engineering. (Control, Instrumentation & Automation)

SPDT SWITCH DESIGN USING SWITCHABLE RESONATOR AT 5GHZ FOR WIRELESS COMMUNICATIONS MOHD HAIDIL BIN ZURAIMI UNIVERSITI TEKNIKAL MALAYSIA MELAKA

PRODUCT DESIGN EVALUATION OF LUCAS HULL DFMA METHOD MOHD NAFIS BIN MOHAIZI

SLIDING MODE CONTROL FOR DC-AC CONVERTER POUYA IZADIFAR

Eliakim Bin Che Yaacob

BORANG PENGESAHAN STATUS TESIS

RESONANT CONTROL OF A FLEXIBLE MANIPULATOR SYSTEM

Relay Based Auto Tuner for Calibration of SCR Pump Controller Parameters in Diesel after Treatment Systems

Nur Athykah binti Basiran

HIGH-PERFORMANCE DIGITAL FILTER IN FPGA SITI SUHAILA MOHD YUSOF UNIVERSITI TEKNOLOGI MALAYSIA

NURUL AFIQAH BINTI AZIZ

EMPIRICAL MODEL IDENTIFICATION AND PID CONTROLLER TUNING FOR A FLOW PROCESS

PREDICTION OF TOTAL CONCENTRATION FOR SPHERICAL AND TEAR SHAPE DROPS BY USING NEURAL NETWORK NORHUSNA BINTI SAHARUN UNIVERSITI TEKNOLOGI MALAYSIA

TUNING OF PID CONTROLLER USING PSO AND ITS PERFORMANCES ON ELECTRO-HYDRAULIC SERVO SYSTEM

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FACULTY OF ELECTRICAL ENGINEERING FINAL YEAR PROJECT II (FYP II) BEKU 4973

CORRELATIVE INTERFEROMETRY FOR ANGLE OF ARRIVAL ESTIMATION AND SIGNAL SOURCE LOCATING USMAN BATURE ISYAKU

DETERMINATION OF LEAKAGE IN AN OIL AND GAS PIPELINE NOR AZIAN BINTI MOHIDEEN ABDUL KADIR

PRODUCTIVITY IMPROVEMENTS USING LEAN PRACTICES AT JAPANESE ELECTRICAL AND ELECTRONICS MANUFACTURING AFIF AIMADUDDIN BIN PARNON

DEVELOPMENT OF MONOPOLE SENSORS FOR RICE QUALITY CHARACTERIZATION IN MALAYSIA JAMALIAH BINTI SALLEH

DEVELOPMENT OF THREE PHASE INDUCTION MOTOR CONTROLLER AHMAD FAKHRUZZAMAN B M ZAWAWI. This report is submitted as partial fulfillment of the

CONTINUOUS INDIVIDUAL PLOT CURVES TECHNIQUE FOR SIMULTANEOUS TARGETING AND DESIGN OF A MASS EXCHANGE NETWORK YANWARIZAL UNIVERSITI TEKNOLOGI MALAYSIA

PYKC 7 March 2019 EA2.3 Electronics 2 Lecture 18-1

BINARY DISTILLATION COLUMN CONTROL TECHNIQUES: A COMPARATIVE STUDY

INTEGRATED PID BASED INTELLIGENT CONTROL FOR THREE TANK SYSTEM

BORANG PENGESAHAN STATUS TESIS

SYSTEM IDENTIFICATION AND INTELLIGENT CONTROL OF AUTOMOTIVE AIR CONDITIONING SYSTEM. MOHD FIRDAUS BIN MOHAMED

IMAGE IMPROVEMENT TECHNIQUE USING FEED FORWARD NEURAL NETWORK

EFFECTIVENESS OF SAFETY PROGRAMS IN MALAYSIAN CONSTRUCTION INDUSTRY JAIMEY ATTAU

THE DEVELOPMENT OF INTENSITY DURATION FREQUENCY CURVES FITTING CONSTANT AT KUANTAN RIVER BASIN

OPTIMAL HEAT TRANSFER OF HEAT SINK DESIGN BASED ON ELECTRONIC PACKAGE THERMAL DISTRIBUTION USING COMSOL PACKAGE SOFTWARE

Review Paper on Comparison of various PID Controllers Tuning Methodologies for Heat Exchanger Model

PWM PIC16F877A DIMMING ELECTRONIC BALLAST FOR HPS LAMP NATRA BINTI ISMAIL

Universiti Teknikal Malaysia Melaka (UTeM)

The PID controller. Summary. Introduction to Control Systems

Cohen-coon PID Tuning Method; A Better Option to Ziegler Nichols-PID Tuning Method

GRAPHICS PROCESSING UNIT BASED PARALLEL COPY MOVE IMAGE FORGERY DETECTION SCHEME AHMAD UWAYS BIN ZULKURNAIN

PID TUNING WITH INPUT CONSTRAINT: APPLICATION ON FOOD PROCESSING

TWO DIMENSIONAL DIRECT CURRENT RESISTIVITY MAPPING FOR SUBSURFACE INVESTIGATION USING COMPUTATIONAL INTELLIGENCE TECHNIQUES

MALAYSIA. Hang Tuah Jaya, Melaka, MALAYSIA. Hang Tuah Jaya, Melaka, MALAYSIA. Tunggal, Hang Tuah Jaya, Melaka, MALAYSIA

PID Tuning Using Genetic Algorithm For DC Motor Positional Control System

Auto-tuning of PID Controller for the Cases Given by Forbes Marshall

MITIGATING INTER-CARRIER INTERFERENCE IN ORTHOGONAL FREQUENCY DIVSION MULTIPLEXING SYSTEM USING SCALED ALPHA PULSE SHAPING TECHNIQUE

POSITION TRACKING OF SLIDER CRANK MECHANISM BY USING PID CONTROLLER. MOHAMAD ZAHARUDIN BIN SARIMAN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

A DESIGN METHODOLOGY FOR A SELF-OSCILLATING ELECTRONIC BALLAST AMIRA BINTI MUSTAPA

FACULTY OF ELECTRICAL ENGINEERING UNIVERSITI TEKNIKAL MALAYSIA MELAKA FINAL YEAR PROJECT REPORT (FYP II)

DESIGN AND DEVELOPMENT OF SOLAR POWERED AERATION SYSTEM WU DANIEL UNIVERSITI MALAYSIA PAHANG

THERMAL ANALYSIS OF H.V INSULATION OIL DURING PARTIAL DISCHARGE DETECTION RASOOL ABDELFADIL GATEA UNIVERSITI TEKNOLOGI MALAYSIA

Comparative Study of PID and FOPID Controller Response for Automatic Voltage Regulation

AN IMPROVED ACCURACY OF WEB SERVICE SELECTION BASED ON MULTI-CRITERIA DECISION MAKING AND WEB SERVICE MODELING ONTOLOGY

DESIGN A WIDEBAND LOW-NOISE AMPLIFIER FOR WIRELESS COMMUNICATION USING 0.35-µm CMOS TECHNOLOGY MOHD HAFIZ BIN ABU

NON-LINEAR WATER LEVEL FORECASTING OF DUNGUN RIVER USING HYBRIDIZATION OF BACKPROPAGATION NEURAL NETWORK AND GENETIC ALGORITHM SITI HAJAR BINTI ARBAIN

Faculty of Mechanical Engineering UNIVERSITI MALAYSIA PAHANG

Non Linear Tank Level Control using LabVIEW Jagatis Kumaar B 1 Vinoth K 2 Vivek Vijayan C 3 P Aravind 4

DESIGN OF A MIMO RECTANGULAR DIELECTRIC RESONATOR ANTENNA FOR LTE APPLICATION

Different Controller Terms

DEVELOPMENT OF COOPERATIVE RELAY USING UNIVERSAL SOFTWARE RADIO PERIPHERAL MUHAMMAD RUSHIDI SABIRIN

MODELLING AND CONTROL FISH FEEDER SYSTEM

VALVE CONDITION MONITORING BY USING ACOUSTIC EMISSION TECHNIQUE MOHD KHAIRUL NAJMIE BIN MOHD NOR BACHELOR OF ENGINEERING UNIVERSITI MALAYSIA PAHANG

CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

: NORHAZILINA BT BAHARI

INTELLIGENT HOME AUTOMATION SYSTEM (IHAS) WITH SECURITY PROTECTION NEO CHAN LOONG UNIVERSITI MALAYSIA PAHANG

Transcription:

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRIK FINAL YEAR PROJECT REPORT PSO-TUNED PID CONTROLLER FOR COUPLED-TANK SYSTEM (CTS) VIA PRIORITY-BASED FITNESS SCHEME SHARIFAH YUSLINDA BINTI SYED HUSSIEN B011110227 BACHELOR OF ELECTRICAL ENGINEERING (CONTROL, INSTRUMENTATION AND AUTOMATION)

i I hereby declare that I have read through this report entitle PSO-Tuned PID Controller for Coupled-Tank System (CTS) via Priority-based Fitness Scheme and found out that it has comply the partial fulfillment for awarding the degree of Bachelor of Electrical Engineering (Control, Instrumentation and Automation) Signature : Supervisor s Name : Date :

ii PSO-TUNED PID CONTROLLER FOR COUPLED-TANK SYSTEM (CTS) VIA PRIORITY-BASED FITNESS SCHEME SHARIFAH YUSLINDA BINTI SYED HUSSIEN A report submitted in partial fulfillment of the requirements for the degree of Bachelor of Electrical Engineering (Control, Instrumentation and Automation) Faculty of Electrical Engineering UNIVERSITI TEKNIKAL MALAYSIA MELAKA 2014

iii I declare that this report entitle PSO-Tuned PID Controller for Coupled-Tank System(CTS) via Priority-based Fitness Scheme is the result of my own research except as cited in the references. The report has not been accepted for any degree and is not concurrently submitted in candidature of any other degree. Signature : Name : Date :

To my beloved father and mother iv

v ACKNOWLEDGEMENT A major research project like this is never the work of anyone alone. The contributions of many different people, in their different ways, have made this possible. I would like to extend my appreciation especially to the following. I would like to express my sincere gratitude to my supervisor, Mr. Hazriq Izzuan Jaafar for the continuous support on my final year project research, for his patience, motivation, enthusiasm, and immense knowledge. His guidance helped me in all the time of research and completing this project. I could not have imagined having a better supervisor, mentor and guidance in completion of my final year project in Universiti Teknikal Malaysia Melaka. Besides my supervisor, I would like to thank to all the lecturers that helped me throughout the completion of the project and always willing to help and gives their best suggestions. Without their support and guidance, this project will not complete as what I wanted. Moreover, I would like to express my gratitude to all my fellow friends who always there cheering me up and stood by me through the good and bad times. Completing this project would not have been possible without their helps and support. Finally, I would like to thank my parents. They were always supporting me and encouraging me with their best wishes. My research would not have been possible without their helps.

vi ABSTRACT The industrial applications of coupled-tank system (CTS) are widely used especially in chemical process industries. The overall process is require liquids to be pumped, stored in the tank and pumped again to another tank. Nevertheless, the level of liquid in tank need to be controlled and flow between two tanks must be regulated. This project presents development of an optimal Proportional-Integrate-Derivative (PID) controller for controlling the desired liquid level of the CTS. Priority-based Fitness Scheme in Particle Swarm Optimization (PFPSO) will be tested in optimizing the PID controller parameters. Simulation is conducted within MATLAB environment to verify the performance of the system in terms of rise time (Ts), settling time (Ts), steady state error (SSE) and overshoot (OS). The performance will be compared to the conventional tuning methods which are trial and error method, auto-tuning method, Ziegler-Nichols (Z-N) method and Cohen-Coon (C-C) method. It has been demonstrated that implementation of PSO via Priority-based Fitness Scheme (PFPSO) for this system is potential technique to control the desired liquid level and improve the system performances compared with conventional tuning methods.

vii ABSTRAK Penggunaan sistem tangki berkembar (CTS) dalam industri banyak diaplikasikan terutamanya dalam industri proses kimia. Keseluruhan proses tersebut adalah cecair di pam, di simpan di dalam tangki and dipam semula ketangki yang lain. Cecair tersebut haruslah dikawal dan aliran di antara kedua-dua tangki perlu dikawal. Projek ini membentangkan pelaksanaan optimum bagi pegawal kesempurnaan terbitan berkadar terus (PID) bagi mengawal paras cecair yang dikehendaki dalam sistem tangki berkembar. Keutamaan beradasarkan kecergasan dalam pengoptimunan kerumunan zarah (PFPSO) akan diuji dalam pengawal PID. Simulasi akan dilaksanakan menggunakan MATLAB bagi mengesahkan prestasi sistem dalam konteks masa naik (Tr), takat stabil (Ts), ralat keadaan mantap (SSE) dan lajakan isyarat (OS). Prestasi ini akan dibandingkan dengan kaedah penalaan tradisional iaitu kaedah percubaan dan kesilapan, kaedah auto-tuning, kaedah Ziegler-Nichols (Z-N) and kaedah Cohen-Coon (C-C). Ia telah menunjukkan bahawa pelaksanaan PFPSO bagi sistem ini adalah teknik yang berpotensi untuk mengawal paras cecair yang dikehendaki dan meningkatkan prestasi sistem tersebut berbanding dengan kaedah penalaan konvensional.

viii TABLE OF CONTENT CHAPTER TITLE PAGE ACKNOWLEDGEMENT ABSTRACT TABLE OF CONTENT LIST OF TABLES LIST OF FIGURES LIST OF APPENDICES v vi viii xi xiii xvi 1 INTRODUCTION 1 1.1 Coupled-Tank System (CTS) 1 1.2 Problem Statement 2 1.3 Objectives 3 1.4 Scopes 3 2 LITERATUE REVIEW 4 2.1 Theory And Bacic Principle 4 2.1.1 PID Controller 4 2.1.2 Conventional Tuning Method Of Pid Controller 6 2.1.2.1 Manual Tuning 6 2.1.2.2 Ziegler-Nichols (Z-N) 6 2.1.2.3 Cohen-Coon (C-C) 2.1.2.4 Particle Swarm Optimization (PSO) 8 9 2.2 Previous Research 9

ix 2.3 Summary Of Review 13 3 METHODOLOGY 17 3.1 Overview 17 3.2 Project Flowchart 18 3.3 Mathematical Modeling 20 3.3.1 A Simple Nonlinear Model 20 3.3.2 A Linerised Perturbation Model 22 3.3.3 First-Order Single-Input Single- Output Plant 24 3.3.4 A Second-Order Single Single-Input Single- 25 Output Plant 3.4 Matlab Simulink 27 3.5 Conventional Tuning Method 28 3.5.1 Sshaped Response Curve 28 3.5.2 Zigler-Nichols (Z-N) Method 30 3.5.3 Cohen-Coon (C-C) Method 30 3.6 Cupled-Tank System (CTS) 31 3.7 DAQ Card 3.8 System Identification 3.9 Particle Swarm Optimization (PSO) 3.10 Priority Fitness based on PSO (PFPSO) 34 35 40 41 4 RESULT AND DISCUSSION 44 4.1 Coupled-Tank System (CTS) based on CTS Manual 4.1.1 Open-Loop System (Without Controller) 4.1.2 Stability of Open-Loop System 44 44 44 4.1.3 Manual Tuning (Trial And Error) 47 4.1.4 Auto-tuning Method 49 4.1.5 Ziegler-Nichols (Z-N) Method 50 4.1.6 Cohen-Coon (C-C) Method 4.1.7 Particle Swarm Optimization (PSO) Method 52 53

x 4.1.8 Priority Fitness based on PSO (PFPSO) Method 55 4.1.9 Summary Graphs 57 4.2 Coupled-Tank System based on Experimental 60 4.2.1 Open-Loop System (Without Controller) 60 4.2.2 Stability of Open-Loop System 61 4.2.3 Closed-Loop System (Without Controller) 63 4.2.4 Particle Swarm Optimization (PSO) Method 64 4.2.5 Priority Fitness based on PSO (PFPSO) Method 66 4.2.6 Summary Graphs 68 5 CONCLUSION AND RECOMMENDATION 70 5.1 Conclusion 70 5.2 Recommendation/Future Work 70 REFERENCES 71 APPENDICES 74

xi LIST OF TABLES TABLE TITLE PAGE 2.1 PID controller properties 5 2.2 Closed-loop Ziegler-Nichols method in PID Controller 7 2.3 Open-loop Ziegler-Nichols method in PID Controller 7 2.4 Cohen-Coon method in PID Controller 8 2.5 Summary of Review 13 3.1 3.2 3.3 3.4 Parameter of CTS referred from manual CTS-001 Calibration readings for tank 1 level sensor with pump voltage of 1.6V Calibration readings for tank 2 level sensor with pump voltage of 1.8V Calibration of the controlled inflow (pump) 27 31 32 32 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 Performance of open-loop system without controller based on CTS manual [1] Routh-Hurwitz table Routh-Hurwitz table for CTS based on CTS manual [1] Stability of the CTS based on CTS manual [1] Performance of closed-loop system with PID controller by using tuning method of trial and error method based on CTS manual [1] Performance of closed-loop system with PID controller by using tuning method of auto-tuning method based on CTS manual [1] Performance of closed-loop system with PID controller by using tuning method of Z-N method based on CTS manual [1] Performance of closed-loop system with PID controller by using tuning method of C-C method based on CTS manual [1] The characteristics of PSO based on CTS manual [1] 45 46 46 47 48 50 51 52 53

xii 4.10 4.11 4.12 4.13 4.14 4.15 4.16 4.17 4.18 4.19 4.20 4.21 4.22 4.23 4.24 4.25 4.26 The parameters of PID controller by PSO-tuned based on CTS manual [1] Performance of CTS by using method of PSO based on CTS manual [1] The parameters of PID controller by PFPSO-tuned based on CTS manual [1] Performance of CTS by using method of PFPSO based on CTS manual [1] Summary of the parameters of PID controller by using classical and optimizations tuning method based on CTS manual [1] Summary of transient response specification of PID controller by using classical and optimizations tuning method based on CTS manual [1] Performance of open-loop system without controller based on experimental Routh-Hurwitz table for CTS based on experimental Stability of the CTS based on experimental Performance of closed-loop system based on experimental The parameters of PID controller by PSO-tuned based on experimental Performance of CTS by using method of PSO based on experimental The parameters of PID controller by PFPSO-tuned based on experimental Performance of CTS by using method of PFPSO based on experimental Summary of the parameters of PID controller by using optimizations tuning based on experimental Summary of transient response specification of PID controller by using optimizations tuning method Comparison between PSO and PFPSO 54 55 56 56 58 58 61 62 62 63 65 66 67 67 68 68 69

xiii LIST OF FIGURES FIGURE TITLE PAGE 1.1 3.1 3.2 Coupled-tank apparatus CTS-001 Flowchart of project phase 1 Flowchart of project phase 2 1 18 19 3.3 Schematic diagram of CTS 20 3.4 Block diagram of second-order system 26 3.5 Block diagram of the open loop of CTS using simulink 28 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19 S-shaped response curve Step response of open-loop for CTS Coupled-tank control apparatus model CT-100 Communication path between computer and coupled-tank System identification tool Data of model in system identification Data selection in working data and validation data in system identification Model selection in the system identification Characteristics selection in the system identification Model output of CTS in the system identification Model information in the system identification General process of PSO General process of PFPSO Process of PFPSO according to the priority 29 29 31 35 36 36 37 37 38 39 39 40 42 43 4.1 Block diagram of open-loop system without controller based on CTS manual [1] 44

xiv 4.2 Response of open-loop system without controller based on CTS manual [1] 4.3 Block diagram of CTS with PID controller by using tuning method of trial and error method based on CTS manual [1] 4.4 Response of closed-loop system with PID controller by using tuning method of trial and error method based on CTS manual [1] 4.5 Block diagram of CTS with PID controller by using tuning method of auto-tuning method based on CTS manual [1] 4.6 Setting of PID parameter by using auto-tuning method based on CTS manual [1] 4.7 Response of closed-loop system with PID controller by using tuning method of auto-tuning method based on CTS manual [1] 4.8 Response of closed-loop system with PID controller by using tuning method of Z-N method based on CTS manual [1] 4.9 Response of closed-loop system with PID controller by using tuning method of C-C method based on CTS manual [1] 4.10 Block diagram of CTS with PID controller by using tuning method of PSO based on CTS manual [1] 4.11 Sum Squared Error (SSE) vs iteration of PSO based on CTS manual [1] 4.12 Response of CTS by using tuning method of PSO based on CTS manual [1] 4.13 Response of CTS by using tuning method of PFPSO based on CTS manual [1] 4.14 Response of closed loop system with PID controller by using conventional tuning methods based on CTS manual [1] 4.15 Response of closed loop system with PID controller by using conventional and optimizations tuning methods based on CTS manual [1] 4.16 Block diagram of open-loop system without controller based on experimental 45 47 48 49 49 50 51 52 53 54 55 56 57 57 60

xv 4.17 4.18 4.19 4.20 4.21 4.22 4.23 Response of open-loop system without controller based on experimental Response of closed-loop system without controller based on experimental Block diagram of CTS with PID controller by using tuning method of PSO based on experimental Sum Squared Error (SSE) vs iteration of PSO based on CTS experimental Response of CTS by using tuning method of PSO based on experimental Response of CTS by using tuning method of PFPSO based on experimental Response of CTS with PID controller by using optimization tuning methods based on experimental 61 63 64 65 66 67 68

xvi LIST OF APPENDICES APPENDIX TITLE PAGE A B C D E Gannt Chart Data Collection Data of Sum Squared Error (SSE) in CTS Publications Turnitin Report 74 75 105 108 109

1 CHAPTER 1 INTRODUCTION 1.1 Coupled-Tank System (CTS) Figure 1.1: Coupled-tank apparatus CTS-001 The coupled-tank apparatus CTS-001 as shown in Figure 1 is a computer-controlled CTS used for liquid level control. The concept of virtual instrumentation is introduced in CTS- 001. The need for conventional dedicated user interfaces on individual instrumentations can be eliminate by using virtual instrumentation techniques [1]. Besides, the computer can be used

2 as the tool of communications between the hardware and software. Through the software analysis, it enables to carry out the function of oscillation and display the input and output response. From the system, it also can verify the parameter of the model which can be derived from the mathematical modeling. This output response from the modeling function can be taken as the bench mark to achieve good response after implemented it in the CTS. The performance can easily be monitored in MATLAB simulation. 1.2 Problem Statement Real time control involves algorithms to control a certain processes. In order to study the performance in terms of implementation in real-time and each control features, control of level of CTS is chosen. This application is widely used in the process industries especially in chemical industries. It is often essential that the liquid to be supplied in tanks. It is maybe be stored up in tanks and transferred it to the other tank as per requirement. The liquid must be maintained at a specific height or in a certain level. If the level cannot be maintained at the specific height as requirement, it can bring losses to the company or industries. In this project, PID controller will be implemented to the system in order to control the level process. A common control problem in process industries is the control of fluids level in storage tanks and chemical blending. The flow of the liquid into and out the tank must be regulated as to achieve a constant desired liquid level as fluid to be supplied at a constant rate. Many control algorithms have been implemented using various types of technique to compensate with the control requirement. The most commonly techniques have been used are Genetic Algorithm (GA), Simulated Annealing (SA), Characteristic Ratio Assignment (CRA) and many more to obtain the optimal gain or parameter of PID controller which are Kp, Ki and Kd. Each of the performance is verifying in terms of rise time (Tr), settling time (Ts), steady-state error (SSE) and overshoot (OS).

3 1.3 Objectives The objectives of this project are: i. To model and simulate PID controller tuned by conventional method which are trial and error, auto-tuning, Ziegler-Nichols (Z-N) and Cohen-Coon (C-C) for CTS. ii. To obtain optimal parameters of the PID controller for CTS using Priority-Fitness based Particle Swarm Optimization (PFPSO) as the tuning method. iii. To compare the performance of CTS in terms of transient response specifications (settling time, overshoot, rise time and steady-state error) and validate it with PSO. 1.4 Scopes The scopes of this project are: i. Implemented PID controller in order to control the performance in terms of settling time of CTS. ii. Apply PFPSO as the tuning method in finding the optimal parameters of PID controller of CTS. iii. Use MATLAB and Simulink in writing PFPSO code and simulation.

4 CHAPTER 2 LITERATURE REVIEW 2.1 Theory and Basic Principle The industrial CTS are widely used in consumer liquid proceeding and chemical processing industry. In order to control the level of the liquid, a conventional PID controller had been implemented. There are several methods to find the parameters for PID controllers such as trial and error method, Z-N method and C-C method. 2.1.1 PID Controller PID controller is a control feedback mechanism controller which is widely used in industrial control system. PID controller involves three-term control which are the proportional (P), the integral (I) and the derivative (D). PID controller is used to calculate an error value as the difference between a measured process variable and a desired set point. It also used to minimize the error by adjusting the process control inputs.

5 u( t) K u( t) K p p e( t) K 1 e( t) Ti i e( t) dt K d e( t) dt T d de ( t) dt de ( t) dt (2.1) Where K p K i ; K d K ptd Ti In the PID controller, there are three parameters which needed to be tuned. One of the parameter was proportional gain, Kp in the proportional controller. This controller has the effect of reducing the rise time and steady-state error but the percentage of the overshoot in the system is high. In the integral controller, Ki as the integral gain, also decrease the rise time but it will eliminate the steady-state error of the system. Even though it eliminates the error but the percentage of the overshoot is increase and it will affect the settling time as well. In order to improve the performance of the system, derivative gain, Kd in the derivative controller is introduced. This controller will take action to improve the transient specification and stability of the system. The effects of the each of the controller on a closed-loop system are summarized in Table 2.1 shown below. Table 2.1: PID controller properties Effect of Performance Controller Rise Time, Steady-state Error, Overshoot, Settling Time, Tr SSE OS Ts Proportional, P Decrease Decrease Increase Small Change Integral, I Decrease Eliminate Increase Increase Derivative, D Small Change Small Change Decrease Decrease

6 In order to gain the high stability and short transient response of the system, the correct gain value must be obtained from the PID tuning. Even though it is only three control parameters, but to adjust the parameter referred to the Table 2.1 are difficult. Therefore, an optimization tuning method of PID controller is used to determine the value of the gains. 2.1.2 Conventional Tuning Method of PID Controller Tuning method is very important in control system. The values of the parameters in the controller can affect the performance of the system. The performance of the system can be generally improved by careful tuning but it also can be worst performance with poor tuning. In PID, there is several tuning method that can be used to find the desired control response. 2.1.2.1 Manual Tuning Manual tuning is the easiest way to get the value of the parameter because no mathematical is required. However, the value of the parameter is not guaranteed as the best value because it is obtained by trial and error method. For a PID controller, the Ki and Kd values must be set first to zero before increasing the Kp. This will takes a lot of time to obtain the good result. The time can only be shortened with the experienced personnel. 2.1.2.2 Ziegler Nichols (Z-N) Z-N is the tuning method that is widely used in the industry. It is developed by John G. Ziegler and Nanthaniel B. Nichols in 1940s. In this tuning method, Ki and Kd gain are also need to be set first to zero and then increase Kp until it reaches the ultimate gain, Ku at which

7 the output of the loop starts to oscillate in the oscillation period, Pu in PID controller. The set gain is shown in Table 2.2 and Table 2.3. The advantage of this tuning rule is that it gives the PID loops best disturbance rejection but it yields an aggressive gain and overshoot in the system. Controller Table 2.2: Closed-loop Ziegler-Nichols method in PID Controller Parameter Kp Ki Kd Proportional, P 0.50K u - - Proportional-integral, PI 0.45K u 1.2K p /P u - Proportional-integralderivative, PID 0.60K u 2K p /P u K p P u /8 Controller Table 2.3: Open-loop Ziegler-Nichols method in PID Controller Parameter Kc Ti Td Proportional, P Ko - - Proportional-integral, PI Proportional-integralderivative, PID 0.9Ko 1.2Ko 3.3 τ dead - 2 τ dead 0.5 τ dead where: Ko = (X o /M u )(τ/ τ dead )