An Expanded Optimal Control Policy for a Coupled Tanks System with Random Disturbance ()

Sie Long Kek^{1}, Sy Yi Sim^{2}, Chuei Yee Chen^{3}

^{1}Department of Mathematics and Statistics, Universiti Tun Hussein Onn Malaysia, Pagoh, Malaysia.

^{2}Department of Electrical Engineering Technology, Universiti Tun Hussein Onn Malaysia, Pagoh, Malaysia.

^{3}Department of Mathematics, Universiti Putra Malaysia, Serdang, Malaysia.

**DOI: **10.4236/apm.2019.94014
PDF
HTML XML
454
Downloads
1,731
Views
Citations

In this paper, an expanded optimal control policy is proposed to study the coupled tanks system, where the random disturbance is added into the system. Since the dynamics of the coupled tanks system can be formulated as a nonlinear system, determination of the optimal water level in the tanks is useful for the operation decision. On this point of view, the coupled tanks system dynamics is usually linearized to give the steady state operating height. In our approach, a model-based optimal control problem, which is adding with adjusted parameters, is considered to obtain the true operating height of the real coupled tanks system. During the computation procedure, the differences between the real plant and the model used are measured repeatedly, where the optimal solution of the model used is updated. On this basis, system optimization and parameter estimation are integrated. At the end of the iteration, the iterative solution approximates to the correct optimal solution of the original optimal control problem, in spite of model-reality differences. In conclusion, the efficiency of the approach proposed is shown.

Keywords

Expanded Optimal Control, Coupled Tanks System, Model-Reality Differences, Iterative Solution, Adjusted Parameters

Share and Cite:

Kek, S. , Sim, S. and Chen, C. (2019) An Expanded Optimal Control Policy for a Coupled Tanks System with Random Disturbance. *Advances in Pure Mathematics*, **9**, 317-329. doi: 10.4236/apm.2019.94014.

1. Introduction

A coupled tanks system, which consists of a joint of two tanks together through pipes in order to reserve water at the operating height level, is an important study in the control engineering and process industries [1] . The applications of the coupled tanks system have been widely used in the real-world process, for example, petrochemical, waste-water treatment, and purification [2] [3] . Essentially, the coupled tanks modeling provides a configurable process control experiment to engineers and researchers such that a wide array of modeling and control-related laboratory works on liquid control can be performed in advance [1] .

Theoretically, the dynamics of the coupled tanks system is formulated into a system of differential equations. The inflow and the outflow of the coupled tanks system are monitored in a simulation way in which the balance between the change rate of the water height level and the water flow in and out can be measured precisely. In addition to this, the water flow rate shall be controlled such that the equilibrium of the steady state along the operating height level is established. In literature, there are many studies on this steady state of the water level that are carried out. See for more detail in [4] [5] [6] .

In practice, the experimental works on the coupled tanks system, which cover the inflow and the outflow, are affected by some disturbances, such as inaccuracy of apparatus, man-made error and unfamiliar skill, and would give the inappropriate results [7] . Due to these reasons, the steady-state of the operating height level in the coupled tanks system is not easy to be addressed [8] . Therefore, approximating the operating height level in the coupled tanks system as accurately as possible attracts the interest of engineers and researchers.

Therefore, in this paper, an expanded optimal control policy, which takes into account different structures and parameters [9] [10] [11] , is proposed for determining the steady-state of the operating height level of a couple tanks system with random disturbance. In our approach, the adjusted parameters are added to the model used. Accordingly, the expanded optimal control model is further defined [12] [13] [14] . Especially, the optimal control policy, which is known as the expanded optimal control policy, is designed for solving the expanded optimal control model iteratively. On this basis, an illustrative example of the coupled tanks system, which is disturbed by the random noise, is presented. As a result, the optimal operating height level of the coupled tanks system is determined. Hence, the efficiency of the approach proposed is highly recommended.

The structure of the paper is organized as follows. In Section 2, the problem on the coupled tanks system is described, where the related mathematical model is formulated. In Section 3, the expanded optimal control model, which is added the adjusted parameters into the model used, is introduced. From the iterative calculation, the expanded optimal control policy, which determines the optimal operating height level in the coupled tanks system, is obtained. In Section 4, the illustrative example of the coupled tanks system is discussed. The result shows the application of the approach proposed. Finally, some concluding remarks are made.

2. Problem Statement

Consider that two tanks are joined to be the coupled tanks system [3] [4] [5] [6] . The system states are the water level H_{1} in Tank 1 and the water level H_{2} in Tank 2. The control input is the pump flow rate
${Q}_{i}$ and the variable to be controlled is the second state, which is the water level H_{2}, with disturbances that are caused by variations in the rate of flow out of the system by Valve B or by changes in Valve C. Hence, a mathematical model shall be built for each of the tank water levels. Figure 1 shows the system plant that is determined by relating the flow
${Q}_{i}$ into the tanks to the flow
${Q}_{c}$ leaving the valve at the tank bottom.

The flow balance equation for Tank 1 is given by

${A}_{1}\frac{\text{d}{H}_{1}}{\text{d}t}={Q}_{i}-{Q}_{b}$ (1)

where ${A}_{1}$ is the cross-sectional area of Tank 1, ${Q}_{b}$ is the flow rate of water from Tank 1 to Tank 2 through Valve B. While, for Tank 2, the flow balance equation is given by

${A}_{2}\frac{\text{d}{H}_{2}}{\text{d}t}={Q}_{b}-{Q}_{c}$ (2)

where ${A}_{2}$ is the cross-sectional area of Tank 2, ${Q}_{c}$ is the flow rate of water out of Tank 2 through Valve C. The system plant comes from the two flow balances and the nonlinear equations for flows through the valves.

With the assumption that the valves are ideal orifice, the flows through the valves will be related to the water levels in the tanks by the following expressions:

${Q}_{b}={C}_{db}{a}_{b}\sqrt{2g\left({H}_{1}-{H}_{2}\right)}$ and ${Q}_{c}={C}_{dc}{a}_{c}\sqrt{2g{H}_{2}}$ (3)

where
${a}_{b}$ and
${a}_{c}$ are, respectively, the cross sectional areas of the orifice at Valves B and C, and
${C}_{db}$ and
${C}_{dc}$ are the discharge coefficients of Valves B and C, respectively. These coefficients take into account all fluid characteristics, losses and irregularities in the system to make the two sides of (1) and (2) balance. The gravitational constant is given by g = 9.80 m/s^{2}. In addition to this, the two flow balances for ideal valves, which are given by (1) and (2), are rewritten by

Figure 1. A coupled tanks system.

${A}_{1}\frac{\text{d}{H}_{1}}{\text{d}t}={Q}_{i}-{C}_{db}{a}_{b}\sqrt{2g\left({H}_{1}-{H}_{2}\right)}$ (4)

${A}_{2}\frac{\text{d}{H}_{2}}{\text{d}t}={C}_{db}{a}_{b}\sqrt{2g\left({H}_{1}-{H}_{2}\right)}-{C}_{dc}{a}_{c}\sqrt{2g{H}_{2}}$ (5)

Here, (4) and (5) describe the coupled tanks system dynamics in the nonlinear manner with ideal equations for the valves. In practice, the cross sectional area is given by the dimensions of the valve and the flow channel, which could be more complicated.

Denote $x={\left(\begin{array}{cc}{x}_{1}& {x}_{2}\end{array}\right)}^{\text{T}}$ with ${x}_{1}={H}_{1},{x}_{2}={H}_{2}$ as the heights of water level in the tanks, $u={Q}_{i}$ is the control input, and let

${a}_{1}={C}_{db}{a}_{b}\sqrt{2g}$ and ${a}_{2}={C}_{dc}{a}_{c}\sqrt{2g}$ . (6)

In presence of the random disturbances, the system plant dynamics in (4) and (5) is rewritten as

$\frac{\text{d}{x}_{1}}{\text{d}t}=\frac{u}{{A}_{\text{}1}}-\frac{{a}_{1}}{{A}_{\text{}1}}\sqrt{{x}_{1}-{x}_{2}}+{\omega}_{1}$ (7)

$\frac{\text{d}{x}_{2}}{\text{d}t}=\frac{{a}_{1}}{{A}_{2}}\sqrt{{x}_{1}-{x}_{2}}-\frac{{a}_{2}}{{A}_{2}}\sqrt{{x}_{2}}+{\omega}_{2}$ (8)

where $\omega ={\left(\begin{array}{cc}{\omega}_{1}& {\omega}_{2}\end{array}\right)}^{\text{T}}$ is the Gaussian random variable with zero mean and covariance ${Q}_{\omega}$ . Hence, this problem of controlling the water level in Tank 2 can be formulated as an optimal control problem, which is referred to as Problem (P), given below [11] [12] :

Problem (P): Find the optimal control input u, which is the flow rate, to minimize the cost function

${J}_{0}=\frac{1}{2}{\displaystyle {\int}_{{t}_{0}}^{{t}_{1}}\left({\left({x}_{2}\left(t\right)-{x}_{2}^{s}\right)}^{\text{2}}+r{\left(u\left(t\right)-{u}^{s}\right)}^{\text{2}}\right)\text{d}t}$ (9)

subject to the system dynamics (7) and (8) with the output measurement $y={x}_{2}$ , where ${x}_{2}^{s}$ and ${u}^{s}$ are the steady states of the value, r is the positive weight coefficient, ${t}_{0}$ is the initial time and ${t}_{1}$ is the fixed terminal time.

Notice that the structure of Problem (P) is complex and nonlinear. Solving Problem (P) would be computational demanding. However, the optimal solution of Problem (P) could be obtained through solving its simplified model, which is referred to as Problem (M), given by

$\begin{array}{l}\underset{u}{\mathrm{min}}{J}_{1}=\frac{1}{2}{\displaystyle {\int}_{{t}_{0}}^{{t}_{1}}\left({\left({x}_{2}\left(t\right)-{x}_{2}^{s}\right)}^{2}+r{\left(u\left(t\right)-{u}^{s}\right)}^{2}\right)\text{d}t}\\ \text{subject}\text{\hspace{0.17em}}\text{to}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(\begin{array}{c}{\stackrel{\dot{}}{x}}_{1}\\ {\stackrel{\dot{}}{x}}_{2}\end{array}\right)=\left(\begin{array}{cc}-{k}_{1}& {k}_{2}\\ {k}_{3}& -{k}_{3}-{k}_{4}\end{array}\right)\left(\begin{array}{c}{x}_{1}\\ {x}_{2}\end{array}\right)+\left(\begin{array}{c}{k}_{5}\\ 0\end{array}\right)u+\left(\begin{array}{c}{\alpha}_{1}\\ {\alpha}_{2}\end{array}\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}y={x}_{2}\end{array}$ (10)

with

${k}_{1}={k}_{2}=\frac{{a}_{1}}{2{A}_{\text{}1}\sqrt{{x}_{1}^{s}-{x}_{2}^{s}}}$ , ${k}_{3}=\frac{{a}_{1}}{2{A}_{2}\sqrt{{x}_{1}^{s}-{x}_{2}^{s}}}$ , ${k}_{4}=\frac{{a}_{2}}{2{A}_{2}\sqrt{{x}_{2}^{s}}}$ , ${k}_{5}={A}_{1}^{-1}$ (11)

where ${x}^{s}={\left(\begin{array}{cc}{x}_{1}^{s}& {x}_{2}^{s}\end{array}\right)}^{\text{T}}$ and ${u}^{s}$ are the steady states of the value, whereas, $\alpha ={\left(\begin{array}{cc}{\alpha}_{1}& {\alpha}_{2}\end{array}\right)}^{\text{T}}$ is the adjustable parameter.

Refer to this simplified model, it is highlighted that the aim of adding the adjustable parameter into the model used in Problem (M) is to measure the differences between the system plant and the linear model used repeatedly. By virtue of this, the optimal solution of the model used could be updated in order to approximate the correct optimal solution of Problem (P), in spite of model-reality differences [9] - [14] .

3. System Optimization with Parameter Estimation

Now, refer to the cost function in (9) or (10), setting the weighting coefficient matrices Q and R, and the state transition matrix A and the control coefficient matrix B, respectively, to be

$Q=\left(\begin{array}{cc}0& 0\\ 0& 1\end{array}\right)$ , $R=r$ , $A=\left(\begin{array}{cc}-{k}_{1}& {k}_{2}\\ {k}_{3}& -{k}_{3}-{k}_{4}\end{array}\right)$ , $B=\left(\begin{array}{c}{k}_{5}\\ 0\end{array}\right)$ . (12)

Let $f={\left(\begin{array}{cc}{f}_{1}& {f}_{2}\end{array}\right)}^{\text{T}}$ represents the system dynamics function of the coupled tanks system, that is,

${f}_{1}\left(x\left(t\right),u\left(t\right)\right)=\frac{u}{{A}_{1}}-\frac{{a}_{1}}{{A}_{1}}\sqrt{{x}_{1}-{x}_{2}}$ (13)

${f}_{2}\left(x\left(t\right),u\left(t\right)\right)=\frac{{a}_{1}}{{A}_{2}}\sqrt{{x}_{1}-{x}_{2}}-\frac{{a}_{2}}{{A}_{2}}\sqrt{{x}_{2}}$ . (14)

Let us define an expanded optimal control problem, which is referred to as Problem (E), given by

$\begin{array}{c}\underset{u}{\mathrm{min}}{J}_{2}={\displaystyle {\int}_{{t}_{0}}^{{t}_{1}}\frac{1}{2}\left({\left(x\left(t\right)-{x}^{s}\right)}^{\text{T}}Q\left(x\left(t\right)-{x}^{s}\right)+{\left(u\left(t\right)-{u}^{s}\right)}^{\text{T}}R\left(u\left(t\right)-{u}^{s}\right)\right)}\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}+\frac{1}{2}{r}_{1}{\Vert u\left(t\right)-v\left(t\right)\Vert}^{2}+\frac{1}{2}{r}_{2}{\Vert x\left(t\right)-z\left(t\right)\Vert}^{2}\text{d}t\end{array}$

$\begin{array}{l}\text{subjectto}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\stackrel{\dot{}}{x}\left(t\right)=Ax\left(t\right)+Bu\left(t\right)+\alpha \left(t\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}y\left(t\right)=Cx\left(t\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}Az\left(t\right)+Bv\left(t\right)+\alpha \left(t\right)=f\left(z\left(t\right),v\left(t\right),t\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}v\left(t\right)=u\left(t\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}z\left(t\right)=x\left(t\right)\end{array}$ (15)

where $v\left(t\right)\in {\Re}^{2}$ and $z\left(t\right)\in {\Re}^{2}$ are introduced to separate the control variable and the state variable in the optimization problem from the respective signals in the parameter estimations problem, and $\Vert \text{\hspace{0.05em}}\cdot \text{\hspace{0.05em}}\Vert $ denotes the usual Euclidean

norm. The terms $\frac{1}{2}{r}_{1}{\Vert u\left(t\right)-v\left(t\right)\Vert}^{2}$ and $\frac{1}{2}{r}_{2}{\Vert x\left(t\right)-z\left(t\right)\Vert}^{2}$ with ${r}_{1}\in \Re $ and

${r}_{2}\in \Re $ are introduced to improve the convexity and to facilitate the convergence of the resulting iterative algorithm. It is important to note that the algorithm is designed in such a way that the constraints $v\left(t\right)=u\left(t\right)$ and $z\left(t\right)=x\left(t\right)$ are satisfied due on the termination of iterations, assuming convergence is achieved. The state constraint $z\left(t\right)$ and the control constraint $v\left(t\right)$ are used for the computation of the parameter estimation and the matching scheme, while the corresponding state constraint $x\left(t\right)$ and control constraint $u\left(t\right)$ are reserved for optimizing the linear model-based optimal control problem. Hence, system optimization and parameter estimation are mutually interactive.

3.1. Necessary Conditions

Define the Hamiltonian function by

$\begin{array}{c}H\left(t\right)=\frac{1}{2}\left({\left(x\left(t\right)-{x}^{s}\right)}^{\text{T}}Q\left(x\left(t\right)-{x}^{s}\right)+{\left(u\left(t\right)-{u}^{s}\right)}^{\text{T}}R\left(u\left(t\right)-{u}^{s}\right)\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}+\frac{1}{2}{r}_{1}{\Vert u\left(t\right)-v\left(t\right)\Vert}^{2}+\frac{1}{2}{r}_{2}{\Vert x\left(t\right)-z\left(t\right)\Vert}^{2}-\lambda {\left(t\right)}^{\text{T}}u\left(t\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}-\beta {\left(t\right)}^{\text{T}}x\left(t\right)+p{\left(t\right)}^{\text{T}}\left(Ax\left(t\right)+Bu\left(t\right)+\alpha \left(t\right)\right)\end{array}$ (16)

where $p\left(t\right)\in {\Re}^{2}$ is the Lagrange multiplier. Then, the augmented cost function for the cost function in (15) becomes

$\begin{array}{c}{J}_{a}={\displaystyle {\int}_{{t}_{0}}^{{t}_{1}}H\left(t\right)}-p{\left(t\right)}^{\text{T}}\stackrel{\dot{}}{x}\left(t\right)+\theta {\left(t\right)}^{\text{T}}\left(y\left(t\right)-Cx\left(t\right)\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}+\mu {\left(t\right)}^{\text{T}}\left(f\left(z\left(t\right),v\left(t\right),t\right)-Az\left(t\right)-Bv\left(t\right)-\alpha \left(t\right)\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}+\lambda {\left(t\right)}^{\text{T}}v\left(t\right)+\beta {\left(t\right)}^{\text{T}}z\left(t\right)\text{d}t\end{array}$ (17)

where $p\left(t\right),\mu \left(t\right),\lambda \left(t\right)$ and $\beta \left(t\right)$ are the appropriate multipliers to be determined later.

Applying the calculus of variation [14] [15] [16] , the following necessary conditions for optimality are obtained.

a) Stationarity:

$0={\nabla}_{u}H\left(t\right)=R\left(u\left(t\right)-{u}^{s}\right)+{B}^{\text{T}}p\left(t\right)+{r}_{1}\left(u\left(t\right)-v\left(t\right)\right)-\lambda \left(t\right)$ (18)

b) Co-state equation:

$-\stackrel{\dot{}}{p}\left(t\right)={\nabla}_{x}H\left(t\right)=Q\left(x\left(t\right)-{x}^{s}\right)+{A}^{\text{T}}p\left(t\right)+{r}_{2}\left(x\left(t\right)-z\left(t\right)\right)-\beta \left(t\right)$ (19)

c) State equation:

$\stackrel{\dot{}}{x}\left(t\right)={\nabla}_{p}H\left(t\right)=Ax\left(t\right)+Bu\left(t\right)+\alpha \left(t\right)$ (20)

d) Output equation:

$y\left(t\right)=Cx\left(t\right)$ . (21)

e) Boundary condition:

$x\left({t}_{0}\right)$ and $p\left({t}_{1}\right)$ are given. (22)

f) Adjustable parameter equation:

$f\left(z\left(t\right),v\left(t\right),t\right)=Az\left(t\right)+Bv\left(t\right)+\alpha \left(t\right)$ (23)

g) Multiplier equations:

$\lambda \left(t\right)=-{\left(\frac{\partial f}{\partial v}-B\right)}^{\text{T}}\stackrel{^}{p}\left(t\right)$ , (24)

$\beta \left(t\right)=-{\left(\frac{\partial f}{\partial z}-A\right)}^{\text{T}}\stackrel{^}{p}\left(t\right)$ . (25)

h) Separable variables:

$z\left(t\right)=x\left(t\right)$ , $v\left(t\right)=u\left(t\right)$ , $\stackrel{^}{p}\left(t\right)=p\left(t\right)$ (26)

with $\mu \left(t\right)=\stackrel{^}{p}\left(t\right)$ and $\theta \left(t\right)=0$ .

3.2. Modified Optimal Control Problem

From the necessary conditions (18)-(22), a modified optimal control problem, which is referred to as Problem (MM), is defined by

$\begin{array}{l}\underset{u}{\mathrm{min}}{J}_{3}={\displaystyle {\int}_{{t}_{0}}^{{t}_{1}}\frac{1}{2}\left({\left(x\left(t\right)-{x}^{s}\right)}^{\text{T}}Q\left(x\left(t\right)-{x}^{s}\right)+{\left(u\left(t\right)-{u}^{s}\right)}^{\text{T}}R\left(u\left(t\right)-{u}^{s}\right)\right)}\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}+\frac{1}{2}{r}_{1}{\Vert u\left(t\right)-v\left(t\right)\Vert}^{2}+\frac{1}{2}{r}_{2}{\Vert x\left(t\right)-z\left(t\right)\Vert}^{2}\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}-\lambda {\left(t\right)}^{\text{T}}u\left(t\right)-\beta {\left(t\right)}^{\text{T}}x\left(t\right)\text{d}t\\ \text{subject}\text{\hspace{0.17em}}\text{to}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\stackrel{\dot{}}{x}\left(t\right)=Ax\left(t\right)+Bu\left(t\right)+\alpha \left(t\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}y\left(t\right)=Cx\left(t\right)\end{array}$ (27)

with the specified $\alpha \left(t\right),\lambda \left(t\right),\beta \left(t\right),v\left(t\right)$ and $z\left(t\right)$ , where the boundary conditions $x\left({t}_{0}\right)$ and $p\left({t}_{1}\right)$ are given.

3.3. Optimal Control Law

The optimal control law for Problem (MM), which is known as the expanded optimal control policy, is a feedback control [9] - [14] . This control law is stated in the following theorem.

Theorem 1 (Expanded optimal control policy): Assume that the expanded optimal control policy exists. Then, this optimal control law is the feedback control law for Problem (MM), given by

$u\left(t\right)=-K\left(t\right)x\left(t\right)+{u}_{ff}\left(t\right)$ (28)

where

${u}_{ff}\left(t\right)=-{R}_{a}^{-1}{B}^{\text{T}}s\left(t\right)+{R}_{a}^{-1}{\lambda}_{a}\left(t\right)+{R}_{a}^{-1}R{u}^{s}$ (29)

$K\left(t\right)={R}_{a}^{-1}{B}^{\text{T}}S\left(t\right)$ (30)

$\stackrel{\dot{}}{S}\left(t\right)=-S\left(t\right)A-{A}^{\text{T}}S\left(t\right)-{Q}_{a}+S\left(t\right)BK\left(t\right)$ (31)

$\begin{array}{l}\stackrel{\dot{}}{s}\left(t\right)=-{\left(A-BK\left(t\right)\right)}^{\text{T}}s\left(t\right)-K{\left(t\right)}^{\text{T}}{\lambda}_{a}\left(t\right)+{\beta}_{a}\left(t\right)-S\left(t\right)\alpha \left(t\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}-S\left(t\right)B{R}_{a}^{-1}R{u}^{s}+{Q}_{a}{x}^{s}\end{array}$ (32)

with the boundary conditions $S\left({t}_{1}\right)=0$ and $s\left({t}_{0}\right)=0$ , and

${R}_{a}=R+{r}_{1}{I}_{2},\text{\hspace{0.17em}}{Q}_{a}=Q+{r}_{2}{I}_{2},\text{\hspace{0.17em}}{\lambda}_{a}\left(t\right)=\lambda \left(t\right)+{r}_{1}v\left(t\right),\text{\hspace{0.17em}}{\beta}_{a}\left(t\right)=\beta \left(t\right)+{r}_{2}z\left(t\right).$

Proof: From the necessary condition (18), the optimal control is written by

$u\left(t\right)=-{R}_{a}^{-1}{B}^{\text{T}}p\left(t\right)+{R}_{a}^{-1}{\lambda}_{a}\left(t\right)+{R}_{a}^{-1}R{u}^{s}$ . (33)

Applying the sweep method [15] [16] ,

$p\left(t\right)=S\left(t\right)x\left(t\right)+s\left(t\right)$ (34)

into (33), after some algebraic manipulations, the feedback control law (28) is obtained, where (29) and (30) are satisfied.

Also, substitute (34) into the costate equation (19) to yield

$-\stackrel{\dot{}}{p}\left(t\right)={Q}_{a}\left(x\left(t\right)-{x}^{s}\right)+{A}^{\text{T}}\left(S\left(t\right)x\left(t\right)+s\left(t\right)\right)-{\beta}_{a}\left(t\right)$ (35)

Differentiating both sides (34) with respect to t gives

$\stackrel{\dot{}}{p}\left(t\right)=\stackrel{\dot{}}{S}\left(t\right)x\left(t\right)+S\left(t\right)\stackrel{\dot{}}{x}\left(t\right)+\stackrel{\dot{}}{s}\left(t\right)$ (36)

Notice that (35) and (36) are equivalent. That is,

$-\stackrel{\dot{}}{S}\left(t\right)x\left(t\right)-S\left(t\right)\stackrel{\dot{}}{x}\left(t\right)-\stackrel{\dot{}}{s}\left(t\right)={Q}_{a}\left(x\left(t\right)-{x}^{s}\right)+{A}^{\text{T}}\left(S\left(t\right)x\left(t\right)+s\left(t\right)\right)-{\beta}_{a}\left(t\right)$ (37)

Then, consider the state equation (20) and the feedback control (28) in (37). After doing some algebraic manipulations by taking into account (29) and (30), then (31) and (32) are satisfied. This completes the proof.

Now, taking (28) into (20), the state equation becomes

$\stackrel{\dot{}}{x}\left(t\right)=\left(A-BK\left(t\right)\right)x\left(t\right)+B{u}_{ff}\left(t\right)+\alpha \left(t\right)$ (38)

with the output measurement

$y\left(t\right)=Cx\left(t\right)$ . (39)

3.4. Iterative Procedure

From the discussion above, the calculation procedure is summarized as an iterative algorithm given below.

Algorithm 1: Iterative algorithm

Data $A,B,C,Q,R,{x}_{0},{t}_{0},{t}_{1},{r}_{1},{r}_{2},{k}_{v},{k}_{z},{k}_{p}$ and f.

Step 0 Compute a nominal solution. Assuming that $\alpha \left(t\right)=0,{r}_{1}=0,{r}_{2}=0$ , compute $K\left(t\right)$ and $S\left(t\right)$ , respectively, from (30) and (31), and solve Problem (M) defined in (10) to obtain $u{\left(t\right)}^{0},x{\left(t\right)}^{0},p{\left(t\right)}^{0}$ . Set $i=0$ , $v{\left(t\right)}^{0}=u{\left(t\right)}^{0}$ , $z{\left(t\right)}^{0}=x{\left(t\right)}^{0}$ , $\stackrel{^}{p}{\left(t\right)}^{0}=p{\left(t\right)}^{0}$ , for $t\in \left[{t}_{0},{t}_{1}\right]$ .

Step 1: Compute the parameter $\alpha {\left(t\right)}^{i}$ from (23). This is called the parameter estimation step.

Step 2: Compute the multipliers $\lambda {\left(t\right)}^{i}$ and $\beta {\left(t\right)}^{i}$ from (24) and (25).

Step 3: Using $\alpha {\left(t\right)}^{i},\lambda {\left(t\right)}^{i},\beta {\left(t\right)}^{i},v{\left(t\right)}^{i}$ and $z{\left(t\right)}^{i}$ , solve Problem (MM) defined in (27) by using the result that is presented in Theorem 1. This is called the system optimization step.

1) Solve (32) forward to obtain $s{\left(t\right)}^{i}$ and solve (29) to obtain ${u}_{ff}{\left(t\right)}^{i}$ .

2) Use (28) to obtain the new control $u{\left(t\right)}^{i}$ .

3) Use (38) to obtain the new state $x{\left(t\right)}^{i}$ .

4) Use (34) to obtain the new costate $p{\left(t\right)}^{i}$ .

5) Use (39) to obtain the new output $y{\left(t\right)}^{i}$ .

Step 4: Test the convergence and update the optimal solution of Problem (P). In order to provide a mechanism for regulating convergence, a simple relaxation method is employed:

$\begin{array}{l}v{\left(t\right)}^{i+1}=v{\left(t\right)}^{t}+{k}_{v}\left(u{\left(t\right)}^{i}-v{\left(t\right)}^{i}\right)\\ z{\left(t\right)}^{i+1}=z{\left(t\right)}^{t}+{k}_{z}\left(x{\left(t\right)}^{i}-z{\left(t\right)}^{i}\right)\\ \stackrel{^}{p}{\left(t\right)}^{i+1}=\stackrel{^}{p}{\left(t\right)}^{t}+{k}_{p}\left(p{\left(t\right)}^{i}-\stackrel{^}{p}{\left(t\right)}^{i}\right)\end{array}$ (40)

where ${k}_{v},{k}_{z},{k}_{p}\in \left(0,1\right]$ are scalar gains. If $v{\left(t\right)}^{i+1}=v{\left(t\right)}^{i}$ within a given tolerance, stop; else set $i=i+1$ , and repeat the procedure staring from Step 1.

Remarks:

a) The nominal solution can be the optimal solution that is obtained from the standard linear quadratic regulator (LQR) optimal control problem.

b) The off-line computation for solving (30) and (31) is done at Step 0 before the iteration begins with assuming $\alpha \left(t\right)=0,\lambda \left(t\right)=0$ and $\beta \left(t\right)=0$ .

c) The numerical scheme for solving the ordinary differential equations of $S\left(t\right)$ and $s\left(t\right)$ can be used.

d) The relaxation method given in (40) establishes a matching scheme for the updating of the iterative solution.

4. Result and Discussion

For the numerical illustration, the physical parameters of the coupled tanks system are shown in Table 1 [4] . The steady states of the value are set at ${x}^{s}={\left(\begin{array}{cc}4.569& 3.655\end{array}\right)}^{\text{T}}$ and ${u}^{s}=3.322$ , while the weight of coefficient is r = 1 and the time given is $t\in \left[0,1\right]$ .

Follow from this, the algorithm proposed is applied to obtain the optimal operating height level in the coupled tanks system. For doing this task, the algorithm proposed is implemented in the MATLAB 2016 R1 environment in Window 8.1 Pro with the processor 2.10 GHz and the 64-bit operating system. Refer to Table 1, the system parameters used are calculated and given as follow:

$A=\left(\begin{array}{cc}-0.019442& 0.019442\\ 0.019442& -0.024302\end{array}\right)$ , $B=\left(\begin{array}{c}0.010695\\ 0.000000\end{array}\right)$ and $C=\left(\begin{array}{cc}0& 1\end{array}\right)$ .

The simulation result is shown in Table 2. The final cost gives a smaller value than the original cost, which saves about 0.039 percent of the original cost spent.

Figure 2 shows the trajectory of control input for the coupled tanks. The control input reduces its value dramatically from 3.33 units and then increases gradually after 0.2 seconds. It takes 0.6 seconds to converge to the steady state value ${u}^{s}=3.322$ . This behavior of the control input indicates that the flow rate, which is pumped into Tank 1 for the first 0.2 second, is moved into Tank 2 and reaches at the steady state after 0.8 seconds.

In addition to this, the water in Tank 2 is controlled at the steady-state value ${x}_{2}=3.655$ units as shown in Figure 3 and Figure 4. It can be seen that the original state trajectory is disturbed by the random disturbances. Nonetheless, the expected state trajectory, which is measured from the origin, is increased obviously in such a way that controlling the steady-state value of the water level in the second tank is made.

Table 1. Physical parameters of coupled tanks system.

Table 2. Simulation result.

Figure 2. Control trajectory.

Figure 3. State trajectory.

Figure 5 shows the stationary condition of the optimality. It verifies that the iterative algorithm proposed is efficient and the final solution is the optimal solution. As a result, the iterative algorithm proposed is applicable to making the decision on the operating height of the coupled tanks system.

Figure 4. Output trajectory.

Figure 5. Stationary condition of optimality.

5. Concluding Remarks

The use of the expanded optimal control policy in determining the operating height level in the coupled tanks system was discussed in this paper. The special feature of this expanded optimal control policy is that the model used, which is a linear model, has a different structure compared to the original problem, which is a nonlinear model. By adding the adjusted parameters into the model used, the differences between the model used and the original model could be measured iteratively. As a result, the flow rate of the coupled tanks system is controlled and the operating height level is achieved, in spite of model-reality differences. In conclusion, the efficiency of the expanded optimal control policy is highly presented.

Nonetheless, the optimal operating height level obtained by the algorithm proposed is the expected solution of the coupled tanks system, where the system is disturbed by the random noises. Apparently, this expected solution approximates to the steady-state value. In fact, an optimal solution of the coupled tanks system with random disturbance could be further improved by using the filtering techniques. Therefore, it is suggested to determine the optimal filtering solution of the coupled tanks system with the random disturbance in future research.

Acknowledgements

The authors would like to thank Universiti Tun Hussein Onn Malaysia (UTHM) and Ministry of Higher Education (MOHE) for the financial support for this study under the research grant FRGS 2018-1, VOT K079.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

[1] | Igic, J. and Bozic, M. (2014) Modified Approximate Internal Model-Based Neural Control for the Typical Industrial Processes. Electronics, 18, 46-53. |

[2] |
Saad, M., Albagul, A. and Abueejela, Y. (2014) Performance Comparison between PI and MRAC for Coupled-Tank System. Journal of Automation and Control Engineering, 2, 316-321. https://doi.org/10.12720/joace.2.3.316-321 |

[3] | Jaafar, H.I., Hussein, S.Y.S., Selamat, N.A., Nasir, M.N.M. and Jali, M.H. (2014) Analysis of Transient Response for Coupled Tank System via Conventional and Particle Swarm Optimization (PSO) Techniques. International Journal of Engineering and Technology, 6, 2002-2007. |

[4] | Owa, K., Sharma, S. and Sutton, R. (2014) A Novel Real-Time Nonlinear Wavelet-Based Model Predictive Controller for a Coupled Tank System. Journal of Systems and Control Engineering, 228, 419-432. |

[5] | Sim, S.Y., Kek, S.L. and Tay, K.G. (2017) Optimal Control of a Coupled Tanks System with Model-Reality Differences. AIP Conference Proceedings, 1872, Article ID: 020012. |

[6] | Sim, S.Y., Kek, S.L, Seow, T.W. and Tay, K.G. (2017) Controlling of Operation Height in a Coupled Tanks System with Model-Reality Differences. Journal of Multidisciplinary Engineering Science and Technology, 4, 6764-6770. |

[7] | Bhambhani, V. (2008) Optimal Fractional Order Proportional and Integral Controller for Processes with Random Time Delays. Master Thesis, Utah State University, Logan. |

[8] |
Abdulrahman, M.K.A., Mohd Ismail, A.A. and Kek, S.L. (2013) Determination of Normal Operating Heights of Reservoirs in a Network Using Nonlinear Reservoir Method. British Journal of Applied Science & Technology, 3, 34-47. https://doi.org/10.9734/BJAST/2014/1851 |

[9] |
Roberts, P.D. and Williams, T.W.C. (1981) On an Algorithm for Combined System Optimization and Parameter Estimation. Automatica, 17, 199-209. https://doi.org/10.1016/0005-1098(81)90095-9 |

[10] |
Roberts, P.D. and Becerra, V.M. (2001) Optimal Control of a Class of Discrete-Continuous Nonlinear Systems Decomposition and Hierarchical Structure. Automatica, 37, 1757-1769. https://doi.org/10.1016/S0005-1098(01)00141-8 |

[11] |
Becerra, V.M. and Roberts, P.D. (1996) Dynamic Integrated System Optimization and Parameter Estimation for Discrete Time Optimal Control of Nonlinear Systems. International Journal of Control, 63, 257-281. https://doi.org/10.1080/00207179608921843 |

[12] |
Kek, S.L., Teo, K.L. and Mohd Ismail, A.A. (2010) An Integrated Optimal Control Algorithm for Discrete-Time Nonlinear Stochastic System. International Journal of Control, 83, 2536-2545. https://doi.org/10.1080/00207179.2010.531766 |

[13] |
Kek, S.L., Teo, K.L. and Mohd Ismail, A.A. (2012) Filtering Solution of Nonlinear Stochastic Optimal Control Problem in Discrete-Time with Model-Reality Differences. Numerical Algebra, Control and Optimization, 2, 207-222. https://doi.org/10.3934/naco.2012.2.207 |

[14] |
Kek, S.L., Teo, K.L. and Mohd Ismail, A.A. (2015) Efficient Output Solution for Nonlinear Stochastic Optimal Control Problem with Model-Reality Differences. Mathematical Problems in Engineering, 2015, Article ID: 659506. https://doi.org/10.1155/2015/659506 |

[15] | Lewis, F.L. (1992) Applied Optimal Control and Estimation: Digital Design and Implementation. Prentice Hall, Inc., Upper Saddle River. |

[16] | Bryson, A.E. and Ho, Y.C. (1975) Applied Optimal Control. Hemisphere Publishing Company, New York. |

Journals Menu

Contact us

+1 323-425-8868 | |

customer@scirp.org | |

+86 18163351462(WhatsApp) | |

1655362766 | |

Paper Publishing WeChat |

Copyright © 2024 by authors and Scientific Research Publishing Inc.

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.