1. Introduction
The growing share of unstable well operations has become a central challenge in modern well stock management. In West Siberian oil fields, reservoir depletion, elevated gas–oil ratios, unstable inflow, and complex surface network interactions combine to produce frequent flow instabilities and production losses [
1]. As oil and gas production increasingly moves toward unconventional and hard-to-recover resources [
2,
3], poor reservoir properties are becoming more common. Such properties cause a fast inflow decline after start-up, while a high free-gas fraction at the pump intake degrades the head–capacity performance and can trigger “gas lock” [
4,
5]. Together, these factors destabilize ESP operation, producing repeated loss of pump delivery, intra-shift downtime, and associated production losses [
4,
5].
Three conventional responses to this problem are available: replacing the pump with a smaller unit or redesigning the installation [
6,
7,
8,
9,
10]; adjusting the operating point of the installed pump by reducing shaft frequency and/or applying wellhead choking [
7,
11,
12]; or
converting the well to an intermittent production mode [
13]. The last option is our focus. It allows the existing higher-capacity ESP to stay in service, now operated “periodically” with alternating “work/idle” intervals. Modern VSD/VFD control stations support such cycles as a standard scheduled on/off function [
14,
15]. Physically, the cycle acts in two ways: under insufficient inflow, production draws additional fluid from the annulus, which is recovered during the accumulation period; under elevated gas content, a higher liquid column is maintained above the intake, effectively “compressing” the produced fluid. This also tends to be economically favorable [
13], since higher-capacity pumps are more efficient than low-rate units and no pump replacement is required.
In artificial-lift practice, the simple on/off cycle is known as “automatic reclosure” (AR) or “periodic short-term start” (PSS). It is a particular case of the more general variable-frequency periodic mode [
16], in which different nonzero frequency setpoints are prescribed over different segments of the cycle; in AR/PSS, the lower setpoint always equals zero. Variable-frequency cycling is used as an alternative to AR when full shut-in is not feasible—for example, with compromised check valves—and the pump instead runs at a reduced non-zero frequency during accumulation. From a control-automation standpoint, intermittent production is therefore not merely a relay-type switch between “on” and “off” states but a piecewise-defined rotational-speed control law, in which separate tuning parameters (including separate PID loops) may apply to the production and accumulation segments [
17]. During production, phase, controller is tuned for stable delivery, required head, and acceptable motor load; during accumulation, it is tuned for a safe low-flow state with constraints on overheating, oscillations, and power consumption. Intermittent operation thus constitutes a control tool for the coupled “reservoir–well–surface” system under low inflow and high gas content.
The problem addressed in this work sits strictly at that operational level: given an already-installed pump in an already-drilled well, how should the cyclic program be chosen and continuously revised so that the unit produces as much liquid as possible without violating equipment and reservoir limits. The reservoir-engineering question of what to do with these wells in the longer run is outside our scope. A key feature of the resulting regime is that intermittent operation runs near the “ESP stall” limit—a quasi-stationary edge-of-instability regime [
18] in which the pump head curve and the system resistance curve approach tangency, formally expressed in the flow-rate existence condition derived later in (30); useful production is obtained precisely from the excursions that a conventional stabilizing controller would suppress.
Challenges of this kind are conventionally addressed with detailed numerical and computational models of the underlying subsurface and downhole processes [
19,
20], and the management of intermittent wells is no exception; the transient modeling of ESP wells accordingly has a substantial lineage. Quasi-steady nodal-analysis approaches [
21,
22], rooted in Brown and Lea [
23] and Burakov et al. [
24], remain the backbone of engineering practice. Dynamic formulations targeted specifically at the intermittent regime were proposed in Yudin et al. [
25] and further refined for group optimization [
26] and long-horizon asymptotic analysis [
27]. This body of work has established that sufficiently accurate transient simulation of a periodic ESP well is achievable; the remaining question is how to use such simulation
within the real-time closed-feedback control loop.
This is where existing solutions fall short. Recommendation systems and automated optimization pipelines built on top of high-fidelity transient models [
25,
26,
28] typically run on hourly to daily cycles, produce a set-point suggestion, and rely on manual or semi-manual dispatch to the field. The phenomena they are meant to mitigate—ESP stall, slug arrival, a sudden change in inflow composition—evolve on the order of seconds to minutes; by the time the recommended cycle parameters reach the drive, they are no longer relevant. In contrast, the programmable logic controllers (PLCs) wired to the drive, and the proportional–integral–derivative (PID) loops they host, operate on the right time scale but carry no representation of the underlying multiphase physics. They can protect equipment against an instantaneous violation, but they cannot decide whether a cycle as a whole will converge to a stable regime, stall within a few cycles, or drift into a sub-optimal steady state. Neither tier alone is adequate for the edge-of-instability operation that intermittent wells require.
In parallel, international practice has developed automatic control approaches for ESP-lifted wells, predominantly based on Model Predictive Control (MPC) [
29,
30]. Specifically, Sharma and Glemmestad [
31] developed a nonlinear steady-state optimizer coupled with PI controllers for a multi-well ESP field, focusing on power minimization and separator capacity allocation, while Pavlov et al. [
32] derived a simple two-control-volume hydraulic model of continuous ESP production and demonstrated linear MPC for intake-pressure setpoint tracking in a full-scale test facility; Krishnamoorthy et al. [
33] subsequently extended the robustness analysis of the same control strategy to a high-fidelity simulator incorporating heavy-oil PVT properties and emulsion viscosity effects, showing adequate performance under watercut variations and choke nonlinearities. More recently, Santana et al. [
34] embedded both nonlinear and robust infinite-horizon MPC formulations on a microcontroller with zone control that directly enforces the ESP operational envelope, demonstrating real-time feasibility on edge-class hardware. All three lines of work, however, address
continuous production regimes with intake-pressure or power-consumption objectives and rely on linearized or empirical models identified around a steady operating point. The present work differs in both the model and the control law: it derives a reduced-order transient model of the coupled reservoir–wellbore system whose closed-form solution admits an analytical per-cycle stability criterion, and embeds this model inside a constrained predictive controller designed specifically for
intermittent (cyclic on/off) ESP operation on a standard PLC. These distinctions are summarized in
Table 1.
Consequently, two complementary limitations remain in the existing literature.Cloud-level simulation pipelines and recommendation systems built on high-fidelity transient models [
25,
26,
28] accurately capture the multiphase physics of intermittent ESP operation. However, their hourly-to-daily update cycles cannot respond to the second-to-minute dynamics that determine whether a given on/off program will converge, stall, or drift. In contrast, edge-deployable MPC formulations [
31,
32,
33,
34] provide the closed-loop response and PLC-class computational footprint required for field deployment. However, existing formulations are primarily designed for continuous, steady-state production regime.Their underlying models assume a fixed operating point, the objective functions penalize time-averaged pressure or power deviations, and they do not explicitly evaluate cycle-by-cycle stability or optimize the discrete on/off structure that characterizes intermittent operation.
Together, these limitations motivate the development of a real-time, physics-informed predictive controller specifically designed for cyclic on/off ESP operation and capable of running on standard field hardware without cloud connectivity. To address this need, the present study proposes an on-site, edge-level model predictive controller (MPC) that bridges these two research directions by combining physics-based predictive capability with real-time, field-deployable control for cyclic on/off ESP wells.
2. Process Description and Control Problem Formulation
2.1. Periodic Well Operation as a Control Object
From a control-object perspective, the intermittent (periodic) operation of an oil well is defined as a repeating two-phase cyclic process consisting of an active “production” (“work”) phase, during which the ESP pumps fluid to the surface, followed by an “accumulation” (“idle”) phase, during which the equipment operates at reduced intensity, allowing reservoir inflow to restore the fluid column in the wellbore (
Figure 1).
Let the
k-th cycle start at
(1b) and consist of two consecutive phases of durations
and
, with piecewise-constant control intensities
and
applied on the respective phases. Denoting the total cycle length (1a) and the local (in-cycle) time (1c):
the phase-switching signal is
and the in-cycle control takes the piecewise-constant form (3).
Figure 1.
Intermittent well control scheme. (Left): intra-cycle open-loop dynamics—Controller, Plant/Process, and Sensor blocks with disturbance and noise inputs. (Right): per-cycle closed-loop structure (Controller block highlighted in red as the object of this study) receiving the reference and cycle-boundary measurement and issuing the updated control vector . The vertical dashed line marks the cycle boundary at which the per-cycle law is applied. (Bottom panels): typical time profiles over two consecutive cycles—piecewise-constant ESP shaft frequency F (work phase at , idle phase at ) and the resulting intake-pressure response with its cycle-averaged value .
Figure 1.
Intermittent well control scheme. (Left): intra-cycle open-loop dynamics—Controller, Plant/Process, and Sensor blocks with disturbance and noise inputs. (Right): per-cycle closed-loop structure (Controller block highlighted in red as the object of this study) receiving the reference and cycle-boundary measurement and issuing the updated control vector . The vertical dashed line marks the cycle boundary at which the per-cycle law is applied. (Bottom panels): typical time profiles over two consecutive cycles—piecewise-constant ESP shaft frequency F (work phase at , idle phase at ) and the resulting intake-pressure response with its cycle-averaged value .
The cycle parameters
are frozen within a cycle and may be updated only at cycle boundaries
. This defines the cycle-wise control vector:
The resulting control object is therefore inherently multistage, acting on two separate time horizons: an intra-cycle horizon with open-loop phase-dependent control, and a “per-cycle” horizon with a discrete parameter update at the boundary.
By definition, intermittent well operation is applied when reservoir inflow is insufficient to sustain continuous operation: each cycle deliberately follows a non-stationary trajectory toward the “ESP stall” boundary, and the pump is shut down precisely before stall occurs, accumulating inflow during the idle phase and delivering it in the next work phase. The regime is therefore characterized as quasistationary edge-of-instability operation—a mode that a conventional stabilizing controller avoids entirely, seeking instead a stable continuous-operation point at a low frequency where the deliverable liquid rate is negligibly small.
Let denote the internal state (pressures, temperatures, PVT properties, flow rates, and electrical parameters), and let denote the vector of available measurements (a subset of —pressures, temperatures, and motor electrical signals). The process evolves under uncontrolled disturbances (e.g., water cut, gas content, variations in reservoir productivity) and measurement noise . Within a cycle, the dynamics are described by (4) and (5), while the per-cycle functions (7) and (8) capture the net effect of an entire cycle at its boundary and thereby define the “per-cycle” dynamics on which acts.
2.2. Control Objective
Because the process is intrinsically non-stationary inside a cycle, the control objective is not formulated as stabilization of an instantaneous output. Instead, control quality is defined as a “cycle-averaged” (“cycle-mean”) performance index computed from
. Selecting a controlled scalar output
, the natural target is the cycle mean
which is required to track a setpoint
within a prescribed tolerance
:
In some formulations of this control problem, “phase-averaged” (“phase-mean”) values are used instead:
The same criterion extends naturally to a multivariable setting through a weighted norm of the cycle-boundary error
:
where
is the allowed deviation in a multidimensional state space and
is the weight of the
i-th component.
2.3. Constraints
Cycle constraints are defined as phase-dependent trajectory constraints that reflect the different safety and technological limits of the “work” and “idle” phases:
Additionally, the cycle parameters themselves are bounded by equipment capability and by the maximum admissible “per-cycle” variation:
2.4. Control Problem Statement
In the context of the “multi-horizon” process described above, the control decision at the cycle boundary consists of selecting the next cycle parameter vector based on the currently available state estimate and the reference . Formally, we seek a per-cycle control law (6) such that the closed-loop system (4) and (5) and (7) and (8) satisfies the tracking condition (13) while respecting the phase-dependent trajectory constraints (14) and (15) and the input bounds (16)—determine the function .
2.5. Scope and Simplifying Assumptions
Treating (6) in full form—with four decision variables per cycle and arbitrary disturbances—would lead to a scope too broad for a single study and would obscure the objective of formulating the fundamental “per-cycle” principles of intermittent well control. We therefore narrow the scope, for the sake of practicality, to the most relevant and widely used forms of intermittent operation with a reduced set of controlled variables, namely “periodic short-term start” (PSS) and “automatic reclosure” (AR):
Assumption 1. The actuation during the accumulation phase vanishes,so that phase 2 is a purely passive “buildup” phase. Assumption 2. No phase-local PID loop is active; cycle parameters are the sole control degrees of freedom.
Assumption 3. Disturbances and measurement noise are small relative to the characteristic scale of the dominant technological variables and therefore do not govern the qualitative per-cycle behavior.
Under Assumptions 1–3 the cycle-wise control vector (
9) reduces to
From now on, we use the following notation interchangeably: ; ; .
Scope of the Small-Disturbance Assumption 3
The assumption is understood to apply to intra-cycle fluctuations about the current operating conditions, not to the slow evolution of those conditions themselves. The technological quantities that drive that evolution (GOR, water cut, and the associated PVT properties) change over characteristic times of weeks to months, whereas the per-cycle control decision and the three-cycle identification window operate on timescales of seconds to minutes (hours—maximum). Over the horizon relevant to a single decision they are effectively constant, and their slow drift across successive cycles is absorbed at every cycle boundary through re-identification of the model coefficients from fresh measurements.
Rapid, discrete events that genuinely violate 3—slug arrivals, water and gas breakthrough—fall outside the present scope; their treatment, together with the robustness of the controller to larger disturbances and to measurement noise, is discussed in
Section 7.2.
4. Intermittent Mode Stability Criterion
4.1. Cycle-Averaged Intake Pressure
Let
denote the cycle-averaged intake pressure over the
N-th “work–idle” cycle:
where
and
are, respectively, the “drawdown” (35a) and “buildup” (35b) branches of the solution.
The primitive functions of the integrands are obtained by directly integrating the solution (32).
Strictly speaking, the coefficients
C,
A,
and
vary over time; however, since we are interested in the global trend
, they are treated as constant over the
N cycles (
Figure 4).
The drawdown integral then reads
or, in compact form,
where
is the integration constant of the drawdown branch,
and
.
Figure 4.
Trend of cycle-averaged intake pressure across “work (1)–idle (2)” cycles.
Figure 4.
Trend of cycle-averaged intake pressure across “work (1)–idle (2)” cycles.
During the accumulation phase
, hence
or, equivalently,
with
the integration constant of the build-up branch and
.
Following the operations described in
Appendix B.1, the cycle-averaged intake pressure (
the cycle-averaged across cycles, not within a cycle) admits the closed form
It is essential to note that the parameters C, A, K, and defined in (41) cannot be evaluated directly, since they represent effective “averaged” characteristics of over the N cycles considered. Nevertheless, the relation (41) proves that has the structural form , so the remaining task is only to identify its three coefficients a, b, c.
Based on the specific physics of the process described in Yudin et al. [
25] (pp. 15–19), a stable (quasi-stationary in the limit) intermittent regime corresponds to a bounded, monotone trajectory of
converging to an asymptote. This places the following structural constraints on the coefficients (
Figure 5):
: convergence condition, expressing the decay of the transient;
, : increasing trajectory of approaching the steady value c from below;
, : decreasing trajectory of approaching the steady value c from above.
Cases correspond to unbounded growth or decay of and are therefore incompatible with convergence to a quasi-stationary regime.
Figure 5.
Expected shapes of the cycle-averaged intake pressure .
Figure 5.
Expected shapes of the cycle-averaged intake pressure .
4.2. Analytical Identification of a, b, c from Three Cycles
Knowing how evolves over three full “work–idle” cycles at fixed regime parameters (, , ) lets us determine the coefficients a, b, c analytically.
Taking the first of the three cycles as
, we form the system
Following the manipulations detailed in
Appendix B.2, this yields the closed-form solution (
A49) for the three coefficients:
A sign analysis (see
Appendix B.3) shows that the physically admissible shapes of
correspond to:
Increasing trend (, ): ;
Decreasing trend (, ): .
Hence, the analytical identification of the coefficients of (41) requires, and is satisfied by, the observation of at least three consecutive cycles at fixed regime parameters:
In practice, the triplet is taken either from measurements over three consecutive cycles at fixed , or from model-calculated cycle averages at the candidate parameters.
4.3. Asymptotic Behavior as
For regimes satisfying
, the limit of (41a) as
is
The coefficient
c therefore coincides with the steady-state value of the cycle-averaged intake pressure under “absolute” quasi-stationary operation. Substituting this value into the expression for
c in (41d) yields the corresponding steady-state pump rate
and the associated daily-averaged liquid rate (using the conversion (
A59) of
Appendix B.4):
4.4. Stability Criterion
Following the approach of Petrushin et al. [
27] (Equation (7), we adopt the “per-cycle” drop of the cycle-averaged intake pressure as a measure of proximity to the quasi-stationary regime,
Substituting (41), this drop reduces to the closed form
where
is a user-specified threshold that encodes the technological tolerance on regime repeatability; in practice it takes values on the order of
.
Combining the proximity condition (49) on a defined horizon
N, the asymptotic value
together with the corresponding
from (45), and the technological constraints on intake pressure and production rate introduced in
Section 2.3, the stability criterion of an intermittent regime is formulated as
The criterion (50) is stated as a conditional requirement on a defined horizon N, chosen according to the planning needs of the operator (typical N corresponds to a daily or shift planning horizon). The limit is then a consequence: substituting and the corresponding into the technological constraints yields the existence condition for an “absolute” quasi-stationary regime, for which the first inequality is automatically satisfied since its left-hand side vanishes as provided .
In contrast with the empirical criterion of Petrushin et al. [
27] (Equation (7), the criterion (50) is fully analytical, needs only three control cycles for its evaluation (condition (44)), and admits analysis as a closed-form function of the regime parameters
. This makes it possible to embed the criterion in the cycle-to-cycle control law (6).
5. Control Algorithm
The general structure of the adopted MPC loop is shown in
Figure 6.
At each cycle boundary
the controller receives two external inputs: the production target
and the measured cycle-averaged output
(intake pressure and liquid rate). The
Optimization block iterates over the discrete admissible set of candidate control vectors
(54): for every candidate it first constructs the predicted piecewise-constant frequency program (
Input Prediction, right panel of
Figure 6), passes it to the
Simulation Model, and obtains the corresponding predicted trajectory over the
N-cycle horizon (
State Prediction, left panel of
Figure 6). The candidate that minimizes the cost functional (53) subject to the feasibility predicate (55) is selected and its first element is issued as the updated control
, which is applied to the well for the next cycle. The outer feedback loop (dashed arrows) returns the resulting measurements
at the following boundary, and the procedure repeats—realizing the standard receding-horizon principle.
5.1. Prediction Horizon
A specific feature of the present problem is the elementary unit of prediction: the natural “discretization step” is not an arbitrary time interval , but one full cycle of duration (see Equation (1a)). The prediction horizon N is therefore defined as a number of consecutive cycles, over which the model reconstructs both the in-cycle state trajectory at every local time (see Equation (1c)) and the cycle-boundary output.
Evaluation of the stability criterion (50) requires the simulation of three full “work–idle” cycles (condition (44)), which defines the minimum required prediction horizon length:
This minimum is assumed as the baseline horizon in what follows and denoted simply by
N; the extension to
is straightforward and does not affect any of the constructions below (it merely increases the number of terms in the sum and the weight matrices).
A by-product of the stability criterion evaluation is the asymptotic value of the cycle-averaged variables (Equation (45)) as , which formally corresponds to an infinite prediction horizon. This makes it possible to define the cost functional in a mixed form, with its main part evaluated on the finite horizon N and the asymptotic indicators incorporated through constraints on the admissible output and the regime stability condition.
5.2. Cost Function
In
Section 2.2, the control objective was stated as keeping the cycle-averaged controlled variable
—or, in the multivariable case, the tracked output vector
—close to the reference
within a prescribed tolerance. In the predictive setting this requirement extends naturally over the full prediction horizon: the quality of a regime is assessed across the
N predicted cycles rather than on a single one.
Let
denote the predicted tracking error at cycle
, where
is the prediction of the output vector at the boundary of cycle
, computed at
using the model obtained in the
Section 3 for the candidate control vector (18). The notation
reads “prediction for cycle
made at time
”; the hat
throughout this section indicates a calculated value.
The cost function is defined as a weighted sum of the tracking-error norms over the finite horizon, augmented by an asymptotic penalty:
where
and
are weight matrices assigned separately to each cycle
i and to the asymptotic term, reflecting the common field practice of discretely tuning the importance of each “sub-horizon” (e.g., preferring an early arrival at the setpoint at
versus a slower but smoother approach at
, or trading off asymptotic optimality against mid-term regime quality).
is the weighted norm defined in (13), and
is the tracking error on the asymptotic regime.
5.3. Constraints
The constraints adopted in the predictive control problem are inherited directly from
Section 2.3 and naturally split into two classes: constraints on the control vector and constraints on the state.
The control-vector constraints on the absolute regime parameters and on their “per-cycle” increments are given by (16). They jointly define, at each cycle
k, the admissible control set
State constraints are phase-dependent (see Equations (14) and (15)). In the predictive formulation, this requirement is propagated over the entire prediction horizon and the asymptotic steady regime. We collect these conditions in an aggregate feasibility predicate
which equals 1 if the predicted state trajectories over the
cycles, the corresponding outputs, and the asymptotic value
all lie in the admissible region; and 0 otherwise.
It is essential that the two classes of constraints play different algorithmic roles. The control-vector constraints, encoded in , allow the elimination of inadmissible candidates before any prediction is computed. The state constraints, encoded in , can only be checked after the predicted trajectory has been computed. This distinction is exploited explicitly in the algorithm described next.
5.4. The Control Law
In the predictive framework the sought-after solution for
becomes the constrained-optimization problem
whose solution defines the target mapping
turning the abstract control law (6) into an explicit computational procedure.
Since the prediction model (35) is a recurrent analytical function that does not admit further analytical inversion, problem (56) belongs to the class of nonlinear mixed-constraint optimization problems.
However, the structure of the control vector (18) exhibits several useful features: the order is small (three scalar parameters); each parameter , , is bounded above and below by physical and technological limits; and the “per-cycle” increments are themselves bounded, allowing the search at each step to remain in a localized neighborhood of the previous regime.
These properties make it possible to solve (56) by
exhaustive search on a grid of admissible controls, without resorting to any gradient-based procedure (
Section 7.6). At each cycle
k, define uniform discretizations of the admissible ranges of the control parameters,
with steps
,
,
inside the bounds defined by
(54).
The Cartesian product of the three grids forms the finite candidate set
By construction, , so every grid element automatically satisfies both the absolute bounds and the increment bounds (the latter being enforced through the grid lower/upper limits relative to the previous control ).
The control-vector constraints (16) are thus “baked into” the grid structure and need not be checked again inside the algorithm.
The state constraints, encoded in the predicate (55), cannot be enforced in advance and are therefore checked individually for every grid element after the prediction step. Putting these elements together, the control law (57) is realized by the following procedure:
- (1)
Given the current state estimate , the previous control and the bounds , , , , build the admissible control grid (59).
- (2)
Initialize the empty set of admissible candidates .
- (3)
For each candidate , perform:
- (a)
compute the state predictions , , and output predictions , , from (35);
- (b)
compute the asymptotic value (Equation (45)) under the stability conditions of (50);
- (c)
evaluate the feasibility predicate (55); if , discard the candidate and proceed to the next grid element;
- (d)
otherwise compute from (53) and add the candidate to the admissible set .
- (4)
Once the enumeration is complete, the control applied at cycle
k is taken as
- (5)
If —no grid element satisfies the trajectory constraints—a fall-back control is applied, i.e., the previous regime is held unchanged. This is treated as a safety action and accompanied by an alarm to the operator indicating that no admissible prediction could be constructed.
This branch is included primarily to ensure logical completeness of the algorithm and, in the present work, acts as a stub. In a production implementation; however, this branch would encapsulate non-trivial logic grounded in fuzzy-rule systems and engineering field-practice heuristics, providing a structured and safe recovery from states that lie outside the algorithm’s applicability. A full treatment of such a fallback controller is beyond the scope of this study.
The resulting control law admits the compact form
where
is the full collection of state predictions generated by candidate
u.
Compatibility of the Fixed-Parameter Assumption with
Receding-Horizon Control
The derivation of the cycle-averaged intake pressure (41) and the identification of the coefficients a, b, c from three consecutive cycles (43) both rely on the assumption that the regime parameters remain constant over the prediction horizon (condition (44)). At first glance, this may appear to conflict with the receding-horizon structure of the control law (61), which is free to update at every cycle boundary.
No inconsistency arises, however, because the two mechanisms operate at different conceptual levels. The fixed-parameter assumption is invoked inside the evaluation of a single candidate control vector: when the optimizer considers a particular , it propagates three cycles with that candidate held constant and extracts the corresponding asymptotic forecast via (45). This “compressed” long-horizon prediction serves as an inexpensive proxy for the steady-state behavior that the candidate would eventually produce, supplying the stability and feasibility information encoded in (50) and (55). Once the best candidate has been selected and applied, the controller discards the previous forecast, acquires fresh measurements at , re-identifies the model coefficients, and solves (56) anew—exactly the receding-horizon principle.
The asymptotic term therefore acts as a
quality indicator attached to each candidate, not as a commitment to hold the control constant indefinitely. It enriches the cost functional (53) and the feasibility check (55) with long-term trend information that would otherwise be unavailable within the short
horizon, while the receding-horizon re-optimization ensures that the controller adapts to new measurements and disturbances at every cycle. In the limit, when the process reaches a quasi-stationary state, the successive optimal controls converge,
, and the fixed-parameter assumption becomes exactly satisfied—so the asymptotic forecast coincides with the true steady-state outcome. This self-consistency property is characteristic of MPC schemes that embed a terminal cost or terminal constraint derived from a stationary model [
41,
42].
7. Discussion
The model, the analytical stability criterion, and the predictive control law proposed in this work were constructed to preserve the structural generality of the intermittent-mode framework: extensions to variable-frequency cycles () or to additional physical effects are admissible, provided they can be written in a form that fits naturally into the reduced-order structure without sacrificing the closed-form analytical solution—the property that makes real-time performance on edge hardware possible.
Nevertheless, several deliberate compromises were made in order to obtain a formulation that is both analytically tractable and fast enough to run inside a real-time control loop on edge hardware. These compromises define the present scope of applicability and, at the same time, set a clear agenda for further research.
7.1. Restriction to AR/PSS-Type Intermittent Regimes
The first group of limitations originates from the simplifying Assumptions 1–3 introduced in the problem statement. Setting collapses the accumulation phase to a purely passive “buildup” and reduces the per-cycle control vector. This is fully consistent with the dominant industrial use cases (AR/PSS) for which the present results were derived and validated. It does, however, exclude the more general variable-frequency periodic regime in which . Extending the model and the optimization procedure to such cases is therefore the most immediate direction for further research.
Such an extension does not require revisiting the reduced-order ODE itself, since (35a) already describes the Hz branch; rather, it requires re-deriving the cycle-averaged form (41a) for the case where neither phase is passive, and revisiting the sign analysis underlying the stability criterion (50).
Removing the no-PID Assumption 2 and treating disturbances explicitly, rather than as small fluctuations under Assumption 3, would also allow the framework to accommodate slug arrivals, sudden composition changes, and other intra-cycle events whose mean effect over the cycle is currently absorbed into the identified coefficients of (41).
7.2. Robustness to Disturbances and Measurement Noise
The small-disturbance Assumption 3 and its consequences for robustness deserve separate discussion, particularly because the target well stock is characterized by fluctuating gas–oil ratio, water cut and associated PVT properties. It is useful to distinguish two qualitatively different classes of disturbance.
Slow drifts. Gradual changes in GOR, water cut, and fluid properties evolve on characteristic timescales of weeks to months—orders of magnitude slower than the per-cycle control horizon and the three-cycle identification window. Within the framework, these are handled by construction: because the model coefficients are re-identified from fresh measurements at every cycle boundary, the cycle-mean effect of a slow drift is continuously absorbed into the identified parameters of (41), in direct analogy with the integral action of a PID controller. Where required, such properties may additionally be injected as externally measured boundary inputs, keeping them outside the predictive responsibility of the reduced-order model itself.
Fast, discrete events. Slug arrivals, water breakthrough, and gas breakthrough—all common in this well stock—produce abrupt, large-amplitude excursions that genuinely violate Assumption 3. The present formulation does not claim to represent these events: removing the no-PID Assumption 2 and treating the disturbance term explicitly, rather than as a small fluctuation, is the extension required to accommodate them, and constitutes a natural and substantial subject for dedicated future research within the same reduced-order framework.
Measurement noise. We regard the rejection of measurement noise
as primarily a signal-conditioning and state-estimation problem—a concern of metrology and data processing [
46,
47,
48]—best addressed in the acquisition and pre-processing layer rather than inside the physical model. The controller further mitigates high-frequency noise structurally, since it acts on cycle-integrated quantities (the cycle-integrated disturbance
and noise
), whose averaging over the cycle attenuates zero-mean fluctuations.
A first, if limited, indication of closed-loop robustness is already provided by the synthetic experiments of
Section 6.2. We nonetheless emphasize that this does not constitute a systematic robustness study against large composition swings or discrete flow events; such a study, spanning the amplitude, rate, and type of disturbance, is an important direction for future work, deliberately left outside the present scope to keep the manuscript focused on the fundamental per-cycle control principles.
7.3. Modeling Compromises
A second group of limitations stems from the modeling choices made inside the reduced-order description itself. The neglect of the casing-side frictional and kinetic pressure losses in (22b), the assumption of a fixed wellhead boundary condition in (
A2), the omission of tubing friction in (
A16), and the existence condition imposed on the ESP operating point in (
A15) were each justified by the same speed/accuracy trade-off: each term, if retained, would force a distributed PVT and flow-regime calculation along the corresponding interval at every integration step, which is incompatible with on-edge real-time use.
The benchmark in
Section 6 (
Figure 7 and
Figure 8) shows that, despite these omissions, the reduced-order model reproduces the qualitative dynamics of the high-fidelity simulator and of the industry-standard reference with an accuracy that is sufficient to drive a robust control law and to identify a quasi-stationary regime.
It also makes clear, however, that a predictable bias is introduced in the absolute values of intake pressure and liquid rate. Reintroducing each of the omitted terms would substantially improve absolute accuracy and broaden the range of physical phenomena that can be represented inside the predictive loop. An alternative route, noted for completeness, is to replace the omitted physics with a data-driven surrogate—for example, a proper-orthogonal-decomposition (POD) reduced-order model or a neural-network-based flow emulator, approaches that have recently been shown to approximate distributed multiphase-flow calculations at low online cost [
49,
50,
51]. Such surrogates, however, would substitute a trained approximation for the closed-form analytical structure of (35), which is the primary enabler of on-edge real-time re-identification; the interpretability and robustness of that substitution under distribution shift fall outside the scope of the present work.
7.4. Extensions of the Control Law
Improvements are also possible on the control side, independently of the modeling refinements above. The present controller is dedicated to the intermittent regime and assumes that the well is and remains in periodic operation. Real wells, however, transition between steady-state and intermittent operation as inflow conditions evolve, and the moments of conversion are themselves critical in terms of production losses and equipment integrity. Embedding the steady-state operating point as a specific case of (50)—formally as the limit—and equipping the optimization problem (56) with explicit handover logic between the two modes would allow the same controller to manage the full operational lifecycle of an unstable well.
A second extension concerns the lower control tier. The PLC-hosted PID loops that protect the equipment within a cycle are currently treated as fixed; once the per-cycle controller has identified the asymptotic regime through (45), it has, in principle, all the information needed to retune those PID parameters on the fly so that the intra-cycle behavior matches the predicted optimal trajectory. This would close the gap between the two control tiers identified in
Section 1 and turn the proposed MPC into a supervisor of the existing low-level loops rather than a parallel decision layer.
7.5. Analytical Structure as a Research Opportunity
Finally, we believe that the analytical structure obtained in
Section 4 has value beyond its immediate use inside the controller. The closed form
, the exponent
, and the explicit asymptote
c together constitute a small set of “stability coefficients” that summarize the per-cycle dynamics of an arbitrary AR/PSS regime in three numbers identifiable from only three consecutive cycles.
We expect that a systematic study of these coefficients—their sensitivity to PVT properties, to the productivity index K, and to the pump degradation factor —could yield closed-form classifiers of stable, marginal, and unstable operating envelopes, and ultimately a deeper understanding of non-stationary (intermittent and transient) well operation than is currently available from numerical experimentation alone.
7.6. Real-Time Performance
The reduced-order model (35) replaces the iterative nodal-analysis solves of the high-fidelity reference with a single closed-form exponential evaluation per candidate regime. By construction, this makes the exhaustive grid search over the admissible set (54) orders of magnitude faster than any numerical predecessor. The complete solution surface shown in
Section 6 is computed in under
on a commodity processor (Intel Core i3, 14th generation), well within the characteristic time interval between two measurements
10–30 s inside the cycle of a typical intermittent well.
7.7. Scope of the Experimental Validation
The experiments reported in
Section 6 address the three questions that are essential for a first deployment: model fidelity against high-fidelity and industry-standard references (
Figure 7 and
Figure 8), closed-loop stability in a synthetic sandbox (
Figure 9 and
Figure 10), and consistency of the open-loop controller output with the decisions actually taken by experienced production engineers on historical telemetry (
Figure 11,
Figure 12,
Figure 13,
Figure 14,
Figure 15 and
Figure 16). To make the comparisons meaningful and the results interpretable, the weights in the cost functional (53) were deliberately simplified: in particular, the asymptotic penalty term was suppressed, so that the optimizer selects cycles on the basis of the immediate predicted flow rate and constraint satisfaction alone, mirroring the information set available to a human operator adjusting the regime in the field. This choice was instrumental for validation—it allowed a direct, cycle-by-cycle comparison between the controller’s suggestions and the engineer’s actual decisions—but it leaves the full multi-objective landscape of (53) unexplored. A more comprehensive study is therefore a necessary next step before the framework can be recommended for continuous closed-loop deployment: it should systematically vary the weight vector, reintroduce the asymptotic convergence term, and evaluate the controller inside a modified virtual environment capable of replaying multi-day operational scenarios with evolving reservoir and surface-network conditions.
8. Conclusions
This work was motivated by a structural gap in the control of unstable ESP wells: recommendation systems built on high-fidelity transient models operate on hourly to daily cycles and deliver setpoints that are obsolete by the time they reach the drive, while PLC-hosted PID loops act on the right time scale but carry no representation of the underlying multiphase physics. Neither tier alone is adequate for the edge-of-instability regime that intermittent operation requires.
To bridge this gap, we formulated the per-cycle control of an intermittent ESP well as a multi-horizon problem and derived a reduced-order transient model of the coupled “reservoir–tubing–annulus” system whose closed-form solution predicts the intake pressure through a single exponential and a finite number of arithmetic operations. Building on this model, we obtained an analytical stability criterion for the cycle-averaged intake pressure, identifiable from only three consecutive cycles, and embedded it inside a per-cycle predictive control law solved by exhaustive search over a discretized admissible set. The entire solution surface is computed in under on a commodity processor, well within the characteristic measurement interval of a typical intermittent well.
The proposed framework was validated in three stages. In the model benchmark, the reduced-order formulation reproduced the intake pressure of both the in-house high-fidelity simulator and OLGA 2022.1.0 with and ; the liquid-rate offset () was consistent with the omitted frictional terms and did not affect the qualitative dynamics. In the closed-loop sandbox experiments, the controller drove the cycle-averaged liquid rate to the prescribed setpoint and held it within the tolerance band across all control iterations, including recovery from two imposed step disturbances in wellhead pressure, without violating the intake-pressure lower bound at any cycle boundary. In the retrospective open-loop back-test on field telemetry, the algorithm issued a physically grounded recommendation at the first cycle boundary following a disturbance event; the operator required approximately three hours and three intermediate trial regimes to converge to a final settled point whose cycle parameters lay within the envelope bounded by the two algorithmic scenarios, confirming consistency between the controller output and experienced field practice.
The present formulation is restricted to AR/PSS-type intermittent regimes and relies on several modeling simplifications that trade absolute accuracy for real-time tractability. Principal directions for further research include extension to variable-frequency periodic operation, relaxation of the modeling compromises, integration with steady-state and PLC-level control tiers, a systematic study of the analytical stability coefficients, a more comprehensive exploration of the cost functional weight space within an extended virtual testing environment, and closed-loop field validation, which is currently precluded by process safety requirements that prohibit autonomous actuation of the ESP drive at the present stage of deployment.