Manuscript Offprint
arXiv:2611.02823Efficient Detailed Scheduling of Multiproduct Pipelines using Action-Decoupled Deep Reinforcement Learning
ARTICLE INFO
Keywords:
Multiproduct pipeline scheduling
Deep reinforcement learning
Action decoupling
Nonlinear hydraulic constraints
ABSTRACT
Multiproduct pipelines transport refined products to delivery stations in sequential batches, and their detailed scheduling must meet market demand while respecting nonlinear hydraulic constraints. Retaining the full hydraulic nonlinearity yields a mixed-integer nonlinear program that is computationally intractable, while the linearization commonly adopted for solver-based optimization degrades hydraulic accuracy without resolving the heavy computational burden. This paper develops an action-decoupled proximal policy optimization (PPO) framework that efficiently produces detailed schedules while preserving hydraulic fidelity. The scheduling process is cast as a semi-Markov decision process (SMDP) with flexible action durations. To handle the discrete-continuous hybrid action space, a cascaded dual-actor architecture decouples the discrete operating duration from the continuous flow decisions, eliminating the gradient interference that destabilizes conventional coupled-action policies and thereby yielding high-quality schedules far more efficiently. Validated on a real-world multiproduct pipeline in China and benchmarked against a single-actor baseline and a linearized MILP solved by Gurobi, the proposed framework achieves delivery accuracy close to the exact optimum while substantially improving flow rate stability and substantially reducing solution time.
1.1. Background
The petroleum supply chain encompasses multiple critical stages, ranging from refining to the distribution of final products. Within this complex system, pipeline transportation serves as a fundamental pillar of modern energy logistics, providing a cost-effective and safe means of transporting large volumes of liquid fuel over long distances to downstream markets (Liao et al., 2022; Han et al., 2024). In contemporary operations, different grades of fuel—such as diesel and gasoline—are pumped sequentially into the pipeline without any physical barriers between them (Mostafaei et al., 2021a; Sidki et al., 2025). The continuous migration of these batches introduces highly dynamic hydraulic changes throughout the system (Zhou et al., 2019b). Therefore, under the strict premise of satisfying these complex hydraulic constraints, the core objective of pipeline scheduling is to safely and punctually meet downstream market demand while simultaneously minimizing operational costs (Zhang et al., 2017).
Over the past few decades, detailed scheduling optimization for multiproduct pipelines has been widely studied across different network structures and specific operating targets. The hydraulic environment is intrinsically complex, involving highly nonlinear relationships among batch interface positions, flow rates, and pressures (Lin et al., 2025). Consequently, the detailed scheduling of multiproduct pipelines is typically formulated as a mixed-integer nonlinear programming (MINLP) problem, where the primary computational challenge lies in dealing with severe model nonconvexity (Cafaro et al., 2015). To alleviate this, a widely adopted practice is to linearize the non-convex constraints to form a Mixed-Integer Linear Programming (MILP) formulation. However, While this improves tractability, it sacrifices hydraulic accuracy, and the resulting MILP models still necessitate extensive binary variables to encode spatial and temporal operational decisions. As key scale parameters increase, these variables grow exponentially, inevitably triggering a combinatorial explosion in the solution space (Liao et al., 2026). With the rapid development of
Corresponding author
Z19090002@s. upc.edu.cn (K. Shao); bebetter@upc.edu.cn (L. Jian); s25080030@s. upc.edu.cn (L. Liu); bogomo@cs.msu.su (S.V. Bogomolov); wangxinmin@upc.edu.cn (X. Wang)
0009-0001-3687-3108 (K. Shao); 0000-0002-9385-5977 (L. Jian); 0000-0002-5414-6019 (S.V. Bogomolov); 0000-0002-4050-0865 (X. Wang)
ORCID(s):
K. Shao et al.: Preprint submitted to Elsevier
Page 1 of 23 data science and artificial intelligence, solving such complex scheduling optimization problems with significantly lower time costs has become possible (Tu et al., 2024). Therefore, this research aims to establish a rigorous mathematical modeling approach and investigate effective reinforcement learning algorithms for optimizing multiproduct pipeline scheduling.
1.2. Related work
To mathematically formulate this scheduling process, researchers must primarily decide how to represent time in their models. Discrete-time representations divide the entire scheduling horizon into uniform, fixed-length time intervals. Rejowski Jr and Pinto (2003) formulated a discrete-time MILP model as a representative approach for single pipeline scheduling problems, and Meira et al. (2021) proposed a new discrete-time MILP model to address the long-term scheduling of pumping and delivery operations in straight multiproduct pipeline systems connecting multiple sources to multiple destinations. While predefined discrete intervals simplify basic constraint formulation, they force a severe trade-off between coarse intervals that compromise hydraulic accuracy and fine intervals that trigger the curse of dimensionality (Liao et al., 2018a). Contrary to discrete models, continuous-time MILP representations have proven to be an efficient way to find the optimal transportation plan for single pipelines (Cafaro and Cerdá, 2004). By modeling operational event timings as continuous variables rather than fixed-duration boundaries, this representation allows the model to track batch movements while generally yielding formulations with smaller dimensions (Rejowski Jr and Pinto, 2008). Abdellaoui et al. (2021) developed a continuous-time MILP model to comprehensively optimize complex pipeline networks. Mostafaei et al. (2021b) proposed a holistic continuous-time approach to rigorously enforce strict operational constraints, such as forbidden product sequences and dynamic inventory. Hybrid-time representations merge discrete and continuous frameworks by establishing discrete time segments, which allows the model to evaluate macroscopic states over predefined intervals while continuously tracking microscopic hydraulic events. Utilizing this logic, Zhou et al. (2019b) proposed a hybrid-time MILP model that accurately captures dynamic variations in pipeline frictional pressure drops during multi-batch sequential transportation.
Even with these advanced formulations, solving the resulting models remains computationally daunting. To enhance solution efficiency, many researchers have linearized nonlinear equations associated with pressure, such as pipeline friction and pump characteristic equations (Liao et al., 2018a), or used flow constraints instead of pressure constraints to avoid the need for nonlinear terms (Liao et al., 2018b). These linearized models are subsequently solved using standard exact solvers such as CPLEX or Gurobi. However, this practice faces a twofold limitation. Mathematically, imposing nonlinear physical constraints as linear bounds inherently shrinks the feasible region and degrades hydraulic accuracy, failing to guarantee a true global optimum for the actual system (Lin et al., 2025). Computationally, even linearized models face severe practical limitations. The extensive binary variables required for rigorous batch tracking impose a massive computational burden, making it highly challenging for exact solvers to tackle practical-scale scheduling problems within an acceptable timeframe (Xu et al., 2021; MirHassani and Jahromi, 2011). To overcome these limitations and expedite the solution process, researchers have developed various decomposition frameworks. Two-stage decomposition algorithms have been widely used to systematically decouple the sequencing of batches and time events from the continuous calculation of detailed delivery volumes and flow rates (Yan et al., 2021; Zhang et al., 2017). Meira et al. (2021) and Liao et al. (2026) applied rolling-horizon frameworks and multi-stage decomposition to slice long-term tasks into manageable subproblems, which not only accommodate dynamic demand updates but also drastically accelerate the solution process. Concurrently, heuristic and meta-heuristic approaches have been extensively explored. Chen et al. (2017a) applied a simulated annealing algorithm to optimize the schedule of multiproduct pipelines, while Bamoumen et al. (2023) designed a greedy randomized adaptive search procedure (GRASP) to sequence batches and product volumes rapidly. Despite these improvements, heuristic rules are usually highly targeted to a specific scheduling issue, resulting in poor generality when applied to other scheduling systems with slightly different operational requirements (Liao et al., 2019). With the development of data science and machine learning, data-driven methods have been introduced to enrich the solution approaches (Liao et al., 2019; Zhang et al., 2018). These methods attempt to accelerate the initial search by mining historical schedules, assuming that analogous operational conditions will yield similar solutions. Consequently, they suffer from poor generalizability and fail to provide valid scheduling guidance in unprecedented scenarios lacking historical precedent.
In recent years, reinforcement learning (RL) has been recognized as a powerful approach for optimal sequential decision-making. Benefiting from deep neural networks, deep reinforcement learning (DRL) can handle decision-making problems with large state and action spaces, achieving tremendous success in complex domains such as robotics and games (Mnih et al., 2015; Kaufmann et al., 2023). More notably, DRL has proven highly successful in solving
K. Shao et al.: Preprint submitted to Elsevier
Page 2 of 23 analogous network operation and scheduling tasks, such as real-time pump control in water distribution networks (Pei et al., 2025), network-constrained economic dispatch in large-scale power grids (Chen et al., 2025), continuous-action resource dispatch in isolated microgrids (Dominguez-Barbero et al., 2023), and compressor operation as well as supply reliability optimization in natural gas pipelines (Liu et al., 2026; Fan et al., 2022). These successes across diverse networked infrastructures demonstrate the broad potential of DRL for complex operation and scheduling problems. In multiproduct pipelines specifically, DRL has so far been limited to pump scheduling (Shao et al., 2025), while the detailed batch scheduling problem remains largely unexplored. However, directly applying standard DRL algorithms to this problem introduces a critical technical barrier regarding the discrete-continuous hybrid action space. Standard algorithms often struggle in complex engineering applications where an agent must simultaneously output discrete and continuous variables, a challenge recently highlighted in hybrid vehicle energy management (Liu et al., 2024). Multiproduct pipeline scheduling poses a comparable challenge because the agent must simultaneously make discrete operational decisions while adjusting continuous flow rates. Standard single-actor algorithms address this by treating both output types as a single vector. Inevitably, such rigid coupling neglects conditional dependencies among variables, leading the neural network to compute gradients for continuous parameters even when the corresponding discrete decisions render them operationally inactive. Consequently, forcing the agent to evaluate these invalid actions during exploration introduces severe noise into the training process, significantly hindering algorithmic convergence and reducing sample efficiency (Li et al., 2025). To address this structural limitation, recent studies demonstrate that spatially decoupling multidimensional actions effectively enhances policy flexibility and learning efficiency (Nie et al., 2025).
Inspired by these advancements, this study proposes a novel action-decoupled deep reinforcement Learning framework to optimize the detailed scheduling of multiproduct pipelines. To the best of our knowledge, this is the first work to apply deep reinforcement learning to the detailed batch scheduling of single-source, multiple-destination multiproduct pipelines. Experimental results show that the proposed framework yields high-quality detailed schedules for multiproduct pipelines with substantially reduced computation cost. The contributions of this paper are summarized as follows:
-
We propose a hybrid-time MINLP model for the detailed scheduling of multiproduct pipelines that preserves the full hydraulic nonlinearity rather than relying on the linearization commonly adopted in prior work. By tracking exact batch arrival times, the model enforces rigorous batch tracking and accurate hydraulic loss calculation, and formulates scheduling as a multi-objective problem that jointly minimizes delivery deviation and flow rate fluctuation, thereby providing a high-fidelity formulation without sacrificing solution accuracy.
-
We translate the detailed scheduling process into a semi-Markov decision process (SMDP) (Sutton and Barto, 1998). This framework natively accommodates flexible operational durations, enabling the agent to maintain specific scheduling schemes over variable time intervals. This SMDP reformulation thus enables a deep reinforcement learning approach to be applied directly to the detailed scheduling of multiproduct pipelines.
-
To address the hybrid action space dilemma, we design a novel cascaded dual-actor architecture built on proximal policy optimization (PPO) (Schulman et al., 2017) that decouples operating duration from flow rates. This logical decoupling of discrete and continuous actions eliminates gradient interference from invalid actions, thereby enhancing sample efficiency and training stability.
The remainder of this paper is organized as follows. Section 2 describes the detailed scheduling problem of multiproduct pipelines and states the underlying assumptions. Section 3 formulates the hybrid-time MINLP model. Section 4 translates the scheduling process as an SMDP and presents the proposed action-decoupled SMDP-PPO framework. Section 5 reports the case study on a real-world pipeline, and Section 6 concludes the paper and discusses future work.
2. Problem description
A multiproduct pipeline system sequentially transports several refined products from a refinery to downstream delivery station. As illustrated in Fig. 1, the system consists of an initial injection station, a series of pipeline segments, intermediate pump stations, and delivery stations. The products are injected sequentially, without physical separators, and travel forward as distinct batches. Pump stations are strategically placed along the route to provide the necessary pressure to overcome frictional losses and elevation differences, thereby maintaining continuous flow. As batches
K. Shao et al.: Preprint submitted to Elsevier
Page 3 of 23 advance through the pipeline, the intermediate and terminal delivery stations withdraw the required volume from the corresponding batches to meet local market demand.

Figure 1: Schematic of sequential batch transportation in a multiproduct pipeline
Based on downstream market demands and injection plans, detailed pipeline scheduling determines the specific execution scheme for each operational period, determining the exact delivery volumes and delivery flow rates. In this study, the optimization model comprehensively addresses three key aspects: minimizing supply-demand deviations, maintaining flow rate stability, and accurately calculating dynamic hydraulic losses. The objective is to minimize delivery deviation while also pursuing flow rate stability. While precise delivery ensures supply reliability, maintaining stable flow rates effectively minimizes frictional pressure drop and thereby helps curb the associated pumping energy cost. It also improves scheduling practicability by reducing the operator workload from frequent valve adjustments and pump switching (Chen et al., 2017b). To ensure the feasibility of the schedule, the proposed model enforces exact batch tracking by incorporating the exact arrival times of batches at each station. This precise tracking enables accurate calculation of hydraulic loss, ensuring that all operational decisions comply with stringent hydraulic safety limits during the batch sequential transportation process (Zhou et al., 2019b).
To explicitly formulate the pipeline detailed scheduling problem, the given parameters and the decision variables to be determined are formally defined as follows.
Given:
-
Pipeline data: Length, inner diameter, and flow rate limits of each pipeline segment.
-
Station data: Elevation of each station, injection and delivery flow rate limits, max head of pump station.
-
Production data: Physical properties of products (density, viscosity), initial batch states, predetermined batch injection volumes and sequence.
-
Demand plan: Target delivery volumes for each product at respective delivery stations.
Determine:
-
Injection schedule: Injection flow rate and execution durations.
-
Delivery schedule: Delivery flow rate and execution durations.
To effectively solve this model, the following reasonable simplifications and assumptions are made:
-
Refined products are treated as incompressible fluids with constant physical properties, completely disregarding any temperature- or pressure-induced variations.
-
Within any time interval, the continuous variables, including station injection/delivery flow rate, remain strictly steady.
-
Fluid flow in all segments is strictly assumed to be hydraulically smooth.
-
Contamination between adjacent batches is modeled as a sharp zero-volume boundary, thereby neglecting the complex tracking of mixed-oil sections.
-
Tank inventory constraints are excluded, assuming all stations have sufficient capacity to store the scheduled products.
K. Shao et al.: Preprint submitted to Elsevier
Page 4 of 23
3. Mathematical model
In this section, we formulate the detailed scheduling problem for a multiproduct pipeline with a single injection source and several delivery stations as a hybrid-time MINLP model. The objective minimizes delivery deviations and flow rate fluctuations, subject to time node, batch tracking, delivery, flow rate, and pressure constraints. The Appendix A contains a complete nomenclature.
3.1. Objective function
The multiproduct pipeline detailed scheduling is developed as a multi-objective optimization problem that minimizes the delivery deviation and the flow rate fluctuation , as shown in Eq. (1).
The delivery deviation is defined as the absolute difference between the planned demand and the actual volumes delivered at each delivery station.
The stability objective suppresses operational fluctuations by penalizing the variation in flow rates between consecutive time intervals for each pipeline segment i.
A weight factor is applied to discourage fluctuations in flow rate in pipeline segments with larger volume capacities, as flow variations in such segments lead to higher frictional pressure, as expressed in Eq. (4).
3.2. Time node constraints
The scheduling horizon is represented by a sequence of time nodes accumulated through Eq. (5), starting from .
A binary variable equals 1 if a batch head interface reaches a station at node and 0 otherwise, as determined by Eqs. (6) and (7).
The step is fixed to the base interval when no batch head interface reaches a station, and is released to a variable value within when a batch head arrives, as enforced by Eqs. (8) and (9), where is a big-M constant and is a small positive constant that prevents a zero-length step.
K. Shao et al.: Preprint submitted to Elsevier
Page 5 of 23
3.3. Batch tracking constraints
The initial positions of all batches must be defined. For batches already inside the pipeline, the initial volumetric coordinate is determined by the known initial position , as expressed in Eq. (10). For new batches to be injected, the starting position is assigned a negative value calculated by Eq. (11), which represents the cumulative planned injection volumes of all preceding new batches.
The binary indicator is introduced as a fundamental tracking variable. As defined by the big-M relaxation in Eqs. (12) and (13), equals 1 if the head interface of batch j has passed station i at time node k, and 0 otherwise. Eqs. (14) and (15) preserve the physical order by ensuring that each batch passes stations sequentially and that all batches maintain their relative positions.
When a batch head interface reaches a station, i.e., , the time node constraints in Eqs. (6)-(9) release the step length to a variable value, while Eq. (16) coupled with Eq. (12) forces the coordinate to coincide with the station coordinate . Through the volume update in Eq. (19), this alignment determines the exact and hence the precise arrival time via Eq. (5).
Product delivery from batch at station is permitted only when the batch covers the station, a condition captured by the binary variable in Eqs. (17) and (18), which indicates that the head interface has passed the station while the tail interface remains upstream.
The volumetric coordinate is updated in Eq. (19) by adding the volumetric displacement during the time interval, which is calculated as the difference between the source injection and all upstream deliveries.
K. Shao et al.: Preprint submitted to Elsevier
Page 6 of 23
As hydraulic loss varies with oil properties, the spatial relationship between batches and pipeline segments must be precisely determined. To facilitate this calculation, the occupancy of a batch within a segment is described by four mutually exclusive binary states. Since the last batch has no succeeding batch and thus no tail interface within the horizon, the head indicator of the nonexistent succeeding batch is set to zero, i.e., for all , so that the following definitions apply uniformly to all batches.
As defined in Eqs. (20)–(22), the binary variable equals 1 if batch j completely passes through segment i, which occurs when its head interface has passed station while its tail interface has not yet reached station i.
As defined in Eqs. (23)–(25), the binary variable equals 1 if the head interface of batch j is inside segment i and its tail interface has not yet reached station i.
As defined in Eqs. (26)–(28), the binary variable equals 1 if the tail interface of batch j is inside segment i and its head interface has passed station .
As defined in Eqs. (29)–(31), the binary variable equals 1 if both the head and tail interfaces of batch j are inside segment i.
K. Shao et al.: Preprint submitted to Elsevier
Page 7 of 23
3.4. Delivery constraints
Due to the technical limits of the measuring equipment and the limited receiving capacity of the station, the delivery flow rate is constrained by Eq. (32) to be zero or operate within its minimum threshold and maximum capacity.
Summing the delivery volumes across all intervals where product o covers station i yields the total delivered volume, as expressed in Eq. (33).
3.5. Flow rate constraints
The segment flow rate equals the adjacent upstream segment's flow rate minus the delivery at the connecting station, as defined in Eq. (35). For the first segment, it equals the injection at the initial station in Eq. (34).
Furthermore, to ensure transportation efficiency and equipment safety, the flow rate in each pipeline segment must be maintained within a specific allowable range, as specified by Eq. (36).
3.6. Pressure constraints
The nonlinear relationship between the flow rate and the pipeline frictional pressure is typically calculated using the empirical Leibenzon formula, which is widely used for friction loss calculations in multiproduct pipelines in China (Zhang et al., 2017; Lin et al., 2025). Assuming the oil flow regime stays within the hydrodynamic smooth zone ( , m = 0.25), the basic friction head loss is defined by:
Fig. 2. illustrates the schematic for pressure drop calculation in a multiproduct pipeline. As oil products with different physical properties move sequentially, the frictional and elevation-related pressure drops change dynamically. At each time interval , the total pressure required for segment is determined by summing the effects of all batches within that segment; specifically, the frictional pressure drop and elevation-related pressure drop are defined by Eq. (38) and Eq. (39), respectively.
Here, the exact physical length and the elevation difference spanned by batch j inside segment i are precisely determined by the four mutually exclusive binary topological variables formulated in the batch tracking section. By combining these with the volumetric coordinates, the detailed pressure drop formulas are derived:
K. Shao et al.: Preprint submitted to Elsevier
Page 8 of 23
(40)
The sum gives the total pressure drop, i.e., the hydraulic loss, of segment at node . Under the hybrid

Figure 2: Schematic diagram of batch lengths and elevation differences within pipeline segment .
time framework, the transportation flow rate remains constant throughout any interval , during which no batch interfaces are permitted to enter or leave the pipeline segments. Consequently, the total pipeline pressure drop exhibits a strictly linear monotonic change over time during this interval (Zhou et al., 2019b). To ensure safety, the cumulative pressure demand up to node must stay within the total upstream supply capacity. Due to pressure linearity, enforcing this constraint at both interval endpoints and guarantees compliance at any intermediate moment, as formulated in Eqs. (42) and (43):
4. Action-decoupled deep reinforcement learning
In this section, we propose an action-decoupled deep reinforcement learning framework to optimize the detailed scheduling of a multiproduct pipeline. This framework is based on the semi-Markov decision process (SMDP) paradigm to enhance flow rate stability () through a sequence of "macro-actions". Each macro-action represents a stable operating state maintained until an asynchronous decision node is triggered, either by the expiration of a planned duration or by critical events. The following subsections present the formal SMDP formulation, the proposed action-decoupled architecture, and the PPO-based optimization procedure.
K. Shao et al.: Preprint submitted to Elsevier
Page 9 of 23
4.1. SMDP formulations for multiproduct pipeline scheduling
The scheduling problem is first mathematically structured as a semi-Markov decision process (SMDP) to recast the scheduling problem in a form amenable to reinforcement learning. The SMDP is formally defined by a tuple , where is the state space, is the action space, is the reward function, denotes the transition dynamics, and is the discount factor. The transition dynamics represent the probability of transitioning to state after an actual execution duration . The objective is to learn an optimal policy that maximizes the expected discounted rewards where is the number of decision stages and is the cumulative number of steps at stage (with ). Here, represents the actual execution duration of the -th macro-action. To maintain temporal consistency, the stage reward is defined as the discounted accumulation of instantaneous rewards over the actual duration : . Here, denotes the discrete step index within the -th macro-action, and represents the environmental state at step .
The components of the SMDP are specified as follows:
-
State space (S): The state at decision stage is represented by a feature vector . This vector encompasses the volumetric coordinates of all batch head interfaces , the densities and kinematic viscosities of the products currently passing through each station, the remaining delivery demand for each station and product type, and the macro-action executed in the previous stage.
-
Action space (A): Each macro-action in the hybrid action space represents a stable operating state. Here, is the discrete planned duration, while the continuous vector specifies both the injection flow rate at the initial station and the delivery flow rates at all downstream delivery stations.
-
Reward function (R): The reward function operationalizes the multi-objective optimization as RL feedback, providing the agent with progressive guidance by penalizing delivery deviations, operational instability, and safety violations. The total stage reward consists of an accumulated deviation component and several macro-level penalties:
where , and are weight factors used to balance the operational objectives. Each term is defined as follows:
• Delivery deviation reward : This component reflects the delivery deviation objective defined in Eq. (2). It consists of an interval-based penalty and a terminal penalty triggered at the end of the horizon:
The interval-based penalty penalizes delivery errors at each discrete step within the macro-action through a piecewise function specifically designed to enhance gradient sensitivity to minor errors:
where represents the normalized root mean square error (NRMSE) of the deviations between actual and planned delivery volumes in all stations and products at step , and denotes an empirical threshold that balances coarse-scale and fine-scale optimization. The terminal penalty imposes a strict global constraint at the final step:
where is a penalty coefficient and is an indicator function that equals 1 only upon the end of the scheduling horizon.
K. Shao et al.: Preprint submitted to Elsevier
Page 10 of 23
- Flow rate stability reward (): This component encourages steady operations, corresponding to the stability objective in Eq. (3). It is composed of an operational smoothness reward () and a switching penalty (), i.e., , where:
Here penalizes flow variations across pipeline segments between decision stages using volumetric weights , with serving as a normalization constant representing the maximum allowable flow rate of the pipeline. reduces intervention frequency by imposing a switching cost to encourage longer, more stable macro-actions.
- Pressure penalty (): To ensure pressure safety according to Eqs. (42) and (43), a penalty is applied. Here, represents the magnitude of the pressure violation when the hydraulic constraints are breached. Notably, such a violation is treated as a critical event, which immediately truncates the current macro-action and forces a transition to a new decision node.
- Transition dynamics (): The transition probability defines the environment's evolution over an actual duration . Although the agent proposes a planned duration , the actual duration is determined by the simulator and may be truncated by critical events, such as a batch interface arriving at a delivery station or a pressure violation.
4.2. Action decoupling via cascaded dual-actor architecture
Traditional policy-based DRL methods typically use a single-actor to learn a joint policy , where the planned scheduling duration and flow rates are generated simultaneously. In pipeline scheduling, however, these two sub-actions are strongly coupled: the appropriate flow rate depends on the duration over which it is held, so the same may be either suitable or harmful depending on . Following the policy gradient theorem (Sutton and Barto, 1998), the joint objective gradient in a single-actor framework is
where is the advantage function evaluating the joint action. This leads to gradient interference: when a reasonable duration is paired with an incompatible flow rate during exploration, the low advantage of this combination drives the shared gradient to suppress the probability of the duration as well, even though the duration itself is sound. Such interference increases training instability and hampers the agent's ability to identify compatible macro-actions efficiently.
To address this, we propose an action-decoupled architecture that employs a conditional factorization of the joint policy into two serial actors:
In this serial structure, Actor 1 first determines the planned duration , and Actor 2 then selects the corresponding flow rates based on this duration. The decoupled optimization logic for these two actors is derived as follows:
- Duration network (Actor 1): To derive the update rule for Actor 1, we begin with the gradient of the joint objective with respect to the duration parameters . Based on the policy factorization of Eq. (51), the gradient is initially expressed as:
K. Shao et al.: Preprint submitted to Elsevier
Page 11 of 23
Here, the second factor vanishes under since it does not depend on , leaving only the duration term. The joint expectation is decomposed into a nested form using the law of total expectation:
(53)
Eq. (53) shows that the duration policy is updated based on the marginal advantage evaluated over the flow rate distribution. By evaluating the duration based on the expected performance of subsequent flow rates, Actor 1 can determine whether a specific duration is suitable for the current multiproduct pipeline state. This approach prevents the duration policy from being misled by a single mismatched flow rate sample during exploration, ensuring more robust and stable credit assignment during the early training phase.
- Flow rate network (Actor 2): Conditioned on the duration from the first stage, the flow rate policy is optimized to find the most compatible flow rate control for that specific time window:
For Actor 2, receiving the duration as a prior condition significantly simplifies the exploration complexity, as the agent only needs to find the optimal flow rates within a given duration. Furthermore, the generated flow rates must also strictly adhere to safety boundaries. Therefore, to satisfy the delivery and pipeline segment flow rate constraints defined in Eqs. (32) and (36), a sequential action mapping mechanism is embedded in the output layer of Actor 2. Rather than directly outputting the delivery flow rate, the network generates a raw unconstrained vector , which is transformed into physical actions in two steps. First, the injection flow rate is mapped to strictly satisfy the capacity of the initial pipeline segment:
where is the sigmoid activation function. Then, the delivery flow rate for each delivery station is mapped sequentially to ensure that neither the delivery capacity nor the minimum flow rate limits are violated:
This two-step mapping restricts the action space to a strictly feasible region, ensuring that all generated flow rates are legally feasible.
This hierarchical update mechanism ensures that the environment's feedback is correctly attributed to duration selection and flow rate control, facilitating faster convergence in complex pipeline environments.
4.3. Action-Decoupled SMDP-PPO
In this subsection, the PPO algorithm is employed to obtain the optimized detailed scheduling policy within the SMDP framework. The training process adopts an actor-critic architecture, where the interaction between the dual-actor agent and the multiproduct pipeline simulation environment is illustrated in Fig. 3. The simulation environment inherently satisfies most mathematical constraints, such as batch tracking. For constraints not directly embedded in the simulator, the delivery flow rate bounds are strictly satisfied via an action mapping mechanism that ensures all outputs are inherently feasible, while hydraulic pressure constraints are enforced via penalty terms in the reward function.
K. Shao et al.: Preprint submitted to Elsevier
Page 12 of 23

Figure 3: Interaction between the cascaded dual-actor agent and the multiproduct pipeline simulation environment under the SMDP-PPO framework.
To consider the impact of execution duration in the SMDP-based scheduling model, the advantage function is estimated using extended generalized advantage estimation (EGAE) (Chen et al., 2023). This approach accounts for the actual execution duration of each macro-action, which has been shown to balance the bias-variance trade-off in SMDP environments effectively. The temporal difference (TD) error for a scheduling transition starting at decision stage is expressed as:
Based on these TD errors, the EGAE for the -th decision stage is computed as:
where is a hyperparameter balancing the estimation bias and variance. The importance sampling ratio for the dual-actor network is defined as:
The parameters and are then optimized by maximizing the objective function :
where is the clipping coefficient. The critic network parameters are optimized by minimizing the value function loss:
where is the target return for stage .
The detailed optimization procedure is given in Algorithm 1. The agent iteratively samples a planned duration and flow rates through the cascaded Actor 1 and Actor 2. During the step-by-step environment execution, an event-triggered termination mechanism is employed: the simulation is interrupted if a critical event occurs (e.g., batch head arrival or pressure violation), and the actual duration is recorded. These transitions are stored in for advantage estimation via EGAE followed by multi-epoch policy updates, enabling the agent to learn an optimal detailed scheduling policy under various operational constraints.
K. Shao et al.: Preprint submitted to Elsevier
Page 13 of 23
Algorithm 1 Action-Decoupled SMDP-PPO
Initialize: Pipeline Environment , Actor , Actor , Critic , Experience Buffer
Ensure: Optimized scheduling policy parameters
1: for iteration = 1, 2, ... do 2: while do 3: if done then 4: Reset environment , get initial state , set 5: end if 6: Actor 1: Sample planned duration 7: Actor 2: Sample flow rates 8: 9: for to do 10: Step environment with , receive interval-based deviation reward 11: 12: 13: Update environment termination flag done 14: if done or critical event triggered then 15: break 16: end if 17: end for 18: Compute total stage reward: 19: Store in 20: 21: end while 22: Compute advantages and returns for all 23: for epoch = 1 to do 24: for mini-batch do 25: Update by maximizing 26: Update by minimizing 27: end for 28: end for 29: Clear Buffer 30: end for
5. Results and discussion
In this section, we conduct a case study to validate the effectiveness and efficiency of the proposed Action-Decoupled SMDP-PPO framework on a multiproduct pipeline. Furthermore, we present a dedicated comparison demonstrating the training benefits of the cascaded dual-actor architecture over a single-actor baseline. The Python 3.9-based RL models, the C# pipeline simulator, and the Gurobi-based MILP baseline were all executed on an Intel Core i5-12450H CPU @ 2.00 GHz.
5.1. Basic pipeline data
A 375.5 km real-world multiproduct pipeline in China is considered for the case study, equipped with five stations: the initial station (IS), one delivery-pumping station (DPS1), two delivery stations (DS2 and DS3), and the terminal station (TS). The physical and operational parameters of these stations and the four connecting segments are listed in Tables 1 and 2, respectively. This pipeline sequentially transports 92# gasoline, 95# gasoline, and 0# diesel, whose physical properties are detailed in Table 3. During routine operations, the pipeline is typically filled with 0# diesel at both the beginning and the end of the scheduling horizon, and the batch injections generally follow a cyclic sequence of 92#G-95#G-92#G-0#D. The injection plan and the corresponding supply-demand requirements at each delivery station, adopted from the case study of Zhou et al. (2019a) and converted into volumetric units, are summarized in Table 4.
K. Shao et al.: Preprint submitted to Elsevier
Page 14 of 23
Table 1
Physical and operational parameters of each station.
| Station ID | Altitude (m) | Min delivery flow rate (m³/h) | Max delivery flow rate (m³/h) | Max head of pump station (m) |
|---|---|---|---|---|
| IS | 0 | – | – | 1092 |
| DPS1 | 7 | 100 | 900 | 1096 |
| DS2 | 111 | 100 | 600 | – |
| DS3 | 53 | 100 | 600 | – |
| TS | 51 | 100 | 600 | – |
Table 2
Physical and operational parameters of pipeline segments.
| Pipeline segment | Length (km) | Inner diameter (mm) | Min allowable flow rate (m³/h) | Max allowable flow rate (m³/h) |
|---|---|---|---|---|
| IS–DPS1 | 130.4 | 492.2 | 600 | 1100 |
| DPS1–DS2 | 139.5 | 492.2 | 500 | 1100 |
| DS2–DS3 | 66.9 | 441.2 | 100 | 1100 |
| DS3–TS | 38.7 | 441.2 | 100 | 1100 |
Table 3
Physical properties of refined products.
| Product Type | Density (kg/m³) | Viscosity (m²/s) |
|---|---|---|
| 0# diesel | 845 | |
| 92# gasoline | 740 | |
| 95# gasoline | 750 |
Table 4
Planned supply and demand for the case study.
| Station | 0# Diesel (m³) | 92# Gasoline (m³) | 95# Gasoline (m³) | Total (m³) |
|---|---|---|---|---|
| DPS1 | 22,485 | 35,810 | 14,666 | 72,961 |
| DS2 | 8,876 | 20,270 | 8,000 | 37,146 |
| DS3 | 10,651 | 18,919 | 4,667 | 34,236 |
| TS | 31,361 | 23,648 | 6,000 | 61,009 |
| Total demand | 73,373 | 98,647 | 33,333 | 205,353 |
| Total injection* | 72,189 | 106,081 | 33,333 | 211,603 |
- The injection sequence consists of four batches: 92# (52,027 m³), 95# (33,333 m³), 92# (54,054 m³), and 0# (72,189 m³), while the pipeline is initially filled with 0# diesel.
5.2. Case study
5.2.1. Experimental settings
The hyperparameters of the proposed Action-Decoupled SMDP-PPO agent are summarized in Table 5, with parameters for all evaluated methods carefully fine-tuned to be as optimal as possible. To benchmark the proposed framework, two baselines are employed: a standard Single-Actor SMDP-PPO model with the same hyperparameter configuration as the proposed action-decoupled framework, and a solver-based MILP baseline, obtained by reformulating the proposed MINLP model into an MILP via the piecewise linearization technique of Liao et al. (2018a) and solving it with Gurobi under the objective in Eq. (1). Furthermore, the choice of the discrete time window length primarily balances decision
K. Shao et al.: Preprint submitted to Elsevier
Page 15 of 23
Table 5 Hyper-parameters for the Action-Decoupled SMDP-PPO Framework
| Category | Parameters | Value |
|---|---|---|
| Network Architecture | Actor 1&2 network (Layers × Neurons) | |
| Critic network (Layers × Neurons) | ||
| PPO Algorithm | Learning rate | |
| Discount factor () | 0.99 | |
| PPO clip coefficient () | 0.2 | |
| GAE parameter () | 0.95 | |
| SMDP Setting | Maximum decision duration () | 30 |
| Reward Weights | Delivery deviation reward weight () | 1.0 |
| Flow rate stability weight () | 0.5 | |
| Pressure penalty weight () | 5 | |
| NRMSE threshold () | 0.15 | |
| Terminal penalty coefficient () | 500 | |
| Switching penalty () | 2 |
granularity against computational complexity. A large interval restricts the feasible solution space, whereas a small interval leads to a combinatorial explosion in the mathematical formulation. Consequently, the base discrete time interval for both the mathematical model and the RL environment is uniformly set to 1 hour.
5.2.2. Performance comparison and scheduling results
Fig. 4 presents the training curves of the proposed Action-Decoupled SMDP-PPO and the Single-Actor SMDP-PPO baseline with respect to the two optimization objectives, i.e., the delivery deviation (Fig. 4(a)) and the flow rate stability (Fig. 4(b)). Specifically, the total planned injection exceeds the total demand by 6,250 m³ (about 3.0% of the total demand) in this case, which makes a zero delivery deviation unattainable and sets the lower bound of for this case. Despite this, Fig. 4(a) shows that both methods stabilize the total delivery deviation to below 5% of the total demand during the mid-to-late training stage. A schedule reaching this 5% threshold is regarded as feasible in this work, since the surplus injection makes a lower deviation hardly attainable. Both methods reach this level, confirming that the SMDP formulation effectively optimizes the detailed scheduling policy. Furthermore, the proposed method begins to stabilize around 5,000 episodes, markedly earlier than the single-actor baseline. A consistent advantage is observed for in Fig. 4(b): the proposed method converges to a substantially lower flow rate fluctuation than the baseline, indicating smoother segment flow rates and thus a more practical schedule. This contrast verifies that decoupling the discrete duration and continuous flow rate via two cascaded actors eliminates the gradient interference inherent in the single-actor scheme, thereby improving both convergence speed and final accuracy. A more comprehensive comparison between the two architectures is provided in Section 5.2.3.
Fig. 5 depicts a representative detailed scheduling scheme found by the Action-Decoupled SMDP-PPO, presented as a batch migration chart. In this chart, the vertical and horizontal axes correspond to the length coordinate of each station and the operating time, respectively. Each black line traces the trajectory of a batch interface along the pipeline, with its slope indicating the prevailing pipeline flow rate. The injection and delivery operations are marked by colored blocks, where the color identifies the product type and the block thickness scales with the corresponding flow rate. The segment flow rates and hydraulic losses corresponding to this scheme are further reported in Fig. 6. Owing to the sequential action mapping mechanism embedded in the output layer of Actor 2, the flow rate of every pipeline segment is kept strictly within its allowable bounds over the entire horizon. Meanwhile, as the batch interfaces migrate, the hydraulic loss of each segment varies with the changing product distribution. Specifically, the hydraulic loss of Segment 3 (DS2–DS3) turns negative during certain low-flow intervals, where its negative elevation-related pressure drop (a gravitational head gain from the 58 m descent) outweighs the reduced frictional pressure drop . At the system level, the cumulative pressure demand along the pipeline stays below the supply capacity of the upstream pump stations, thereby satisfying the pressure constraints in Eqs. (42) and (43). These results confirm that the proposed method yields an operationally feasible schedule that satisfies both the flow rate and pressure constraints. To further
K. Shao et al.: Preprint submitted to Elsevier
Page 16 of 23

Figure 4: Comparison of training performance between the proposed Action-Decoupled and Single-Actor SMDP-PPO. (a) Convergence of the delivery deviation ; (b) convergence of the flow rate stability . The solid line and shaded band denote the mean and standard deviation over three independent runs.
evaluate the quality of this feasible schedule, its scheduling objectives and computational cost are compared against both baselines.

Figure 5: Batch migration chart of a representative detailed scheduling scheme found by the Action-Decoupled SMDP-PPO during training.
Table 6 reports the actual delivered volumes at each station, and Table 7 summarizes the overall performance of the three methods, where the schedules of the two RL-based methods correspond to representative results that are attained by the trained policies. Since no cross-plan generalization is considered, each plan is solved by training a dedicated policy from scratch, and the reported solution time accordingly refers to the training time required to reach
K. Shao et al.: Preprint submitted to Elsevier
Page 17 of 23
Table 6
Planned demand and actual delivered volumes at each station for the representative schedules found by the three methods during training/solving.
| Station | 0# Diesel(m³) | 92# Gasoline(m³) | 95# Gasoline(m³) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Demand | Prop. | SA | Gurobi | Demand | Prop. | SA | Gurobi | Demand | Prop. | SA | Gurobi | |
| DPS1 | 22,485 | 22,875 | 22,625 | 22,485 | 35,810 | 35,829 | 35,045 | 35,810 | 14,666 | 14,719 | 14,651 | 14,666 |
| DS2 | 8,876 | 10,674 | 11,861 | 15,005 | 20,270 | 20,219 | 20,333 | 20,391 | 8,000 | 8,280 | 7,694 | 8,000 |
| DS3 | 10,651 | 11,082 | 11,434 | 10,651 | 18,919 | 19,088 | 19,678 | 18,919 | 4,667 | 4,717 | 4,803 | 4,667 |
| TS | 31,361 | 35,031 | 33,407 | 31,361 | 23,648 | 23,681 | 23,998 | 23,648 | 6,000 | 5,792 | 6,093 | 6,000 |
| Abs. dev. | – | 6,289 | 5,954 | 6,129 | – | 272 | 1,937 | 121 | – | 592 | 551 | 0 |
Prop. = Action-Decoupled SMDP-PPO; SA = Single-Actor SMDP-PPO. "Abs. dev." is the absolute delivery deviation summed over all stations for each product.
Table 7
Performance comparison of the proposed method, the single-actor baseline, and the Gurobi-based MILP model.
| Method | (m³) | (m³/h) | Solution time (s) | Gap (%) |
|---|---|---|---|---|
| Action-Decoupled SMDP-PPO | 7,153 | 561 | 1,503 | – |
| Single-Actor SMDP-PPO | 8,442 | 1,449 | 2,059 | – |
| Gurobi | 6,250 | 1,697 | 38,911 | 13.8 |
that schedule. In terms of delivery accuracy, the Gurobi-based MILP model attains the lowest deviation , exactly reaching the inherent lower bound set by the surplus injection, which amounts to about 3.0% of the total demand. In contrast, the proposed method reaches , about 3.5% of the total demand, closely approaching this bound and clearly outperforming the single-actor baseline at . For the flow rate stability , however, the proposed method gives the smallest value of , markedly better than the single-actor baseline at and the Gurobi-based model at . Notably, although Gurobi drives to its lower bound, it is terminated with a 13.8% optimality gap after 38,911 s, and since the deviation term is already optimal, this residual gap is essentially attributable to the unoptimized flow rate stability, which explains its poor and would require substantially longer computation to be further reduced. The advantage of the proposed method lies in its computational efficiency: it produces a feasible schedule in about 900 s and a representative best schedule in about 1,503 s. The full training of 30,000 episodes takes about 3,000 s in total, beyond which no further improvement is observed. Overall, the proposed method achieves delivery accuracy close to the exact optimum, along with the stable flow rate, while reducing solution time by more than an order of magnitude, making it well suited for the efficient detailed scheduling of multiproduct pipelines.
5.2.3. Effect of action decoupling
To further quantify the benefit of the action-decoupled architecture beyond the convergence trends in Fig. 4, two training-process metrics are compared between the proposed method and the single-actor baseline over three independent runs, as shown in Fig. 7. The first metric is the time to reach the first feasible solution, which measures training efficiency. As shown in Fig. 7(a), the proposed method obtains a feasible schedule in about 14.9 min on average, markedly faster than the single-actor baseline at about 21.0 min, and with a smaller variation across runs. The second metric is the number of feasible solutions found during the 30,000-episode training, which reflects the stability of the policy in maintaining feasibility once it is reached. As shown in Fig. 7(b), the proposed method produces substantially more feasible solutions in every run, with an average of 1,143 compared with 617 for the baseline, indicating that, once a feasible region is found, the decoupled policy remains within it far more consistently. These results confirm that decoupling the discrete duration and the continuous flow rate into two cascaded actors not only accelerates convergence but also improves the reliability of the learned policy.
K. Shao et al.: Preprint submitted to Elsevier
Page 18 of 23

Segment 2 (DPS1-DS2)

Segment 3 (DS2-DS3)

Segment 4 (DS3-TS)

Figure 6: Flow rate and hydraulic loss of each pipeline segment under the obtained scheduling scheme. The red step lines and blue lines denote the segment flow rate and hydraulic loss, respectively, and the dashed lines indicate the minimum flow rate limits. (a) Segment 1 (IS-DPS1); (b) Segment 2 (DPS1-DS2); (c) Segment 3 (DS2-DS3); (d) Segment 4 (DS3-TS).
K. Shao et al.: Preprint submitted to Elsevier
Page 19 of 23


Figure 7: Comparison between the Action-Decoupled and Single-Actor SMDP-PPO. (a) Time to the first feasible solution; (b) number of feasible solutions over 30,000 episodes. Bars and error bars denote mean and standard deviation over three runs; circles mark individual runs.
6. Conclusion
This paper proposed an Action-Decoupled SMDP-PPO framework that efficiently solves the detailed scheduling of multiproduct pipelines. The scheduling problem was first formulated as a hybrid-time MINLP model that jointly minimizes the delivery deviation and the flow rate fluctuation under rigorous batch tracking and hydraulic constraints, and was then translated to a semi-Markov decision process so that reinforcement learning could be applied directly. On a real-world pipeline case in China, the learned policy kept the delivery deviation close to the lower bound reached by the linearized MILP model while reducing the solution time by more than an order of magnitude. A cascaded dual-actor architecture was further designed to decouple the discrete operating duration from the continuous flow rates, removing the gradient interference that destabilizes conventional single-actor policies; this decoupling yielded a markedly lower flow rate fluctuation and, as confirmed by our experiments, accelerated convergence and improved the reliability of the learned policy.
Despite these results, the current study trains a dedicated policy for each scheduling plan without cross-plan generalization, on a single-source pipeline topology. Future work will develop generalizable policies that adapt to varying demand plans without retraining, and extend the framework to tree-structured and multi-source pipeline networks to further enhance its practical applicability.
Acknowledgments
This work was supported by the National Key Research and Development Program of China under Grant Nos. 2021YFA1000104 and 2021YFA1000100, the Laboratory Project of Higher Education Institutions in Shandong Province—Energy System Intelligent Management and Policy Simulation Laboratory at China University of Petroleum, the Youth Innovation Team of Higher Education Institutions in Shandong Province—Data Intelligence Innovation Team at China University of Petroleum, and the Innovation Fund Project for Graduate Students of China University of Petroleum (East China) through the Fundamental Research Funds for the Central Universities under Grant No. 25CX04042A.
References
Abdellaoui, W., Souier, M., Sahnoun, M., Abdelaziz, F.B., 2021. Multi-period optimal schedule of a multi-product pipeline: A case study in Algeria. Computers & Industrial Engineering 159, 107483.
Bamoumen, M., Elfirdoussi, S., Ren, L., Tchernev, N., 2023. An efficient GRASP-like algorithm for the multi-product straight pipeline scheduling problem. Computers & Operations Research 150, 106082.
K. Shao et al.: Preprint submitted to Elsevier
Page 20 of 23
Cafaro, D.C., Cerdá, J., 2004. Optimal scheduling of multiproduct pipeline systems using a non-discrete MILP formulation. Computers & Chemical Engineering 28, 2053–2068.
Cafaro, V.G., Cafaro, D.C., Méndez, C.A., Cerdá, J., 2015. Optimization model for the detailed scheduling of multi-source pipelines. Computers & Industrial Engineering 88, 395–409.
Chen, H., Wu, C., Zuo, L., Diao, F., Wang, L., Wang, D., Song, B., 2017a. Optimization of detailed schedule for a multiproduct pipeline using a simulated annealing algorithm and heuristic rules. Industrial & Engineering Chemistry Research 56, 5092–5106.
Chen, H., Zuo, L., Wu, C., Wang, L., Diao, F., Chen, J., Huang, Y., 2017b. Optimizing detailed schedules of a multiproduct pipeline by a monolithic MILP formulation. Journal of Petroleum Science and Engineering 159, 148–163.
Chen, Y., Ye, R., Tao, Z., Liu, H., Chen, G., Peng, J., Ma, J., Zhang, Y., Ji, J., Zhang, Y., 2023. Reinforcement learning for robot navigation with adaptive forward simulation time (AFST) in a semi-Markov model, in: 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), IEEE, pp. 3597–3604.
Chen, Y., Zhu, J., Dong, H., Zeng, C., Pan, Z., 2025. Knowledge-augmented population-based deep reinforcement learning for real-time network-constrained economic dispatch of large-scale power grid. IEEE Transactions on Power Systems.
Dominguez-Barbero, D., Garcia-Gonzalez, J., Sanz-Bobi, M.A., 2023. Twin-delayed deep deterministic policy gradient algorithm for the energy management of microgrids. Engineering Applications of Artificial Intelligence 125, 106693.
Fan, L., Su, H., Wang, W., Zio, E., Zhang, L., Yang, Z., Peng, S., Yu, W., Zuo, L., Zhang, J., 2022. A systematic method for the optimization of gas supply reliability in natural gas pipeline network based on bayesian networks and deep reinforcement learning. Reliability Engineering & System Safety 225, 108613.
Han, P., Zhang, Q., He, W., Chen, Y., Zhao, B., Li, Y., Zhou, G., 2024. A double inference engine belief rule base for oil pipeline leakage. Expert Systems with Applications 240, 122587.
Kaufmann, E., Bauerfseld, L., Loquercio, A., Müller, M., Koltun, V., Scaramuzza, D., 2023. Champion-level drone racing using deep reinforcement learning. Nature 620, 982–987.
Li, Y., Ding, D., Xie, H., Zhao, L., Jin, Y., Xie, Y., Fang, Z., 2025. SPAD: Spatial perception and action decoupling empowered multi-agent ai task scheduling framework in cloud-edge computing. IEEE Transactions on Networking 34, 1896–1911.
Liao, Q., Liang, Y., Tu, R., Huang, L., Zheng, J., Wang, G., Zhang, H., 2022. Innovations of carbon-neutral petroleum pipeline: A review. Energy reports 8, 13114–13128.
Liao, Q., Liang, Y., Xu, N., Zhang, H., Wang, J., Zhou, X., 2018a. An MILP approach for detailed scheduling of multi-product pipeline in pressure control mode. Chemical Engineering Research and Design 136, 620–637.
Liao, Q., Tu, R., Xu, B., Huang, M., Li, J., Zheng, Z., Liang, Y., 2026. Optimizing large-scale multiproduct pipeline scheduling: a novel hierarchical rolling-horizon framework. Expert Systems with Applications 311, 131385.
Liao, Q., Zhang, H., Xia, T., Chen, Q., Li, Z., Liang, Y., 2019. A data-driven method for pipeline scheduling optimization. Chemical Engineering Research and Design 144, 79–94.
Liao, Q., Zhang, H., Xu, N., Liang, Y., Wang, J., 2018b. A MILP model based on flowrate database for detailed scheduling of a multi-product pipeline with multiple pump stations. Computers & Chemical Engineering 117, 63–81.
Lin, J., Liu, G., Chen, L., He, Y., You, Z., 2025. Optimizing batch scheduling of multiproduct pipelines using a smooth modeling approach. SPE Journal 30, 808–822.
Liu, M., Dong, N., Wang, X., Jian, L., 2026. Physics-based and data-driven adaptive compressor optimization in gas pipeline systems under dynamic and non-isothermal conditions. Engineering Applications of Artificial Intelligence 167, 113941.
Liu, Z.E., Li, Y., Zhou, Q., Li, Y., Shuai, B., Xu, H., Hua, M., Tan, G., Xu, L., 2024. Deep reinforcement learning-based energy management for heavy duty HEV considering discrete-continuous hybrid action space. IEEE Transactions on Transportation Electrification 10, 9864–9876.
Meira, W.H.T., Magatao, L., Neves Jr, F., Arruda, L.V., Vaqueiro, J.P., Relvas, S., Barbosa-Povoa, A.P., 2021. A solution framework for the long-term scheduling and inventory management of straight pipeline systems with multiple-sources. Computers & Operations Research 127, 105143.
MirHassani, S., Jahromi, H.F., 2011. Scheduling multi-product tree-structure pipelines. Computers & Chemical Engineering 35, 165–176.
Mnih, V., Kavukcuoglu, K., Silver, D., Rusu, A.A., Veness, J., Bellemare, M.G., Graves, A., Riedmiller, M., Fidjeland, A.K., Ostrovski, G., et al., 2015. Human-level control through deep reinforcement learning. Nature 518, 529–533.
Mostafaei, H., Castro, P.M., Oliveira, F., Harjunkoski, I., 2021a. Efficient formulation for transportation scheduling of single refinery multiproduct pipelines. European Journal of Operational Research 293, 731–747.
Mostafaei, H., Castro, P.M., Relvas, S., Harjunkoski, I., 2021b. A holistic MILP model for scheduling and inventory management of a multiproduct oil distribution system. Omega 98, 102110.
Nie, B., Fu, Y., Gao, Y., 2025. Select before act: Spatially decoupled action repetition for continuous control, in: Proceedings of the International Conference on Learning Representations.
Pei, S., Hoang, L., Fu, G., Butler, D., 2025. Real-time pump scheduling in water distribution networks using deep reinforcement learning. Journal of Water Resources Planning and Management 151, 04025012.
Rejowski Jr, R., Pinto, J.M., 2003. Scheduling of a multiproduct pipeline system. Computers & Chemical Engineering 27, 1229–1246.
Rejowski Jr, R., Pinto, J.M., 2008. A novel continuous time representation for the scheduling of pipeline systems with pumping yield rate constraints. Computers & Chemical Engineering 32, 1042–1066.
Schulman, J., Wolski, F., Dhariwal, P., Radford, A., Klimov, O., 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347.
Shao, K., Wang, X., Liu, M., Xu, A., Jian, L., 2025. Efficient pump scheduling for large-scale multiproduct pipelines using deep reinforcement learning. International Journal of Adaptive Control and Signal Processing 39, 1567–1579.
Sidki, M., Tchernev, N., Feniès, P., Ren, L., Elfirdoussi, S., 2025. Multiproduct pipeline scheduling: A comprehensive bibliometric analysis and a systematic literature review. Computers & Chemical Engineering 192, 108911.
Sutton, R.S., Barto, A.G., 1998. Reinforcement learning: An introduction. volume 1. MIT press Cambridge.
K. Shao et al.: Preprint submitted to Elsevier
Page 21 of 23
Tu, R., Zhang, H., Xu, B., Huang, X., Che, Y., Du, J., Wang, C., Qiu, R., Liang, Y., 2024. Machine learning application in batch scheduling for multi-product pipelines: A review. Journal of Pipeline Science and Engineering 4, 100180.
Xu, N., Liao, Q., Li, Z., Liang, Y., Qiu, R., Zhang, H., 2021. An efficient decomposition approach for the low-energy scheduling of a straight multiproduct pipeline. Chemical Engineering Research and Design 165, 341–360.
Yan, Y., Castro, P.M., Liao, Q., Liang, Y., 2021. An effective decomposition algorithm for scheduling branched multiproduct pipelines. Computers & Chemical Engineering 154, 107494.
Zhang, H., Liang, Y., Liao, Q., Shen, Y., Yan, X., 2018. A self-learning approach for optimal detailed scheduling of multi-product pipeline. Journal of Computational and Applied Mathematics 327, 41–63.
Zhang, H., Liang, Y., Liao, Q., Wu, M., Yan, X., 2017. A hybrid computational approach for detailed scheduling of products in a pipeline with multiple pump stations. Energy 119, 612–628.
Zhou, X., Liang, Y., Zhang, X., Liao, Q., Gao, S., Zhang, W., Zhang, H., 2019a. A MILP model for the detailed scheduling of multiproduct pipelines with the hydraulic constraints rigorously considered. Computers & Chemical Engineering 130, 106543.
Zhou, X., Zhang, H., Qiu, R., Liang, Y., Wu, G., Xiang, C., Yan, X., 2019b. A hybrid time MILP model for the pump scheduling of multi-product pipelines based on the rigorous description of the pipeline hydraulic loss changes. Computers & Chemical Engineering 121, 174–199.
A. Nomenclature
Nomenclature
Sets and indices
Set of stations and pipeline segments. Pipeline segment connects station with station ,
Set of batches,
The set of batches to be injected into the pipeline during the scheduling horizon
The set of batches in the pipeline at the start of the scheduling horizon
The set of batches that belong to product type
Index set of time nodes,
Set of product types
Time value of node ()
Parameters
Weight factor of pipeline segment used to prevent flow rate fluctuations from being concentrated in specific segments
Kinematic viscosity of batch ()
Density of batch ()
Inner diameter of pipeline segment (m)
Elevation of station (m)
Elevation difference spanned by batch in segment at time node (m)
Physical length of batch in segment at time node (m)
Frictional pressure drop of pipeline segment at time node (Pa)
Elevation pressure drop of pipeline segment at time node (Pa)
Maximum allowable pressure provided by station (Pa)
K. Shao et al.: Preprint submitted to Elsevier
Page 22 of 23
| Flow rate of pipeline segment during time interval (m³/h) | |
|---|---|
| Minimum and maximum allowable delivery flow rates at station (m³/h) | |
| Minimum and maximum allowable flow rates for pipeline segment (m³/h) | |
| The injection flow rate at the initial station during time interval (m³/h) | |
| The delivery flow rate at station during time interval (m³/h) | |
| Actual delivered volumes during the whole study horizon for product at delivery station | |
| the volumetric coordinate of the delivery station (m³) | |
| Demand volumes for product at delivery station (m³) | |
| The volumetric coordinate of the head interface of batch at time node (m³) | |
| Binary variables | |
| 1 if a head interface reaches a station at time node ; 0 otherwise | |
| 1 if station delivers products during time interval ; 0 otherwise | |
| 1 if batch covers station (available for delivery) at time node ; 0 otherwise | |
| 1 if the head interface of batch has passed station at time node ; 0 otherwise | |
| 1 if the whole batch is fully inside pipeline segment at time node ; 0 otherwise | |
| 1 if only the head interface of batch is in pipeline segment at time node ; 0 otherwise | |
| 1 if only the tail interface of batch is in pipeline segment at time node ; 0 otherwise | |
| 1 if the head interface of batch has passed through station but the tail interface has not passed through station at time node ; 0 otherwise | |
K. Shao et al.: Preprint submitted to Elsevier
Page 23 of 23