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.
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 be a discrete set of relaxation parameters, where controls the greediness of the constructive phase. The framework operates as follows:
Selection: An value is selected from based on a dynamically updated probability distribution .
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 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 , 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
, encompassing topping rates, blend compositions, tank-to-tank transfers, and vessel discharges. Each move
is assigned a greedy score
balancing the economic reward of processing high-value crudes (WTI, CPC) against the immediate penalty of generated port demurrage:
where
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.
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
is the daily demurrage unit cost.
Let
and
. The Restricted Candidate List is constructed using the selected
:
A move is then chosen uniformly at random from .
To provide explainability, if (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
is constructed, a regenerative local search explores its neighborhood
to improve the deterministic cost function
(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
. For any two adjacent days
t and
where
, 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 (
) 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 is evaluated under uncertainty to assess its logistical robustness. We execute independent Monte Carlo scenarios. In each scenario , actual vessel arrival days are perturbed according to the historical probability distribution. The schedule is applied to the perturbed environment.
For each scenario
, the total operational loss
is calculated as the sum of multiple penalized physical violations:
where
is the production shortfall,
is the total safety stock violation, and
is the cumulative demurrage incurred in scenario
. The parameters
,
, and
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
, 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 (
). Because
is orders of magnitude larger than the regularizer
, any
generating even a single infeasible tail scenario will yield an updated quality score
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 (
). 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
. For a given confidence level
(e.g.,
), the Value-at-Risk (
) is the
-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 (
), representing the expected loss in the worst
of cases, is evaluated. For the scope of our implementation and subsequent computational experiments, we configure the confidence level at
and the Monte Carlo sampling size at
. 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
, we adopt the inclusive index bound of cardinality
, which is numerically equivalent to the standard formulation for all practical values of
. The metric is therefore computed as:
3.5. CVaR-Driven Memory Update
In a standard Reactive GRASP, the probability of selecting 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
be the historical set of all
scores obtained using
. At every newly evaluated feasible schedule (the update condition), the empirical average of the tail risk for
is calculated as
. Subsequently, the quality score
is updated:
where
is a regularization constant acting as a positive shift. The formal inclusion of the
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
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
, 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 (
) to guarantee objective comparisons without requiring secondary convergence stagnation criteria. The selection probabilities are then updated as:
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 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 , Max function evaluations , Alpha pool , confidence , scenarios |
- 1:
Initialize for all - 2:
Initialize histories for all - 3:
, - 4:
- 5:
while
do - 6:
Select from using roulette-wheel selection on - 7:
- 8:
- 9:
if is feasible then - 10:
- 11:
- 12:
for to do - 13:
- 14:
Append to - 15:
end for - 16:
- 17:
Append to - 18:
if then - 19:
- 20:
- 21:
end if - 22:
▹ Reactive memory update (executed for every feasible schedule, see Section 3.5) - 23:
Recompute quality scores using Equation ( 21) - 24:
Update selection probabilities using Equation ( 22) - 25:
else - 26:
UpdateFailureTaxonomy ▹ Explainability log - 27:
end if - 28:
end while - 29:
return
|
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 ( 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 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 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 (
) 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 ().
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.