IMPROVING OF ph CONTROL FOR A WASTEWATER TREATMENT UNIT USING GENETIC ALGORITHM

Similar documents
Control of Neutralization Process in Continuous Stirred Tank Reactor (CSTR)

Nonlinear ph Control Using a Three Parameter Model

What do I need to know to pass an Advanced Industrial Wastewater License Test?

Research Article Stabilizing of Subspaces Based on DPGA and Chaos Genetic Algorithm for Optimizing State Feedback Controller

DESIGN OF AN ON-LINE TITRATOR FOR NONLINEAR ph CONTROL

CHEMICAL ENGINEERING LABORATORY CHEG 4137W/4139W. Reaction Kinetics Saponification of Isopropyl Acetate with Sodium Hydroxide

NonlinearControlofpHSystemforChangeOverTitrationCurve

Cascade Control of a Continuous Stirred Tank Reactor (CSTR)

Evolutionary Optimization Scheme for Exothermic Process Control System

Removal of Cd (II) and Cr (VI) from Electroplating Wastewater by Coconut Shell

A Tuning of the Nonlinear PI Controller and Its Experimental Application

Advanced Control of the Waste Water Treatment Unit in White Nile Tannery

Inferential Control of a Wastewater Treatment Unit

Modeling and Control of Chemical Reactor Using Model Reference Adaptive Control

World Journal of Engineering Research and Technology WJERT

FUZZY LOGIC CONTROL OF A NONLINEAR PH-NEUTRALISATION IN WASTE WATER TREATMENT PLANT

Glossary of Common Laboratory Terms

THE ANNALS OF "DUNAREA DE JOS" UNIVERSITY OF GALATI FASCICLE III, 2000 ISSN X ELECTROTECHNICS, ELECTRONICS, AUTOMATIC CONTROL, INFORMATICS

Genetic Algorithm for Solving the Economic Load Dispatch

Genetic-Algorithm-Based Optimisation for Exothermic Batch Process

reality is complex process

ARTIFICIAL NEURAL NETWORK WITH HYBRID TAGUCHI-GENETIC ALGORITHM FOR NONLINEAR MIMO MODEL OF MACHINING PROCESSES

Design and Comparative Analysis of Controller for Non Linear Tank System

Experimental Investigations on Fractional Order PI λ Controller in ph Neutralization System

Modified Mathematical Model For Neutralization System In Stirred Tank Reactor

Temperature Control of CSTR Using Fuzzy Logic Control and IMC Control

Design of Decentralised PI Controller using Model Reference Adaptive Control for Quadruple Tank Process

Improved Identification and Control of 2-by-2 MIMO System using Relay Feedback

CHAPTER 7 MODELING AND CONTROL OF SPHERICAL TANK LEVEL PROCESS 7.1 INTRODUCTION

On The Time Lag of A First-Order Process s Sinusoidal Response

ECE Introduction to Artificial Neural Network and Fuzzy Systems

Design and analysis of the prototype of boiler for steam pressure control

Hydrogen Sulfide Removal from Waste Air by Oxidation reaction with Sodium Hypochlorite in CSTR

CHBE320 LECTURE XI CONTROLLER DESIGN AND PID CONTOLLER TUNING. Professor Dae Ryook Yang

Basic Concepts in Data Reconciliation. Chapter 6: Steady-State Data Reconciliation with Model Uncertainties

Chapter 8. Feedback Controllers. Figure 8.1 Schematic diagram for a stirred-tank blending system.

Control Introduction. Gustaf Olsson IEA Lund University.

Design Of Optimal Pid Controller Using Genetic Algorithm

Lecture 9 Evolutionary Computation: Genetic algorithms

CONSIM - MS EXCEL BASED STUDENT FRIENDLY SIMULATOR FOR TEACHING PROCESS CONTROL THEORY

SAN DIEGO COMMUNITY COLLEGE DISTRICT CITY, MESA AND MIRAMAR COLLEGES ASSOCIATE DEGREE COURSE OUTLINE

Overview of Control System Design

REAL-TIME MODELLING AND SIMULATION APPLIED TO THE TREATMENT OF ELECTROPLATING WASTEWATER. Cécile NARCE, Konrad SZAFNICKI, Jacques BOURGOIS

Soft Computing Technique and Conventional Controller for Conical Tank Level Control

Technology offer: Wastewater treatment by electrocoagulation (EC)

PROCESS CONTROL (IT62) SEMESTER: VI BRANCH: INSTRUMENTATION TECHNOLOGY

A fuzzy logic controller with fuzzy scaling factor calculator applied to a nonlinear chemical process

Lecture (9) Reactor Sizing. Figure (1). Information needed to predict what a reactor can do.

Dynamic simulation of DH house stations

DESIGN OF AN ADAPTIVE FUZZY-BASED CONTROL SYSTEM USING GENETIC ALGORITHM OVER A ph TITRATION PROCESS

Approximate Volatile Acids by Titration

Dynamics, Simulation, and Control of a Batch Distillation Column using Labview

Water Treatment: Coagulation

Design and Implementation of Two-Degree-of-Freedom Nonlinear PID Controller for a Nonlinear Process

CBE495 LECTURE IV MODEL PREDICTIVE CONTROL

Atomic Absorption Spectroscopy and Atomic Emission Spectroscopy

Standard Operating Procedure for: ph using Oakton ph 5+ Handheld ph Meter. Missouri State University. and

ISSN: [Nehal* et al., 6(4): April, 2017] Impact Factor: 4.116

Titration 2: CH 3 COOH Titrated with NaOH

Nonlinear PI control for dissolved oxygen tracking at wastewater treatment plant

Mathematical model for neutralization system

Contents. PART I METHODS AND CONCEPTS 2. Transfer Function Approach Frequency Domain Representations... 42

CHEMICAL PROCESS CONTROL BY STEPHANOPOULOS SOLUTION MANUAL

CEE 370 Environmental Engineering Principles

YTÜ Mechanical Engineering Department

MODELLING AND REAL TIME CONTROL OF TWO CONICAL TANK SYSTEMS OF NON-INTERACTING AND INTERACTING TYPE

BITS-Pilani Dubai, International Academic City, Dubai Second Semester. Academic Year

Performance Analysis of ph Neutralization Process for Conventional PI Controller and IMC Based PI Controller

Department of Mathematics, Graphic Era University, Dehradun, Uttarakhand, India

CSC 4510 Machine Learning

Simulation based Modeling and Implementation of Adaptive Control Technique for Non Linear Process Tank

Solutions for Tutorial 10 Stability Analysis

Reactor Design within Excel Enabled by Rigorous Physical Properties and an Advanced Numerical Computation Package

Modelling and Advanced Control of a Biological Wastewater Treatment Plant

NGSS Example Bundles. Page 1 of 13

GENETIC ALGORITHM FOR CELL DESIGN UNDER SINGLE AND MULTIPLE PERIODS

Design of de-coupler for an interacting tanks system

Dynamics and Control of Double-Pipe Heat Exchanger

Evolutionary Algorithms

Prof. Dr. Biljana Škrbić, Jelena Živančev

Technical Resource Package 1

Optimization of Phase-Locked Loops With Guaranteed Stability. C. M. Kwan, H. Xu, C. Lin, and L. Haynes

Model Predictive Control Design for Nonlinear Process Control Reactor Case Study: CSTR (Continuous Stirred Tank Reactor)

Feedback Control of Linear SISO systems. Process Dynamics and Control

HYBRID FUZZY LOGIC AND PID CONTROLLER FOR PH NEUTRALIZATION PILOT PLANT

Relations in epidemiology-- the need for models

CHALLENGES ASSESSING AND TREATING WASTEWATER FROM BIOTECHNOLOGY SCALE UP OPERATIONS

Multiobjective optimization for automatic tuning of robust Model Based Predictive Controllers

Water Quality - Condensed Version 1999

9. Determination of the solubility product of KIO 4 and an investigation of the common ion effect Student Sheet

Chemical Oxidation Oxidizing agents

CHEMISTRY 130 General Chemistry I OXIDATION-REDUCTION CHEMISTRY

MULTILOOP PI CONTROLLER FOR ACHIEVING SIMULTANEOUS TIME AND FREQUENCY DOMAIN SPECIFICATIONS

PERFORMANCE ANALYSIS OF TWO-DEGREE-OF-FREEDOM CONTROLLER AND MODEL PREDICTIVE CONTROLLER FOR THREE TANK INTERACTING SYSTEM

ANALYSIS AND CONTROL OF PROCESSES

Method to 0.50 mg/l NH 3 N Powder Pillows

Dynamic Matrix controller based on Sliding Mode Control.

Mass integration for recovery of zinc from galvanizing and metal finishing industry using supertargeting approach

RATE LAW DETERMINATION OF CRYSTAL VIOLET HYDROXYLATION

Temperature Control of Catalytic Cracking Process Using SCADA and PLC

Transcription:

IMPROVING OF ph CONTROL FOR A WASTEWATER TREATMENT UNIT USING GENETIC ALGORITHM GHANIM M. ALWAN Assist. Prof. Dr. University of Technology, Chemical Engineering Department, Iraq ghnm_mag@yahoo.com FAROOQ A. MEHDI Assist. Lecturer University of Technology, Chemical Engineering Department, Iraq Farooqahmed721@yahoo.com MURTADHA SABAH MURTADHA University of Technology, Chemical Engineering Department, Iraq Mur7sabah@yahoo.com KEYWORDS: Genetic algorithm, ph, Process control, LAB view, Wastewater. ABSTRACT LabVIEW technique is the powerful graphical programming language that has its roots in operation, automation control and data recording for the wastewater system with multiple contaminants of heavy metals; Cu, Cr, and Fe from the electroplating process. LabVIEW is a flexible language that contains large number of functions and tools. ph of wastewater is the major key of precipitation process which selected as the desired value of the treatment system. The flow rate of chemical reagents (acid and base) can be selected as the effective decision variable. The ph process dynamically behaved as the first order lag system with dead time. PI mode would be proven as the best scheme for control the fast ph process. Genetic algorithm has found the suitable stochastic technique for adaptation controller parameters of the unsteady state nonlinear process. PI genetic adaptive controller improves the performance of the process.. INTRODUCTION Water pollution is a great problem that menace man life therefore water treatment is a very impartment, there are many reasons to this problem like biological, thermal, heavy metals and other pollution.

Wastewater from metal finishing industries contains contaminants such as heavy metals, organic substances, cyanides and suspended solids at levels, which are hazardous to the environment and pose potential health risks to the public. Heavy metals, in particular, are of great concern because of their toxicity to human and other biological life (website, 1999). It was shown that the wastewater neutralization processes performing in a continuous form present a very difficult and challenging control problem due to neutralization process is highly nonlinear and sensitivity of the water acidity (ph) to reagent addition tends to be extreme near the equivalence point, and small portion of reagent can result in a change of one ph unit. ph has the major role for precipitation process of heavy metals from a wastewater (Figure 1). ph control in clean water treatment is relatively easy and consequently can often be satisfactorily controlled using PI control (Henson et al, 1994). LabVIEW (Laboratory Virtual Instrument Engineering Workbench) is a graphical programming language that uses icons instead of lines of text to create applications. In contrast to text-based programming languages where instructions determine the order of program execution, LabVIEW is a flexible language that contains large number of functions and tools also it is a flexible language that contains large number of functions and tools (Zeng et al, 2006). From previous work, the LabVIEW was used mainly as monitoring system for water treatment units. In the present work, the LabVIEW enhances the performance of ph control for wastewater treatment unit (Figure 2). Fig. 2. LabVIEW front panel of ph control system. Fig. 1. Precipitation of metals as a function of ph. The stochastic search is more suitable than deterministic algorithms for nonlinear function. GA is search algorithm based on mechanics of natural selection and natural genetics.ga is based on Darwin's theory of survival of

the fittest. There are several genetic operators, Such as; population, selection, crossover and mutation etc (Figure 3). Each chromosome represents a possible solution to the problem being optimized, and each bit (or group of bits) represents a value of variable of the problem (gene). A population of chromosomes represents a set of possible solution. These solutions are classified by an evaluation function, giving better values, or fitness, to better solution (Gupta et al, 2006). OBJECTIVE OF THE WORK 1. Study the process variables that affecting the ph of wastewater to find the decision variables which selected as manipulated variables. 2. Study the dynamic characteristics of the nonlinear ph systems. 3. Implementation of the optimal criteria to select the PID controllers' settings. 4. Improving the control system by adaptive and genetic adaptive control algorithms. Input / output Interface ph1 M1 Fig. 3. Schematic diagram of experimental set-up. ph2 M2 EXPERMENTAL SET-UP The Lab-scale experimental wastewater set-up was used to evaluate the performance of the control software developed in LabVIEW. The experimental rig was designed and constructed into the best way to simulate the real process and collect the reliable data (Figures 2 and 3). There are a few methods for the precipitation of heavy metals, namely as hydroxides, sulphides and carbonates. However, the two main methods currently in use are hydroxides and sulphides The treatment process includes the following steps: 1. Adjustment of the ph of wastewater. 2. Reaction of heavy metals ions with sulphuric acid (oxidation of Cr and Fe) then with sodium hydroxide. 3. Precipitation of sludge. 4. Evacuations and filtration of clear water thorough sand filter. Since the ph of water have the major effect on precipitation process of heavy metals from wastewater as shown in

Figure (1), so the ph control of wastewater becomes the essential aim for treatment processes (Sultan, 1998). sodium hydroxide. These variables are selected as the manipulating variables in process control. Formulating of the process correlations Two advanced nonlinear regression were used which are: Newton-Quasi and Hook-Jeevs pattern moves to formulate the developed objective functions of the process depended on experimental data with the aid of the computer program (statistica version 6). The empirical equations correlate the desired values with the decision (manipulating) variables. The interacted correlations are: For acid neutralization tank: ph 1 =6.5 7.367N. F. (1) And, for base neutralization tank: ph 2 =4+2.92N. F. (2) With inequality constraints: 1.5 < F 1 < 4.0 0.5 < F 2 < 2.0 0.005 < N 1 < 0.05 0.05 < N 2 < 0.1 (3) Fig.4. Genetic algorithm process flowchart. RESULTS AND DISCUSSION Selection of decision variables There were two critical variables that could be selected as the decision variables which are; the inlet flow rate & concentration of sulphuric acid and Equations (1 and 2) are used to select the effective variable on ph. It shows that the power of flow rate (F) is greater than that of concentration (N), so the flow rate can be considered as the more effective variable will be used as the manipulated variable for two process tanks. As in the most industrial processes the flow rate of chemicals is used as a manipulated variable due to simpler design control system (Marchioetto, 2002). Experimentally the optimum value of ph for acidic neutralization tank is (~2) while

equal to (~8) for basis tank. These values would be confirmed by(marchioetto,2002) and taken as the desired values of the controlled systems. Dynamic characteristics It is difficult to formulate and identify a mathematical model for the ph process as small as amount of polluting element will change the process dynamics considerably (Shinskey, 1973). It is better that the dynamics characteristics of the ph process will be studied without precipitation using process reaction curve at the desired operating conditions. The ph process would be considered as a dynamic batch titration process with fast reaction and the ph response yield sigmoid shape curve (Chaudhuri, 2006). Precipitation was poorly known phenomenon and it was difficult to derive an accurate model for the system (Barraud et al, 2009). Figures (5 and 6) show that the present ph process is non-linear and has S shape under dynamic conditions. The dynamic responses of the neutralization tanks against step change in the chemical reagents (acid / base) flow rates are illustrated in Figures (5 and 6). Process reaction curve (PRC) technique was implemented for two processes (Stephanopoulos, 1984). Figure (6) explains the PRC analysis of hydroxide neutralization process. Also the similar analysis was applied to the sulphuric acid neutralization tank. Fig. 5. ph of wastewater response for acidic reagent. Fig. 6. Dynamic analysis of hydroxide neutralization tank using PRC. However, the transfer functions of the ph systems are: For acid process: ( ). G p1 (s) = = e -3s (4) ( ) While for base process: ( ). G p2 (s) = = e -4s (5) ( )

From Equations (4 and 5), the dynamic approach of the ph process is the first order lag system with dead time.the dynamic model of the system is valid for the certain operating conditions (Equation 3).The transfer functions of the processes are required for estimation the optimum controllers settings by different control schemes. Actually, the ph system can be dynamically described as a multi-capacitance system. Two systems in series; first represents the mixing is tank as a first lag system and the second is the ph-electrode which can be almost represented by first lag system. Since the time lag of phelectrode was small (about one second) when compared to that of the process, then the system approximately can be represented by the first order lag with dead time model. Since the system was unsteady state ph process, so that the dynamics characteristic could be varied with time. Conventional PID Controller In the present work, the process reaction curve (PRC) method (Stephanopouls, 1984) was used to find the optimum control settings. Figures (7 & 8) and Tables (1 & 2) prove that the PI controller is the effective and suitable scheme for both processes. This is due to that the ph response has lower deviation (IAE) and settling time when compared to P and PID controllers. The derivative action is very sensitive action will increase the proportional gain (K c ) which possible producing excessive oscillation as shown in Figures (9-a and ph Response 9-b). However, the PD control is not suitable for the present P H neutralization process due to small time lag, time delay and mixing noise. Generally, the wastewater ph control can present a very difficult control problem. For this reason, ph control by conventional PID controller is ineffective (Henson et al, 1994). Table 1. Comparison between the modes of conventional PID controllers for acidic process. Type of Control IAE P 96.99 23 PI 76.60 19 PID 92.02 24 Settling time(sec) Table 2. Comparison between the modes of conventional PID controllers for hydroxide process. Type of Control IAE P 146.9 81 PI 129.5 66 PID 137.1 72 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 Settling time(sec) 0.2 PID Control 0.1 PI Control P Control 0 0 20 40 60 80 100 120 Time(sec)

Fig.7. ph response of acidic process with conventional PID control. 4 3 Kc=0.44 TauD=3.1 Kc=0.44 TauD=0.5 2 Control Action 1 0-1 -2 0 20 40 60 80 100 120 Time(sec) Fig. 8. ph response of hydroxide process with conventional PID control. Fig. 9-b. Control action of PD control for hydroxide process. ph response 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 Kc=0.44 TauD=3.1 Kc=0.44 TauD=0.5 0 0 20 40 60 80 100 120 Time(sec) Fig. 9-a: ph response with PD control for hydroxide process. The performance of a tuned PID with PRC technique was not satisfactory due to the nonlinearity characteristic of the process (Salehi et al, 2009). Generally, the wastewater ph control can present a very difficult control problem. For this reason, ph control by conventional PID controller is ineffective (Proudfoot et al, 1983). Adaptive PI controller The main reasons to use the adaptive controllers in the present ph process are; the process is non-linear and nonstationary (i.e. their characteristic change with time. Adaptive PI control was used with the aid of MATLAB program to generate new values for K c & τ as shown in Table (3) for both acidic

and caustic processes. The deterministic adaptations mechanism is based on the present transfer functions of the system in s-domain and depending on criteria of minimizing the error (Henson et al, 1994 and Salihi et al, 2009). Figure (10) and Table (6) show the improvement in the response of ph by adaptive PI control regarding to the conventional type. The inaccurate results in the adaptive technique was due to that the sequence of controller parameters adaptation operated in series i.e., estimating the optimum K c firstly, then the optimum τ was calculated secondly after interval time.the deterministic method was not accurate estimation since the ph system was highly nonlinear and the process variables were suddenly changed (Salehi et al, 2009). Table 3. Adaptive control system results. Process K c,sec Acidic 1 8 Caustic 2.7 20 Genetic Adaptive Control The stochastic genetic algorithm (Figure 3) was implemented to improve the settings of PI controller of acidic and caustic processes with the aid of the MATLAB computer program. GA is search algorithm based on mechanics of natural selection and natural genetics. The stochastic adaptations mechanism is based on the present transfer functions of the system in z-domain. Table (4) explains the best operators of GA algorithm. The stochastic mechanism of adaptation by genetic algorithm used to determine the optimum controller settings (K c & τ ) as shown in Table (5).The stochastic genetic search method has found more reliable than the deterministic method for adaptation of the PI controller setting. Figure (10) illustrates the ph responses with conventional, adaptive and genetic adaptive PI control. Genetic adaptive PI control was fast to reach the desired value and with low absolute error (IAE) compared to the others control schemes (conventional & adaptive) as shown in Table (6). Table 4. Adapted operators of the multiobjective GA. Table 5. Genetic algorithm controllers' settings for acidic & caustic process. Process K c,sec. Operator Population type Population size Crossover function Crossover fraction Mutation function Migration direction Migration fraction Number of generation Function tolerance Acidic 0.98 6.25 Caustic 1.34 18.7 Type and values Double vector 80 Scattered 0.8 Adaptive feasible Forward 0.2 13 1.0E-6

Tables 6. Comparison between control types for acidic & caustic process. Process Type IAE Acidic Conventional PI 129.555 Adaptive PI 122.415 Genetic PI 116.52 Caustic Conventional PI 76.605 Adaptive PI 72.135 Genetic PI 66.92 3. PI mode is more active than P and PID controllers for fast ph process. PD scheme is undesirable use in the present control system. 4. The adaptation of controller parameters for unsteady state and nonlinear system enhances the efficiency of the controller. 5. Genetic algorithm has found the suitable stochastic search technique for estimate the controller parameters. Genetic adaptive PI control is the best scheme for adjusting the ph of wastewater treatment process. NOMENCLATURE F 1 Flow rate of sulphuric acid, [cm 3 /sec] F 2 Flow rate of sodium hydroxide, [cm 3 /sec] G p1 (s) Transfer function of acidic system, [ph/ cm 3 /sec] G p2 (s) Transfer function of base system, [ph/ cm 3 /sec] N 1 Inlet concentration of acid solution, [mole/ L] N 2 Inlet concentration of base solution, [mole/ L] s Laplacian variable, [sec -1 ] Fig.10. ph response with different control scheme for acidic process. CONCLUSIONS 1. LabVIEW has found the powerful and versatile programming language for operating and controlling the fast ph process. 2. The flow rate of chemical reagent is selected as the effective and decision variable for control the ph of wastewater system. Greek Letters τ Integral time constant, [sec] LISTOF ABBREVIATIONS IAE Integral of Absolute of Error K c Proportional gain, [Mv/pH] P Proportional PD Proportional-Derivative PI Proportional-Integral PID Proportional-Integral-Derivative

REFERENCES Website: www.selfwater.org. International Occupational Safety and Health Information Centre (1999). Journal: Barraud, J. Creff, Y. and Petit, N., ph control of feed batch Reactor with Precipitation:, Journal of Process Control, 19, (2009). Journal: Chaudhuri, V. R., Comparative Study of ph in an Acidic Effluent Neutralization Process, IE- Journal-CH, Vol. 86, pp.64-72, March (2006). Journal: Henson, M.A. and Dale, E.S., Adaptive Nonlinear Control of a ph Neutralization Process, IEEE Tran-Cont. Sys. Tech., Vol. 2, No. 3, Aug. (1994). Journal: Salehi, S., Shahrokhi, M. and Nejati, A. Adaptive nonlinear Control of ph Neutralization Processes Using Fuzzy Approximators, Control Engineering Practice, Elsevier, pp. 1329-1337, 17, (2009). Journal: Sultan, I. A., Treating Metal Finishing Wastewater, A Quiche Inc., Environmental Technology, (Technical report) March, April, (1998). Journal: Zeng, L., Lin, G.J., and Lin, J.Y., Application of Lab VIEW in on-line monitoring and Automatic control of Fermentation Process, Control & Computer, No. 22,P. 48-50, (2006). Journal: Gupta,A.K and Srivastava, R.K, "Integral water Treatment plant design optimization: A genetic Algorithm based approach", Journal of Environmental engineering, vol. 87, September,(2006). Journal: Marchioetto, M.M., Brunin,H. and Rulkens,W.H., Optimization of Chemical Dosage in Heavy Metals Precipitation in An aerobically Digested Sludge, Subdepartment of Environmental Technology, Wageningen university, Brazil, (2002). Book: Shinskey, G., ph and Control in process and Waste stream, John Wiley, N.Y., (1973). Book: Stephanopoulos, G. Chemical Process Control an Introduction to Theory and Practice, Prentice-Hall, 2 nd edition, N.J., (1984).