Journal of Applied Engineering and Technological Science Vol 6. 2025: 1019-1039 A HEURISTIC ENHANCING ARTIFICIAL IMMUNE SYSTEM FOR THREE-DIMENSIONAL LOADING CAPACITATED VEHICLE ROUTING PROBLEM Peeraya Thapatsuwan1. Warattapop Thapatsuwan2*. Chaichana Kulworatit3 Department of Computational Science and Digital Technology. Faculty of Liberal Arts and Science. Kasetsart University Kamphaeng Saen Campus. Thailand 1,2 Department of Computer Science. School of Science. King MongkutAos Institute of Technology Ladkrabang. Thailand3 t@ku. Received: 12 October 2024. Revised: 11 April 2025. Accepted: 13 April 2025 *Corresponding Author ABSTRACT This study addresses the Three-Dimensional Loading Capacitated Vehicle Routing Problem . L-CVRP), a highly complex NP-hard problem that combines vehicle routing with spatially constrained threedimensional bin packing. To tackle this challenge, we propose an enhanced Artificial Immune System (En-AIS) that integrates a novel local search heuristic called AuBring-i-to-j,Ay designed to improve routing feasibility and loading efficiency. The En-AIS algorithm is further refined through rigorous parameter tuning using a full factorial design and ANOVA analysis. Comparative experiments were conducted against conventional AIS and the Firefly Algorithm (FA) across 27 benchmark instances. Results demonstrate that En-AIS consistently outperforms both baseline methods in terms of solution quality, achieving an average improvement of 15Ae20% while maintaining competitive computational times. These findings highlight the algorithmAos robustness and its practical potential for application in logistics and supply chain optimization tasks involving joint routing and loading decisions. Keywords: Three-Dimensional Loading Capacitated Vehicle Routing Problem . L-CVRP). Artificial Immune System. Firefly Algorithm. Metaheuristics. Bring-i-to-j Heuristic. Optimization Algorithms. Introduction Logistics plays a crucial role in the global economy and society by facilitating the efficient movement of goods and people. Transportation costs significantly influence the price of consumables and commodities, thereby affecting overall economic efficiency. In 2021, the global logistics market was valued at over C8. 4 trillion and is projected to exceed C13 trillion by 2027, accounting for approximately 10. 7% of the global GDP (Placek, 2. The escalating complexity of supply and distribution networks has amplified the importance of optimizing packing and routing processes, which are pivotal in determining shipping costs. Addressing these factors can significantly reduce logistical expenses and enhance overall supply chain Enhancing on-time delivery not only fosters improved customer service but also provides organizations with a substantial competitive advantage. In this context, the Three-Dimensional Loading Capacitated Vehicle Routing Problem . L-CVRP) has gained increasing attention due to its practical significance in various industries, including e-commerce, automotive, and express delivery. The 3L-CVRP is an NP-hard problem that combines the challenges of serving multiple customers with a fleet of vehicles and efficiently loading rectangular boxes into containers, all while minimizing the total travel distance. The objective is to achieve the lowest overall transportation cost by identifying the shortest route for each vehicle and optimizing the loading sequence. The 3L-CVRP is not only theoretically complex but also practically impactful. represents a class of logistics problems where the efficiency of delivery operations depends on the joint optimization of routing and space-constrained loading. Effectively solving the 3LCVRP can directly lead to reduced transportation costs, improved vehicle utilization, and enhanced customer satisfactionAiparticularly in industries facing tight delivery schedules and spatial constraints, such as e-commerce, grocery distribution, and parcel logistics. Due to the Thapatsuwan et al A Vol 6. 2025: 1019-1039 problemAos NP-hard nature and real-world relevance, it continues to attract significant attention in combinatorial optimization and logistics research. The complexity of 3L-CVRP arises from simultaneously optimizing routing decisions and packing strategies within vehicle capacity and stability constraints (Fuellerer et al. , 2010. Gendreau et al. , 2. Exact optimization methods become impractical for larger problem instances, prompting extensive research into metaheuristic algorithms as viable alternatives. Nature-inspired metaheuristics have demonstrated robust performance in solving complex combinatorial problems, including vehicle routing problems (VRP). These algorithms can be categorized into physically-based methods . Simulated Annealin. , socially-based methods . Tabu Searc. , and biologically-inspired methods . Genetic Algorithms. Ant Colony Optimization. Firefly Algorithm, and Artificial Immune Syste. (Engin & Doyen, 2004b. Yang, 2. While substantial research has employed metaheuristics such as Genetic Algorithms (Chen et al. , 2. Tabu Search (Meliani et al. , 2. , and Adaptive Large Neighborhood Search (Qi et al. , 2023. Wang et al. , 2. , relatively few studies have effectively applied Artificial Immune Systems (AIS) or Firefly Algorithms (FA) specifically to the 3L-CVRP, indicating a clear research gap in the current literature (Chi et al. , 2025. Leloup et al. , 2. Existing AIS implementations typically employ generic mutation and selection processes, often limiting their performance in solving highly constrained and complex loading and routing problems (Freitas & Timmis, 2003. Garrett, 2005. Hart & Timmis, 2. Conventional AIS explores solution spaces via simplistic mutation mechanisms without targeted local optimization, frequently resulting in suboptimal solutions and slower convergence (Timmis. Recent literature indicates that targeted heuristic improvements and hybridization within AIS can substantially enhance its capability to handle real-world VRP complexities and constraints (Chi et al. , 2025. Leloup et al. , 2025. Wang et al. , 2. This paper proposes a novel heuristic-enhanced AIS algorithm designed explicitly for the 3L-CVRP to bridge this research gap. Our approach differentiates itself from traditional AIS methods by integrating a specialized local search heuristic termed "Bring-i-to-j. " This heuristic systematically exploits local improvements by efficiently relocating items within and across vehicle loading sequences, enhancing route feasibility, load stability, and space utilization. Additionally, our work rigorously fine-tunes algorithm parameters through factorial experimental design, systematically optimizing performanceAian essential step frequently overlooked in previous AIS studies (Aytug et al. , 2. Thus, this research significantly contributes by addressing the explicitly identified gap through advanced heuristic integration and rigorous parameter optimization, providing substantial performance improvements over existing approaches. The remaining sections of this paper are organized as follows. Section 2 reviews related literature, describes mathematical modeling and presents the details of the proposed heuristic-enhanced AIS. Section 3 presents experimental results and analysis, while Section 4 concludes the study and outlines directions for future research. Literature Review 1 Three-Dimensional Loading Capacitated Vehicle Routing Problem CVRP is known to be NP-hard, extending the scope of the classical Traveling Salesman Problem (TSP) by incorporating elements of the Bin Packing Problem (BPP) (Toth & Vigo. This extension involves finding the shortest route for visiting all customers and efficiently packing goods into vehicles, making it a more complex and realistic representation of logistics problems. The 3L-CVRP combines the Three-Dimensional Loading Problem . DLP) and the Capacitated Vehicle Routing Problem (CVRP). It involves determining a set of vehicle routes and a containment plan for efficiently loading the cargo on each route. Each route starts and ends at the warehouse, aiming to achieve the shortest total distance between shipments or the minimum traveling cost. While these objectives are often aligned, they can differ in certain scenarios where, for example, toll roads or fuel costs influence the cost efficiency differently from distance. Thapatsuwan et al A Vol 6. 2025: 1019-1039 The rectangular cargo will be loaded into the truck's loading area for delivery to the The loading area may not necessarily be square, aligning with the rectangular nature of the cargo. Packaged goods must not exceed the volume and weight that the vehicle can In the previous literature, 3L-CVRP considers the following assumptions (Bortfeldt. Doerner et al. , 2007. Fuellerer et al. , 2010. Gendreau et al. , 2. On one route, only one vehicle will be used . ne car per rout. Every vehicle will have a container volume, and the payload will be the same. Boxes or products are rectangular with different sizes. Products of the same customer must be in the same car or path. The total weight of the box in each car must not exceed the weight the car can carry. The total volume of all product boxes in each car must not exceed the volume the car can The edge of the product box must be placed parallel to the edge of the container or parallel to the x, y, and z axes without any part of the box coming out of the container. The top box supports the bottom and stabilizes it by filling the remaining space in the container with foam rubber. Boxes that must be delivered to the last customer should not be placed so that it will prevent boxes from reaching the earlier customers by using a first-in, first-out rule. A mathematical model is based on (Kyk & Topaloglu Yildiz, 2. , and a mathematical model for minimizing the efficiency of volume usage for vehicle containers has been developed by previous research (Chen et al. , 1995. Christensen & Rousye, 2. The 3L-CVRP is made up of two parts: the transport and the loading or packaging. Part of product transportation can be explained by the complete graph G = (V. E), which consists of a set of vertices and edges. The problem can be described as follows: . Define the set of N 1 transmission points (V = 0, 1. N), and let the single depot be at point 0 and the customer at point 1 to N. Determine E as the set of edges . , . connecting all vertex pairs. Let Dij represent the distance between nodes i to j. Set K to represent the number of homogeneous vehicles with the same weight and volume limitation. Assign the volume of packing area as Vol = Lc * Wc * Hc, where Lc. Wc, and Hc are the respective length, width, and height of cth vehicle containers. This problem aims to achieve the shortest total distance for the cargo. In the loading or packaging section is to minimize the number of vehicle containers required to pack the product. The problem model is described as follows: . Define a set of rectangular-shaped cargo boxes, the total number of B boxes ( Each box has a Oc length, width, and height in lb, wb, and hb, respectively . = 1, 2,A. B). Set unlimited vehicle containers with length, width, and height in Lc. Wc, and Hc, respectively . = 1, 2,A. K). The length, width, and height of the box must not exceed the length, width, and height of the vehicle containers . b O Lc, wb O Wc, and hb O H. In this research, the product box cannot be rotated for easy loading and unloading of boxes. Therefore, the last box delivered to the customer should not be blocked using the last-in, first-out (LIFO) rule. In terms of loading or packaging, assign i to represent each customer, where i = 1, 2, . Each customer has a demand for b boxes. Let Bi represent the total number of boxes of customer ith . = 1, 2, . Define Iib instead of the item of customer ith, the box bth ( { }), which consists of lib, wib, and hib representing the length, width, and height of the box bth of customer ith. The total volume of each customer's product is voi = Oc The formulation of the 3L-CVRP is as follows: Indices: i, j b, a Customers ith and jth . , j = 1, 2,A. N) Vehicle containers cth for each vehicle . = 1, 2,A. K) Boxes bth and ath . , a = 1, 2,A. Parameters: Total number of customer service nodes . , 1, 2. N), 0 is the depot Total number of vehicles Thapatsuwan et al A Vol 6. 2025: 1019-1039 Vol Maximum vehicle container volume Total volume of each customerAos product Dij Distance from node i to j Fixed costs associated with using the cth vehicle Total number of boxes of customer ith . = 1, 2, . Total number of boxes ( Oc lb, wb, hb The length, width, and height of box bth lib, wib, hib The length, width, and height of box bth of customer ith Lc. Wc. Hc The length, width, and height of vehicle containers cth xb, yb, zb The coordinates of a back-left-bottom corner that specifies the placement of boxes bth . b, yb, zb C . An arbitrarily large number used in Big-M constraints. Decision variables . binary variabl. Equals 1 if the vehicle containers cth travels from node ith to jth . 0 otherwise. Equals 1 if the vehicle containers cth is selected. 0 otherwise. lb , lb , lb Equals 1 if the length of the box bth is parallel to the X. Y, or Z axes. wbX, wbY, wbZ Equals 1 if the width of the box bth is parallel to the X. Y, or Z axes. hbX, hbY, hbZ Equals 1 if the height of the box bth is parallel to the X. Y, or Z axes. Equals 1 if the box bth is placed on the left side of the box ath. 0 otherwise. Equals 1 if the box bth is placed on the right side of the box ath. 0 otherwise. Equals 1 if the box bth is placed on the back of the box ath. 0 otherwise. Equals 1 if the box bth is placed in front of the box ath. Equals 1 if the box bth is placed above the box ath. 0 otherwise. Equals 1 if the box bth is placed under the box ath. 0 otherwise. Equals 1 if the item of customer ith, box bth is selected to be placed in the vehicle containers cth. 0 otherwise. Objective function: Oc Oc Oc Oc Subject to: { } { } Oc Oc { } b * lbX) . b * wbX) . b * hbX) O xa . - beb. * M. Ab, a, b