<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>International Conference on Computer and Intelligent Control, June</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Research on liquid level control method and active disturbance rejection of double tank</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ying Lin</string-name>
          <email>yingl_2024@163.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>School of Internet of Things Engineering, Jiangnan University</institution>
          ,
          <addr-line>Wuxi 214122</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>2</volume>
      <fpage>9</fpage>
      <lpage>30</lpage>
      <abstract>
        <p>Due to the non-linearity, large hysteresis and time variability of the liquid level of the dual tank, the traditional PID control is difficult to achieve the ideal control effect and the parameters are not self-adaptive in the absence of accurate mathematical model. To meet the requirement of multi-level rapid control and auto-disturbance rejection for two-capacity water tank system, a double-fuzzy cascade PID control method with adaptive factors is proposed based on the traditional single-loop cascade fuzzy control strategy. The double fuzzy cascade structure not only improves the performance of the controller, but also adds the self-adjusting factor to optimize the control rules of the fuzzy controller by modifying the quantization factor, and improves the dynamic performance and auto-immunity of the system. Finally, Matlab/Simulink simulation verifies the effectiveness and optimization of the proposed control strategy compared with the traditional method. dual tank control, self-adjusting factor, fuzzy PID, active disturbance rejection is complicated.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <sec id="sec-1-1">
        <title>1.1. Research background</title>
        <p>
          The problem of liquid level and flow control occurs in various fields such as People's Daily
life and industrial production, including the control of liquid storage tank involved in urban
domestic water supply and other processing and production processes. The liquid level
should be neither too full nor too low, which should be within a certain range [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]. Therefore,
it is significantly vital to study the control method of the liquid level of the water tank, so
that the liquid level can keep the expected value faster and more stable, eliminating the
disturbance quickly. Double-capacity water tank is a typical nonlinear liquid level control
system, which is easily affected by frequent fluctuations of external water pressure, and has
the characteristics of large lag, nonlinear and time-varying [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. The whole control process
        </p>
      </sec>
      <sec id="sec-1-2">
        <title>1.2. Literature review</title>
        <p>
          Traditional control methods of dual tank include single-loop PID, Smith predictor and
cascade PID control method [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. These methods having simple structure can solve most
liquid level systems with low accuracy requirements. In view of the difficulty of PID
parameter tuning, some scholars proposed an adaptive particle swarm optimization (APSO)
algorithm to optimize PID parameters in the dual tank level control system [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. With the
further study, it is required that the PID parameters can be adjusted online, and the fuzzy
controller is used to adjust the PID parameters [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. Combining the fuzzy control and PID
control, the fuzzy PID liquid level control system based on Larsen is proposed, which has
obtained better optimization control effect than the traditional PID [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ].
        </p>
        <p>
          At present, the method of adding self-adjusting factor [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] to the fuzzy controller for
adaptive control is proposed in existing studies, but it hasn’t applied to the liquid level
control system yet and is just a single closed-loop structure, which has weak resistance to
disturbance. The main contribution of this paper is that a strategy for the level control of
dual tank based on fuzzy cascade PID with self-adjusting factor is proposed. By adding an
adaptive factor A which is also generated by fuzzy inference, the performance of fuzzy
controller will be improved.
        </p>
        <p>This paper is organized as follows: In Section 2, the model of water level for the double
tank is constructed and mpirical model parameters are applied. Section 3 introduces PID
controller parameters and fuzzy controller rule setting. Then an adaptive fuzzy cascade
control model is proposed to improve the control effect. In Section 4, the Matlab simulation
model is used to verify that the control strategy has better dynamic response characteristics
than ordinary fuzzy control, and can restore the steady-state setting faster after adding
interference. Section 5 gives the conclusions.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Establishment of liquid level system model of double tank</title>
      <sec id="sec-2-1">
        <title>2.1. Choice of modeling method</title>
        <p>In the transfer function transformation of physical model, there are two methods:
mechanism modeling and empirical modeling. Empirical modeling needs to select a model
with the highest matching degree as the empirical model according to the experimental
data of input and output and certain performance requirements.</p>
        <p>Since the empirical modeling only tests and describes the dynamic characteristics from
the external characteristics, the mechanism modeling method is adopted here because of
the lack of measured data. For the double tank, the material balance process of the upper
and lower tank is selected to study.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Mathematical model building</title>
        <p>The system structure of the two-capacity water tank is shown in Figure 1.</p>
        <p>H1</p>
        <p>Water Tank A</p>
        <p>A1</p>
        <p>H2</p>
        <p>R1</p>
        <p>Q1
Water Tank B</p>
        <p>A2</p>
        <p>R2</p>
        <p>Qo
under steady state conditions are   0 =  10 =   0 . The degree to which each variable
deviates from the initial steady-state value can be expressed in incremental form:
According to the material conservation formula into the incremental formula:
∆</p>
        <p>=  −  0
∆ =  −  0
 1 
 2 
 ∆ 1
 ∆ 2
= ∆  −  1
= ∆ 1 −  
(1)
(2)
(3)
(4)
system.
point:</p>
        <p>Due to the nonlinear and hysteresis characteristics of the double tank level control
system, it is difficult to analyze and control the system. However, when the liquid level
always changes within a small range of its stable value, we can linearize the nonlinear
Linearize the nonlinear relationship  1,   and  1,  2 at the steady-state operating
⎪
⎨
⎩
⎪  =  2  2 ≈   0 +
⎧  1 =  1  1 ≈  10 +</p>
        <p>( 1 −  10) =  10 +
  1
 
 
   ( 2 −  20) =   0 +</p>
        <p>1
2  10</p>
        <p>2
2  20
∆
∆
Omit the increment symbol and get:</p>
        <p>1
⎧</p>
        <p>⎨  2
⎩ 
=
=
1
 1
1
 2
(  −  1)
( 1 −   )
where  1 =  1  1,   =  2  2,  1( ) =  1
 1( ),   =  2
 2( )
and  1,  2 are the water
resistance of the two valves.</p>
        <p>The transfer function is obtained by simplifying each link and performing equivalent
transformation:
 1( )
 1( )
=
pure hysteresis link is added here, and the final result is:</p>
        <p>The transfer function of the two water tanks in the two-capacity water tank liquid level
system is obtained by bringing in the value:
3. Controller design and comparison
3.1. Cascade PID
 1( ) =
 1( )</p>
        <p>( 1 + 1)( 2 + 1)</p>
        <p>·  −
 1 =
single-loop PID. During control, the main loop (outer loop) is a fixed value control system,
while the secondary loop (inner loop) is a follow-up control system. The adaptive ability of
the inner loop to disturbance can effectively overcome the disturbance in the control
process and realize advance control of the controlled object. Then the hysteresis problem is
solved, and the adaptability and stability of the system are improved. Its structure block
diagram is shown in the Figure 2.</p>
      </sec>
      <sec id="sec-2-3">
        <title>3.2. Design of fuzzy controller of double tank level</title>
        <p>In practical application, PID parameters are changeable, there is no definite mathematical
model and rule to follow, which causes some obstacles to parameter identification, and
fuzzy control can make full use of the operator's successful practical experience in real-time
(5)
(6)
(7)
nonlinear adjustment. Therefore, using fuzzy controller to adjust PID parameters online can
give full play to the excellent control function of PID controller and make the system achieve
the best effect.</p>
      </sec>
      <sec id="sec-2-4">
        <title>3.2.1. Fuzzy controller design</title>
        <p>Fuzzy control is composed of five parts: computer control variable, fuzzy quantification,
fuzzy control rule, fuzzy decision and clarity.</p>
        <p>Iuput +</p>
        <p>A/D</p>
        <p>Calculating</p>
        <p>Control</p>
        <p>Variables
Sensor</p>
        <p>Fuzzy Controller</p>
        <p>Fuzzy
Quantization</p>
        <p>Control
Rules</p>
        <p>Fuzzy</p>
        <p>Decision</p>
        <p>The input of the fuzzy controller can be transmitted to the computer to solve the output
of the controller through fuzzy, which is called fuzzy interface. It outputs a fuzzy vector
through a fuzzy subset of the determined input. Here, the input and output variables are
decomposed into 7 fuzzy subsets using the seven-stage fuzzy method:
 = {
, 
,  ,  ,   ,   ,   }
(8)</p>
        <p>They represent Negative Big, Negative Middle, Negative Small, Zero, Positive Small,
Positive Middle and Positive Big.</p>
        <p>
          Then, the appropriate membership function is selected from the knowledge base.
Membership function is a good base for the application of fuzzy control with the key,
common including Gaussmf Trimf, Trapmfand and etc. In the controller design, different
membership functions are selected for effect comparison. Finally, Gaussmf is selected as the
final membership function due to its high sensitivity and good stability, and appropriate
discourse domain is set for input and output. Here, the discourse domain of e and ec is set
to [
          <xref ref-type="bibr" rid="ref3">-3, 3</xref>
          ], and the domains of   ,   and   are set to [
          <xref ref-type="bibr" rid="ref3">-3, 3</xref>
          ].
        </p>
        <p>Fuzzy rule is based on the long-term work experience of experts or operators, which uses
a series of relative words to establish fuzzy control rules. Write a rule based on a logical
relationship table that looks like the following:
 (  
)   (  
)  ℎ
(∆     )(∆   
)(∆     )
(9)
A total of 49 articles.</p>
        <p>Finally, the fuzzy quantity obtained by fuzzy reasoning needs to be fuzzy, and the most
common weighted average method is used here to deal with it.</p>
      </sec>
      <sec id="sec-2-5">
        <title>3.1.2. Structure of Fuzzy Cascade PID</title>
        <p>The input value of fuzzy PID controller is deviation and deviation rate of change. After fuzzy
processing, approximate reasoning is carried out by fuzzy reasoning system, and   ,   ,
de/dt
e</p>
        <p>Fuzzy ControllerⅠ
de/dt
e'</p>
        <p>Fuzzy ControllerⅡ
  's correction value ∆  , ∆  and ∆  , under the condition of certain deviation and
deviation rate of change, is superimposed with the initial PID parameters after clarification.
The PID parameters can be adjusted in real time when the system deviation and the
deviation change rate are constantly changing, so as to realize the self-tuning of PID
parameters. The diagram is shown in Figure 4.</p>
        <p>ec ec'
R(s) + E(s)
△Kd △Ki △Kd</p>
        <p>△Kd △Ki △Kd
PID ControllerⅠ + E'(s)</p>
        <p>PID ControllerⅡ</p>
        <p>Secondary
Object</p>
        <p>N1(s)</p>
        <p>Main Object</p>
        <p>N2(s)</p>
        <p>Y(s)</p>
        <p>The mathematical principle of PID parameter tuning is as follows:
  =   0 + ∆ 
  =   0 + ∆ 
  =   0 + ∆ 
(10)
where   ,   and   are respectively the gain of fuzzy self-tuning PID output; ∆  ,
∆  and ∆  are respectively the adjustment amounts of gain;   0 ,   0 and   0 are
respectively the initial gain values.</p>
      </sec>
      <sec id="sec-2-6">
        <title>3.3. Double fuzzy cascade PID control strategy with self-adjusting factor</title>
        <p>The basic fuzzy controller can meet most control requirements. However, when the
parameters drift, it cannot adapt to the control object. At the same time, there are subjective
factors in the design process, and fuzzy rules cannot be modified once they are determined.
The fuzzy controller with self-adjusting scaling factor ɑ is able to change the control rule by
modifying the quantization factor according to the change of system error e and error
change rate ec, and then use the optimized control rule to control the system, so that the
system has the ability of self-optimizing. The combination of factor ɑ, fuzzy controller and
cascade PID is a comprehensive control strategy with adaptive and active disturbance
rejection ability.</p>
        <p>Since the outer ring is the main regulating function, factor ɑ is added in front of the first
fuzzy controller, and its system block diagram is shown in the Figure 5.</p>
        <p>Fuzzy
Reasoning</p>
        <p>Ku</p>
        <p>Defuzzification
 = −[  + (1 −  ) ] 
(11)
where U is the output of the controller, E is the system deviation, EC is the deviation
change rate, and   is the scale factor.</p>
        <p>According to the above formula, the output U of the controller is determined by E and EC,
and is used to determine the proportional relationship between the two. Because of the
positive proportional relationship with E, when E increases, it also increases, then the role
of E in the control signal is enhanced, and the controller is mainly used to eliminate E. When
E decreases, the proportion of EC increases. In this case, the controller mainly eliminates EC.</p>
        <p>The optimization of the self-tuning factor is reflected in the scale factor. Since the value
of the fuzzy controller directly affects the output of the controller, the importance is also
reflected here. When the system is in a steady state, the increase of the error automatically
increases, and the controller's role in suppressing the error is enhanced.</p>
        <p>
          Here, the theory domain of Alpha is taken as [
          <xref ref-type="bibr" rid="ref1">0,1</xref>
          ], the fuzzy subset is {VS (very small), S
(small), M (medium), B (large), VB (very large)}, and the membership function is trapmf for
the design of Alpha fuzzy rules.
        </p>
        <p>The tuning rules of the weighting factor are shown in Table 1.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>4. Experiments and result analysis</title>
      <sec id="sec-3-1">
        <title>4.1. Simulation Construction</title>
        <p>This paper builds simulation models in Matlab/Simulink for verification.</p>
        <p>Among them, the structure for adding adaptive weights is shown in Figure 6. In the
formulation of fuzzy rules, the membership function of fuzzy variable can be edited and the
domain of variable, fuzzy set and the type of function are set. As shown in Figure 7.</p>
      </sec>
      <sec id="sec-3-2">
        <title>4.2. Comparison of three control methods</title>
        <p>Figure 8 shows the comparison of control effects of single-loop PID control, cascade PID
control and cascade fuzzy PID control with adjustment factors. When PID parameters are
set the same (that is, control variables), compared with single-loop PID, the cascaded PID
controller can improve the rapidity of the liquid level system and reduce the overshoot. The
stepwise response curve of cascade PID with fuzzy controller is slower than that of the
former, but its overshot attenuates greatly, and the time to stabilize at the given level is also
greatly shortened. The figure 9 shows the system response curve before and after adding ɑ.
It can be concluded by comparison that the control effect of the controller was further
improved after adding the adjustment factor.</p>
        <p>Further, the dynamic performance indexes of the four curves were quantitatively
calculated, as shown in the Table 2.
parameter tuning, which increases the delay and makes the system adjust slowly at the
beginning. However, the performance is the best in both ts and tp, the response time is
accelerated by nearly 400s, and the overshoot is greatly reduced. After adding ɑ modulation,
the overshoot of the system is smaller and the adjustment time is faster, but the rise time
and peak time are slightly increased. To sum up, the fuzzy cascade PID with adaptive factor
proposed in this paper is feasible and has better stability and dynamic performance.</p>
      </sec>
      <sec id="sec-3-3">
        <title>4.3. Anti-interference analysis</title>
        <p>In the 2000s, step signals with a value of 1 were added to the two controlled objects at the
same time as disturbance to get the system's performance of fluctuations under three
control strategies: basic cascade PID, fuzzy cascade control and self-adjusting scale factor
fuzzy cascade control, as shown in Figure 10(a) and Figure 11(a). Then, when the system
does not recover the given value, the sudden disturbance in the industrial process is
simulated, the disturbance is given again, and the response is observed as shown in Figure
10(b) and Figure 11(b).</p>
        <p>(a) one disturbance
Figure 10: Comparison of adding disturbance
(b) two disturbance
(a) one disturbance (b) two disturbance
Figure 11: Anti-disturbance performance with and without ɑ</p>
        <p>It can be seen intuitively from the above Figure 8 and Figure 9 that the control structure
of fuzzy cascade PID has better interference suppression effect than basic and cascade PID,
and the time required to recover the given value is shorter and the fluctuation is smaller.
The performance of the simplest single-loop PID decreases significantly after multiple
disturbances, and even has the risk of failing to recover. As shown in the Figure 10 and
Figure 11, after adding the self-adjusting scaling factor, the response to interference is
basically no difference, but the response speed of the system is further improved. This has
a greater effect on the control of water level in industrial production, and when the
disturbance comes, the system can respond quickly with a small overshoot and return to
the given control level.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>5. Conclusion</title>
      <p>The model of dual tank is widely used in process industry, but its characteristics of large
delay and nonlinear make the traditional PID control lack of accuracy in the identification
of control parameters, and cannot meet the needs of some precision control occasions.
Fuzzy control can be adapted to large nonlinear systems by converting human subjective
control strategy into digital signal for given control. Therefore, in this paper, in the case of
fuzzy PID controller based on cascade structure, the adaptive scale factor is added to adjust
the quantization factor of the fuzzy controller in real time to make the control more accurate
and faster. Finally, from the results of the simulation, it can be found that the scheme has a
better control effect on the control of the liquid level of the dual tank, both in terms of the
dynamic performance of the system and the auto-disturbance rejection ability of the system.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Jin</surname>
          </string-name>
          , “Process Control,” Tsinghua University Press,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Huang</surname>
          </string-name>
          , Y. Cheng, S. Pan, “
          <article-title>Research on model-free adaptive control method for double tank level system</article-title>
          ,
          <source>” Machinery Design &amp; Manufacture</source>
          , pp.
          <fpage>205</fpage>
          -
          <lpage>207</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Dou</surname>
          </string-name>
          , “
          <article-title>Research on control method of two-capacity liquid level system based on Matlab,”</article-title>
          <source>Electronic Manufacturing</source>
          , pp.
          <fpage>18</fpage>
          -
          <lpage>19</lpage>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Song</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Chen</surname>
          </string-name>
          , Huawei, Zhang, “
          <article-title>Optimization simulation of PID parameters of twocapacity water tank based on APSO Algorithm,”</article-title>
          <source>Computer Simulation</source>
          , pp.
          <fpage>261</fpage>
          -
          <lpage>265</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ji</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , “
          <article-title>Design of liquid level control system of double tank based on Fuzzy PID,”</article-title>
          <source>Journal of Shanxi Normal University (Natural Science Edition)</source>
          , pp.
          <fpage>37</fpage>
          -
          <lpage>40</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Heng</surname>
          </string-name>
          , “
          <article-title>Simulation of two-capacity water tank level control system based on DCS</article-title>
          ,” Computer Simulation, pp.
          <fpage>219</fpage>
          -
          <lpage>223</lpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Li</surname>
          </string-name>
          , “
          <article-title>Research on fuzzy controller based on self-tuning factor optimization</article-title>
          ,
          <source>” Journal of Shanxi Datong University (Natural Science Edition)</source>
          , pp.
          <fpage>15</fpage>
          -
          <lpage>16</lpage>
          +
          <fpage>35</fpage>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>