Professional Documents
Culture Documents
Qualitative Simulation For Process Modeling and Control - IEEE
Qualitative Simulation For Process Modeling and Control - IEEE
Qualitative Simulation For Process Modeling and Control - IEEE
1360
Authorized licensed use limited to: Universidad Nac de Educación a Distancia (UNED). Downloaded on February 03,2024 at 12:56:44 UTC from IEEE Xplore. Restrictions apply.
The QSIM Algorithm for behaviors. Kuipers and Chiu (1987) presented two
Qualitative Simulation methods for taming inractable branching caused by
under-consained derivatives. One method changes
The QSIM algorithm for qualitative simulation by the level of description to aggregate a number of
Kuipers (1986) provides a framework for behaviors whose distinctions are real, but are not
developing qualitative models of physical considered important. This approach amounts to
mechanisms. The algorithm is based on an ignoring the direction of change of a given variable.
abstraction of Ordinary Differential Equations Their second approach, discussed in detail by Chiu
(ODEs), and allows for representing incomplete (1988), places additional constraints on the
knowledge of funtional relationsips and parameter derivatives of variables that may otherwise be
values in the form of Qualitative Differential constrained only by continuity. These second
Equations (QDEs). Witdin the QSIM framework, a derivative , or curvature constraints, are applied
qualitative model consists of a set of variables (or when the derivative of a variable is ze roto verify or
pauameters)ofthe system and constaints da relate refute curvatures proposed by QSIM. Recent work
the variables to one another. Variables have by DaHe Mole (1989a) extended this approach to
quantity spaces with landmark (qualitatively automatically evaluate the value of the third-order
significant) values that represent the range of values derivative in cases where the curvate constraint
a vanable may have. The qualitative state of a vanishes. These various methods for taming
variable is a list of the qualitative value (at or otherwise intractable branching were summarized
between landmark values) and the qualitative by Kuipers et al. (1989).
derivative (increasing, decreasing, or steady) of the
variable. The constraints represent qualitative Another manifestation of the loss of knowledge that
versions of common mathematical operations such occurs when abstracting to qualitative models is the
as addition, multiplication, and differentiation. violation of phase space constraints between
Given an incomplete set of variable smtes and a set variables in systems that exhibit oscillatory
of constraints, QSIM determines all possible behavior. Recent work by Lee and Kuipers (1988)
completions of the state that are consistent with the and Struss (1988) identified system independent
constraints. global filters for qualitative simulation derived from
constraints that exists on the trajectories of variables
In detennrunng the dynamic behavior of a system, in the phase plane. Lee and Kuipers (1988) showed
QSIM uses a strategy of proposing and filtering sets how the Non-Intersection of phase-plane trajectories
of qualitative transitions to predict possible
al Constraint (NIC) can eliminate large classes of
subsequent states for the folowing time point or spurious behaviors in mass and spring systems. In
open interval. Therefore, it is an enumeration this work, the NIC filter is used to achieve a
algonrthm. Inconsistent states are detected by tractable qualitative simulation of a PI contoller on
application of continuity and system constraints. a lst-order system.
Global filters identify states as inconsistent,
quiescent, divergent, or identical to a previous state While purely qualitative models are useful for
(indicating cyclic behavior); the remaining states ar identifying the possible solutions of a given QDE
again subjected to the propose/filter procedure. A from a parficular initialization, the resulting set of
branching tree of states results, and each path behaviors may be too large to be manageable or the
through the tre constitutes a possible behavior of descriptions not detailed enough for the purpose of
the system. the model. In many situations, functional
relationships are known to some degree, and
Kuipers (1986) has proven that the set of possible parameter values may be known with some
behaviors generated by the QSIM algorithm is uncertainty. Kuipers and Berleant (1988) have
guaranteed to include all of the behaviors exhibited presented a method for representing incomplete
by the original ODE from which the QDE was quantitative knowledge into QSIM-type qualitative
derived. While this approach is sound, it is not models. Unknown functions are represented with
complete. The algorithm cannot be guaranteed to upper and lower envelopes, and parameters can
recognize and eliminate all spurious behaviors have ranges or precise numenrcal values. With this
(predictions that represent no real physical system additional knowledge, qualitative states with
behavior). Recent developments in qualitative inconsistent quantitative values can be eliminated,
reasoning have been aimed at reducing the number behaviors with quantitatively inconsistent states can
of spurious predictions in qualitative simulafion. be pruned, and models that produce only
Recent Extensions to the QSIM Algorithm inconsistent behaviors can be refuted. The
elimination of inconsistent models by using
While the QSIM algorithm provides a full language incomplete quantitative knowledge is discussed
for developing and simulating qualitative models, further by Dvorak and Kuipers (1989). Examples
many situations require additional qualitative of qualitative models with partial quantitative
reasoning techniques to reduce or eliminate spurious knowledge are discussed later in this paper.
1361
Authorized licensed use limited to: Universidad Nac de Educación a Distancia (UNED). Downloaded on February 03,2024 at 12:56:44 UTC from IEEE Xplore. Restrictions apply.
.
Model Development and Initialization
Y"(s) kess +
_
1+1
y(s)
Tic block diagam for a first-order system with a PI
controller is shown in Figure 1. In this particular Figure 1: First-Order System with a PI Controller
configuration, only changes m the process variable initial states, Equation 1 eliminates the possibility
set point, Ys, are considered (servo problem);
controlling the process with load changes at whie u is dec, dy/dt cannot be inc or std. The
(regulatory problem), is not considered here. The values of the qualitatively valid 15 initial states are
time domain equation describing the open-loop shown in Table 1. Dalle Molle (1989b) has shown
process is that four of these initalizations (I1, 12, 14, and
15), while satisfying the constraint model, do not
T ku -y
= (1) represent any real system described by the model
Equations, 1 - 3. However, these spunrous initial
where k is the process gain, z is the process time states can be eliminated when quantitative
constant, a is the process input, and y is the information is added to fte model. This approach is
controlled vanrable. For a PI controller, fte process discussed later in the paper.
input is calculd as fouows: Simulation Results
a kc(e + 1 Jeot)
= (2) When successor states are generated for the 15
initial states in Table 1, 10 of the initial states
where kc is the controler gain, 'c is the integrl fime generate finte sets of behaviors. For example,
constant of the controller, and e is the error in the initial state 7 generates five behaviors, four of which
prcess output from its setpoint, ys: are genuie for that analytical system. Figure 2
shows one of these genuine behaviors of the input
e = ys-y (3) and output The variations on this behavior that
In developing a qualitative model for a first-order
make up te other3 genuine behaviors are al due to
differences in the behavior of the input, ua, as shown
process with a PI controller, Equations 1 - 3 can be in Figure 3. Figure 4 shows a numerical simulation
translated directly into qualitative constraints. for the case where u has the trajectory of behavior I
Previous modeling expenrence suggests that in Figure 3 (see also Figure 2). For this simulation,
curvatu constrains should also be developed for k =r= 1, ti = 2, and kc = 0.8. As the controller
the highest-order derivatives in the system equations gain is increased from 0.5 (at or below 0.5, du/dt is
(Dalle Molle and Edgar, 1989). These constraints zero or positive and is described by initial sttes 8
provide knowledge of fte second-order derivatives and 9 respectively), the trajecry of u changes. For
that can be used to venrfy or refute behaviors example, if kc = 1.0 (and everything else in Figure 4
proposed by QSIM. The curvature constraints for remains the same) then u has the trajectory of
dy/dt and at are (Dalle Molle, 1989b): behavior 3 in Figure 3. For kc > 1, then u has the
d trajectory of behavior 2 in Figure 3. In the limit as
(4)
Iq
dU Table 1: Possible Qualitative ial States for a
k= rl (,q -T)t (5) First-Order Process with PI Control
The form of this curvature consraint reveals that Initia Intial
when 'C -t = 0, thn a higher-order derivatives of u bntial Value of Derivative Derivative
must vanish, and the simulation must be quiescent IL- ofLAYLB
Tins property of the system is exploited to eliminate 1 doc
otherwise spurious predictions. 2 sd dx
3 dxc
dx
The initial conditons for a set poin increase are the 4 0 dc dex
dex
setpoint variable, ys, taking the value ys+, while the 5 0 std die
process output, y, is at the value 0. Given this 6 0 Ur dex
initialization, the qualitative model based on 7 +
dac diec
Equations 1 - 3, and the curvature constraints, 8 rde
Equations 4 and 5, generates 15 initial states. The 9
variations in these imntial states comes from the fact 10 std
that the parameter 'l - r can be positive, zero, or 11 0
negative, and the variables dy/dt and u can each be 12 Ur rid
inc, std, or dec. In this particulr model, not every 13 frc
combination of these three distinctions is 14 0 std
qualitatively possible (or 27 initial states would have 15
been generated). For example, since y is inc in all
1362
Authorized licensed use limited to: Universidad Nac de Educación a Distancia (UNED). Downloaded on February 03,2024 at 12:56:44 UTC from IEEE Xplore. Restrictions apply.
1.0
-
.0
CA
a
:< f1
"
.0 7
06 Y,
Prc. SIS y Py twu
jg - - -
02
0.0
0 5 10 15 20
TIME
boh.r
1
1.oh2:7
Figure 4: Numerical Behavior of Inital State 7
responses and a method for constraining these
beh 3 W 7) teh 4 CM 7}
behaviors are discussed next
Conditions for Oscillatory Behavior
Figure 3: Four Behav'iors of u for Initial Ste 7 In general, determining Ut validity of the qualitative
kc t, the trajectory of u approaches thiat of
--
predictions is non-trivial especialy for systems with
behavior 4 in Figure 3. Later in the paper, unknown functionalities and a large parameter
quantitaive information 'is added to the model to space. However, when the system being modeled
reduce tfie number of possible behaviors. Ihe fift have a tractable solution under certain conditions,
behavior of initial sLue 7 has -a trajectory wit y then this solution can be used for comparing the
overshooting its final value before ultLimately alitative predictions to the analytical expectations.
achieving it. As will be discussed later. tis For Ue system shown in Figure 1 and described by
behavi'or is not possible for this 'm'tial state. An Equations I - 3, an analytical solution can be
analysis of te predictims for th other initial stes obtained when certain assumptions are made about
with fmnite. behaviors has been done by Dalle Molle the values of the parameters in the model.
(1989b). Performing block diagram algebra on the system in
Figure 1 yields the following Laplace domain
F:or ffie m'tal states withri -, < 0, an firztbe set solution for y(s) in response to a unit step in ys(s):
of oscilating behaviors is geneated. Intactable in
this sense refers to thie situation wbere a fimite set of --p,t
Ws =
kkc(Cis + 1) (b)
complete behaviors camnot be generated wit finite S(CrrIS2 + tI(kkc + l)s + kkc)
resources (computer memory, etc.). Figure 5 Solving this characteristic equation with the
shows two oscillatory behaviors genemted from quadmtic formula yields the two roots:
initial state I (of Table l) ffix illstate a cause of
the intractable branching. In Figure 5(a), the
contmlled variable y overshoots,thden undershoots
its final value before achievmg it at time point TIO
(decreasing oscilllation). However, the input u,
which starts out positive and decreasing, goes
negative to a mnuimnum, dhe goes positive to a value
greater ffa 'it had ixi'tially (increasing oscillation).
Other behaviiors (not shown) suggest tat u may (a) Behavior 102
reach a value less than it had initially. Figure 5(b
shows another behavior that exhibits oscillatory,
almost cyclic, behvlor. At time point TIO, bothi te r. s *64*
< ,t I,****4,.- _I,
process vanable y and th input u achieve the same
1
w~~~~~ rerl
. 1 1 4 t 9
values tha they had initialy. While thiis behavior 4! 1_4t_ T1 ;o 46 Proas , U . . .
, 4
may appear cyclic, it 'is not auy a cycle since u does PrOCM3 Std y
Ts v S1 n ?I
Prcss hqt u
2
1363
Authorized licensed use limited to: Universidad Nac de Educación a Distancia (UNED). Downloaded on February 03,2024 at 12:56:44 UTC from IEEE Xplore. Restrictions apply.
I
:
4t
-
rl r2 a
4
*J .. .
-
'EI(kkc + 1) ±4i (kc )2 - 4VCIkc K
. *--: If N.
2T .
1364
Authorized licensed use limited to: Universidad Nac de Educación a Distancia (UNED). Downloaded on February 03,2024 at 12:56:44 UTC from IEEE Xplore. Restrictions apply.
be divided into two main categories. One
distnguishing feature of the various quiescent
behaviors is the number of time points ffiat make up
fte behavior. Some quiescent oscillatory behaviors
teminate after 10 time points while ofter trminate
after 20 (or more if the computer resources are
inceased). The various behavior lengths represent
various amounts of an oscillatory behavior. In its
present implementation, QSIM does not have the
ability to reognize (stable or unstable) oscillatory
behaviors unless they axe perfectly cyclic like the
frictionless mass and spring system (Kuipers, -1
1986). Hence, an oscillatory behavior can have 0 2 4
arbitary "lgts" in QSIM reping portons of TIME
the analytically infinite behavior.
Figure 7: Varying Phases in a Quantitative Behavior
The othersource of disdnguishing feaures in the
intractable set of behaviors is caused by a
phenomenon refenred to as "occrrnce brnching."
Specifically, when two variables are each
approaching a landmark value, either variable may
achieve their larkmar before tie other variable, or -27
I4
on the specific parameters of the model P kpdut
pi _p u
(Dale Mol}e and Edgar, 1989).
Analyzing the Phase Characteristics of the &*: 66 6 .4
46
~ ~
-1-4
N -144
Qualitative Behaviors jIbq
-Ii
1365
Authorized licensed use limited to: Universidad Nac de Educación a Distancia (UNED). Downloaded on February 03,2024 at 12:56:44 UTC from IEEE Xplore. Restrictions apply.
Figure 5). In general, the nature of these spurous
behaviors is atnbzted to th local natu of the limit
analyss approach to prpagation and the qualitive
descriptiont New techniques for copig with these
limitations are te goals of futuie researh.
Incorporating Quantitative Knowledge
into Qualitative Models
While the qualitative model captures all of the Figure 9: Urnque Prediction with Quantitative
behaviors possible of a gven system, fte number of Information
behaviors can often be too large to be manageable While the results of qualitative modeling appear
Furthermore, the resulting qualitative description promising, there are sill areas q ng additonal
may be too weak to be useful. When knowledge of research. As qualitative models become more
process parameters and functionalities is known, complex and generate larger and larger sets of
this information could be used in a qualitative model behaviors, techniques for automatically aalyzing
to reduce the number of predictions and to provide and classifying behaviors will be needed.
more descriptive result Kuipers and Berleant Automating the model buildig process would also
(1988) have develop a method for incorporating expedite reasomng with larger, more complex
limited knowledge of quantitative information into systems. In addition to dealing with th problem of
QSIM models. system dimension, stronger methods for reasoning
qualitatively and quantitatively about time are
As an example of this approach, the PI controller needed. For example, qualitative simulation
system can be given numerical information to currenty cannot represent and reason about systems
reduce the number of behaviors generated from the with time delay. Since this featue is common in
qualitative simulation. Since the process may not many systems, an approach for reasomnng about the
always be known exactly, ranges are imposed on effects of time delay on qualitative behaviors could
te process gain and time consnt. On Xt other have significant benefits.
hand, the controller parameters are usually known Acknowledgement
quite accurately. Figure 9 shows the unique
qualitative behavior predicted for the case where fte This work was funded in part by the Texas
process parameters are known to be within 10% of Advanced Technology Program (TATP). Portions
the nominal values k = 1= while the controller of this work took place at the Qualitative Reasoning
parameters are known exactly: 'r = 2 ,and kc = 0.8. Group in the Ardficial Itlligence Laboratory of Xt
By specifying quantitative information, three of the University ofTexas which. is funded in part by NSF
four behaviors of the qualitative model for this case gsant IRI 8602665 and by NASA grants NAG 2-
(Figures 2 and 3) are refuted by the quantitative 507 NAG 9-200.
reasoner. Furthermore the final values of the input References
and output have ranges, rather than merely
qualitative landmarks. Chiu, C., "Higher Order Derivative Constraints and
a QSIM-Based Total Qualitative Simulation
Conclusions and Future Directions Scheme," Technical Report A1TR88-65, University
In this work, a qualitative model for a first-order of Texas, Austin, Texas (1988).
system with a PI contoller was developed. The
model required the use of curvatre and phase space Chiu, C., "System Property and Third-Order
constains to make the set of qualitative peWdictions Constraints in Qualitative Simulation," Technical
manageable. Certain iniilizions of the qualitative Report AITR89-xx in preparation, University of
model satisfied the necessary condition for Texas, Austin, Texas (1989).
exhibiting oscillator dynamics, and these
initializations generated both under- and over- Dalle Molle, D. T., B. J. Kuipers, and T. F. Edgar,
damped behaviors. For fte caws where oscillatory "Qualitative Modeling and Simulatioof-Dynamnic
behaviors were generated, the qualitative model Systems," Computers and Chemical Engineering,
captured the proper phase relationships present im 12 (9/10), 853-866 (1988a).
the quantitative model. However, the behaviors
were not sufficiently constained to prevent a class Dalle Molle, D. T., T. F. Edgar, and B. J. Kuipers,
of spurious behaviors from being generated. These "Qualitative Modeling of Physical Systems," in
unexpected behaviors suggested that the controlled proceedings of the Third International Synposium
variable could become zero during the simulation. on Process Systems Engineering 1988, Sydney,
When partial knowledge of quantitative informaton rhe histitution of Engineers, Australia, (1988b).
was used in the qualitative model, a unique
prediction with quantitative ranges on the final
values of the input and output was generated.
1366
Authorized licensed use limited to: Universidad Nac de Educación a Distancia (UNED). Downloaded on February 03,2024 at 12:56:44 UTC from IEEE Xplore. Restrictions apply.
Dalle Molle, D. T., "Automatic Evaluation of Sacks, E., "Qualitative Analysis by Piecewise
Third-Order Constraints in Qualitative Simulation," Linear Approximation," Artificial Intelligence in
Technical Report AITR89-98, Department of Engineering, a3), 151-155 (1988).
Computer Sciences, University of Texas, (1989a).
Seborg, D. E., T. F. Edgar, and D. A. Mellichamp,
Dalle Molle, D. T., "Qualitative Modeling of Process Dynamics and Control, Wiley, New York
Chemical Processes," Ph. D. Dissertation, (1989).
University of Texas at Austin (1989b).
Struss, P., "Global Filters for Qualitative
Dalle Molle, D. T., and T. F. Edgar, "Qualitative Behaviors," In Proceedings AAAI-88, Minnapolis
Modeling of Chemical Reaction Systems," in AI (1988).
Applications in Process Engineering, M. L.
Mavrovouniotis, editor, Academic-Press, (1989). Williams, B., "MINIMA: A Symbolic Approach to
Qualitative Algebraic Reasoning," In Proceedings
Dvorak, D. L., and B. J. Kuipers, "Model-based AAAJ-88, (1988).
Monitoring of Dynamic Systems," In Proceedings
IJCIA-89, Detroit (1989).
de Kleer, J., and J. S. Brown, "A Qualitative
Physics Based on Confluences," Al Journal, 24 7
(1984).
Forbus, K., "Qualitative Process Theory," Al
Journal, 2L4. 85 (1984).
Kuipers, B., "Commonsense Reasoning about
Causality: Derivng Structure from Behavior," Al
Journal, 24.. 169 (1984).
Kuipers, B., WQualitative Simulation," Al Journal,
22. 289 (1986).
Kuipers, B., and C. Chiu, "Taming Intractable in
Qualitative Simulation," In Proceedings IJCM-87,
Milan (1987h
Kuipers, B., and D. Berleant, "Using Incomplete
Quantitative Knowledge in Qualitative Reasoning,"
In Proceedings AAAI-88, Minneapolis (1988).
Kuipers, B. J., C. Chiu, D. T. Dale Molle, and D.
R. Throop, "Curvature Constraints in Qualitative
Simulation." in peparaion.
Lee, W. W., and B. J. Kuipers, "Non-Intersection
of Trajectories in Qualitative Phase Space: A Global
Constraint for Qualitative Simulation," In
Proceedings AAA1-88, Mineapolis (1988).
Mavrovouniotis, M. L., and G. Stephanopoulos,
"Fonmal Order-of-Magnitude Reasoning in Process
Engineering,'" Computers and Chemical
Engineering, 12 (9/10), 867-880 (1988)
Oyeleye, -0. O., and M. A. Kmmer, "Qualitative
Simulation of Chemical Process Systems: Steady-
state Analysis," AlChE Journal, i4(9) 1441-1454
(1988).
1367
Authorized licensed use limited to: Universidad Nac de Educación a Distancia (UNED). Downloaded on February 03,2024 at 12:56:44 UTC from IEEE Xplore. Restrictions apply.