Next Article in Journal
Monochromatic Graph Decompositions Inspired by Anti-Ramsey Theory and Parity Constraints
Previous Article in Journal
Strong Convergence of Truncated EM Method for Stochastic Volterra Integral Differential Equations with Hölder Diffusion Coefficients
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Efficient Simulated Annealing Algorithm for the Vehicle Routing Problem in Omnichannel Distribution

1
Department of Industrial Management, National Taiwan University of Science and Technology, Taipei 106, Taiwan
2
Department of Information Management, Chang Gung University, Taoyuan 333, Taiwan
3
Department of Emergency Medicine, Keelung Chang Gung Memorial Hospital, Keelung 204, Taiwan
4
Department of Industrial Engineering and Management, Ming Chi University of Technology, New Taipei 243, Taiwan
5
College of Intelligent Computing, Chang Gung University, Taoyuan 333, Taiwan
*
Author to whom correspondence should be addressed.
Mathematics 2024, 12(23), 3664; https://doi.org/10.3390/math12233664
Submission received: 17 October 2024 / Revised: 14 November 2024 / Accepted: 19 November 2024 / Published: 22 November 2024
(This article belongs to the Section E2: Control Theory and Mechanics)

Abstract

:
A variant of the vehicle routing problem (VRP) known as the Vehicle Routing Problem in Omnichannel Retailing Distribution Systems (VRPO) has recently been introduced in the literature, driven by the increasing adoption of omnichannel logistics in practice. The VRPO scenario involves a large retailer managing several stores, a depot, and a homogenous fleet of vehicles to meet the demands of both stores and online customers. This variant falls within the class of VRPs that consider precedence constraints. Although the vehicle routing problem in omnichannel retailing distribution (VRPO) has been addressed using a few heuristic and metaheuristic approaches, the use of Simulated Annealing (SA) remains largely unexplored in the pickup and delivery problem (PDP) literature, both before and after the rise of omnichannel logistics. This article introduces the Efficient Simulated Annealing (ESA) algorithm, demonstrating its suitability in generating new benchmark solutions for the VRPO. In experiments with sixty large instances, ESA significantly outperformed two previous algorithms, discovering new best-known solutions (BKSs) in fifty-nine out of sixty cases. Additionally, ESA demonstrated superior efficiency in 68.3% of the test cases in terms of reduced computational times, showcasing its higher effectiveness in handling complex VRPO instances.

1. Introduction

The progress in omnichannel operations gives rise to increasingly complex last-mile distribution networks over which customer information flows quickly and timely access is critical for effective customer response. As the last mile represents the most costly segment of the supply chain, achieving a cost-efficient vehicle routing continues to be a significant challenge. One of the most-studied Vehicle Routing Problem (VRP) variants arising from omnichannel applications is the Pickup and Delivery Problem (PDP). The PDP uses a set of vehicles to fulfill transportation requests consisting of a pickup location and a delivery location with a precedence constraint. Lokin [1] initially explored PDP, introducing a modified version of the traveling salesman problem. Precedence relations are imposed on specific customers, requiring certain nodes to be visited before others. The PDP consists of three main types of problems based on the origin–destination of each request, namely, many-to-many problems (type 1), one-to-many-to-one problems (type 2), and one-to-one problems (type 3) [2]. In type 1 PDP, requests are carried from more than one start node to more than one end node. In type 2 PDP, some requests start at the depot and end at many customers, while others start at a customer and end at the depot. In type 3 PDPs, each request moves from a single start node to a single end node.
In this work, we build on the capacitated Vehicle Routing Problem in Omnichannel Retailing Distribution Systems (VRPO), which was first introduced by Abdulkader et al. [3]. The VRPO is a VRP hybrid with CVRP and PDP features. It is an instance of omnichannel distribution, which is a business model that seeks to offer customers a seamless experience that involves both physical and online stores. The VRPO has two types of requests: (i) requests for store pickup and/or delivery and (ii) requests for customer delivery. Customer requests are made through online order points. A VRPO route follows the depot–store–customer precedence. This means that once a vehicle departs from the depot, it should pick up all store requests assigned to it before visiting the first store (delivery). Furthermore, the same vehicle should load (pickup) from the same store all the customer requests assigned to it before visiting those customers (delivery).
The VRPO inherits the NP-hard complexity of the VRP, resulting in prohibitively high computational time to reach an optimal solution. As exact methods struggle with scalability, heuristic approaches become a practical alternative. However, despite advances in heuristic approaches, a gap exists in the application of Simulated Annealing within the omnichannel VRP context. The reviewed studies predominantly rely on genetic algorithms, savings heuristics, and hybrid approaches, leaving SA underexplored. This gap highlights the potential for future research to utilize SA, leveraging its strengths in navigating complex solution landscapes and escaping local optima, to address the challenges presented by omnichannel logistics. Given the growing attention to the challenges of omnichannel VRPs and the clear literature gap in exploring simulated annealing (SA) for PDP, this work focuses on tailoring an SA-based metaheuristic approach, the Efficient Simulated Annealing (ESA) for the VRPO.
The remainder of this paper is organized as follows: Section 2 discusses the related works. Section 3 details the ESA for the VRPO. Section 4 presents the computational experiment and analysis. Finally, Section 5 discusses the conclusions and recommendations for future studies.

2. Review of Related Literature

2.1. The Pickup and Delivery Problem in Vehicle Routing

The VRP is a combinatorial optimization problem that aims to determine the optimal routes for a fleet of vehicles to deliver orders to customers while minimizing costs [4]. The PDP, a key VRP class, aims to determine the most efficient routes for a fleet of capacitated vehicles to fulfill customer requests, each involving a pickup location and a corresponding delivery location. Vehicles start from the depot, pick up or deliver goods at specified locations, and return to the depot. The mathematical formulation of the general PDP, with its variants classified, is given by Parragh et al. [5]. The PDP has been extensively studied by Battara et al. [6] and divided into three categories: (i) many-to-many, in which commodities can have multiple origins and destinations, (ii) one-to-many-to-one, in which some commodities are delivered from a depot to customers and others are collected from customers and returned to the depot, and (iii) one-to-one, in which each commodity has a single origin and destination. Parragh et al. [5,7] provided another classification of PDP into two general classes: (i) transportation to/from the depot and (ii) transportation between customers. The first class includes cases in which deliveries (linehauls) must occur before pickups (backhauls), linehauls and backhauls can be served in any order, and customers have both linehaul and backhaul needs, either requiring or not requiring a single visit. The second class involves unpaired pickup and delivery locations, in which any pickup can fulfill any delivery, and paired locations, in which no other customer is visited between pickup and delivery. Since then, the development of the PDP has been extensive, but the recent rise of omnichannel distribution has introduced new challenges that add complexity to the problem.

2.2. VRP in Omnichannel Distribution Context

The omnichannel logistics landscape has evolved significantly in recent years, driven by the increasing demand for seamless integration across multiple sales and distribution channels, including physical stores, online platforms, and hybrid modes. In omnichannel, the interactions of customers with the retailer can be varied via online or physical stores. This complexity poses significant challenges for the omnichannel VRP giving way to the class of omnichannel VRP involving pickups, or deliveries, or mixed, or simultaneous. In VRPO, the fleet of vehicles is required to simultaneously perform bulk deliveries to retail stores from a main central depot and pick up online customer orders from retail stores and subsequently deliver orders to online customers.
The VRPO can be considered as an integrated 2E-VRP since retailers and online consumers correspond to the customers of two distinct layers of the supply chain. A categorization of multiple-channel retailing in multi-, cross-, and omnichannel retailing for retailers and retailing is comprehensively presented by Beck and Rygl [8]. The VRPO involves two types of customers: some with pickup requests, some with delivery requests, or both. A customer with both types of requests is visited once, and a pickup can be paired with multiple deliveries. The network consists of a depot or a distribution center, some local stores, and some home-delivery consumers. Vehicles serve both stores (for stock replenishment) and home delivery customers using the same fleet. A key difference in the VRPO is that only stores handle both pickups and deliveries, while consumers receive deliveries only. Additionally, vehicles follow a depot–store–customer visit order, loading all store requests from the depot before making deliveries. Customer orders are placed through multiple online platforms, such as apps and websites. For a detailed mathematical formulation of the general PDP, readers can refer to Abdulkader et al. [3].
Table 1 outlines the recent studies on omnichannel vehicle routing problems. Since the combination of VRP and PDP in an omnichannel retail context was first introduced in year 2018, we have limited our review to related papers published from 2018 to the present. The related literature on VRP under omnichannel logistics encompasses a variety of problem classes and solution methodologies, illustrating the increasing complexity of modern last-mile distribution. Early works such as those by Martins et al. [9], Martins et al. [10], and Bayliss et al. [11] focused on mixed and simultaneous pickup and delivery (MPD and SPD) problems. They tackled the dual challenges of replenishing retail stores while managing direct-to-consumer deliveries, emphasizing operational efficiency through mixed routes and shared fleets. Sawicki et al. [12] further extended this focus by exploring a two-tier system that serves both retail stores and online customers, while Janjevic et al. [13] introduced a three-tier, multi-modal last-mile network with differentiated service levels, integrating city-level and regional deliveries. Guerrero-Lorente et al. [14] provided a novel approach by incorporating both forward and reverse logistics in omnichannel VRP, accounting for both deliveries and returns, which added complexity to managing customer preferences.
More recently, Liu et al. [15] addressed MPD problem that aimed to balance cost minimization and customer satisfaction. Hendalianpour et al. [16] contributed to the literature by focusing on multi-product and multi-level VRP, managing replenishments across different levels in an omnichannel distribution network. Li et al. [17] introduced the selective many-to-many pickup and delivery problem with handling costs (SMMPDPH), which extended traditional VRP by addressing selective routing among multiple nodes. This work highlighted the importance of managing handling costs, especially when goods are being loaded or unloaded at multiple locations. The most recent studies by Yang and Li [18], Qiu et al. [19], and Li and Wang [20] focused on inventory replenishment, strict time windows, and multicommodity deliveries in omnichannel settings, reflecting the growing demand for efficient logistics solutions that meet diverse customer expectations.
From a solution approach perspective, the reviewed studies illustrate the diverse strategies used to tackle these omnichannel VRP. Martins et al. [9] and Martins et al. [10] used simheuristics and savings-based heuristics, respectively, while Bayliss et al. [11] employed a discrete-event heuristic followed by a local search, demonstrating hybrid approaches for MPD. Guerrero-Lorente et al. [14] and Janjevic et al. [13] leveraged mixed-integer programming (MIP) combined with continuous approximation and capacitated location routing to optimize complex network configurations. Li et al. [17] utilized mixed-integer programming (MIP) alongside iterated local search (ILS) and a memetic algorithm (MA) to solve the SMMPDPH. Liu et al. [15] applied advanced metaheuristics, including MOGWO and NSGA-II, while Hendalianpour et al. [16] employed Benders decomposition and Lagrangian relaxation to solve multi-level problems. In their recent work, Qiu et al. [19] proposed an optimization model focusing on capacity-sharing, and Li and Wang [20] utilized adaptive large neighborhood search (ALNS) to manage time-sensitive deliveries. Yang and Li [18] employed a hybrid heuristic to efficiently handle multicommodity flows in an omnichannel context. Finally, Abdulkader et al. [3], our baseline study, proposed two algorithms for comparison, the two-phased heuristic (2PH) and multi-ant colony optimization (MAC).
In pre-omnichannel PDP applications, Wang et al. used a parallel simulated annealing (p-SA) algorithm to solve VRPSPDs with time windows, comparing results to existing benchmarks [21]. Avci and Topaloglu developed a hybrid local search algorithm combining simulated annealing and variable neighborhood descent for VRPSPD and VRPMPD, with an adaptive self-tuning threshold function [22]. Danloup et al. used large neighborhood search (LNS) and genetic algorithms (GA) to solve SPD with transshipment, comparing results to other algorithms [23]. Koc et al. reviewed the VRPSPD, focusing on future directions but lacking insights into metaheuristics [24]. While genetic algorithms (GA) and tabu search (TS) are well-studied, SA remains understudied in PDP and VRPSPD domains. Additionally, Parragh et al. [6,8] highlighted that genetic algorithms, tabu search and simulated annealing are among the most commonly used metaheuristics, with SA being the least explored of the three.
Table 1. Recent studies in omnichannel VRP context.
Table 1. Recent studies in omnichannel VRP context.
YearAuthorsVRP ClassProblem AttributesSolution Approach
2020Martins et al. [9]PDHandles retail store replenishment and customer deliveries using a shared fleet for both tasks.Savings-Based Heuristic
2020Martins et al. [10]SPDReplenishes retail stores and serves direct home deliveries with stochastic travel times.Simheuristic and Biased-Randomized Heuristic
2020Bayliss et al. [11]MPDIntegrates retailer replenishment and direct home deliveries; combines store replenishment with customer-focused routes.Discrete-Event Heuristic and Local Search
2020Guerrero-Lorente et al. [14]PDManages deliveries and returns across a multi-facility network; supports customer preference with city distribution centers and parcel stations.Mixed-Integer Programming and Continuous Approximation
2021Sawicki et al. [12]Multi-echelon VRP with Direct DeliveryServes retail stores and online customers through a two-tier distribution system; focuses on optimizing direct deliveries from central depots and intermediate hubs.Mixed-integer programming
2021Janjevic et al. [13]Multi-Tier, Multi-Service Level VRPReplenishes multiple levels of retail inventory; involves replenishing retail stores and satellite hubs, as well as delivering products directly to customers.Capacitated Location-Routing and Continuum Approximation
2022Liu et al. [15]MPDServes retail stores and home customers; integrates replenishment of stores with direct customer deliveries, aiming for cost minimization and customer satisfaction.Multi-Objective Gray Wolf Optimizer (MOGWO) and Non-dominated Sorting Genetic Algorithm II (NSGA-II)
2022Hendalianpour et al. [16]Multi-product, Multi-level Omnichannel VRPReplenishes multiple levels of retail inventory; involves replenishing retail stores and satellite hubs, as well as delivering products directly to customers.Benders Decomposition and Lagrangian Relaxation
2022Li et al. [17]Selective Many-to-Many Pickup and Delivery (SMMPDPH)Manages selective pickup and delivery among multiple nodes; focuses on minimizing handling costs in omnichannel last-mile delivery.Mixed-Integer Programming, Iterated Local Search (ILS), and Memetic Algorithm (MA)
2023Yang and Li [18]PDPerforms pickup and delivery between distribution centers, retail stores, and end customers; focuses on efficient transport of heterogeneous goods in omnichannel retail.Mixed-Integer Programming, Tabu Thresholding and Memetic Algorithms
2025Li and Wang [20]PDReplenishes retail stores and satellites; manages split deliveries under strict time window constraints for various product types.Adaptive Large Neighborhood Search (ALNS)
2025Qiu et al. [19]Inventory Replenishment VRP with Capacity-SharingReplenishes inventory across retail stores; uses a capacity-sharing strategy to reduce travel and inventory holding costs while meeting online and in-store demands.Optimization Model and Solution Procedure
This paper addresses the gap by applying SA in extensive computational experiments for VRP cases. Since its introduction by Kirkpatrick et al. [25], SA has been widely applied, extended, and combined with other methods to solve complex optimization problems. SA’s strength lies in avoiding local optima, making it well-suited for combinatorial problems like the VRPO when properly adjusted. While there are no studies focusing on simulated annealing in the post-omnichannel problem context, some newly tweaked SA algorithms include an improved simulated annealing algorithm with a crossover operator for the capacitated vehicle routing problem [26]; multiple-temperature simulated annealing for the permutation flowshop scheduling problem [27]; SA with variable neighborhood descent for the heterogeneous fleet vehicle routing problem [28]; a fast simulated annealing algorithm for the examination timetabling problem [29]; a new hyper-heuristic based on adaptive simulated annealing and reinforcement learning for the capacitated electric vehicle routing problem [30]; SA with a mutation strategy for the share-a-ride problem with flexible compartments [31]; multi-start simulated annealing for the team-orienteering problem [32]; a backtracking SA metaheuristic for the job-shop scheduling problem [33]; a chaos-enhanced SA for hybrid flowshop scheduling with identical machines [34]; and a simulated annealing algorithm for the vehicle routing problem with parcel lockers [35].

3. Solution Approach

This paper presents an efficient SA-based algorithm that employs a method to predetermine the ranking of parameters, namely, T0, Niter, beta, Nnimp, and UnitP. The first three are standard in classical SA, while the last two are efficiency parameters. The T0, Niter, and beta control the temperature cooling, while Nnimp and UnitP manage solution acceptance and stopping policy. Nimp, the “non-improving solution” parameter, terminates the outer loop if no improvement is found after a set number of iterations. UnitP is used in the penalty method to speed up the search by avoiding redundant objective function evaluations. The components of our ESA are detailed in the next sections.

3.1. Solution Encoding

The VRPO solution array includes c customers {C1, C2, …, CC}, r stores {R1, R2, …, Rr}, and n dummy zeros representing the start and end of routes. In Figure 1a–c, a sample solution is shown as a single array with one dummy zero, three stores, and eighteen customers, where dummy zeros act as route separators. The array is decoded into two routes. Route 1 starts at the depot, visits store R2 for stock replenishment and to pick up customer requests, delivers to customers C11, C10, C18, C12, C17, C6, C9, and C5, and returns to the depot. Route 2 visits R3 for customer pickups, delivers to customers C1 and C3, replenishes stock at store R1, picks up customer requests, delivers to customers C2, C15, C16, C13, C7, C4, C14, and C8, and returns to the depot.
Each element of the solution array is decoded from left to right to form the routes. There are three cases for handling dummy zeros, as follows:
Case 1: If the next element after a dummy zero is another dummy zero, it is ignored, and the process continues.
Case 2: If the next element is a local store, the current vehicle terminates its route and returns to the warehouse, a new vehicle is activated, and decoding proceeds.
Case 3: If the next element is a customer, it is ignored, and decoding continues.
After decoding, travel time and vehicle load are evaluated, ensuring store and customer demands are met. If not, a penalty is applied based on the degree of violation, including for exceeding the maximum tour length.

3.2. Initialization

The initial solution is constructed using a simple rule to form a complete solution array; one vehicle is activated per local store. After visiting a store, the vehicle serves the closest unvisited customer. Algorithm 1 illustrates the detailed initialization procedure.
Algorithm 1: ESA Initialization for the VRPO
Function: Initialize to obtain an initial solution;
Do
 A vehicle departs from the depot;
 A vehicle travels to the closest unused local store;
 Update: (1) vehicle’s current location, (2) vehicle load;
Do
  Find the closest unserved customer which satisfies the following conditions:
  (1) The current vehicle can provide enough goods for this customer;
  (2) If this customer is served and the current vehicle
   goes back to the warehouse, it will not violate the max time of the vehicle;
   If  (one customer is found) {
     The current vehicle goes to serve this customer; and
     Update current vehicle location and the amount of goods in the vehicle;
     Update the partial solution;
     }
  } Until no unserved customer can be added to the current vehicle route;
   The current vehicle goes back to the depot;
   Update the partial solution;
   } Until all local stores are used

3.3. Neighborhood Operators: Swap, Insert, and Invert

To explore neighborhood solutions, the current solution S is perturbed using three neighborhood moves: insert, swap, and invert. A new solution S’, is generated at each iteration by applying one of these moves. The Insert move selects a random element of S and places it before another random position. The Swap move selects two random elements in S and swaps them. The Invert move selects a random subsequence of S and reverses its order. The probabilities for choosing each move are set equally.

3.4. Efficient Simulated Annealing (ESA) Algorithm

Algorithm 2 outlines the ESA algorithm. T0 is the initial temperature, Niter is the number of iterations at each temperature, and Nnimp is the maximum number of consecutive iterations without improvement. This parameter represents the maximum number of temperature reductions without finding a better solution. UnitP is the penalty applied for constraint violations, and beta is the cooling schedule coefficient. The algorithm proceeds as described.
The current temperature (T) is set to the initial temperature (T0), and the best solution (Sbest) is initialized as the current solution (S). The best objective function value (OFVbest) is set as OF(Sbest, UnitP), where OF is the objective function. A penalty, which is calculated as the unit penalty times the degree of the constraint violation, is applied when (1) the store product quantity is insufficient for the route, (2) the vehicle load exceeds capacity, or (3) the tour length exceeds the limit.
The search goes through a neighborhood search mechanism for each iteration at a given temperature. Selection probabilities, set uniformly at one-third for each of the three move operators, determine the move. Let delta be the difference between the new solution (S′) and the current solution (S), that is, delta = OF(S, UnitP)-OF(S, UnitP). If delta <= 0, S′ replaces S; otherwise, S′ is accepted at a specific probability lambda between 0 and 1. If lambda is less than or equal to e−delta/T, S′ replaces S. The current temperature drops to T (beta), where 0 < beta < 1 after Niter iterations at the current temperature. The search terminates when the best solution has not improved after Nnimp consecutive temperature reductions. Also, the best solution (Sbest) and its objective function value (OFVbest) are updated when a better feasible solution is found. When the algorithm terminates, Sbest and OFVbest are returned.
Algorithm 2: ESA for the VRPO
Function: ESA-VRPO to find the best solution, Sbest;
Inputs: T0, Niter, Nnimp, UnitP, beta, and “problem instances”;
begin
Generate initial solution, SInitialize;
TT0, SbestS, Ncount←0, OFVbestOF(S, UnitP);
While (nimp < Nnimp) do
For iter = 1 to Niter do
 Generate prob = uniform (0,1);
If (prob <= ⅓)Swap;
If (⅓ < prob <= ⅔) ← Insert;
If (⅔ < prob <= 1) ←Invert;
delta = OF(S′, UnitP)-OF(S, UnitP);
If (delta <= 0) then
  S ←S′;
else
  Generate lambda = uniform (0,1);
  If (lambda <= e(-delta/T)) then
    S ←S′;
  endif
endif
If (S′ is feasible and OF(S′, UnitP) <= OFVbest) then
  Sbest←S′, OFVbest = OF(S′, UnitP), nimp ← 0;
endif
endfor
   nimp = nimp +1; TT(beta);
endwhile
return Sbest, OFVbest;
end

4. Experiment

4.1. Test Instances

The small and large VRPO instance sets, which were used as benchmarks for this study, were obtained from Abdulkader et al. [3] as benchmarks for the comparative study. For details on data generation, readers may refer to their work. The small set includes 20 instances with 3, 4, 5, or 6 retail stores and 6, 9, 12, 15, or 18 consumers. The large set contains 60 instances with 10, 15, 20, or 25 stores and 25, 50, 75, 100, or 150 consumers, across three inventory cases (see Table 2). Instance data include the depot, stores, consumers, store products, stock levels, x-y coordinates, and pickup/delivery requests.

4.2. Parameter Setting and Fine-Tuning

The algorithm-related parameters are listed and defined in Table 3, where L is the length of the solution array. With the five factors at four levels each, a total of 1024 experiments should be conducted. Alternatively, a representative sampling was conducted using Type B of the Taguchi L16 (45) orthogonal experimental design. A total of sixteen experimental combinations were used and compared. For each combination, ESA is implemented ten times independently per random instance of six instances.
The performance of each combination is measured using the average relative percentage deviation (%Gap) and average computational time from 10 independent runs per combination. Table 4 and Table 5 present the results. Table 4 shows the average %Gap and computational times obtained from the predetermined parameter levels. The results highlight combinations 4 and 13 on Niter’s effect on the %Gap. The former has the least average %Gap (i.e., the least deviation with respect to the best solution found) at the highest Niter, while the latter has the highest average %Gap at the least Niter.
Table 5 shows the rankings of parameters based on percentage gaps. It reveals Niter as the most critical parameter with the largest average %Gap range. Parameters beta and T0 are the second and third in the ranking, respectively. It is hard to separate the influence of beta and T0 when determining the current T in the algorithm. T affects the probability of accepting worse solutions. Generally, a worse solution is frequently accepted at a higher T (i.e., the earlier search stage). As a result, the convergence at this stage is unlikely. As T decreases (i.e., the later search stage), worse solutions are often rejected, and the search gravitates locally. Lesser beta values cause drastic drops of current T and often cause the search process to become prematurely stuck in local optima. Nnimp helps in termination and convergence. Higher values of Nnimp may lead to more and unnecessary evaluations during the search. UnitP is considered a trivial parameter, as the search is most likely to reject an infeasible solution, let alone one with a high UnitP. Finally, to balance solution quality and computation time, the algorithm’s T0, Niter, beta, Nnimp, and UnitP parameter values were set to 30, 3500L, 0.96, 50, and 1500, respectively.

4.3. Results and Discussion

This section presents the results of ESA’s performance compared to the baseline algorithms 2PH and MAC. The experiment was implemented on a server with four 2.1 GHz processors with 16 cores each and 256 GB RAM. Our implementation used Microsoft Visual C++ 2019 on a desktop with an Intel Core i9-10900 CPU @ 2.80GHz, 64 GB of RAM, and Windows 11.

4.3.1. Small Instances

In small problems, the results as shown in Table 6 suggest that our ESA is at par in terms of solution quality and average solution quality but generally superior in terms of computational time. ESA consistently obtains the optimal solution for all twenty small instances, as demonstrated in the ESA (Best) and %Gap (Best) columns of Table 6, matching the optimal solution provided by the exact solver. While our results are clearly better than those of 2PH, there are slight differences in the five instances in which our results are compared to MAC. Finally, ESA outperforms MAC in three instances a8, a15, and a20. However, ESA is outperformed by MAC in two instances: a5 and a10.

4.3.2. Large Instances

The large instances feature up to 25 local stores and 150 customers. To further evaluate these instances, three inventory scenarios are considered. Table 7a–c show the results for instances b1–b20 under low inventory, b21–b40 under moderate inventory, and b41–b60 under high inventory.
1.
Best Know Solutions (BKS): The ESA found fifty-nine new BKS out of sixty large problem instances compared to the 2PH and MAC results. However, for instance b31, MAC’s result remains the BKS (refer to the BKS column).
2.
Performance Comparison Based on BKS: Using the BKS, we calculated the percentage gaps for 2PH and MAC, which are shown in the %Gap (2PH) and %Gap (MAC) columns. Table 7d summarizes the performance improvements of ESA over 2PH and MAC.
  • For the ESA-Best results, ESA outperformed 2PH by 78.033%, 80.934%, and 41.853% in low, moderate, and high inventory cases, respectively. For the ESA-Ave results, ESA outperformed 2PH by 75.124%, 77.683%, and 4.941% in the respective cases.
  • Against MAC, ESA outperformed with ESA-Best results by 10.185%, 10.478%, and 4.990% for low, moderate, and high inventory cases, respectively. For the ESA-Ave results, ESA outperformed MAC by 7.275%, 7.218%, and 4.077% for each corresponding scenario.
3.
Stability and Robustness Analysis: To assess the stability and robustness of ESA, we calculated the percentage deviation between the average fitness values (ESA-Ave) and the best solution found (ESA-Best). High-inventory cases exhibited the smallest deviation at 0.913%, indicating strong stability. Deviations for low and moderate cases are 2.909% and 3.275%, respectively, reflecting consistent performance across inventory levels. Figure 2a–c illustrate the percentage gaps of ESA compared to MAC across instances per scenario, showing that ESA consistently maintains greater stability around the average gaps. Additionally, the gaps decrease as the scenarios become more challenging, demonstrating ESA’s robustness.
4.
Average Computational Time: ESA outperformed MAC in 68.33% of the sixty cases. Specifically, ESA demonstrated shorter computation times in 50% of the low inventory cases, 70% of the moderate inventory cases, and 85% of the high inventory cases. As instance difficulty increases ESA’s performance becomes better. Figure 3 compares the computational times of MAC and ESA across three cases. While MAC’s computational time increased significantly with harder instances, ESA maintained a stable trend, demonstrating consistent efficiency and highlighting its scalability and effectiveness.
In summary, ESA significantly outperformed 2PH and MAC, establishing new BKS for fifty-nine out of sixty cases. The low percentage deviations in solution quality highlight its robustness and stability, particularly in high inventory cases. Moreover, the ESA algorithm not only delivers superior solutions but also excels in computational efficiency, especially for harder cases.
Table 7. (a) SA vs. 2PH and MAC algorithms in large instances in low-inventory scenarios. (b) ESA vs. 2PH and MAC in large instances in moderate-inventory scenarios. (c) SA vs. 2PH and MAC in large instances in high-inventory scenarios. (d) Summary of ESA performance w.r.t. 2PH and MAC.
Table 7. (a) SA vs. 2PH and MAC algorithms in large instances in low-inventory scenarios. (b) ESA vs. 2PH and MAC in large instances in moderate-inventory scenarios. (c) SA vs. 2PH and MAC in large instances in high-inventory scenarios. (d) Summary of ESA performance w.r.t. 2PH and MAC.
(a)
InsBKSAbdulkader et al. [3] Efficient Simulated Annealing (ESA)
2PHMACTime
(sec.)
%Gap
(2PH)
%Gap
(MAC)
ESA
(Best)
ESA
(Ave.)
Time (sec.)%Gap *
(Best)
%Gap *
(Ave.)
b1965.6581631.631002.477.068.966%3.812% 965.658972.47114.80.000%0.706%
b21131.9512057.501191.9747.081.766%5.302% 1131.9511175.55744.80.000%3.852%
b31523.5033006.191815.4279.097.321%19.161% 1523.5031600.928102.90.000%5.082%
b41486.4682830.161529.04286.090.395%2.864% 1486.4681582.114145.60.000%6.434%
b51757.4723478.721905.19576.097.939%8.405% 1757.4721800.644339.80.000%2.456%
b61312.7781774.351313.697.035.160%0.069% 1312.7781345.56520.50.000%2.498%
b71430.9002461.831522.2944.072.048%6.387% 1430.9001446.44462.20.000%1.086%
b81669.5463545.112101.77131.0112.340%25.889% 1669.5461726.145119.40.000%3.390%
b92038.4273528.982329.53209.073.123%14.281% 2038.4272118.569196.10.000%3.932%
b102314.6244916.753012.18430.0112.421%30.137% 2314.6242413.788384.20.000%4.284%
b111574.2682432.561611.3411.054.520%2.355% 1574.2681592.86829.40.000%1.182%
b121720.6672695.341800.8750.056.645%4.661% 1720.6671773.67973.90.000%3.081%
b132406.0403936.672406.04127.092.430%17.611% 2045.7682078.285140.60.000%1.589%
b142227.4453826.142483.81327.071.773%11.509% 2227.4452292.73214.50.000%2.931%
b152432.7894496.052679.15708.084.811%10.127% 2432.7892498.48443.20.000%2.700%
b161630.3612254.871669.5613.038.305%2.404% 1630.3611648.85733.20.000%1.134%
b171904.5183020.801965.5646.058.612%3.205% 1904.5181928.351109.10.000%1.251%
b182279.0203963.522449.76136.073.913%7.492% 2279.0202354.603138.30.000%3.316%
b192412.6034933.862788.48257.0104.504%15.580% 2412.6032501.918233.50.000%3.702%
b202570.5244721.262890.29712.083.669%12.440% 2570.5242662.451474.00.000%3.576%
Ave. 210.178.033%10.185% 166.00.000%2.909%
(b)
InsBKSAbdulkader et al. [3] Efficient Simulated Annealing (ESA)
2PHMACTime
(sec.)
%Gap
(2PH)
%Gap
(MAC)
ESA
(Best)
ESA
(Ave.)
Time (sec.)%Gap *
(Best)
%Gap *
(Ave.)
b21830.5761571.63879.1610.089.222%5.849% 830.576838.63915.00.000%0.971%
b22985.5931920.591083.6685.094.866%9.950% 985.5931007.61549.20.000%2.234%
b231307.7612699.231591.52167.0106.401%21.698% 1307.7611356.962111.70.000%3.762%
b241180.6312305.091437.68528.095.242%21.772% 1180.6311267.620138.90.000%7.368%
b251341.0642700.411520.511836.0101.363%13.381% 1341.0641421.077336.20.000%5.966%
b261177.6161665.151180.8311.041.400%0.273% 1177.6161182.24721.20.000%0.393%
b271326.9282320.661329.2673.074.890%0.176% 1326.9281348.17962.90.000%1.602%
b281504.4263016.451692.41279.0100.505%12.495% 1504.4261586.755129.20.000%5.472%
b291685.0243302.392016.40567.095.985%19.666% 1685.0241779.461193.30.000%5.604%
b301812.8343918.972399.601407.0116.179%32.367% 1812.8341970.385435.60.000%8.691%
b311495.7901993.491495.7916.033.273%0.000% 1500.1961514.54929.90.295%1.254%
b321583.2882713.011656.8676.071.353%4.647% 1583.2881604.75680.60.000%1.356%
b331715.0073393.341799.64262.097.862%4.935% 1715.0071772.595147.70.000%3.358%
b341821.9773127.492018.50740.071.654%10.786% 1821.9771883.839230.50.000%3.395%
b352008.9013742.212290.952141.086.281%14.040% 2008.9012092.139458.00.000%4.143%
b361496.4882032.061550.0115.035.789%3.577% 1496.4881518.09937.30.000%1.444%
b371833.8983130.521939.5073.070.703%5.758% 1833.8981880.449104.10.000%2.538%
b381944.2593433.232088.58283.076.583%7.423% 1944.2591964.290162.20.000%1.030%
b391996.7673824.462244.14656.091.533%12.389% 1996.7672023.750280.60.000%1.351%
b402051.4603447.892229.432077.068.070%8.675% 2051.4602124.600480.90.000%3.565%
Ave. 565.180.958%10.493% 175.30.015%3.275%
(c)
InsBKSAbdulkader et al. [3] Efficient Simulated Annealing (ESA)
2PHMACTime
(sec.)
%Gap
(2PH)
%Gap
(MAC)
ESA
(Best)
ESA
(Ave.)
Time (sec.)%Gap
(Best)
%Gap
(Ave.)
b41692.317897.55711.2916.029.644%2.741% 692.317692.31714.70.000%0.000%
b42853.8591287.81875.24143.050.822%2.504% 853.859855.62449.20.000%0.207%
b431047.7631531.061132.05358.046.127%8.044% 1047.7631054.713108.80.000%0.663%
b441053.3301636.541224.11978.055.368%16.213% 1053.3301079.247148.90.000%2.460%
b451155.6301551.751273.862085.034.277%10.231% 1155.6301176.100332.50.000%1.771%
b46988.5571264.32996.9322.027.896%0.847% 988.557988.55726.10.000%0.000%
b471027.5161488.071080.34159.044.822%5.141% 1027.5161036.10766.30.000%0.836%
b481188.5031815.221252.35559.052.732%5.372% 1188.5031216.658121.30.000%2.369%
b491471.9152242.401594.021167.052.346%8.296% 1471.9151504.279203.30.000%2.199%
b501503.4702459.521691.424126.063.590%12.501% 1503.4701521.713439.80.000%1.213%
b511302.8841660.911302.8933.027.479%0.000% 1302.8841303.16233.70.000%0.021%
b521272.8121740.661300.98156.036.757%2.213% 1272.8121278.27080.20.000%0.429%
b531391.3732096.761421.77605.050.697%2.185% 1391.3731393.5051390.000%0.153%
b541601.1412226.391640.601370.039.050%2.464% 1601.1411608.418263.50.000%0.454%
b551638.5722518.161763.315321.053.680%7.613% 1638.5721666.076484.80.000%1.679%
b561311.6281550.711311.6336.018.228%0.000% 1311.6281311.62839.90.000%0.000%
b571423.8651835.391468.12203.028.902%3.108% 1423.8651436.874113.70.000%0.914%
b581601.8732276.941654.92791.042.142%3.312% 1601.8731604.410166.50.000%0.158%
b591532.1062061.861575.671262.034.577%2.843% 1532.1061546.861277.80.000%0.963%
b601587.0462347.761653.304549.047.933%4.175% 1587.0461615.076478.50.000%1.766%
Ave. 1196.941.853%4.990% 179.40.000%0.913%
(d)
Mean %Gaps w.r.t. BKS per Scenario ESA Outperforms 2PH by: ESA Outperforms MAC by:
CaseESA
(Best)
ESA
(Ave)
2PHMACESA
(Best)
ESA
(Ave)
ESA
(Best)
ESA
(Ave)
Low0.000%2.909%78.033%10.185%−78.033%−75.124% −10.185%−7.275%
Moderate0.015%3.275%80.958%10.493%−80.943%−77.683% −10.478%−7.218%
High0.000%0.913%41.853%4.990%−41.853%−40.941% −4.990%−4.077%
* % G a p = o b j H e u r i s t i c o b j B K S o b j B K S × 100 .
Figure 2. Average %Gap with respect to BKS across inventory cases: MAC vs. ESA. (a) Low; (b) Moderate; and (c) High.
Figure 2. Average %Gap with respect to BKS across inventory cases: MAC vs. ESA. (a) Low; (b) Moderate; and (c) High.
Mathematics 12 03664 g002aMathematics 12 03664 g002b
Figure 3. CPU time (sec) across 60 cases of MAC vs. ESA.
Figure 3. CPU time (sec) across 60 cases of MAC vs. ESA.
Mathematics 12 03664 g003

5. Summary and Conclusions

The VRPO is a hybrid VRP with PDP and SPDP features. As omnichannel operations evolve, last-mile distribution networks are becoming increasingly complex, making the pickup and delivery problems relevant than ever. To solve the VRPO, we tailor an efficient SA-based algorithm with two efficiency features: the non-improving solution parameter (Nnimp) and the unit penalty function (UnitP) for constraint handling. The experimental study demonstrated ESA’s performance in terms of solution quality, average quality, robustness, and efficiency.
Building on the study of Abdulkader et al. [3], the experiment revealed the following results: (i) ESA obtained optimal solutions for all twenty small instances, (ii) ESA established fifty-nine new BKSs out of sixty large instances, (iii) ESA outperformed the MAC algorithm by 6.190% in terms of solution quality, (iv) ESA was faster than MAC in 68.3% of the sixty cases, and (v) ESA demonstrated a better robustness than MAC, as evidenced by the stable and consistent trend of computational times across all sixty instances.
The PDP domains in the omnichannel context offer a promising opportunity to test and demonstrate various solution approaches, including exact methods, heuristics, metaheuristics, and hybrids. This study addresses the gap regarding the underexplored use of SA-based algorithms for PDPs in pre- or post-omnichannel settings. As a flexible framework, it is recommended for further exploration of other SA components. Testing VRPO instances with neighborhood-based metaheuristics like variable neighborhood search (VNS), large neighborhood search (LNS), and variable neighborhood descent (VND), which have gained traction recently, would be valuable. Additionally, applying the framework to new omnichannel distribution network variants—such as managing customer returns, delivering goods to secondary markets or recycling, and warehouse milk-run deliveries—offers further opportunities to extend the VRPO.
The landscape of metaheuristics for solving vehicle routing problems has significantly evolved, with recent advancements particularly emphasizing hybrid and AI-driven approaches. For instance, a hybrid simulated annealing and variable neighborhood search algorithm was developed for a novel variant of electric vehicle routing (EVRP) called close–open EVRP (COEVRP) [36]. The use of such hybrid approaches has been instrumental in achieving high-quality solutions, especially in complex VRP variants. Furthermore, the integration of adaptive algorithms [37] and reinforcement learning [30] into the simulated annealing algorithm offers a better position for it to advance further.

Author Contributions

Conceptualization, V.F.Y. and C.-H.L.; Methodology, V.F.Y., R.S.M. and S.-W.L.; Validation, C.-H.L., R.S.M. and S.-W.L.; Formal analysis, C.-H.L., S.-W.L. and K.-F.C.; Investigation, V.F.Y. and S.-W.L.; Data curation, C.-H.L., S.-W.L. and K.-F.C.; Writing—original draft, C.-H.L. and R.S.M.; Writing—review & editing, V.F.Y., S.-W.L. and K.-F.C.; Visualization, C.-H.L. and R.S.M.; Supervision, V.F.Y. and S.-W.L.; Project administration, V.F.Y.; Funding acquisition, V.F.Y. and S.-W.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially supported by the National Science and Technology Council, the Republic of China (Taiwan) under Grant MOST111-2410-H-011-020-MY3 for the first author, and was partially supported by the National Science and Technology Council, Republic of China (Taiwan) under Grant NSTC112-2410-H-182-002-MY3 for the corresponding author.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Lokin, F.C.J. Procedures for Travelling Salesman Problems with Additional Constraints. Eur. J. Oper. Res. 1979, 3, 135–141. [Google Scholar] [CrossRef]
  2. Berbeglia, G.; Cordeau, J.-F.; Gribkovskaia, I.; Laporte, G. Static Pickup and Delivery Problems: A Classification Scheme and Survey. TOP 2007, 15, 1–31. [Google Scholar] [CrossRef]
  3. Abdulkader, M.M.S.; Gajpal, Y.; ElMekkawy, T.Y. Vehicle Routing Problem in Omni-Channel Retailing Distribution Systems. Int. J. Prod. Econ. 2018, 196, 43–55. [Google Scholar] [CrossRef]
  4. Braekers, K.; Caris, A.; Janssens, G.K. Exact and Meta-Heuristic Approach for a General Heterogeneous Dial-a-Ride Problem with Multiple Depots. Transp. Res. Part B Methodol. 2014, 67, 166–186. [Google Scholar] [CrossRef]
  5. Parragh, S.N.; Doerner, K.F.; Hartl, R.F. A Survey on Pickup and Delivery Problems. Part I: Transportation Between Customers and Depot. J. Für Betriebswirtschaft 2008, 58, 21–51. [Google Scholar] [CrossRef]
  6. Battarra, M.; Cordeau, J.-F.; Iori, M. Chapter 6: Pickup-and-Delivery Problems for Goods Transportation. In Vehicle Routing: Problems, Methods, and Applications; MOS-SIAM Series on Optimization; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2014; pp. 161–191. [Google Scholar]
  7. Parragh, S.N.; Doerner, K.F.; Hartl, R.F. A Survey on Pickup and Delivery Problems: Part II: Transportation Between Pickup and Delivery Locations. J. Für Betriebswirtschaft 2008, 58, 81–117. [Google Scholar] [CrossRef]
  8. Beck, N.; Rygl, D. Categorization of Multiple Channel Retailing in Multi-, Cross-, and Omni-Channel Retailing for Retailers and Retailing. J. Retail. Consum. Serv. 2015, 27, 170–178. [Google Scholar] [CrossRef]
  9. Martins, L.D.C.; Bayliss, C.; Juan, A.A.; Panadero, J.; Marmol, M. A Savings-Based Heuristic for Solving the Omnichannel Vehicle Routing Problem with Pick-up and Delivery. Transp. Res. Procedia 2020, 47, 83–90. [Google Scholar] [CrossRef]
  10. Martins, L.D.C.; Bayliss, C.; Copado-Méndez, P.J.; Panadero, J.; Juan, A.A. A Simheuristic Algorithm for Solving the Stochastic Omnichannel Vehicle Routing Problem with Pick-up and Delivery. Algorithms 2020, 13, 237. [Google Scholar] [CrossRef]
  11. Bayliss, C.; Martins, L.d.C.; Juan, A.A. A Two-Phase Local Search with a Discrete-Event Heuristic for the Omnichannel Vehicle Routing Problem. Comput. Ind. Eng. 2020, 148, 106695. [Google Scholar] [CrossRef]
  12. Sawicki, P.; Sawicka, H. Optimisation of the Two-Tier Distribution System in Omni-Channel Environment. Energies 2021, 14, 7700. [Google Scholar] [CrossRef]
  13. Janjevic, M.; Merchán, D.; Winkenbach, M. Designing Multi-Tier, Multi-Service-Level, and Multi-Modal Last-Mile Distribution Networks for Omni-Channel Operations. Eur. J. Oper. Res. 2021, 294, 1059–1077. [Google Scholar] [CrossRef]
  14. Guerrero-Lorente, J.; Gabor, A.F.; Ponce-Cueto, E. Omnichannel Logistics Network Design with Integrated Customer Preference for Deliveries and Returns. Comput. Ind. Eng. 2020, 144, 106433. [Google Scholar] [CrossRef]
  15. Liu, P.; Hendalianpour, A.; Feylizadeh, M.; Pedrycz, W. Mathematical Modeling of Vehicle Routing Problem in Omni-Channel Retailing. Appl. Soft Comput. 2022, 131, 109791. [Google Scholar] [CrossRef]
  16. Hendalianpour, A.; Fakhrabadi, M.; Sangari, M.S.; Razmi, J. A Combined Benders Decomposition and Lagrangian Relaxation Algorithm for Optimizing a Multi-Product, Multi-Level Omni-Channel Distribution System. Sci. Iran. 2022, 29, 355–371. [Google Scholar] [CrossRef]
  17. Li, Y. A Selective Many-to-Many Pickup and Delivery Problem with Handling Cost in the Omni-Channel Last-Mile Delivery. IEEE Access 2022, 10, 111284–111296. [Google Scholar] [CrossRef]
  18. Yang, J.; Li, Y. A Multicommodity Pickup and Delivery Problem with Time Windows and Handling Time in the Omni-Channel Last-Mile Delivery. Int. Trans. Oper. Res. 2023. [Google Scholar] [CrossRef]
  19. Qiu, R.; Yuan, M.; Sun, M.; Fan, Z.P.; Xu, H. Optimizing Omnichannel Retailer Inventory Replenishment Using Vehicle Capacity-Sharing with Demand Uncertainties and Service Level Requirements. Eur. J. Oper. Res. 2025, 320, 417–432. [Google Scholar] [CrossRef]
  20. Li, N.; Wang, Z. Vehicle Routing Problem for Omnichannel Retailing Including Multiple Types of Time Windows and Products. Comput. Oper. Res. 2025, 173, 106828. [Google Scholar] [CrossRef]
  21. Wang, C.; Mu, D.; Zhao, F.; Sutherland, J.W. A Parallel Simulated Annealing Method for the Vehicle Routing Problem with Simultaneous Pickup-Delivery and Time Windows. Comput. Ind. Eng. 2015, 83, 111–122. [Google Scholar] [CrossRef]
  22. Avci, M.; Topaloglu, S. An Adaptive Local Search Algorithm for Vehicle Routing Problem with Simultaneous and Mixed Pickups and Deliveries. Comput. Ind. Eng. 2015, 83, 15–29. [Google Scholar] [CrossRef]
  23. Danloup, N.; Allaoui, H.; Goncalves, G. A Comparison of Two Meta-Heuristics for the Pickup and Delivery Problem with Transshipment. Comput. Oper. Res. 2018, 100, 155–171. [Google Scholar] [CrossRef]
  24. Koç, Ç.; Laporte, G.; Tükenmez, İ. A Review of Vehicle Routing with Simultaneous Pickup and Delivery. Comput. Oper. Res. 2020, 122, 104987. [Google Scholar] [CrossRef]
  25. Kirkpatrick, S.; Gelatt, C.D.; Vecchi, M.P. Optimization by Simulated Annealing. Science 1983, 220, 671–680. [Google Scholar] [CrossRef]
  26. İlhan, İ. An Improved Simulated Annealing Algorithm with Crossover Operator for Capacitated Vehicle Routing Problem. Swarm Evol. Comput. 2021, 64, 100911. [Google Scholar] [CrossRef]
  27. Lin, S.W.; Cheng, C.Y.; Pourhejazy, P.; Ying, K.C. Multi-Temperature Simulated Annealing for Optimizing Mixed-Blocking Permutation Flowshop Scheduling Problems. Expert Syst. Appl. 2021, 165, 113837. [Google Scholar] [CrossRef]
  28. Yu, V.F.; Anh, P.T.; Gunawan, A.; Han, H. A Simulated Annealing with Variable Neighborhood Descent Approach for the Heterogeneous Fleet Vehicle Routing Problem with Multiple Forward/Reverse Cross-Docks. Expert Syst. Appl. 2024, 237, 121631. [Google Scholar] [CrossRef]
  29. Leite, N.; Melício, F.; Rosa, A.C. A Fast Simulated Annealing Algorithm for the Examination Timetabling Problem. Expert Syst. Appl. 2019, 122, 137–151. [Google Scholar] [CrossRef]
  30. Rodríguez-Esparza, E.; Masegosa, A.D.; Oliva, D.; Onieva, E. A New Hyper-Heuristic Based on Adaptive Simulated Annealing and Reinforcement Learning for the Capacitated Electric Vehicle Routing Problem. Expert Syst. Appl. 2024, 252, 124197. [Google Scholar] [CrossRef]
  31. Yu, V.F.; Indrakarna, P.A.Y.; Ngurah, A.A.; Redi, P.; Lin, S.-W. Simulated Annealing with Mutation Strategy for the Share-a-Ride Problem with Flexible Compartments. Mathematics 2021, 9, 2320. [Google Scholar] [CrossRef]
  32. Lin, S.W.; Yu, V.F. Solving the Team Orienteering Problem with Time Windows and Mandatory Visits by Multi-Start Simulated Annealing. Comput. Ind. Eng. 2017, 114, 195–205. [Google Scholar] [CrossRef]
  33. Ying, K.C.; Lin, S.W. Minimizing Total Completion Time in the No-Wait Jobshop Scheduling Problem Using a Backtracking Metaheuristic. Comput. Ind. Eng. 2022, 169, 108238. [Google Scholar] [CrossRef]
  34. Lin, S.W.; Cheng, C.Y.; Pourhejazy, P.; Ying, K.C.; Lee, C.H. New Benchmark Algorithm for Hybrid Flowshop Scheduling with Identical Machines. Expert Syst. Appl. 2021, 183, 115422. [Google Scholar] [CrossRef]
  35. Yu, V.F.; Susanto, H.; Yeh, Y.-H.; Lin, S.-W.; Huang, Y.-T. The Vehicle Routing Problem with Simultaneous Pickup and Delivery and Parcel Lockers. Mathematics 2022, 10, 920. [Google Scholar] [CrossRef]
  36. Stamadianos, T.; Kyriakakis, N.A.; Marinaki, M.; Marinakis, Y. A Hybrid Simulated Annealing and Variable Neighborhood Search Algorithm for the Close-Open Electric Vehicle Routing Problem. Ann. Math. Artif. Intell. 2023. [Google Scholar] [CrossRef]
  37. Xiao, S.; Peng, P.; Zheng, P.; Wu, Z. A Hybrid Adaptive Simulated Annealing and Tempering Algorithm for Solving the Half-Open Multi-Depot Vehicle Routing Problem. Mathematics 2024, 12, 947. [Google Scholar] [CrossRef]
Figure 1. VRPO solution representation: (a) array representation of a sample solution; (b) vehicle route representation; (c) graphical representation.
Figure 1. VRPO solution representation: (a) array representation of a sample solution; (b) vehicle route representation; (c) graphical representation.
Mathematics 12 03664 g001
Table 2. Inventory availability cases.
Table 2. Inventory availability cases.
CaseStock AvailabilityDescription
(1) Low I p = D p + U 0.1 ,   0.2 D p Total stock in the network exceeds consumer demand by 10–20%.
(2) Moderate I p = D p + U 0.5 ,   1.0 D p Inventory exceeds demand by 50–100%.
(3) High I p = D p Each store’s stock can fully meet all demands across the network.
Table 3. ESA parameter levels.
Table 3. ESA parameter levels.
ParameterDefinitionLevels
T0Initial temperature10, 20, 30, 40
NiterNumber of iterations per T level2000 L, 2500 L, 3000 L, 3500 L
betaCooling coefficient0.90, 0.93, 0.96, 0.99
NnimpMaximum iterations over non-improving solutions20, 30, 40, 50
UnitPUnit penalty per constraint violation1500, 2000, 2500, 3000
Table 4. CPU times and %Gaps of predetermined parameter levels.
Table 4. CPU times and %Gaps of predetermined parameter levels.
CombinationsT0NiterbetaNnimpUnitP%Gap * (Ave.)Time
(Ave.)
1102000 L0.902015008.56128.87
2102500 L0.933020007.52449.28
3103000 L0.964025006.16191.06
4103500 L0.995030004.164279.94
5202000 L0.934030007.19149.56
6202500 L0.905025007.54857.93
7203000 L0.992020006.810202.49
8203500 L0.963015005.060109.09
9302000 L0.965020005.84779.33
10302500 L0.994015004.795252.13
11303000 L0.903030006.68254.22
12303500 L0.932025005.63468.91
13402000 L0.993025008.863176.05
14402500 L0.962030005.80378.35
15403000 L0.935015006.11685.33
16403500 L0.904020006.15572.60
* % G a p i = O b j a v e i O b j b e s t O b j b e s t x   100 % . O b j a v e i denotes the average objective function value obtained in 10 runs per combination. O b j b e s t is the instance’s minimum objective function value obtained in 200 runs.
Table 5. Rankings of parameters based on %Gap.
Table 5. Rankings of parameters based on %Gap.
Levels%Gap (Ave.) Time (Ave.)
T0NiterbetaNnimpUnitP T0NiterbetaNnimpUnitP
16.60257.61547.23656.70216.1330 107.2681.7152.4692.06114.50
26.65226.41776.61647.03236.5843 100.09105.4262.1895.4097.22
35.73986.44245.71776.07567.0516 109.94104.9886.35111.9596.84
46.73445.25356.15835.91895.9601 103.08128.27219.39120.97111.82
Range0.99462.36191.51881.11341.0915 9.8546.56166.9328.9017.66
Rank51234 52134
Table 6. Comparison of ESA to 2PH, and MAC in small instances.
Table 6. Comparison of ESA to 2PH, and MAC in small instances.
MINLP by GurobiAbdulkader et al. [3] ESA
InsOptimalTime
(sec.)
2PH%GapMAC%Gap ESA
(Best)
ESA
(Ave.)
Time
(Ave.)
%Gap *
(Best)
%Gap *
(Ave.)
a1386.9060.11479.1923.85386.910.00 386.906386.9061.000.000.00
a2416.3461.31589.6341.62416.350.00 416.346416.3461.500.000.00
a3424.3095.27512.3220.74424.310.00 424.309424.3092.400.000.00
a4455.28828.70767.0668.48455.290.00 455.288455.2883.800.000.00
a5601.363179.55936.2055.68601.360.00 601.363702.6404.900.0016.84
a6419.3272.16512.1222.13419.320.00 419.327419.3271.200.000.00
a7455.91214.66688.3950.99455.910.00 455.912455.9121.800.000.00
a8448.831153.45711.8958.61449.350.12 448.831448.8312.800.000.00
a9457.3198.31746.5763.25457.320.00 457.319457.3194.200.000.00
a10514.376607.81740.8044.02514.380.00 514.376518.2905.400.000.76
a11486.0374.70545.7212.28486.040.00 486.037486.0371.400.000.00
a12624.81248.09881.9541.15624.810.00 624.812624.8121.900.000.00
a13535.437139.53961.6779.60535.440.00 535.437535.4373.100.000.00
a14605.028166.98838.9338.66605.030.00 605.028605.0284.400.000.00
a15708.226601.25898.7526.90709.890.23 708.226708.8906.300.000.09
a16468.8856.30582.1024.15468.890.00 468.885468.8851.600.000.00
a17468.610139.83608.9929.96468.610.00 468.610468.6102.700.000.00
a18586.62414,400.00924.4157.58586.620.00 586.624586.6243.700.000.00
a19750.937437.11964.1128.39750.940.00 750.937750.9375.100.000.00
a20588.65414,400.001005.7270.85601.712.22 588.654599.7516.900.001.89
* % G a p = o b j H e u r i s t i c o b j M I L P o b j M I L P × 100 % .
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

Yu, V.F.; Lin, C.-H.; Maglasang, R.S.; Lin, S.-W.; Chen, K.-F. An Efficient Simulated Annealing Algorithm for the Vehicle Routing Problem in Omnichannel Distribution. Mathematics 2024, 12, 3664. https://doi.org/10.3390/math12233664

AMA Style

Yu VF, Lin C-H, Maglasang RS, Lin S-W, Chen K-F. An Efficient Simulated Annealing Algorithm for the Vehicle Routing Problem in Omnichannel Distribution. Mathematics. 2024; 12(23):3664. https://doi.org/10.3390/math12233664

Chicago/Turabian Style

Yu, Vincent F., Ching-Hsuan Lin, Renan S. Maglasang, Shih-Wei Lin, and Kuan-Fu Chen. 2024. "An Efficient Simulated Annealing Algorithm for the Vehicle Routing Problem in Omnichannel Distribution" Mathematics 12, no. 23: 3664. https://doi.org/10.3390/math12233664

APA Style

Yu, V. F., Lin, C.-H., Maglasang, R. S., Lin, S.-W., & Chen, K.-F. (2024). An Efficient Simulated Annealing Algorithm for the Vehicle Routing Problem in Omnichannel Distribution. Mathematics, 12(23), 3664. https://doi.org/10.3390/math12233664

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