Next Article in Journal
Credit Card Fraud Detection Under Extreme Class Imbalance Using Leakage-Safe Feature Selection and GA-Based Hyperparameter Optimization
Previous Article in Journal
Ventilation Effectiveness Measurements in Clean and Dry Rooms Based on Tracer Gas Techniques—A Preliminary Measurement Development
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Risk-Aware Crude Oil Scheduling in Petrochemical Supply Chains: A CVaR-Driven Reactive GRASP Simheuristic

by
Antonio Giallanza
1 and
Giuseppe Marannano
2,*
1
Department of Engineering, University of Messina, Contrada di Dio, 98166 Messina, Italy
2
Department of Engineering, University of Palermo, Viale delle Scienze, 90128 Palermo, Italy
*
Author to whom correspondence should be addressed.
Appl. Sci. 2026, 16(13), 6733; https://doi.org/10.3390/app16136733
Submission received: 21 May 2026 / Revised: 30 June 2026 / Accepted: 2 July 2026 / Published: 5 July 2026

Abstract

The scheduling of crude oil operations in marine refineries is a complex combinatorial problem, exacerbated by stochastic disruptions like vessel delays and port congestion. Traditional deterministic and expected-value approaches fail to mitigate high-impact tail events, causing severe demurrage and production bottlenecks. To address this, we propose a novel CVaR-Driven Reactive GRASP Simheuristic. This framework hybridizes GRASP with Monte Carlo simulation, embedding Conditional Value-at-Risk (CVaR) into the adaptive memory to actively steer the search away from catastrophic logistical gridlocks. Overcoming standard “unlimited port capacity” assumptions, the model endogenously calculates demurrage dynamics and introduces an automated Failure Taxonomy for explainable insights. Evaluated on a 30-day industrial case study, representing a standard short-term operational scheduling horizon, under baseline conditions and severe dynamic disruptions (vessel delays, unit maintenance), the diagnostic reveals that over 80% of scheduling failures stem from endogenous port congestion rather than internal dead-ends. Furthermore, a comprehensive ablation study mathematically validates the superiority of the CVaR-driven memory over standard expected-cost optimization in preventing catastrophic tail-risk scenarios. Results demonstrate that this CVaR-driven approach effectively absorbs stochastic shocks, prevents stockouts, and minimizes worst-case costs, generating highly robust schedules in under three minutes. Ultimately, it provides a robust, risk-aware Decision Support System (DSS) for supply chain and operations managers.

1. Introduction

The petrochemical industry is a cornerstone of the global economy, and the coordinated scheduling of crude oil procurement, unloading, storage, blending, and processing is essential to sustaining profitable refinery operations [1,2,3]. Crude oil scheduling constitutes the critical operational interface between upstream supply logistics and the uninterrupted execution of downstream crude distillation units (CDUs). In globally interconnected markets, this interface is highly vulnerable to stochastic disruptions, including maritime shipping delays, supply shortages, and fluctuations in refinery operating conditions [4,5,6]. These vulnerabilities are particularly severe in marine access refineries. In such settings, the coordination of port channels, berths, tidal windows, storage resources, and transfer operations can generate severe congestion and demurrage costs that propagate directly into refinery scheduling decisions [7,8,9,10]. When deterministic schedules confront these dynamic real-world conditions, the resulting shocks frequently trigger bottlenecks, stockout risks, and significant economic losses, motivating the urgent need for adaptive, risk-aware scheduling strategies [11,12,13].
The physical execution of crude oil scheduling is governed by tightly coupled operational constraints, making its modeling and optimization a highly combinatorial and NP-hard problem [14,15]. A feasible schedule requires the synchronized management of vessel unloading, intermediate inventory levels, mandatory brine-settling times, safety-stock policies, single-crude tank allocation rules, and precise blending recipes to satisfy strict CDU feed specifications [16,17,18,19]. Designing optimization models that respect these rigid physical boundaries without generating infeasible schedules remains a major operational challenge.
Historically, the scientific literature has tackled this challenge predominantly through deterministic mathematical programming. Foundational discrete- and continuous-time MILP/MINLP formulations successfully modeled industrially important features such as inventory dynamics, settling times, and nonlinear blending constraints to optimize costs under perfect information [20,21,22,23]. To improve operational realism, subsequent research broadened the perspective from isolated short-term scheduling toward integrated planning. Studies demonstrated that procurement, terminal logistics, and refinery-wide decisions must be optimized simultaneously to preserve operational feasibility [24,25,26]. This integrated logic was further reinforced at the terminal–refinery interface, emphasizing that port-side routing, berth allocation, and unloading operations act as complex scheduling layers whose dynamics dictate downstream refinery performance [2,9,27]. Concurrently, to cope with the scale and combinatorial difficulty of these integrated models, simulation-based and metaheuristic approaches, such as structure-adapted genetic algorithms and evolutionary multiobjective optimization, emerged as valuable tools when exact models became computationally intractable for practical deployment [26,28,29,30].
Recognizing the limitations of deterministic assumptions, a major shift in the literature has been the transition toward uncertainty-aware and disruption-oriented formulations. Chance-constrained, robust, and data-driven optimization models have been widely adopted to hedge against volatility in supply, crude quality, and demand [13,31,32,33]. In parallel, reactive and preventive scheduling methodologies, including model predictive control (MPC) and safe reinforcement learning, have been proposed to manage supply-chain disruptions, VLCC delays, and dynamic rescheduling [11,13,19,34]. Recent literature has also begun to incorporate formal risk management into these mathematical programming frameworks. Notably, Garcia-Verdier et al. [35] developed a two-stage stochastic mixed-integer nonlinear programming (MINLP) model to handle uncertain vessel arrival dates, actively minimizing tail risk by utilizing the Conditional Value-at-Risk (CVaR) measure as the objective function. While such exact mathematical approaches successfully integrate CVaR, they suffer from well-known scalability limitations when the number of uncertainty scenarios increases. Furthermore, the integration of CVaR within adaptive metaheuristic frameworks for this domain remains largely unexplored.
Despite these significant advances, critical operational and methodological gaps remain. First, apart from recent exact formulations, most existing uncertainty-aware simheuristics and metaheuristics guide the optimization search primarily through expected performance, scenario feasibility, or robust admissibility. They fundamentally lack a mechanism to explicitly steer the metaheuristic search away from low-probability, high-impact “tail events” (e.g., catastrophic port gridlocks or total refinery stockouts). Second, many models still rely on simplified representations of terminal operations, such as “unlimited port” assumptions or static, exogenous delay penalties [36]. These simplifications fail to capture the endogenous, compounding dynamics of port congestion and the nonlinear growth of demurrage costs. Finally, while robust and reactive methods improve schedule resilience, they operate largely as algorithmic “black boxes”. As noted in schedulability studies [37,38], many mathematically attractive schedules fail in practice due to deeply hidden hybrid dynamic constraints. Existing models provide limited diagnostic insight into why candidate schedules fail, thereby diminishing their practical value for human schedulers who must make real-time, explainable decisions during a crisis.
To bridge these gaps, this paper proposes a CVaR-Driven Reactive GRASP Simheuristic for the risk-aware crude oil scheduling problem. The proposed approach seamlessly hybridizes a Reactive Greedy Randomized Adaptive Search Procedure (GRASP) with a Monte Carlo simulation engine. Unlike traditional risk-neutral simheuristics or robust optimization methods, our framework explicitly evaluates the tail risk of candidate schedules and uses CVaR estimates to continuously update the metaheuristic’s adaptive memory. By feeding back the severity of adverse disruption scenarios into the constructive search, the algorithm actively learns to avoid configurations susceptible to extreme delay penalties and operational bottlenecks.
While risk measures have recently been integrated into exact mathematical models for crude oil scheduling (e.g., [35]), their application has primarily been restricted to static objective function evaluations. The primary methodological contribution of this paper is the development of a simheuristic Reactive GRASP where a tail risk measure (CVaR) acts as the internal driver to dynamically update the adaptive memory of the algorithm. To the best of our knowledge, this is the first work to utilize CVaR iteratively within a reactive metaheuristic for crude oil scheduling. Consequently, the specific novelties of this study are:
  • Algorithmic Innovation (Tail-Risk Steering): We introduce a novel simheuristic where the adaptive memory (e.g., the α probabilities) of a Reactive GRASP is directly driven by CVaR feedback. This differentiates our method from prior reactive and robust approaches [13,32,35] by embedding risk aversion directly into the learning mechanism of the constructive search, rather than treating uncertainty merely as a passive evaluation metric.
  • Modeling Realism (Endogenous Port Congestion): We explicitly model dynamic port congestion, capturing the nonlinear, cascading effects of cumulative vessel waiting and demurrage costs. This overcomes the widespread “unlimited port” or fixed-delay assumptions, fully endogenizing the terminal–refinery risk interface highlighted by recent literature [9,10].
  • Explainable Optimization (Automated Failure Taxonomy): We move beyond traditional black-box optimization by developing an automated diagnostic framework. The algorithm systematically classifies the physical root causes of discarded solutions (e.g., settling blocks, safety-stock violations, port congestion deadlocks), transforming the optimizer into a transparent decision-support tool that provides actionable insights for industrial practitioners.
The remainder of this paper is organized as follows. Section 2 formally defines the physical problem and its deterministic operational constraints. Section 3 details the architecture of the proposed CVaR-driven Reactive GRASP simheuristic. Section 4 presents the industrial case study, the baseline validation, and the computational results of dynamic rescheduling under disruption scenarios. Finally, Section 5 concludes the paper and outlines future research directions.

2. Problem Description and Deterministic Constraints

2.1. Problem Statement and Assumptions

The crude oil scheduling problem addressed in this study is modeled on a representative marine-access petrochemical refinery. The conceptual layout of the system, illustrating the continuous flow from the maritime port interface through the storage tank farm and into the Crude Distillation Unit (CDU), is depicted in Figure 1.
The scheduling environment is governed by the following theoretical assumptions: (1) the planning horizon is discretized into daily operational periods; (2) demurrage costs accrue linearly per day for vessels waiting in the port queue; (3) the continuous topping rate must be strictly maintained within the specific physical bounds of the CDU; and (4) stochastic disruptions manifest primarily as delays in vessel arrival dates or unexpected CDU maintenance shutdowns. The given items include the deterministic arrival schedule (under baseline conditions), the maximum volumetric capacities of the tanks, the required blending recipes, and the economic penalty weights for operational violations. The items to be dynamically determined by the optimizer include: the daily unloading volume from each vessel to specific tanks, the exact daily blend composition fed to the CDU, the execution of internal tank-to-tank transfers, and the management of the port waiting queue. To formalize the problem mathematically, we define a discrete-time planning horizon T = { 1 , 2 , , | T | } . Let C = { Azeri , W T I , C P C } be the set of crude oil types, K = { T 1 , T 2 , T 3 } be the set of storage tanks, and V be the set of arriving vessels. The deterministic operational rules defining the feasible solution space are translated into the mathematical constraints presented below.

2.2. System Architecture and Inventory Balances

The refinery receives crude oil via maritime vessels that anchor at the port. Crude is discharged into the tank farm, which acts as a buffer before being fed to the CDU. The mass balance for each tank k K and crude type c C at the end of day t is defined as:
I k , c , t = I k , c , t 1 + v V U v , k , c , t + k k X k , k , c , t k k X k , k , c , t F k , c , t k , c , t
where I k , c , t is the inventory level, U v , k , c , t is the amount of crude unloaded from vessel v to tank k, X k , k , c , t represents internal transfers, and F k , c , t is the volume fed to the CDU.
Furthermore, the total volume discharged from a specific vessel into the tank farm on day t cannot exceed the available crude volume on that vessel from the previous day:
k K U v , k , c , t Q v , c , t 1 v , c , t
Each tank has a maximum volumetric capacity C a p k . In our baseline configuration, C a p T 1 = 65 kt, and C a p T 2 = C a p T 3 = 120 kt. The total inventory inside a tank cannot exceed its capacity:
c C I k , c , t C a p k k , t
To absorb unpredicted delays and prevent overflow, the refinery enforces strict global safety margins. A global Safety Stock ( S S = 120 kt) must be maintained to avoid starvation, and a global Safety Space ( S F = 30 kt) must be kept free to accommodate emergency discharges:
S S k K c C I k , c , t k K C a p k S F t

2.3. Single-Crude Allocation and Settling Dynamics

To prevent cross-contamination and unpredictable blend properties, the tank farm operates under a strict single-crude policy. A tank can only hold one type of crude oil at any given time. Let Y k , c , t { 0 , 1 } be a binary variable equal to 1 if tank k stores crude c on day t:
I k , c , t C a p k · Y k , c , t k , c , t
c C Y k , c , t 1 k , t
Furthermore, physical operations on the tanks are mutually exclusive. A tank cannot simultaneously receive crude (from a ship or another tank) and feed the CDU on the same day. To formulate this in standard Mixed-Integer Programming (MIP) canonical form, let Z k , t { 0 , 1 } be an auxiliary binary variable, and M be a sufficiently large positive constant (set to k K C a p k , representing the maximum theoretical farm capacity):
c C F k , c , t M · ( 1 Z k , t ) k , t
v V c C U v , k , c , t + k k c C X k , k , c , t M · Z k , t k , t
Additionally, after receiving crude, the mixture must undergo a mandatory brine-settling period ( τ = 1 day) for water separation before it can become eligible to feed the topping unit. Let S k , t be an integer variable tracking the consecutive days a tank has been settling. Mirroring the receiving conditions formalized above, S k , t is updated as:
S k , t = 0 if Z k , t = 1 S k , t 1 + 1 otherwise
A tank k is eligible to feed the CDU ( F k , c , t > 0 ) only if the settling time constraint is satisfied:
F k , c , t C a p k · I ( S k , t τ ) k , c , t
Note that while the bound C a p k in the indicator function constraint is intentionally loose and is further tightened implicitly by the mass balance constraint Equation (1), it serves exclusively as a logical activation gate. Furthermore, it is important to explicitly state that Equations (8) and (9) are not formulated as strict linear mathematical programming constraints for an exact solver. Rather, they are defined as procedural algorithmic constraints strictly evaluated during the constructive phase of our heuristic to enforce physical eligibility without artificially over-constraining the continuous mass balance variables.

2.4. Topping Feed and Blending Recipes

The crude distillation unit (CDU) requires a continuous and stable feed. The total daily processing rate, R t , is constrained by the technical limits of the topping unit ( R m i n = 16  kt/day, R m a x = 22 kt/day):
R t = k K c C F k , c , t t
R m i n R t R m a x t
The total monthly production target is set to 540 kt. In addition to volumetric limits, the CDU feed must respect specific chemical blending recipes dictated by shareholders’ economic strategies. While Azeri acts as the base crude, the inclusion of WTI and CPC is strictly bounded to prevent distillation anomalies. The blend fractions are limited to a maximum of 50% for WTI and 25% for CPC:
k K F k , W T I , t 0.50 · R t t
k K F k , C P C , t 0.25 · R t t

2.5. Port Congestion and Demurrage Accumulation

A critical aspect of marine-access refineries is the management of port logistics. Arriving vessels (in sizes of 80 kt or 130 kt) anchor in the port. If the tank farm lacks sufficient compatible free space to discharge the vessel completely, the ship remains in the waiting queue, generating cumulative demurrage costs and blocking subsequent arrivals.
Let Q v , c , t be the residual volume of crude c on vessel v waiting in the port at the end of day t. The port queue is updated as:
Q v , c , t = Q v , c , t 1 k K U v , k , c , t v , c , t
The total backlog in the port, B t = v , c Q v , c , t , represents the severity of the congestion. Avoiding the uncontrolled growth of B t is a primary logistical challenge, as high backlog levels exponentially increase demurrage penalties and threaten the feasibility of the entire supply chain. Finally, all physical volume and inventory tracking variables must strictly adhere to non-negativity constraints:
I k , c , t , U v , k , c , t , X k , k , c , t , F k , c , t , Q v , c , t 0 k , k , c , v , t
The deterministic constraints outlined in this section define the boundaries of the physical solution space. However, due to the stochastic nature of vessel arrival delays (characterized by a known probability distribution ranging from −1 to +6 days), a schedule that is mathematically feasible under nominal conditions may become severely bottlenecked in practice. While solving these equations as an exact stochastic Mixed-Integer Nonlinear Programming (MINLP) model would guarantee mathematical optimality, such formulations are notoriously intractable under severe uncertainty due to the exponential explosion of scenarios. To overcome this limitation and solve the problem efficiently, the deterministic boundaries formalized above act strictly as procedural constraints governing the constructive phase of the risk-aware metaheuristic framework described in the following section.

3. The CVaR-Driven Reactive GRASP Simheuristic

To solve the highly constrained, stochastic problem described in Section 2, we propose a novel simheuristic framework. Building upon the foundational GRASP methodology established by Feo and Resende [39] and its reactive extension by Prais and Ribeiro [40], our framework couples a semi-greedy constructive phase with a Monte Carlo simulation engine. Unlike traditional reactive metaheuristics that update their search memory based on deterministic costs or expected simulation values, our approach introduces a tail-risk steering mechanism. To the best of our knowledge, this represents a first-of-its-kind integration within simheuristics explicitly tailored for crude oil scheduling. The adaptive memory is driven by the Conditional Value-at-Risk (CVaR) of the objective function, dynamically guiding the constructive heuristic away from schedules vulnerable to severe port congestion and stockout cascading effects. The complete architectural flowchart of the proposed framework, illustrating the interaction between the constructive phase, local search, simulation engine, and risk-aware memory update, is depicted in Figure 2.

3.1. Framework Overview

The standard GRASP methodology consists of two iterative phases: a semi-greedy constructive phase and a local search phase. Our simheuristic extends this by embedding an uncertainty-evaluation module. Let A = { α 1 , α 2 , , α m } be a discrete set of relaxation parameters, where α [ 0 , 1 ] controls the greediness of the constructive phase. The framework operates as follows:
  • Selection: An α value is selected from A based on a dynamically updated probability distribution P = { p 1 , , p m } .
  • Construction: A baseline schedule is generated step by step. At each day, all physically feasible operational moves are evaluated, and one is selected randomly from a Restricted Candidate List (RCL) bounded by α .
  • Local Search: If a valid baseline schedule is completed, a deterministic local search is applied to improve blending yields and minimize nominal demurrage.
  • Simulation & Evaluation: The locally optimal schedule is subjected to N s i m Monte Carlo scenarios of stochastic vessel delays. The overall performance distribution is recorded, and the CVaR is calculated.
  • Reactive Memory Update: The CVaR score is used as feedback to update the selection probabilities P , rewarding α values that consistently generate risk-averse schedules.

3.2. Constructive Phase and Failure Taxonomy

The constructive phase builds a schedule S day by day. At day t, the system identifies the set of all physically feasible moves M t , encompassing topping rates, blend compositions, tank-to-tank transfers, and vessel discharges. Each move m M t is assigned a greedy score g ( m ) balancing the economic reward of processing high-value crudes (WTI, CPC) against the immediate penalty of generated port demurrage:
g ( m ) = V m W T I · π W T I + V m C P C · π C P C Δ B m · λ d e m u r r a g e
where V m represents the volume of specific crudes fed to the CDU, and π denotes their respective premium economic rewards. Note that the Azeri crude acts as the baseline feedstock for the refinery’s nominal margins; hence, its relative marginal reward is set to zero, and the algorithm seeks to maximize the inclusion of higher-value WTI and CPC blends.  Δ B m is the marginal increase in port backlog caused by the move (estimated heuristically during the day’s construction based on the immediate discharge volume versus the waiting queue), and λ d e m u r r a g e is the daily demurrage unit cost.
Let g m a x = m a x m M t g ( m ) and g m i n = m i n m M t g ( m ) . The Restricted Candidate List is constructed using the selected α :
R C L α = { m M t g ( m ) g m i n + α ( g m a x g m i n ) }
A move is then chosen uniformly at random from R C L α .
To provide explainability, if M t = (i.e., a combinatorial dead-end is reached), the algorithm does not merely discard the incomplete schedule. Instead, it systematically logs the binding physical constraint responsible for the failure via an automated Failure Taxonomy (e.g., settling-time blockage, safety-stock violation, or port congestion deadlock), providing actionable diagnostic data for industrial planners.

3.3. Regenerative Local Search

Once a complete baseline schedule S b a s e is constructed, a regenerative local search explores its neighborhood N ( S b a s e ) to improve the deterministic cost function f ( S ) (formally defined as the nominal baseline evaluation of the operational loss without stochastic disruption penalties). The neighborhood is defined by swap operators acting on the topping feed rates R t . For any two adjacent days t and t + 1 where R t R t + 1 , the local search evaluates the feasibility and cost impact of swapping the processing rates. While restricting the neighborhood to adjacent days represents a narrow local search space, it is an intentional design limitation chosen to keep computational overhead strictly negligible while effectively resolving high-frequency, immediate bottlenecks. Furthermore, by definition, this localized swap operation intrinsically preserves the total monthly production target (e.g., 540 kt), focusing strictly on localized intra-month stability. If the swap allows for a more profitable blending profile (recalculated via a rule-based deterministic procedure that maximizes WTI and CPC fractions under the limits defined in Section 2) without violating settling or capacity constraints, the schedule is updated. The local search employs a best-improvement termination criterion, iteratively applying swaps until no further deterministic cost reduction is achievable. To maintain a strict comparative benchmark, the computational budget ( M a x F E S ) focuses exclusively on the highly combinatorial constructive phase; the deterministic local search evaluations are considered computationally negligible and are intentionally excluded from the FES counter.

3.4. Monte Carlo Simulation and Tail-Risk (CVaR) Evaluation

The refined schedule S l o c a l is evaluated under uncertainty to assess its logistical robustness. We execute N s i m independent Monte Carlo scenarios. In each scenario ω , actual vessel arrival days are perturbed according to the historical probability distribution. The schedule S l o c a l is applied to the perturbed environment.
For each scenario ω , the total operational loss L ω ( S l o c a l ) is calculated as the sum of multiple penalized physical violations:
L ω ( S l o c a l ) = λ S F · S F ω + λ S S · S S V ω + λ d e m u r r a g e · C u m D e m ω Y i e l d R e w a r d ω
where S F ω is the production shortfall, S S V ω is the total safety stock violation, and C u m D e m ω is the cumulative demurrage incurred in scenario ω . The parameters λ S F , λ S S , and λ d e m u r r a g e are strictly positive unit penalty weights assigned to these physical violations. To ensure dimensional homogeneity across the loss function, these parameters are strictly calibrated as economic conversion factors (e.g., $/kt), rendering the physical violation penalties perfectly commensurable with Y i e l d R e w a r d ω , which represents the total economic premium generated by the specific blending recipe. Crucially, if a scenario encounters an unrecoverable combinatorial dead-end during simulation (i.e., absolute physical infeasibility), it is assigned a massive finite penalty ( M d e a t h ). Because M d e a t h is orders of magnitude larger than the regularizer ϵ , any α i generating even a single infeasible tail scenario will yield an updated quality score q i that is negligibly small relative to well-performing α values. This extreme penalty-based approach ensures that infeasible scenarios dominate the worst-case tail of the loss distribution, driving an aggressive CVaR steering mechanism that strictly avoids schedules with low structural resilience. In addition to economic losses, the simulation module independently tracks the Stochastic Feasibility Rate ( S F R ). This critical KPI is defined as the percentage of Monte Carlo scenarios in which the schedule is successfully executed without encountering combinatorial dead-ends or unrecoverable constraint violations.
The algorithm sorts the resulting losses L ( 1 ) L ( 2 ) L ( N s i m ) . For a given confidence level β ( 0 , 1 ) (e.g., β = 0.95 ), the Value-at-Risk ( VaR β ) is the β · N s i m -th worst loss. Following the canonical simheuristic paradigm [41] and the standard empirical foundations for discrete tail risk by Rockafellar and Uryasev [42,43], the Conditional Value-at-Risk ( CVaR β ), representing the expected loss in the worst ( 1 β ) % of cases, is evaluated. For the scope of our implementation and subsequent computational experiments, we configure the confidence level at β = 0.95 and the Monte Carlo sampling size at N s i m = 1000 . This sample size ensures an adequate representation of the tail distribution. Specifically, at a 95% confidence level, the tail encompasses exactly 50 scenarios, providing a statistically stable evaluation of the expected worst-case loss without imposing the prohibitive computational overhead associated with larger sample sizes in an iterative simheuristic framework. Note that while the classic discrete formulation often denotes the tail cardinality as ( 1 β ) · N s i m , we adopt the inclusive index bound of cardinality ( N s i m β · N s i m + 1 ) , which is numerically equivalent to the standard formulation for all practical values of N s i m . The metric is therefore computed as:
CVaR β ( S l o c a l ) = 1 N s i m β · N s i m + 1 i = β · N s i m N s i m L ( i )

3.5. CVaR-Driven Memory Update

In a standard Reactive GRASP, the probability p i of selecting α i A is inversely proportional to the average deterministic cost. In our risk-aware framework, we replace this with the CVaR, explicitly avoiding configurations prone to catastrophic tail events.
Let H i be the historical set of all CVaR β scores obtained using α i . At every newly evaluated feasible schedule (the update condition), the empirical average of the tail risk for α i is calculated as H ¯ i = 1 | H i | v H i v . Subsequently, the quality score q i is updated:
q i = max ( 0 , H ¯ i ) + ϵ 1
where ϵ > 0 is a regularization constant acting as a positive shift. The formal inclusion of the max ( 0 , · ) operator acts as a mathematical guard: it ensures strict positivity of the denominator and structural stability of the probability distribution even in highly lucrative scenarios where extreme yield rewards might otherwise drive the absolute operational loss H ¯ i into negative territory. This ensures numerical stability and maintains strict positivity even if highly profitable blends render the absolute loss v negative. In our computational experiments, ϵ was empirically calibrated to 10 4 , a value commensurate with the typical order of magnitude of the objective function. This calibration prevents the flattening of the probability distribution while maintaining the algorithm’s sensitivity to tail-risk variations across different α levels. Furthermore, the overall execution is strictly bounded by a predefined computational budget ( M a x F E S ) to guarantee objective comparisons without requiring secondary convergence stagnation criteria. The selection probabilities are then updated as:
p i = q i j = 1 m q j i { 1 , , m }
This mechanism dynamically steers the search. If a highly greedy α generates schedules that perform well on average but fail disastrously under severe vessel delays (producing high CVaR), its selection probability p i will drastically decrease, favoring more conservative and robust α configurations.
The complete workflow of the proposed framework is summarized in Algorithm 1.
Algorithm 1: CVaR-Driven Reactive GRASP Simheuristic
Require: Initial state S 0 , Max function evaluations M a x F E S , Alpha pool A , confidence β , scenarios N s i m
  1:
Initialize p i 1 / | A | for all α i A
  2:
Initialize histories H i for all α i A
  3:
B e s t S c h e d u l e null , B e s t C V a R
  4:
C u r r e n t F E S 0
  5:
while  C u r r e n t F E S < M a x F E S  do
  6:
      Select α * from A using roulette-wheel selection on P
  7:
       S b a s e , F E S u s e d ConstructivePhase ( S 0 , α * )
  8:
       C u r r e n t F E S C u r r e n t F E S + F E S u s e d
  9:
      if  S b a s e is feasible then
10:
             S l o c a l RegenerativeLocalSearch ( S b a s e )
11:
             L o s s A r r a y [ ]
12:
            for  ω = 1 to N s i m  do
13:
                  L ω ApplyMonteCarloScenario ( S l o c a l , ω )
14:
                 Append L ω to L o s s A r r a y
15:
            end for
16:
             C u r r e n t C V a R CalculateCVaR ( L o s s A r r a y , β )
17:
            Append C u r r e n t C V a R to H α *
18:
            if  C u r r e n t C V a R < B e s t C V a R  then
19:
                  B e s t C V a R C u r r e n t C V a R
20:
                  B e s t S c h e d u l e S l o c a l
21:
            end if
22:
            ▹ Reactive memory update (executed for every feasible schedule, see Section 3.5)
23:
            Recompute quality scores q i using Equation (21)
24:
            Update selection probabilities p i using Equation (22)
25:
      else
26:
            UpdateFailureTaxonomy ( S b a s e )                                                      ▹ Explainability log
27:
      end if
28:
end while
29:
return  B e s t S c h e d u l e , B e s t C V a R , F a i l u r e T a x o n o m y

4. Results and Discussion

In this section, we evaluate the performance of the proposed CVaR-driven Reactive GRASP simheuristic. The algorithm was coded in Python 3.14 and executed on a workstation equipped with an Intel Core i7-3940XM CPU (3.00 GHz), 16 GB of RAM, and an NVIDIA Quadro K2000M graphics card. To ensure statistical robustness and mitigate the intrinsic randomness of the metaheuristic, the baseline optimization was performed over 25 independent runs. The selection of a 30-day time horizon ( | T | = 30 days) for the case study is not arbitrary; rather, it aligns perfectly with the standard framework of short-term operational scheduling defined in Operations Management literature. This timeframe represents the typical industrial window within which marine refineries translate tactical procurement plans into frozen, daily executable processing operations. To strictly evaluate the out-of-sample tail risk of the locally optimal schedules, the final evaluation phase subjected the best configurations to a Monte Carlo simulation with N s i m = 1000 stochastic delay scenarios.

4.1. Computational Statistics and Methodological Positioning

Before detailing the operational results, it is imperative to contextualize the computational footprint of the proposed framework (Table 1). As detailed in Section 3, the methodology is a simheuristic rather than an exact mathematical programming model evaluated via branch-and-bound algorithms. Therefore, the framework does not explicitly instantiate a rigid sparse matrix of binary and continuous variables in a commercial solver. Instead, the computational complexity is structurally governed by the discrete scheduling horizon, the maximum function evaluations budget, and the stochastic simulation scenarios.
Compared to existing deterministic exact models in the literature, the primary contribution of this work does not lie in merely reducing variable or constraint counts. Instead, the advancement is methodological: by transitioning from exact deterministic programming to a CVaR-driven metaheuristic, the framework overcomes the computational intractability typical of stochastic MINLP models. This allows the algorithm to generate highly robust, risk-aware operational schedules in under three minutes, rendering it suitable for real-time reactive rescheduling in industrial settings.

4.2. Baseline Schedule Optimization and Explainability

Across all 25 independent optimization runs, the proposed framework maintained a 100% success rate in identifying strictly feasible baseline schedules, demonstrating the high structural reliability of the constructive heuristic in navigating the heavily constrained solution space. Among these, the algorithm successfully identified the most resilient production schedule (Run 15), balancing high-value yield recipes with strict physical constraints. Figure 3 illustrates the baseline operational dashboard derived from this optimal Run 15 over the 30-day horizon. Panel A demonstrates the continuous satisfaction of the 540 kt monthly production target, maintaining the topping rate strictly within the 16–22 kt operational window while maximizing the inclusion of the WTI premium crude. Notably, the baseline schedule completely avoids scheduling the CPC premium crude over the 30-day horizon. While CPC yields higher economic rewards, its specific processing requirements introduce severe logistical friction and elevate the risk of port congestion. The CVaR-driven memory successfully recognized that, under nominal penalty settings, the marginal profit of the CPC mix is insufficient to justify the exponential tail-risk of terminal gridlock, intelligently opting for a structurally safer crude mix. Panel B highlights the inventory dynamics: the total inventory safely oscillates within the bounds, successfully absorbing vessel arrivals without triggering demurrage or violating the 120 kt safety stock. To ensure complete reproducibility and provide granular insights, the full day-by-day numerical dataset corresponding to Figure 3, including daily topping rates, exact blend compositions, and discrete port queue levels, has been made available as Table S1 in the Supplementary Materials.
To rigorously assess the out-of-sample robustness of the optimal baseline schedule (Run 15), the configuration was subjected to a Monte Carlo validation encompassing 1000 stochastic delay scenarios. The statistical summary and the resulting tail-risk metrics are presented in Table 2.
The necessity of the risk-aware simheuristic is starkly revealed when examining these stochastic validation metrics. The best baseline schedule yielded an Expected Operational Cost of 10,855.68. Yet, under the 95% confidence level, the C V a R 95 % surged to 22,666.51. This divergence mathematically demonstrates that standard expected-value optimization underestimates the financial impact of low-probability tail events (such as consecutive severe vessel delays). By explicitly steering the search via CVaR, the algorithm prioritized a schedule that bounded the physical damages in the worst-case scenarios: the 95th-percentile port backlog was restricted to 86.0 kt, while safety stock violations and production shortfalls were capped at 171.0 kt and 78.0 kt, respectively.
It is crucial to contextualize the Stochastic Feasibility Rate (SFR) of 1.1% observed in Table 2. We formally define SFR as the percentage of Monte Carlo scenarios executed without incurring any operational penalty or constraint violation. Therefore, in this highly constrained stochastic environment, a low SFR does not imply algorithmic failure or an unreliable schedule; rather, it indicates that 98.9% of the simulated scenarios incurred at least minor operational friction (e.g., slight demurrage hours or marginal safety stock dips) to survive. The CVaR-driven algorithm’s strength lies precisely in its ability to navigate this overwhelmingly penalized solution space, absorbing shocks by accepting calculated operational penalties rather than succumbing to unrecoverable combinatorial dead-ends.
Furthermore, the automated Failure Taxonomy provided critical explainability insights regarding the combinatorial dead-ends encountered during the search (Table 3).
Over 16,000 discarded schedule branches were analyzed. In detail, 80.6% of algorithmic failures were caused by Port Congestion (i.e., no compatible free tank space available for discharge, leading to terminal gridlock). Pure Combinatorial Dead-ends accounted for 14.8%, while Safety Stock Violations triggered only 4.6% of the structural deaths. This empirical finding aggressively challenges the standard “infinite port capacity” assumption prevalent in deterministic literature, mathematically proving that endogenous maritime logistics are the primary bottleneck in petrochemical scheduling.

4.3. Sensitivity Analysis and Risk-Shifting Behavior

To validate the algorithmic responsiveness to shifting economic priorities, a sensitivity analysis was conducted by perturbing the primary penalty weights ( λ ) and economic rewards by ±25%. To ensure rigorous statistical significance, each perturbed configuration was independently evaluated over a dedicated set of 1000 Monte Carlo validation scenarios. The comprehensive results are summarized in Table 4.
The sensitivity results demonstrate a sophisticated, nonlinear risk-shifting behavior. Notably, when the Shortfall Penalty is increased by 25%, the algorithm strictly prioritizes meeting production targets, driving the SFR up to 6.0%. This demonstrates that risk can be reallocated across dimensions: to guarantee production, the algorithm finds inherently more stable physical configurations. Conversely, when the Demurrage Penalty is artificially reduced by 25%, the algorithm relaxes its port-clearing urgency, allowing the 95th-percentile backlog to soar from 86.0 kt to 221.1 kt as it favors internal stability.
Furthermore, given the algorithm’s conservative avoidance of the highly constrained CPC crude in the baseline schedule, the CPC Reward parameter was specifically selected for perturbation to test the framework’s economic elasticity. Interestingly, modifying this economic reward shifts the logistical risk profile: increasing the CPC reward by 25% tightens the expected CVaR to 21,929.61, proving that the algorithm actively renegotiates the physical constraints to process more lucrative blends only when the economic incentive outweighs the logistical friction. This confirms that the CVaR-driven memory is not statically fitting a single path, but dynamically adapting the Pareto tradeoff between maritime congestion and internal production based strictly on the user-defined economic utility function.

4.4. Dynamic Disruption Mitigation: Scenarios A and B

To evaluate the proposed framework’s proactive resilience and dynamic reactive capabilities, we subject the optimal robust schedule identified in Section 4 to two severe, unpredicted logistical and process disruptions occurring after the month has started. The algorithm must automatically calculate dynamic rescheduling actions starting from the “Rescheduling Day” when the disruption becomes known, adhering strictly to the operational constraints defined in Section 2. The numerical results, extracted from the detailed simulation logs, are summarized below.

4.4.1. Scenario A: Severe Vessel Arrival Delay

This scenario simulates a major maritime disruption: the Azeri base crude vessel (Ship 3 expected this month), originally scheduled to arrive on Day 7 (see Figure 3), is delayed by five full days, anchoring only on Day 12. The refinery becomes aware of this delay on Day 4, which is set as the Rescheduling Day. The algorithm must manage a looming stockout of base crude while subsequent WTI and CPC ships are already en route.
Figure 4 illustrates the reformulated operational plan to mitigate the delay. The algorithm prioritized stockout avoidance over production targets. Since Ship 3 carried the base crude, the total monthly target of 540 kt could not be met. The simulation results confirm that the dynamic reschedule achieved a total processed volume of only 516.38 kt, resulting in a strict production shortfall ( S F ) of 23.62 kt.
Crucially, as shown in the simulation logs (Panel B of Figure 4), the delay of Ship 3 to Day 8 was initially absorbed without violating the 120 kt safety stock limit, as the algorithm successfully leveraged existing internal buffers.
However, the structural unbalance caused by this major delay generated a severe cascading effect over the remainder of the month. To continuously feed the Crude Distillation Unit (CDU) and avoid a total shutdown, the algorithm was forced to draw heavily from the reserves, causing the total inventory to plummet below the 120 kt safety stock limit on Day 13 (dropping to 110 kt). A more severe and sustained violation occurred towards the end of the horizon, from Day 26 to Day 28, where the inventory reached a critical monthly minimum of 90 kt. Concurrently, the altered tank availability impacted subsequent arrivals, generating significant port backlogs that peaked at 200 kt around Days 12 and 13.
This dynamic response perfectly demonstrates the framework’s ability to negotiate complex Pareto tradeoffs: it intelligently absorbed the immediate shock to prevent an early stockout cascade, strategically confining the unavoidable safety stock violations and extreme logistical friction to later periods of the scheduling horizon where they could be managed without stopping production. The complete daily numerical dataset for this dynamic rescheduling response, corresponding to Figure 4, has been made available as Table S2 in the Supplementary Materials.

4.4.2. Scenario B: Unscheduled Topping Unit Maintenance

This scenario simulates an unexpected process-side disruption: a mandatory emergency shutdown of the Topping unit (CDU) for two full days. According to the detailed simulation logs, this disruption is executed on Days 19 and 20. The requirement becomes known on Day 15 (Rescheduling Day). The algorithm must immediately calculate dynamic rescheduling actions to manage incoming vessels and surging inventories while the primary process sink is disabled.
Figure 5 displays the dynamic response to the process shutdown. Contrary to a catastrophic system failure, the algorithm successfully recovered the lost processing time by dynamically boosting the daily CDU utilization to its maximum operational limit (22 kt/day) in the active days surrounding the disruption. The total processed volume reached 548 kt by the end of the month, successfully meeting the 540 kt monthly target with zero production shortfall.
The analysis reveals that the primary challenge was the massive cascading logistical bottleneck caused by the disabled CDU. Knowing the shutdown was imminent, the algorithm initiated a pre-emptive tank loading strategy to clear the port. The detailed logs highlight a remarkable physical phenomenon: to empty the port queue before the CDU stopped, the algorithm discharged both the waiting backlog and a newly arrived 80 kt Azeri vessel precisely on Day 19. Consequently, on Days 19 and 20, the global tank inventory reached exactly 305 kt, representing the absolute 100% maximum physical capacity of the entire terminal ( T 1 65 kt + T 2 120 kt + T 3 120 kt ).
Comparing the two scenarios provides a profound operational insight. In Scenario A, the pre-emptive tank clearing strategy succeeded smoothly because the CDU remained active, providing a continuous “sink” for the inventory. In contrast, Scenario B demonstrates that when the process sink itself is disabled, the terminal inherently loses its degrees of freedom. The algorithm was forced to utilize the tanks as a static maximum-capacity buffer (305 kt) to prevent vessels from accumulating infinite demurrage during the dead days. This dynamic response successfully contained the port queue, transforming a severe internal process disruption into a managed logistical shock, and ultimately protecting the global monthly production target. However, it is important to acknowledge a specific operational limitation in the current formulation regarding this sharp load increase. In real-world refining, instantly boosting the CDU to its maximum capacity after a cold shutdown could induce thermal shocks or fractionation instability. While our mathematical model strictly enforces the daily volumetric limits, it currently lacks a gradient constraint to govern the ramp-up rate between adjacent days, an aspect that warrants integration in future developments. The detailed numerical dataset logging this recovery strategy and inventory saturation, corresponding to Figure 5, is provided as Table S3 in the Supplementary Materials.

4.5. Ablation Study and Baseline Comparison

To rigorously isolate and validate the algorithmic contribution of the CVaR-driven memory and the endogenous modeling of port operations, an ablation study was conducted in strict accordance with the experimental framework of the baseline model. The proposed framework was benchmarked against three algorithmic variants: a standard Reactive GRASP driven solely by the deterministic expected cost (Neutral Risk), a baseline GRASP operating without the automated Failure Taxonomy, and a simplified variant evaluating terminal operations through static exogenous delay penalties rather than endogenous, cumulative port congestion. The computational results, evaluated over 1000 Monte Carlo validation scenarios, are summarized in Table 5.
The empirical results confirm the structural superiority of the proposed architecture. The expected-cost GRASP exhibited a severe degradation in worst-case resilience, producing a Conditional Value-at-Risk of 27,733.15 (an increase of over 22 percent compared to the baseline) and doubling the 95th-percentile port backlog to 175.0 kt. This mathematically demonstrates that standard expected-cost optimization fails to protect against catastrophic tail events and terminal gridlocks. Furthermore, the variant lacking endogenous congestion consistently underestimated the compounding nature of demurrage, yielding an artificially low CVaR of 18,081.76 and a false zero-kiloton backlog. This proves that static exogenous penalties are insufficient to capture the cascading terminal dead-ends observed in real-world severe delay scenarios. Finally, the removal of the Failure Taxonomy did not improve operational metrics but reduced the framework to a black-box optimizer. By eliminating the comprehensive diagnostic capabilities of the algorithm, this ablation severely limited its practical utility as an explainable industrial Decision Support System.

5. Conclusions and Future Work

This paper addressed the highly constrained, stochastic crude oil scheduling problem in marine access petrochemical refineries. While recent exact mathematical models have begun to incorporate risk measures to protect against low-probability, high-impact tail events, such as severe vessel delays or unscheduled unit shutdowns, their application often remains computationally prohibitive for large-scale, highly combinatorial operations. Conversely, standard expected value heuristics scale well but systematically fail to proactively mitigate these extreme disruption risks. To bridge this methodological gap, we proposed a novel Reactive GRASP simheuristic driven by CVaR. By explicitly embedding the Conditional Value-at-Risk into the adaptive memory of the metaheuristic, the framework dynamically steers the search away from schedules susceptible to catastrophic logistical gridlocks, actively negotiating the Pareto tradeoff between economic yield and structural resilience.
Extensive computational experiments conducted on a realistic 30-days industrial scheduling horizon demonstrated the framework’s operational superiority and transparency. The automated Failure Taxonomy yielded a critical industrial insight: 80.6 percent of all algorithmic scheduling failures were driven by terminal congestion rather than pure physical dead ends or safety stock violations. This finding empirically challenges the infinite port capacity assumption prevalent in classical optimization literature, proving that endogenous maritime logistics are the primary bottleneck in supply chain continuity. Crucially, these findings were definitively validated through a comprehensive ablation study, which mathematically demonstrated that standard expected cost optimization suffers a severe degradation in worst-case resilience (increasing CVaR by over 22 percent), and that ignoring endogenous port congestion fundamentally fails to trigger the preemptive tank clearing strategies required to survive dynamic disruptions.
Furthermore, the dynamic disruption analysis validated the algorithm’s proactive resilience. Under a severe maritime delay of 6 days (Scenario A), the framework successfully absorbed the immediate shock to guarantee the zero demurrage discharge of the critical base crude, strategically confining the unavoidable safety stock violations and logistical friction to later periods of the scheduling horizon. Even more remarkably, during an unscheduled distillation unit shutdown of 2 days (Scenario B), the algorithm demonstrated advanced recovery capabilities: it dynamically boosted daily processing rates to completely eliminate production shortfalls and preemptively cleared the port queue by utilizing the terminal absolute maximum physical capacity (100 percent inventory saturation) as a static buffer during the dead days. From an industrial engineering and managerial perspective, the proposed framework acts as a critical bridge between historically siloed departments, namely maritime supply chain procurement and internal refinery operations. By functioning as an advanced DSS, it provides plant managers with a robust, explainable, and risk-aware tool capable of translating abstract logistical uncertainty into actionable, disruption-proof scheduling policies, generating optimized and highly robust schedules in less than three minutes of computational time.
As with any methodological framework, this research presents certain limitations. The algorithm has been validated on a single, albeit highly realistic, industrial case study; further benchmarking across diverse refinery topologies is necessary to fully guarantee its generalizability. Additionally, the stochastic validation assumes a known, stationary distribution for vessel delays, whereas real-world maritime logistics often exhibit nonstationary, data-driven patterns governed by macroeconomic and weather anomalies. The 30-day scheduling horizon, while standard for short-term tactical planning, truncates long-term inventory carryover effects. Furthermore, regarding process stability, while the current mathematical formulation enforces strict daily volumetric bounds, it currently lacks a continuous gradient constraint to safely govern the thermal ramp-up rate of the distillation unit immediately following a cold shutdown.
Despite these limitations, this research opens several promising avenues for future investigation. First, expanding the physical boundaries of the model downstream to include the continuous blending and scheduling of refined products would allow for a holistic, plant-wide optimization framework. This expansion must also incorporate precise thermodynamic and process stability gradients to mathematically govern unit startup and shutdown transients. Second, while the current approach effectively manages single-berth port dynamics, future research could integrate multi-berth maritime physics, incorporating complex tidal restrictions, weather windows, and heterogeneous vessel drafts. Finally, integrating Machine Learning techniques, such as utilizing Deep Reinforcement Learning to dynamically tune the simheuristic hyperparameters or training predictive models to forecast exogenous vessel arrival distributions based on real-time maritime tracking data, could further enhance the algorithm computational efficiency and predictive accuracy.

Supplementary Materials

The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/app16136733/s1: Table S1: Day-by-day operational scheduling dataset; Table S2: Scenario A dynamic rescheduling dataset; Table S3: Scenario B dynamic rescheduling dataset. All tables are provided as separate sheets within a single Excel file.

Author Contributions

Conceptualization, A.G. and G.M.; methodology, A.G. and G.M.; software, A.G. and G.M.; validation, A.G. and G.M.; formal analysis, A.G. and G.M.; investigation, A.G. and G.M.; data curation, A.G. and G.M.; writing—original draft preparation, A.G. and G.M.; writing—review and editing, A.G. and G.M.; visualization, A.G. and G.M.; supervision, A.G. and G.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The numerical data supporting the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

Nomenclature

t T Discrete time periods (days)
c C Set of crude oil types (Azeri, WTI, CPC)
k K Set of storage tanks ( T 1 , T 2 , T 3 )
v V Set of arriving vessels
m M t Set of feasible moves at day t
C a p k Maximum volumetric capacity of tank k [kt]
S S Global Safety Stock limit [kt]
S F Global Safety Space limit [kt]
R m i n , R m a x Minimum and maximum topping feed rates [kt/day]
τ Mandatory brine-settling time [days]
π c Premium economic reward for crude c
λ Unit penalty weights for physical violations
ϵ Positive shift regularization constant
MBig-M constant for canonical MIP formulation
M d e a t h Massive finite penalty for unrecoverable infeasibility
M a x F E S Maximum computational budget (Function Evaluations)
F E S Current function evaluation counter
I k , c , t Inventory of crude c in tank k at end of day t [kt]
U v , k , c , t              Volume unloaded from vessel v to tank k [kt]
X k , k , c , t Internal transfer volume from tank k to tank k [kt]
F k , c , t Volume fed to the CDU from tank k [kt]
R t Total topping processing rate at day t [kt/day]
Y k , c , t Binary indicator: 1 if tank k stores crude c
S k , t Consecutive days tank k has been settling
Q v , c , t Residual volume on waiting vessel v [kt]
B t Total port backlog (congestion) at day t [kt]
α Greediness parameter for the Reactive GRASP
p i , q i Selection probability and quality score for α i
S F R Stochastic Feasibility Rate (%)

References

  1. Assis, L.S.; Camponogara, E.; Menezes, B.C.; Grossmann, I.E. An MINLP formulation for integrating the operational management of crude oil supply. Comput. Chem. Eng. 2019, 123, 110–125. [Google Scholar] [CrossRef]
  2. Zheng, W.; Gao, X.; Huang, F.; Zuo, X.; Chen, X. Integrated optimization of crude oil procurement planning and blending scheduling for property stabilization. Comput. Chem. Eng. 2024, 186, 108716. [Google Scholar] [CrossRef]
  3. AlMajed, A.M.; Syed, M.N.; Malik, A.I. Multi-Objective Mathematical Model for Crude Oil Terminal Scheduling with Tank Farm Operations. Mathematics 2025, 13, 3817. [Google Scholar] [CrossRef]
  4. Fuller, D.B.; Ferreira Filho, V.J.M.; de Arruda, E.F. Oil industry value chain simulation with learning agents. Comput. Chem. Eng. 2018, 111, 199–209. [Google Scholar] [CrossRef]
  5. Dai, X.; Zhao, L.; He, R.; Du, W.; Zhong, W.; Li, Z.; Qian, F. Data-driven Wasserstein distributionally robust chance-constrained optimization for crude oil scheduling under uncertainty. Chin. J. Chem. Eng. 2024, 69, 152–166. [Google Scholar] [CrossRef]
  6. Oliveira, F.; Nunes, P.M.; Blajberg, R.; Hamacher, S. A framework for crude oil scheduling in an integrated terminal-refinery system under supply uncertainty. Eur. J. Oper. Res. 2016, 252, 635–645. [Google Scholar] [CrossRef]
  7. Kong, L.; Xiao, H.; Wang, Y.; Chen, K.; Liu, M. Coordinated Allocation of Channel-Tugboat-Berth Resources Under Tidal Constraints at Liquid Terminal. Appl. Sci. 2025, 15, 13263. [Google Scholar] [CrossRef]
  8. Cerdá, J.; Pautasso, P.C.; Cafaro, D.C. Efficient Approach for Scheduling Crude Oil Operations in Marine-Access Refineries. Ind. Eng. Chem. Res. 2015, 54, 8219–8238. [Google Scholar] [CrossRef]
  9. Stanzani, A.d.L.; Pureza, V.; Morabito, R.; da Silva, B.J.V.; Yamashita, D.; Ribas, P.C. Optimizing multiship routing and scheduling with constraints on inventory levels in a Brazilian oil company. Int. Trans. Oper. Res. 2018, 25, 1163–1198. [Google Scholar] [CrossRef]
  10. Zhang, H.; Liang, Y.; Liao, Q.; Gao, J.; Yan, X.; Zhang, W. Mixed-time mixed-integer linear programming for optimal detailed scheduling of a crude oil port depot. Chem. Eng. Res. Des. 2018, 137, 434–451. [Google Scholar] [CrossRef]
  11. Panda, D.; Ramteke, M. Reactive scheduling of crude oil using structure adapted genetic algorithm under multiple uncertainties. Comput. Chem. Eng. 2018, 116, 333–351. [Google Scholar] [CrossRef]
  12. He, W.; Zhao, J.; Zhao, L.; Li, Z.; Yang, M.; Liu, T. Data-driven two-stage distributionally robust optimization for refinery planning under uncertainty. Chem. Eng. Sci. 2023, 269, 118466. [Google Scholar] [CrossRef]
  13. Long, J.; Wang, N.; Zhai, J.; Liang, C.; Jiang, S.; Zhao, L. Data driven multi-objective economic-environmental robust optimization for refinery planning with multiple modes under uncertainty. Comput. Ind. Eng. 2024, 198, 110697. [Google Scholar] [CrossRef]
  14. Floudas, C.A.; Lin, X. Continuous-time versus discrete-time approaches for scheduling of chemical processes: A review. Comput. Chem. Eng. 2004, 28, 2109–2129. [Google Scholar] [CrossRef]
  15. Zhang, S.; Wu, N.; Li, Z.; Qu, T.; Li, C. Petri net-based approach to short-term scheduling of crude oil operations with less tank requirement. Inf. Sci. 2017, 417, 247–261. [Google Scholar] [CrossRef]
  16. Reddy, P.C.P.; Karimi, I.A.; Srinivasan, R. A new continuous-time formulation for scheduling crude oil operations. Chem. Eng. Sci. 2004, 59, 1325–1341. [Google Scholar] [CrossRef]
  17. Pan, M.; Li, X.; Qian, Y. New approach for scheduling crude oil operations. Chem. Eng. Sci. 2009, 64, 965–983. [Google Scholar] [CrossRef]
  18. Yadav, S.; Shaik, M.A. Short-Term Scheduling of Refinery Crude Oil Operations. Ind. Eng. Chem. Res. 2012, 51, 9287–9299. [Google Scholar] [CrossRef]
  19. Tao, Z.; Li, H.; Qiu, T. A hybrid framework of intrinsic constraint handling and safe reinforcement learning for crude oil scheduling. Comput. Chem. Eng. 2026, 205, 109480. [Google Scholar] [CrossRef]
  20. Shah, N. Mathematical programming techniques for crude oil scheduling. Comput. Chem. Eng. 1996, 20, S1227–S1232. [Google Scholar] [CrossRef]
  21. Moro, L.F.L.; Pinto, J.M. Mixed-Integer Programming Approach for Short-Term Crude Oil Scheduling. Ind. Eng. Chem. Res. 2004, 43, 85–94. [Google Scholar] [CrossRef]
  22. Li, J.; Li, W.; Karimi, I.A.; Srinivasan, R. Improving the robustness and efficiency of crude scheduling algorithms. AIChE J. 2007, 53, 2659–2680. [Google Scholar] [CrossRef]
  23. Karuppiah, R.; Furman, K.C.; Grossmann, I.E. Global optimization for scheduling refinery crude oil operations. Comput. Chem. Eng. 2008, 32, 2745–2766. [Google Scholar] [CrossRef]
  24. Mouret, S.; Grossmann, I.E.; Pestiaux, P. A new Lagrangian decomposition approach applied to the integration of refinery planning and crude-oil scheduling. Comput. Chem. Eng. 2011, 35, 2750–2766. [Google Scholar] [CrossRef]
  25. Oddsdottir, T.A.; Grunow, M.; Akkerman, R. Procurement planning in oil refining industries considering blending operations. Comput. Chem. Eng. 2013, 58, 1–13. [Google Scholar] [CrossRef]
  26. Clapper, Y.; Berkhout, J.; Bekker, R. Adaptive budget allocation in simheuristics applied to stochastic home healthcare routing and scheduling. Comput. Ind. Eng. 2024, 198, 110651. [Google Scholar] [CrossRef]
  27. Xu, J.; Zhang, S.; Zhang, J.; Wang, S.; Xu, Q. Simultaneous scheduling of front-end crude transfer and refinery processing. Comput. Chem. Eng. 2017, 96, 212–236. [Google Scholar] [CrossRef]
  28. He, R.; Xie, Y.; Zhang, S.; Xu, F.; Long, J. Knowledge-assisted hybrid optimization strategy of large-scale crude oil scheduling integrated production planning. Comput. Chem. Eng. 2025, 192, 108904. [Google Scholar] [CrossRef]
  29. Ramteke, M.; Srinivasan, R. Large-Scale Refinery Crude Oil Scheduling by Integrating Graph Representation and Genetic Algorithm. Ind. Eng. Chem. Res. 2012, 51, 5256–5272. [Google Scholar] [CrossRef]
  30. Hou, Y.; Wu, N.; Li, Z.; Zhang, Y.; Qu, T.; Zhu, Q. Many-objective optimization for scheduling of crude oil operations based on NSGA-III with consideration of energy efficiency. Swarm Evol. Comput. 2020, 57, 100714. [Google Scholar] [CrossRef]
  31. Li, J.; Misener, R.; Floudas, C.A. Scheduling of crude oil operations under demand uncertainty: A robust optimization framework coupled with global optimization. AIChE J. 2012, 58, 2373–2396. [Google Scholar] [CrossRef]
  32. Dai, X.; Zhao, L.; Li, Z.; Du, W.; Zhong, W.; He, R.; Qian, F. A data-driven approach for crude oil scheduling optimization under product yield uncertainty. Chem. Eng. Sci. 2021, 246, 116971. [Google Scholar] [CrossRef]
  33. Yalcin, D.; Sildir, H. Robust scheduling of crude oil farming and processing under uncertainty. Chem. Eng. Res. Des. 2026, 227, 354–373. [Google Scholar] [CrossRef]
  34. Panda, D.; Ramteke, M. Preventive crude oil scheduling under demand uncertainty using structure adapted genetic algorithm. Appl. Energy 2019, 235, 68–82. [Google Scholar] [CrossRef]
  35. Garcia-Verdier, T.G.; Gutierrez, G.; Méndez, C.A.; Palacín, C.G.; de Prada, C. Optimization of crude oil operations scheduling by applying a two-stage stochastic programming approach with risk management. J. Process Control 2024, 133, 103142. [Google Scholar] [CrossRef]
  36. Liu, B.; Li, Z.-C.; Wang, Y. A branch-and-price heuristic algorithm for the bunkering operation problem of a liquefied natural gas bunkering station in the inland waterways. Transp. Res. Part B Methodol. 2023, 167, 145–170. [Google Scholar] [CrossRef]
  37. Wu, N.; Chu, C.; Chu, F.; Zhou, M. Schedulability Analysis of Short-Term Scheduling for Crude Oil Operations in Refinery With Oil Residency Time and Charging-Tank-Switch-Overlap Constraints. IEEE Trans. Autom. Sci. Eng. 2011, 8, 190–204. [Google Scholar] [CrossRef]
  38. Wu, N.; Bai, L.; Zhou, M. An Efficient Scheduling Method for Crude Oil Operations in Refinery With Crude Oil Type Mixing Requirements. IEEE Trans. Syst. Man Cybern. Syst. 2016, 46, 413–426. [Google Scholar] [CrossRef]
  39. Feo, T.A.; Resende, M.G.C. Greedy Randomized Adaptive Search Procedures. J. Glob. Optim. 1995, 6, 109–133. [Google Scholar] [CrossRef]
  40. Prais, M.; Ribeiro, C.C. Reactive GRASP: An application to a matrix decomposition problem in TDMA traffic assignment. Inf. J. Comput. 2000, 12, 164–176. [Google Scholar] [CrossRef]
  41. Juan, A.A.; Faulin, J.; Grasman, S.E.; Rabe, M.; Figueira, G. A review of simheuristics: Extending metaheuristics to deal with stochastic combinatorial optimization problems. Oper. Res. Perspect. 2015, 2, 62–72. [Google Scholar] [CrossRef]
  42. Rockafellar, R.T.; Uryasev, S. Optimization of conditional value-at-risk. J. Risk 2000, 2, 21–42. [Google Scholar] [CrossRef]
  43. Rockafellar, R.T.; Uryasev, S. Conditional value-at-risk for general loss distributions. J. Bank. Financ. 2002, 26, 1443–1471. [Google Scholar] [CrossRef]
Figure 1. Representative diagram of the petrochemical supply chain considered in the problem statement.
Figure 1. Representative diagram of the petrochemical supply chain considered in the problem statement.
Applsci 16 06733 g001
Figure 2. Architectural flowchart of the CVaR-Driven Reactive GRASP Simheuristic.
Figure 2. Architectural flowchart of the CVaR-Driven Reactive GRASP Simheuristic.
Applsci 16 06733 g002
Figure 3. Baseline schedule execution under nominal conditions. (A) details the daily blending profile and topping rates. (B) displays tank inventory dynamics and port congestion levels.
Figure 3. Baseline schedule execution under nominal conditions. (A) details the daily blending profile and topping rates. (B) displays tank inventory dynamics and port congestion levels.
Applsci 16 06733 g003
Figure 4. Dynamic rescheduling under Scenario A (6-day base crude vessel delay).
Figure 4. Dynamic rescheduling under Scenario A (6-day base crude vessel delay).
Applsci 16 06733 g004
Figure 5. Dynamicrescheduling under Scenario B (2-day Topping unit shutdown on Days 19–20).
Figure 5. Dynamicrescheduling under Scenario B (2-day Topping unit shutdown on Days 19–20).
Applsci 16 06733 g005
Table 1. Computational footprint and execution statistics of the Simheuristic framework.
Table 1. Computational footprint and execution statistics of the Simheuristic framework.
Computational ParameterValue
Scheduling Horizon Dimension ( | T | )30 days
Optimization Budget ( M a x F E S )200,000 evaluations
Risk Evaluation Sampling ( N s i m )1000 scenarios per optimal state
Average Solving Time (per independent run)≈165 s
Table 2. Statistical summary and P95 risk metrics derived from the Monte Carlo validation on the optimal Run 15 baseline schedule.
Table 2. Statistical summary and P95 risk metrics derived from the Monte Carlo validation on the optimal Run 15 baseline schedule.
Performance MetricValidation Value
Constructive Phase Success Rate (25 runs)100.0%
Stochastic Feasibility Rate (SFR)1.1%
Expected Operational Cost10,855.68
Conditional Value-at-Risk ( CVaR 95 % )22,666.51
P95 Port Backlog86.0 kt
P95 Safety Stock Violation171.0 kt
P95 Production Shortfall78.0 kt
Table 3. Automated failure taxonomy during the optimization search.
Table 3. Automated failure taxonomy during the optimization search.
Failure Mode (Active Constraint)OccurrencesFrequency (%)
Port Congestion (No compatible tank for discharge)13,09280.6%
Combinatorial Dead-end (No feasible production move)240714.8%
Safety Stock Violation (<120 kt)7394.6%
Total Discarded Branches16,238100.0%
Table 4. Sensitivity analysis of the simheuristic under varying penalties and rewards.
Table 4. Sensitivity analysis of the simheuristic under varying penalties and rewards.
ScenarioExp. Cost Δ % vs. BaseCVaR (95%)SFR (%)P95 BacklogP95 SS Viol.
Baseline10,855.68-22,666.511.186.0171.0
Demurrage Penalty (+25%)18,275.97+68.3%30,445.930.2138.0259.2
Demurrage Penalty (−25%)14,675.71+35.2%24,827.031.6221.1294.0
Shortfall Penalty (+25%)12,998.33+19.7%22,395.166.0135.0247.0
Shortfall Penalty (−25%)11,085.11+2.1%23,827.962.2158.0250.0
CPC Reward (+25%)13,397.75+23.4%21,929.612.8135.0223.0
CPC Reward (−25%)14,186.20+30.7%22,748.601.6166.0260.0
Table 5. Ablation study comparing the proposed framework against baseline variants under 1000 validation scenarios.
Table 5. Ablation study comparing the proposed framework against baseline variants under 1000 validation scenarios.
Ablation VariantExp. CostCVaR (95%)SFR (%)P95 BacklogFailure Taxonomy Status
Proposed CVaR GRASP (Baseline)10,855.6822,666.511.186.0 ktActive (Full Tracking)
GRASP with Expected Cost14,168.6027,733.152.4175.0 ktActive (Partial Tracking)
GRASP without Failure Taxonomy12,715.8925,943.181.9280.0 ktAbsent (Black-box)
GRASP without Endogenous Congestion9851.9818,081.766.20.0 ktActive (Partial Tracking)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Giallanza, A.; Marannano, G. Risk-Aware Crude Oil Scheduling in Petrochemical Supply Chains: A CVaR-Driven Reactive GRASP Simheuristic. Appl. Sci. 2026, 16, 6733. https://doi.org/10.3390/app16136733

AMA Style

Giallanza A, Marannano G. Risk-Aware Crude Oil Scheduling in Petrochemical Supply Chains: A CVaR-Driven Reactive GRASP Simheuristic. Applied Sciences. 2026; 16(13):6733. https://doi.org/10.3390/app16136733

Chicago/Turabian Style

Giallanza, Antonio, and Giuseppe Marannano. 2026. "Risk-Aware Crude Oil Scheduling in Petrochemical Supply Chains: A CVaR-Driven Reactive GRASP Simheuristic" Applied Sciences 16, no. 13: 6733. https://doi.org/10.3390/app16136733

APA Style

Giallanza, A., & Marannano, G. (2026). Risk-Aware Crude Oil Scheduling in Petrochemical Supply Chains: A CVaR-Driven Reactive GRASP Simheuristic. Applied Sciences, 16(13), 6733. https://doi.org/10.3390/app16136733

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop