Professional Documents
Culture Documents
Journal of Process Control: Lingjian Ye, Feifan Shen, Hongwei Guan
Journal of Process Control: Lingjian Ye, Feifan Shen, Hongwei Guan
article info a b s t r a c t
Article history: In this paper, we present a novel framework for hybrid batch-to-batch and within-batch self-
Received 16 December 2021 optimizing control (SOC) of batch processes. In this framework, batch-to-batch and within-batch
Received in revised form 28 February 2022 controlled variables (CVs) are selected respectively corresponding to the point-wise and profile neces-
Accepted 17 March 2022
sary conditions of optimality of batch processes. For the within-batch SOC, the extended combination
Available online 1 April 2022
matrix is introduced, which is structurally constrained to deal with the causality issue, as well as
MSC: practical ways for within-batch implementations. The setpoint strategy for a within-batch SOC scheme
00-01 is also discussed. For the batch-to-batch SOC, which has no causality requirement, the structure of
99-00 the combination matrix is allowed to be full. The overall combination matrix contains two types
of self-optimizing CVs, which will be solved simultaneously in a unified framework. In addition, the
Keywords:
active-set change problem is handled using a conservative approach. The hybrid SOC problem is finally
Self-optimizing control
Hybrid optimization characterized as a constrained nonlinear programming (NLP) problem, where the overall combination
Controlled variable matrix has particular structural constraints. The design approach is applied to two batch examples,
Uncertainty where various benefits and properties of the hybrid SOC methodology are illustrated. The importance
Batch process of using a simple within-batch SOC scheme is also highlighted, in which case the overall combination
matrix is sparse.
© 2022 Elsevier Ltd. All rights reserved.
https://doi.org/10.1016/j.jprocont.2022.03.005
0959-1524/© 2022 Elsevier Ltd. All rights reserved.
L. Ye, F. Shen and H. Guan Journal of Process Control 113 (2022) 1–17
is implementing a two-level control structure that combines batch, unless most of the operational degrees of freedom
the advantages of SOC and other sophisticated RTO approaches are expended for this purpose, c.f. the trajectory following
[10–12]. approach to meet the terminal constraint [38]. This is,
In general, SOC pursuits a simple control hierarchy, while the however, not optimal from a systematic point of view.
economic loss achieves acceptable by using appropriate CVs. To
further reduce the loss, the CVs were further extended as mea- Motivated by the above deficiencies, in this paper we inves-
surements combinations (especially linear combinations) instead tigate again the dynamic SOC solution to batch processes. In
of traditional single physical variables [13–17]. The research on the new proposed within-batch SOC schemes, the CV selection
this topic was initiated as in the background of static SOC prob- and controller design are separated, by using one-step-ahead
lem for continuous processes, under assumptions/approximations measurements in the CV formulations. For the point-wise opti-
of, 1) linear input–output relationships; 2) a quadratic cost func- mality conditions, they are suggested to be handled from batch
tion. With these simplifications, the optimal CVs have been an- to batch. Thereby, this new contribution offers a novel hybrid
alytically derived with explicit solutions [16–18]. Using the local framework, which integrates both batch-to-batch and within-
criterion, fast screening algorithms were also developed to select batch SOC strategies. More specifically, we propose to select
a subset of promising measurements out of many [19–21]. Un- within-batch CVs corresponding to the profile optimality condi-
surprisingly, the practical SOC performances may degrade when tions in the NCO, while batch-to-batch CVs for the point-wise
the physical processes do not well meet these assumptions, par- counterparts. The mathematical difference between the two can
ticularly due to the plant nonlinearity. Therefore, efforts were be ascribed to the structural requirements for the introduced
devoted to eliminate the suboptimality, which is referred as the extended combination matrix. For the within-batch CVs, the fu-
global SOC (gSOC) problem [22–24] that chooses to minimize the ture measurements are factored out such that the causality is
average loss in the entire operating space. In these methods, the respected. Such structural constraints can further be incorporated
nonlinear process model is often used for the computation of the to define the implementation strategies for the within-batch SOC.
optimal CVs, instead of a single linearized input–output model. For the batch-to-batch CVs, which has no causality requirement,
Another promising direction is to extend the SOC methodology the structure of the combination matrix is allowed to be full.
to dynamic systems, such as the batch processes [25–29]. In With a well structured combination matrix, all CVs will be si-
the modern chemical industry, batch manufacturing is becoming multaneously solved, by minimizing the loss function available
more and more important, as it is more flexible to meet cus- from static SOC methods [13]. Finally, we characterize a nonlin-
tomized user demands. The dynamic nature of batch processes, ear programming (NLP) formulation for the overall combination
however, makes it challenging to apply current advance of the matrix, which could be sparse due to the introduced structural
SOC methodology. Toward this problem, a batch-to-batch SOC constraints. Since in general no analytical solutions may exist
method was proposed [30,31], where CVs are tracked batch- for such an NLP problem, numerical optimizers are adopted as
wisely to approach near-optimal operation. This takes the ad- the solution method. In summary, the hybrid approach efficiently
vantage of the fact that, from a batch-wise point of view, there absorbs advantages from both sides. On one hand, the optimizing
is a static mapping between the inputs and outputs, then the speed is accelerated by within-batch optimization, on the other,
static SOC methodology may be applicable. The repetitive feature all NCO elements are handled by the combined two means, thus
has also been widely utilized for batch-to-batch optimization for improving the overall economic performance.
batch processes, for example, the well-known necessary condi- In the rest of this paper, the necessary conditions of optimality
tions of optimality (NCO) tracking techniques [6,32–34]. A main of batch processes are firstly outlined in Section 2, together with
feature of the SOC, compared with the NCO tracking, is that some discussions on the topic of input parametrization. Then, the
it deals with sensitivity components of NCO via output feed- local SOC method for static problems and a conservative approach
back [35], skipping the evaluation of plant gradients (which is dealing with active-set changes are reviewed in Section 3, which
often slow). Batch-to-batch optimization is useful for repetitive will be extended to batch problems. In the subsequent section, we
systems, whilst it also consumes more than a few batches to present the main contribution, namely, the hybrid SOC methodol-
attain convergence. To speed up the optimization effect, within- ogy for batch processes, followed by its solution strategy. The new
batch optimization is favored to realize optimization in a single design approach is demonstrated on two examples in Section 5.
batch. However, a main obstacle for within-batch optimization In the final section, we present some important discussions that
must be considered is the causality of dynamic systems [36]. conclude this article.
That is, the optimal operation of inputs depends on future fac-
tors, such as the varying parameters which cannot be known
2. Necessary conditions of optimality for batch processes
in advance. For the output feedback based SOC, it may require
the information of future measurements to reflect the system
In this paper, the design of self-optimizing structures for batch
status. In the previous work [36], the causality is avoided by
processes calls for the identification of necessary conditions of
selecting a structure-constrained combination matrix, where the
optimality (NCO). This concept has been extensively discussed
future measurements are excluded by enforcing the associated
in detail in the framework of NCO tracking [6,33]. Hence in the
coefficients in the combination matrix zeros. The methodology
following, some established conceptions are briefly reviewed.
therein is a pure within-batch scheme, however, it has two main
limitations:
2.1. Dynamic optimization of batch processes
1. The inputs are directly computed by old measurements
based on the self-optimizing CVs. In general, however, one Dynamic optimization of batch processes is characterized as
may wish to separate the controller design from CV selec-
tion for the sake of other considerations, for example, the min J(x(tf )) (1)
u(t)
robustness of controllers;
2. The methodology applies to limited cases with no active s.t. ẋ(t) = F (x(t), u(t), d(t)), x(0) = x0 (2)
constraints. Unfortunately, batch processes are typically S(x(t), u(t)) ≤ 0 (3)
constrained by, for example, product quality [6,37]. For
point-wise constraints, they are hard to meet within a T (x(tf )) ≤ 0 (4)
2
L. Ye, F. Shen and H. Guan Journal of Process Control 113 (2022) 1–17
where J is the economic cost to be minimized; u(t) ∈ Rnu(t) Input reparametrization typically gives less adapted parame-
and x(t) ∈ Rnx are the control inputs and states (initially x0 ); ters for real-time optimization. Meanwhile, it alters the plant NCO
d(t) ∈ Rnd are uncertain disturbances; tf is the batch duration; accordingly, which must be reconstructed for further analysis. Let
F , S and T are the nx -dimensional state functions, nS -dimensional the entire input arc be reparametrized as u[0, tf ) → {u[ts , te ), ρ},
path constraints and nT -dimensional terminal constraints, respec- where ts and te are switching times with proper dimensions char-
tively. acterizing u[ts , te ) as sub-arcs in u[0, tf ), ρ is the nρ -dimensional
Define the following auxiliary functions vector containing scalar decision variables from parametrization
(typically, ts , te ⊆ ρ ). Denote the active constraints, which have
H(t) = λT F (x, u, d) + µT S(x, u) (5) been identified by the numerical solver, as S̄ and T̄ , then the NCO
Φ x(tf ) = J x(tf ) + ν T x(tf )
T can now be expressed as [33]
( ) ( ) ( )
(6)
∂ H S̄ [ts , te ) = 0 (path constraints) (11)
λ̇T (t) = − (7)
∂x T̄ = 0 (terminal constraints) (12)
∂Φ
λT tf = ∂H
( )
(8)
∂ x(tf ) [ts , te ) = 0 (path sensitivities) (13)
∂u
where H(t) and Φ x(tf ) are the Hamiltonian function and aug- ∂Ψ
( )
= 0 (terminal sensitivities) (14)
mented terminal cost; λ(t) ̸ = 0, µ ≥ 0 and ν ≥ 0 are the ∂ρ
Lagrange multipliers associated with system equations, path con-
where the time interval [ts , te ] correspond to intervals associated
straints and terminal constraints, respectively. Then the necessary
with the active path constraints S̄ [ts , te ) and path sensitivities
conditions of optimality (NCO) of (1) read [37] ∂H
[t , t ); Ψ is the total terminal cost defined as
∂u s e
∂H ∫ tf
(t) = 0 (9)
∂u Ψ x(tf ), ρ = Φ x(tf ), ρ +
( ) ( )
H(t)dt (15)
µ S = 0, ν T T = 0
T
(10) 0
where the last two equalities are known as the complementarity Remark 1. It is worth mentioning that, the invariant active
conditions, which could be discontinuous. Note that it requires constraints could be met for many industrial batch process op-
all elements in the complementarity conditions be zero due to timization applications, which has been assumed in the standard
the requirement of non-negative multipliers. framework of NCO tracking [6,32,33]. Theoretically, this assump-
Unfortunately, analytical analysis guided by the above NCO is tion is valid for infinitesimal disturbances. For other practical
still difficult to derive an expression for the optimal u(t), because problems, however, there may be constraints that are varying
they are coupled with the states and adjoints. In practice, it is between active and inactive across different disturbance regions
more often the case that (1) is solved via the direct approach [37]. (each is called as a critical region). The identification of invariant
In this way, discretization is performed along the time axis such and changing active constraint can be done by, for example,
that a mapping between decisions variables and states can be following the multi-parametric programming approaches [40].
established, followed by a numerical optimizer to solve the static For batch processes, input parametrization is a powerful tool to
formulation, see c.f. [37,39] for reviews of various numerical eliminate the changing active-set. For example, Francois et al. [32]
techniques. discussed possible means of transforming path constraints by
parameterizing switching times between adjacent trajectories.
2.2. Input parametrization Sun et al. [41] demonstrated that the number of critical regions
is substantially reduced via parameterizing the switching times
for the design of multi-parametric NCO tracking controllers for
The solution to (1) numerically solved by the direct approach
dynamic systems. The two examples given in Section 5 show how
is typically composed of a sequence of discontinuous input arcs,
the input path constraints can be efficiently handled. Anyway,
corresponding to different counterparts of the NCO. These input
when the assumption of invariant active constraints does not hold
arcs may, nonetheless, maintain continuous and differentiable
in general, it will be addressed in the framework of SOC, using the
within each interval.
conservative approach [42].
With the structure of the optimal input arcs identified by a
numerical solver, it is often desired to reparametrize the input 2.3. Dealing with the invariant active constraints
trajectory in the presence of uncertainties. This means that the
variations of optimal operation can be more efficiently captured The two types of active constraints, namely, the invariant
by some new variables, other than u(t) itself at some fixed time. ones and varying ones, are handled by different means. In this
For example, discontinuous input arcs are often parametrized subsection, we firstly discuss how to deal with the former, while
using the switching times as additional decision variables, such the latter is discussed in Sections 3.2 and 4.4.
that a variable duration for a subarc is allowed. For input arcs In practice, the enforcement of active constraints can be real-
that are constrained by upper or lower bounds (which often ized by either the within-batch or the batch-to-batch fashion. This
occurs in batch problems), it is sufficient to parametrize the choice is also affected by how the measurements can be taken. For
switching times as decision variables. For sensitivity-seeking in- example, when the measurements are only available at the end of
puts, however, they may be parametrized in diverse ways. For a batch, then no within-batch optimization can be performed, but
example, constant level over an interval is characterized by 1 only in the batch-to-batch fashion. To rule out this factor, how-
variable, or a ramping arc is characterized by 2 variables, and so ever, we hereafter assume that plant measurements are online
on. At this stage, physical interpretations for each input arc are available, such that within-batch optimization is possible.
important [37], as they reflect the intrinsic operation principle for A feature of the proposed hybrid SOC approach is that the
batch processes, such that correctness of the reparametrization CVs, including the active constraints, once determined corre-
is guaranteed. Some quantitative analysis may also be necessary, sponding to counterpart of the NCO, are first assigned with suit-
which can be guided to facilitate making a trade-off between the able manipulated variables to facilitate further analysis. Regard-
optimization performance and operational complexity. ing the path constraints, an obvious and reasonable choice is
3
L. Ye, F. Shen and H. Guan Journal of Process Control 113 (2022) 1–17
using the corresponding inputs, such that S̄ = 0 is timely To maintain optimality, it calls for that the closed-loop re-
tracked for within-batch optimization. For the point-wise termi- sponse of u coincides with the change of uopt (minimize the norm
nal constraints, T̄ (tf ) = 0, both within-batch and batch-to-batch of eu ). This is done by tracking the controlled variables, c = Hy,
adaptations were considered in literature: at constant set-points, where H is the combination matrix to be
determined.
1. In the within-batch case, the control effect is fast, however,
In the linearized form, the output functions are expressed as
it suffers from the causality problem. That is, adaptations
take place before the availability of terminal constraints, ∆y = Gy ∆u + Gyd ∆d (19)
which can later be influenced by other operational vari-
ables. To this end, one may specify a tracking trajectory where Gy and Gyd are gain matrices. The linear equations are
for T̄ (t) satisfying T̄ (tf ) = 0 [38]. Alternatively, predictions combined with the effect of feedback control ∆c = H ∆y = 0,
are made for T̄ (tf ) along operation, followed by continuous which yields [13]
within-batch adaptations [33]. In the either case, within- ∆u = −(HGy )−1 HGyd ∆d + (HGy )−1 Hn (20)
batch adaptations for T̄ (tf ) may lose degrees of freedom
to tackle other counterpart in the NCO (sensitivities), thus Combining (17), (18) and (20), the loss is given by
failing to realize full real-time optimization. 1 1/2
J (∆u − ∆uopt )2
2. In the batch-to-batch case, the historical measurements of L= uu 2
2
terminal constraints T̄ are used to avoid the causality, then
] d 2
[ ]
1 1/2 [
no additional degrees of freedom are lost within the batch. = J −(HGy )−1 HGyd + Juu
−1
Jud
(HGy ) H −1
In this paper, we consider that the point-wise terminal 2 uu n
2
constraints are controlled by a subset of scalar variables, [ ]2
1 1/2 d
ρT̄ ⊆ ρ , which is of dimension nT̄ to form square control J (HGy )−1 H −Gyd + Gy Juu
[ −1
]
= Jud I (21)
2 uu n
pairings. This means that no less than nT̄ scalar decision 2
The one in [42] suggested a conservative solution that aims to The solution method proposed in this paper is numerical, in
guarantee the feasibility of g i in the whole disturbance space. the same fashion as the direct approach to dynamic optimization
While this approach is suboptimal, it does not require partition problems. For better presentation, let us firstly consider a batch
of the disturbance space, as well as online switching for the segment t ∈ [ts , te ), equally discretized into N intervals as shown
control structure. Note that the spirit of SOC is to keep on-line in Fig. 1, where the inputs are considered as piece-wise constants
implementation simple, although there may be some economic in each interval, which is the same as done in control vector
loss. parametrization (CVP).
To enforce the feasibility, consider the linearized form of As illustrated in Fig. 1, the inputs and available measurements
g i (u, d) as for self-optimizing control are defined as the following stacked
variables
g i (u, d) = gui ∆u + gdi ∆d + g0i (25) ]T
...
[
ū ≜ u(0) u(N − 1) (29)
where and gdi are the sensitivities of
gui i
g with respect to u and d, T T
...
[ T
]
ȳ ≜ y(1) y(N) (30)
respectively, g0i is the constraint valueat the linearization point.
Under close-loop control, the variation of u is available via (20). and similarly for d̄ if it might vary within a single batch. From a
Inserting this expression into (25) yields batch-wise point of view, there is a static system with respect to
[ ]
] d′ the stacked variables:
g i (u, d) = [−gui (HGy )−1 HGyd + gdi ]Wd i
[
(HGy )−1 HWn ′ + g0
n ȳ = Ḡ(ū, d̄) (31)
Ξi
where Ḡ is the mapping between the stacked inputs and outputs.
(26) With this static mapping, the discretized optimization problem is
described by
Assuming that the scaled vector ∥[d′ n′ ]T ∥∞ = 1, then the
maximal of g i is given by min J(ū, d̄) (32)
ū
i,max
g = ∥Ξ ∥ + i
1 g0i (27) s.t. ȳ = Ḡ(ū, d̄)
which will be incorporated into the local SOC formulation, namely, which is in the same form as (16), hence available results in
solve instead the following constrained optimization problem Section 3.1 can be utilized. The following numerical example
1 shows the extension in details.
minLav = min ∥M ∥2F (28) Illustrative example: Consider the following dynamic optimiza-
H H 2
tion problem
s.t. g i,max ≤ 0, i = 1, . . . , ng ∫ tf
which, in general, has no closed-form expression for the optimal min J = (x1 (t)2 + x2 (t)2 + u(t)2 )dt (33)
u(t)
H. 0
s.t. x˙1 = (1 − x22 )x1 − x2 + u + 0.1d
4. Self-optimizing control of batch processes x˙2 = x1
x2 (tf ) ≥ 0.5
Now consider the batch processes. The first step is to identify
the invariant active constraints included in (11) and (12) that where tf = 10 is the duration time, with initial states x1 (0) = 0
would not vary with disturbances. Then, the reduced sensitivities and x2 (0) = 0.6, respectively. The first two equality constraints
should be enforced zero for optimality. For the reduced terminal represent the dynamic system model, and the last inequality is
sensitivities, they can be expressed as ∂∂ρ
Ψ
NT , where NT is the null the terminal constraint. Both the two states are assumed measur-
∂ T̄ able, namely, y = [x1 x2 ]T . For illustrative purpose, we consider
space of [33]. Similarly, the reduced profile sensitivities are
∂ρT̄ that [0, tf ] is equally divided into 4 grids, with constant u(t) over
∂H
[t
∂u s e
, t ) N S with NS the null space of ∂∂ uS̄ [ts , te ) [33]. Practically, each grid. Then, (33) can be solved via dynamic programming
these reduced sensitivities can be identified and approximated optimizers. The optimal input sequence, as well as the state
in the numerical way, by discretizing the continuous profiles trajectories, at the nominal condition d = 0, are shown in Fig. 2.
corresponding to ∂∂ρ
Ψ
NT and ∂∂Hu [ts , te )NS . Two schemes can be Nominally, the terminal constraint x2 (tf ) ≥ 0.5 is active, and
implemented to compute the reduced sensitivities: one can verify its activeness in the neighborhood of d = 0. As
5
L. Ye, F. Shen and H. Guan Journal of Process Control 113 (2022) 1–17
trajectory can be arranged to follow. For implementations, this is k, the available measurements for CVs are up to y(k+1), compared
much more complicated than Scheme 1, although the economic to y(k) in [36]. Therefore, in the new approach, CV selection and
performance may be improved. To simplify, one may consider controller design are separated, note that the design of controllers
special cases where setpoints are updated by some most recent often involves other considerations, for example, the robustness.
measurements [28]. For example, let the setpoints be updated Another benefit is the enhanced controllability by using one-step-
only by measurements in the last grid ahead measurements (a larger Gy ), which helps to reduce the loss
⎡
H 0 0··· 0
⎤ (note that L is proportional to the inverse of HGy as shown in
⎢ H2′ H 0 ··· 0 ⎥ (22)). This is particularly important because we want to choose
⎢ 0 H3′ H ··· 0 ⎥ a simple SOC implementation, while the economic performance
H̄ = ⎢ ⎥,
remains acceptable. As will be shown in the case study, even with
⎣ ... .. .. .. .. ⎦
⎢ ⎥
. . . . the most structurally restricted H̄ (Scheme 1), the approach can
0 0 0 HN′ H obtain a good self-optimizing performance. In contrast, it is often
⎡
Hy(1)
⎤ necessary to use a complicated solution (Scheme 4) in [36].
⎢ Hy(2) + H2′ y(1) ⎥
⎢ Hy(3) + H3′ y(2) ⎥ Remark 3. Regarding the four within-batch SOC structures, it is
c̄ = H̄ ȳ = ⎢ (41)
.. understandable that the admissible economic performances are
⎥
⎢ ⎥
. ranked as ‘‘Scheme 1 < Scheme 2/3 < Scheme 4’’, where ‘‘<’’
⎣ ⎦
Hy(N) + HN′ y(N − 1) reads ‘‘worse than’’, and the rank of control complexity is reversed
in order. The complexity is reflected in two aspects: Firstly, it
where Hk′ (k = 2, . . .) are of the same dimensions. Furthermore,
is more difficult for the latter ones to numerically identify the
additional constraints, Hi′ = Hj′ , ∀i, j, can be incorporated to
optimal H̄, which involves more decision variables; Secondly, and
pursuit a constant update law. In this case, there are only two
perhaps more involved, the latter ones are substantially more
small matrices to be determined. We will investigate this special
complicated to commission in practice, due to the additional
case in the batch column example.
setpoint update/controlled variables switching. It is thus critical
Scheme 3: Switched CVs with fixed setpoint trajectory. The
for a designer to perform comprehensive evaluations such that
extended combination matrix H̄ and stacked CVs c̄ are in the form
an appropriate trade-off can be made. We also wish to high-
of
⎡ ⎤ ⎡ ⎤ light the facts that Scheme 1 is the simplest yet it has a very
H(1) 0 ··· 0 H(1)y(1) promising optimizing performance, which best reflects the spirit
⎢ 0 H(2) ··· 0 ⎥ ⎢ H(2)y(2) ⎥ of self-optimizing control (see the case studies in Section 5).
H̄ = ⎢ .. .. .. ⎥ , c̄ = H̄ ȳ = ⎢ ..
⎢ ⎥ ⎢ ⎥
.
⎥
⎣ . . ⎦ ⎣ . ⎦
Remark 4. Since the switching times of subarcs, ts and te , are
0 0 ··· H(N) H(N)y(N) also parametrized as decision variables, which are adapted from
(42) batch to batch, thus are varying, it is convenient to introduce the
′ t
scaled-time as t ′ = tt − s
∈ [0, 1), then the stacked measurements
where H(k) are the combination matrix for interval t ∈ [k − 1, k). e −ts
defined within the arc correspond to fixed points with respect to
Scheme 4: Switched CVs with setpoint trajectory updated
t ′.
by real-time measurements. The extended combination matrix
H̄ and stacked CVs c̄ are Expanding H̄ to cover more sub-arcs. If there are more
⎡
H(1) 0 ··· 0
⎤ sub-arcs than the one shown in Fig. 1, ȳ should be defined to
⎢ H2′ H(2) ··· 0 incorporate more measurements corresponding to other arcs,
⎥,
⎥
H̄ = ⎢ .. .. .. .. then H̄ expands accordingly to keep align with ȳ. The principle
⎣
. . . .
⎦
of determining the structure of H̄ is the same as elaborated,
[← HN′ →] H(N) that is, non-zero coefficients are only for those measurements
⎡
H(1)y(1)
⎤ that will appear in CVs, depending on the selected schemes for
⎢ H(2)y(2) + H2′ y(1 : 1) ⎥ within-batch SOC.
c̄ = H̄ ȳ = ⎢ .. ⎥ (43)
.
⎣ ⎦
4.3. A unified framework for hybrid batch-to-batch and within-batch
H(N)y(N) + HN′ y(1 : N − 1) SOC
Scheme 3 and Scheme 4 are similar to Scheme 1 and Scheme
2, respectively, except that CVs are now switched for every time The remaining NCO that have not been addressed are the ter-
grids. Mathematically, they are further generalized forms for H̄, minal sensitivities, associated with free (nρ − nT̄ ) scalar variables.
which are hence of higher capacities to improve the economic Since the sensitivities are point-wise, batch-to-batch adaptations
profit. However, they correspond to switching control systems, will be performed similar to the control of point-wise terminal
leading to the difficulty of designing robust yet high-performance constraints. This is done by tracking batch-to-batch CVs, cb2b =
controllers for all CVs. For this reason, Scheme 3 and Scheme Hb2b ȳ, where Hb2b ∈ R(nρ −nT̄ )×nȳ is the additional combination
4 may be practically unfavored, even they admit better perfor- matrix needs to be determined. Different from the within-batch
mances. case, the structure of Hb2b is allowed to be full, as no causality
exists. Structural constraint on Hb2b can, however, be specified
Remark 2. In all schemes, the upper triangular elements of H̄ by the designer for other considerations, for example, to simplify
are enforced zero to respect the aforementioned causality, which the expression of cb2b because the dimension of ȳ is large. Hb2b is
is required for within-batch SOC. Similar ideas were initiated in appended onto H̄ to form an overall combination matrix. With a
the previous work of the authors [36]. However, in that case the little abuse of notations but for simplicity, the overall matrix is
adaptation of u(k) is directly computed in terms of past mea- still denoted by H̄ in the following.
surements. In this paper u(t) is manipulated via normal feedback With the above definitions, all CVs are captured by the overall
controllers to follow designed trajectories. This is achieved by combination matrix, H̄, thus it provides a unified framework for
selecting one-step-ahead measurements in ȳ, namely, at time t = solving the hybrid SOC problem. Using the local average loss
7
L. Ye, F. Shen and H. Guan Journal of Process Control 113 (2022) 1–17
developed by static SOC approaches, the NLP formulation reads loss in this case is Lav = 3.042 × 10−4 , where the improvement
)−1 2 is however marginal compared to the previous case.
1/2
min Lav = 0.5 Juu
(
H̄Gy H̄ F̃ (44) The above numerical example shows step by step how the
H̄ F
unified framework is capable of solving the self-optimizing CVs
s.t. H̄ on form of a selected structure numerically for dynamic problems.
Remark 5. A special case has an analytical solution is Scheme Remark 6. The approach [42] adopted above is suboptimal, as
4, where the structure of H̄ is lower block triangular [36,46]. it mainly maintains feasibility rather than optimality. Since only
However, practical usage of the analytical solution may be quite one set of CVs are designed for the entire disturbance space, the
limited, because 1) it requires the input–output sensitivity Gy to implementation is simple, keeping align with the principle of
be lower block triangular, which holds only when there are no ac- SOC. To enforce more rigorous optimality, however, one has to
tive constraints. Otherwise, the structure of reduced sensitivity is consider the switching strategy [43], which might be difficult and
altered through Schur complement of the inverse of a partitioned complicated for online commissioning.
matrix, see (A.2) in the Appendix; 2) Scheme 4 is complicated to
implement in practice, which involves switching CVs.
5. Case studies
Illustrative example (continued): Let us firstly consider the case
that in time segment t ∈ [2.5, tf ], only the within-batch scheme 5.1. Batch distillation column
is adopted. With the definitions of ū and ȳ in (34) and (35), the
dimension of the extended combination matrix H̄ is 3 × 6. For
Scheme 1, the optimization problem deduced from (44) is 5.1.1. Process description
Consider a batch distillation column [47], where the light com-
2
)−1
1/2 ( ponent is distillated at the top as valuable product. The following
min Lav = 0.5 Juu H̄Gy H̄ F̃ (45)
H̄ F assumptions are made: (1) constant molar flows; (2) constant
[
h1 h2 0 0
]
0 0 relative volatility; (3) equilibrium stages; (4) no vapor holdup;
s.t. H̄ = 0 0 h1 h2 0 0 (5) constant liquid holdup on stages and in condenser; (6) total
0 0 0 0 h1 h2 condenser.
Based on the these assumptions, the process model equations
with two scalar decision variables h1 and h2 . Without measure- are:
−1
ment noise, F̃ = FWd = (−Gy Juu Jud + Gyd )Wd is computed as
dM1
F = [0.0021 0.061 − 0.019 0.043 0.022 0]T based on the Reboiler : = −uV (47)
numerical expressions, (37) and (38). It is thus easy to solve dt
V dx1
the above optimization problem. We obtain the optimal solution (x1 − y1 + (1 − u)x2 )
= (48)
[h1 h2 ] = [−29.42 6.00] with Lav = 3.074×10−4 , which suggests M1dt
the self-optimizing CV, c = −29.42x1 + 6.0x2 , in time segment V dxi
Stages : = (yi−1 − yi + (1 − u)(xi+1 − xi )) (49)
t ∈ [2.5, tf ]. dt Mi
Somehow, if one wishes to adapt the last input u(3) from batch dxc V
to batch, then the structure of H̄ is allowed to be Condenser : = (yp − xc ) (50)
dt Mc
h1 h2 0 0 0 0
[ ]
for i = 2, . . . , p. The notations are as follows. p: number of stages;
H̄ = 0 0 h1 h2 0 0 Mi : liquid holdup on stage i (counting from the bottom and stage
h3 h4 h5 h6 h7 h8 1 is the reboiler); xi and yi : molar fraction in liquid and vapor
with 8 scalar decision variables. The optimization problem (45) on stage i; xc : liquid molar fraction in condenser; V : vapor flow;
is solved again and we obtain optimal within-batch CVs c = u: distillate ratio u = D/V , 0 ≤ u ≤ 1. With a total condenser,
−31.90x1 + 6.48x2 in segment t ∈ [2.5, 7.5], and the batch- xc = yp . The vapor–liquid equilibrium relationship is determined
to-batch CV, cb2b = 21.47x1 (2) − 102.12x2 (2) + 91.20x1 (3) + by the relative volatility α :
38.1x2 (3) + 18.22x1 (4) + 51.52x2 (4), is batch-wisely controlled α xi
by u(3) to determine the operation for t ∈ [7.5, tf ]. The minimal yi = (51)
1 + (α − 1)xi
8
L. Ye, F. Shen and H. Guan Journal of Process Control 113 (2022) 1–17
Table 1 Table 2
Parameter values of batch distillation column. NCO of the batch column.
Parameter Value Unit Parameter Value Unit Pointwise condition Profile condition
p 10 V 15 ± 2 kmol/h Constraint: xd (tf ) = xdes
d –
∂Ψ ∂H
tf 10 h xdes
d 0.9 Sensitivity: N
∂ ts1 T
=0 arc 2: [t , t )
∂ u s1 s2
=0
α 1.5 ± 0.1 M1 (0) 100 kmol
Mi 0.2 kmol xi (0) 0.5
Mc 2 kmol xc (0) 0.5
The terminal quality constraint xd (tf ) = xdes
d , which is point-
wise, is handled from batch to batch. With the above input
parametrization, we reserve the scalar variables ts2 for this pur-
pose. This is owing to the fact that compared to ts1 , ts2 imposes
a bigger impact on xd (tf ). Note that from a steady state point of
view, it makes no difference about how to pair batch-to-batch
variables. The NCO of the column are listed in Table 2.
Table 3
Local average losses for the four within-batch SOC structures (batch column)a .
within-batch SOC y1 y2
Scheme 1 0.00885 0.95
Scheme 2 0.00181 0.00019(0.00165b )
Scheme 3 0.00081 0.2197
Scheme 4 0.00079 0.00018
a
Local optimal values obtained using the SQP optimizer.
b
Structured on form of (60).
(2) For subsets y2 , which has less and yet insignificant mea-
surements, the obtained minimal loss is 0.952 for Scheme 1,
indicating a worse economic performance than the previous case.
No smaller losses can be found with further trials for optimiza-
tion. Thus, one may relax the structure of H̄ to enhance the
economic performance. We then turn to Scheme 2, which still
adopts constant CV in arc 2, but allow its setpoint to be adjusted
using past measurements. With least complexity, the setpoints
will be only modified only by the last-grid measurements, with
Fig. 4. Minimal losses with optimizations initialized from random points.
constant updating coefficients. For the batch-to-batch CV, the
same structure is considered as in the previous case. Then, the
extended combination matrix is in the form of
H1′ ×2 H1×2 ··· 0 0
⎡ ⎤
.. .. ..
. . .
⎢ ⎥
H̄41×82 = ⎢ 0 0 ⎥ (60)
′
0 0 ··· H1×2 H1×2
⎣ ⎦
Hb2b,1×2 0 ··· 0 0
Table 4
Results of within-batch self-optimizing control for two extreme disturbance
scenarios.
disturbance CS xd (tf ) J (kmol)
[α, V ] = [1.6, 17] True optimum 0.9000 31.69
Nominal operation 0.9343 25.75
CS1 0.9028 31.28
CS2 0.9044 30.74
[α, V ] = [1.4, 13] True optimum 0.9000 13.28
Nominal operation 0.8508 19.69
CS1 0.8934 14.03
CS2 0.8835 15.49
Table 5
Parameter values for the reactor.
Variable Description Value
k1 Kinetic coefficient (main) 0.053 l mol min−1
k2 Kinetic coefficient (side) 0.128 l mol−1 min−1
cBin Inlet concentration of B 5 mol l−1
cA0 Initial concentration (A) 0.72 mol l−1
cB0 Initial concentration (B) 0.05 mol l−1
cC 0 Initial concentration (C) 0 mol l−1
cD0 Initial concentration (D) 0 mol l−1
V0 Initial holdup 1 l
tf Batch during time 250 min
ω Penalty coefficient 2500 l2 min−1 mol−1
groups of disturbance scenarios are investigated. The optimal cs (t ′ ) = 143.9 − 2.66t ′ + 48.9t ′2 − 108.0t ′3 + 114.6t ′4 − 46.76t ′5
input arcs are composed of a sensitivity-seeking arc in the first (78)
phase and constrained at u(t) = 0 in the second. Therefore, the
following input parametrization will be performed Again, we alo investigated the minimal local average losses
{ implementing within-batch SOC schemes 2–4, which are 0.0038,
u(t)|t ∈[0,ts ) 0.0012, and 0.0010 mol, respectively. Compared with the loss of
u(t)|t ∈[0,tf ) → (71)
ts Scheme 1 (which actually leaves little room for improvements),
as the new decision variables. Furthermore, the first arc u(t)|t ∈[0,ts ) we therefore draw the conclusion that Scheme 1 is a suitable
will be numerically discretized into 50 grids using the CVP met- choice.
hod, which is able to maintain performance accuracy.
5.3. Performance validations
5.2.2. Solving the hybrid self-optimizing controlled variables
5.3.1. Steady state closed-loop performances
The measurements are selected as
The obtained SOC scheme is firstly evaluated at the steady
[ ]T
y = cA cB V (72) states through the nonlinear reactor model. Here, the steady state
refers to scenarios when all CVs, both the batch-to-batch and
with uniform noise of 1% magnitudes. Motivated by the column within-batch ones, are perfectly controlled at their determined
example, here we restrict to Scheme 1 for within-batch SOC. setpoints. This is done by incorporating the CVs fixed at their set-
Therefore, a constant CV, c(t) = Hy(t), will be controlled at a points as equality constraints when solving the nonlinear process
fixed trajectory in the first arc. For the batch-to-batch SOC, we model. In a single batch, however, the process is still dynamic
choose to select the measurements as the y sampled at t = ts and along the time-axis. The 200 random realizations of disturbance
T
t = tf , namely, the CV is cb2b = Hb2b [y(ts )T y(tf )T ] , controlled by scenarios as in Fig. 10 are investigated. Furthermore, the perfor-
manipulating ts from batch to batch. mances are compared with the nominal operation, as well as the
These considerations define the stacked variables as (again, robust optimization. For the robust optimization, the operation
k
the integer k corresponds to time instant t = 50 ts ) is optimized under the worst-case, d = [0.0265 0.064 7.5]T ,
]T corresponding to variations of [−50%, −50%, +50%], respectively.
...
[
ū ≜ u(0) u(49) ts (73) This scenario tends to push the terminal product cBf maximal, in
T T which case it is actively constrained.
...
[ T T
]
ȳ ≜ y(1) y(50) y(tf ) (74)
Fig. 11 summarizes the results under different operating po-
and the overall combination matrix lices, in terms of cBf and the profit loss. It is quite evident that
⎡
H1×3 0 ··· 0 0
⎤ the nominal operation is apt to produce unqualified product, as
.. .. .. cBf frequently violates the maximal allowed limit. In addition, the
. . .
⎢ ⎥
H̄51×153 = ⎢ 0 H1×3 ⎥ robust scheme is quite conservative, with cBf distant from the
0 0 ··· H1×3 0 limit in most cases. On the other hand, the obtained SOC scheme
⎣ ⎦
0 0 ··· [Hb2b →] is effective, where cBf is maintained much closer to the limit.
Note that we do not directly control cBf but the identified self-
An underlying difficulty in this example is that the constraint
optimizing CVs. The benefit is reflected in the economics. The
for cBf , (69), switches between active and inactive with respect to
average and maximal economic losses of SOC are calculated to
disturbances. The Hu et al.’s approach [42] to enforce constraint
be 0.0065 mol and 0.0226 mol, respectively. While for the robust
feasibility in the whole disturbance space, however, applies to
case, the average and maximal economic losses are 0.0256 mol
cases when the constraint is nominally inactive. To circumvent
and 0.0516 mol, respectively, which are substantially worse.
this issue, we shift the linearization point for the constraint to
d0 = [0.0625 0.128 3.45]T , instead of the nominal condition.
5.3.2. Dynamic simulations
The new linearization point corresponds to cBf 0
= 0.021, which is
In this study, we investigate the detailed dynamic closed-loop
relatively a center point for its distribution. Therefore, cBf appears
simulation for a particular scenario, the aforementioned worst-
in the linear form of
case, d = [0.0265 0.064 7.5]T . Figs. 12 and 13 summarize the re-
∂ cBf ∂ cBf sults by implementing the hybrid batch-to-batch SOC embedded
cBf = ∆ū + ∆d + cBf0
∂ ū ∂d with within-batch SOC, where we also adopted the PI controllers.
][ ]
d − d0 Measurement noise is not included for the sake of clear visual-
[
= ∂∂cūBf (H̄Gy )−1 H̄Gyd + ∂∂cBfd (H̄Gy )−1 H̄ + cBf0 izations of the results. It can be observed from Fig. 12(a) that the
n
13
L. Ye, F. Shen and H. Guan Journal of Process Control 113 (2022) 1–17
caused by the limitations of the local SOC approach and the linear
constraint estimation (75). More discussions concerning this issue
are presented in the next section.
In this paper, measurement selection problem has not been The success of an SOC structure relies on two main factors:
systematically studied, which is important to simplify the CVs (1) accurate estimate of the ‘‘moving’’ optimum in terms of dis-
(note hat the dimension of the stacked vector ȳ is large). Previ- turbances (∆u = −Juu Jud ∆d), (2) accurate computations of the
ously, fast algorithms have been proposed to screening variables system inputs under the closed-loop control ((20)) to coincide
for continuous processes [19–21]. In the batch case, however, with the moving optimum. The local SOC criterion adopted in
ȳ contains not only different process variables, but also their this paper use local sensitivities to predict the above two terms. It
samplings along the time, hence the significance of measurement may lead to performance loss, and may also to infeasibility, when
selection also implies the optimal sensoring strategy, namely, to the nonlinear systems drift from the nominal point. For example:
decide when to measure. Besides of the steady state performance, (1) For the parameter ts1 in the column case, it computes that
it should also take into account of how well the CVs can be ∆ts1 = ±0.436 h to restore optimality in the extremal case.
actually controlled. In the column example, we selected cb2b be However, through optimization of (54) using the known uncer-
composed of measurements sampled at ts1 , at which point no tain parameters, it turns out that ∆ts1 = −0.574 h and 0.645 h
other decision inputs are implemented. This implies that the for [α, V ] = [1.6, 17] and [1.4, 13], respectively. (2) For the
control loop, cb2b ↔ ts1 , is decoupled from the others. It has investigated disturbance scenario in the batch reactor case, rig-
been investigated that with more afterward measurements added orous optimization reveals that
[ ts is ]the most significant variable
T
into cb2b , the CV becomes more difficult to control because of in the input sequence ū = u(i) ts that needs to be changed
the interaction. Thus, the overall economic performance actually compared to the nominal condition, while others should remain
degrades, although from the steady state point of view it is ex- relatively stable. The input response in Fig. 12(a) actually fit well
pected to improve. Currently, the study of measurement selection with the calculations from (20). These discrepancies cannot be
15
L. Ye, F. Shen and H. Guan Journal of Process Control 113 (2022) 1–17
16
L. Ye, F. Shen and H. Guan Journal of Process Control 113 (2022) 1–17
[28] A.S. Grema, Y. Cao, Optimal feedback control of oil reservoir waterflooding [42] W. Hu, L.M. Umar, G. Xiao, V. Kariwala, Local self-optimizing control of
processes, Int. J. Autom. Comput. 13 (1) (2016) 73–80. constrained processes, J. Process Control 22 (2) (2012) 488–493.
[29] L. Ye, V. Kariwala, Y. Cao, Dynamic optimization for batch processes with [43] H. Manum, S. Skogestad, Self-optimizing control with active set changes,
uncertainties via approximating invariant, in: The 8th IEEE Conference on J. Process Control 22 (5) (2012) 873–883.
Industrial Electronics and Applications, ICIEA, 2013, pp. 1786–1791. [44] S. Heldt, Dealing with structural constraints in self-optimizing control
[30] L. Ye, H. Guan, X. Yuan, X. Ma, Run-to-run optimization of batch processes engineering, J. Process Control 20 (9) (2010) 1049–1058.
with self-optimizing control strategy, Can. J. Chem. Eng. 95 (4) (2017) [45] L.T. Biegler, V.M. Zavala, Large-scale nonlinear programming using IPOPT:
724–736. An integrating framework for enterprise-wide dynamic optimization,
[31] L. Ye, Z. Song, X. Ma, Batch-to-batch self-optimizing control for batch Comput. Chem. Eng. 33 (3) (2009) 575–582.
processes, Huagong Xuebao/CIESC J. 66 (7) (2015) 2573–2580. [46] L. Ye, Within-batch self-optimizing control for batch processes, Acta
[32] G. Francois, B. Srinivasan, D. Bonvin, Use of measurements for enforcing Automat. Sinica 45 (in press) (2020) 1–11.
the necessary conditions of optimality in the presence of constraints and [47] C. Welz, B. Srinivasan, D. Bonvin, Evaluation of measurement-based
uncertainty, J. Process Control 15 (6) (2005) 701–712. optimization schemes for batch distillation, Barcelona, Spain, 2002, pp.
[33] B. Srinivasan, D. Bonvin, Real-time optimization of batch processes by 1586–1601.
tracking the necessary conditions of optimality, Ind. Eng. Chem. Res. 46 [48] D. Ruppen, D. Bonvin, D. Rippin, Implementation of adaptive optimal
(2) (2007) 492–504. operation for a semi-batch reaction system, Comput. Chem. Eng. 22 (1)
[34] L. Ye, F. Shen, X. Ma, H. Zhang, An active approach to space-reduced NCO (1998) 185–199.
tracking and output feedback optimizing control for batch processes with
[49] J.R.A. Klemets, M. Hovd, Accounting for dynamics in self-optimizing
parametric uncertainty, J. Process Control 89 (2020) 30–44.
control, J. Process Control 76 (2019) 15–26.
[35] S. Gros, B. Srinivasan, D. Bonvin, Optimizing control based on output
[50] M. Baldea, A. Araujo, S. Skogestad, P. Daoutidis, Dynamic considerations in
feedback, Comput. Chem. Eng. 33 (2009) 191–198.
the synthesis of self-optimizing control structures, AIChE J. 54 (7) (2008)
[36] L. Ye, S. Skogestad, Dynamic self-optimizing control for unconstrained
1830–1841.
batch processes, Comput. Chem. Eng. 117 (2018) 451–468.
[51] J.H. Lee, K.S. Lee, Iterative learning control applied to batch processes: An
[37] B. Srinivasan, S. Palanki, D. Bonvin, Dynamic optimization of batch pro-
overview, Control Eng. Pract. 15 (10) (2007) 1306–1318.
cesses: I. Characterization of the nominal solution, Comput. Chem. Eng. 27
[52] L. Jia, C. Han, M.-s. Chiu, Dynamic R-parameter based integrated model
(1) (2003) 1–26.
predictive iterative learning control for batch processes, J. Process Control
[38] C. Welz, B. Srinivasan, D. Bonvin, Measurement-based optimization of
49 (2017) 26–35.
batch processes: Meeting terminal constraints on-line via trajectory
following, J. Process Control 18 (3) (2008) 375–382. [53] L. Zhou, L. Jia, Y.-L. Wang, D. Peng, W. Tan, An integrated robust iterative
[39] L.T. Biegler, An overview of simultaneous strategies for dynamic learning control strategy for batch processes based on 2D system, J. Process
optimization, Chem. Eng. Process. Process Intensif. 46 (11) (2007) Control 85 (2020) 136–148.
1043–1053. [54] E.L. Haseltine, J.B. Rawlings, Critical evaluation of extended Kalman filter-
[40] E.N. Pistikopoulos, L. Dominguez, C. Panos, K. Kouramas, A. Chinchuluun, ing and moving-horizon estimation, Ind. Eng. Chem. Res. 44 (8) (2005)
Theoretical and algorithmic advances in multi-parametric programming 2451–2460.
and control, Comput. Manag. Sci. 9 (2) (2012) 183–203. [55] Z. Cao, J. Lu, R. Zhang, F. Gao, Iterative learning Kalman filter for repetitive
[41] M. Sun, B. Chachuat, E.N. Pistikopoulos, Design of multi-parametric NCO processes, J. Process Control 46 (2016) 92–104.
tracking controllers for linear dynamic systems, Comput. Chem. Eng. 92 [56] H. Pirnay, R. López-Negrete, L.T. Biegler, Optimal sensitivity based on
(2016) 64–77. IPOPT, Math. Program. Comput. 4 (4) (2012) 307–331.
17