Figures
Abstract
Port transport efficiency has become an urgent issue that needs to be improved, especially the coordination among truck drivers during peak hours. Previous studies mainly focus on one-way container transportation logistics issues, but container movements often occur simultaneously in both directions in practice. Therefore, this study aims to minimize truck companies’ operational costs by establishing an optimization model for external truck scheduling. This model takes soft time windows and an appointment feedback mechanism into consideration. Building upon the traditional Ant Colony Optimization (ACO) algorithm, this paper introduces an adaptive version of the ACO algorithm. The improved Ant Colony Optimization algorithm (IACO) incorporates a time window width impact factor and a time deviation consideration into its state transition rules, enhancing its adaptability. Furthermore, by integrating Particle Swarm Optimization (PSO), the algorithm intelligently tunes the pheromone and heuristic factors of ACO, achieving automatic parameter optimization. Through case studies, we have demonstrated the superior performance of this algorithm in addressing relevant problems. The results show that, in terms of truck operational costs, the improved algorithm reduces costs by 10.96% and 3.02% compared to traditional Ant Colony Optimization and Variable Neighborhood Search algorithms, respectively, and by 4.89% compared to manual scheduling. These results demonstrate that the adaptive Ant Colony Optimization algorithm exhibits clear advantages in optimization capability and stability. The algorithm effectively allocates truck tasks within each time window, thereby reducing fleet costs, improving truck turnover efficiency, mitigating port congestion, and ultimately enhancing container logistics efficiency, achieving the goals of peak shaving and valley filling.
Citation: Huang P, Wang H, Tan F, Jiang Y, Cai J (2025) Optimization of external container delivery and pickup scheduling based on appointment mechanism. PLoS ONE 20(2): e0318606. https://doi.org/10.1371/journal.pone.0318606
Editor: Toufik Mzili, Chouaib Doukkali University: Universite Chouaib Doukkali, MOROCCO
Received: August 26, 2024; Accepted: January 18, 2025; Published: February 21, 2025
Copyright: © 2025 Huang et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: “All relevant data are within the paper and its Supporting information files.”
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
Introduction
Container transportation, as a primary mode of maritime transport, has experienced significant growth due to its standardized, high-density, and efficient characteristics. Nowadays, a large terminal handles millions of containers annually [1]. The increase in container throughput means that the port needs to handle more cargo within the same time frame, which places higher demands on the port’s container transportation efficiency. Container trucks, as the main transportation mode between the port and external yards, can be divided into internal and external trucks based on their operational range. Internal trucks primarily handle container transportation within the port, while external trucks are responsible for container transportation between the port and inland areas. Compared to internal trucks, external trucks operate over a broader range, and their scheduling efficiency directly impacts the port’s overall operational costs, container transfer efficiency, and the functioning of the entire logistics system.
Due to factors such as the uncertainty of vessel arrival times and fluctuations in road traffic conditions, there is often a situation where a large number of trucks arrive at the port simultaneously during peak hours [2]. Due to the limited port capacity, it is difficult to efficiently process all arriving trucks within a short time. Trucks are forced to wait in long queues both inside and outside the port, leading to a significant decrease in port operation efficiency. This not only prolongs the time containers spend at the port but also prolongs the high-load operation of the yard cranes [3].In response to this challenge, considering the long construction period and high investment required for port expansion, the Truck Appointment System (TAS) has emerged as an effective solution [4]. The system can avoid a large number of trucks concentrating at the port during peak hours by scheduling and accurately allocating truck arrival times in advance, thus reducing port congestion to some extent and improving container handling efficiency [5]. For instance, the successful implementation of the TAS at the Port of Vancouver has demonstrated its significant effectiveness in optimizing port operations and enhancing transportation efficiency [6].
The TAS System is an integrated management system composed of the external truck scheduling system, internal operations system, comprehensive information management system, and collaborative scheduling system. Among these components, the external truck scheduling system plays a crucial role in optimizing the scheduling order and arrival times of container trucks, thereby enhancing port container handling efficiency and reducing truck fleet operational costs.
Research on external truck scheduling systems at home and abroad can be broadly classified into three categories: (1) TAS system [7–9]; (2) Queuing system at the gate [10,11]; (3) Time-Dependent pricing [12,13].
In terms of TAS, existing research primarily focuses on optimizing the scheduling of off-terminal trucks for different appointment periods. For example, Huynh et al. [14] studied the impact of truck appointment systems on truck turnaround time and crane utilization at container terminals. They proposed a methodological approach through mathematical modeling to assist terminal operators in determining the optimal number of trucks to be accepted within the appointment system. He et al. [15] considered constraints related to truck loading capacity and ARMG mobile operations, maintaining application balance between different periods and stages while optimizing truck allocations for each period. Ramirez et al. [16] considered the impact of the TAS system on terminal yard operations, aiming to reduce container rehandling and truck turnover time, using discrete event system modeling and solving with heuristic algorithms. Ahmed Azab et al. [17] in order to address the issue of trucks spending excessive time waiting at the terminal, combined the actual situation of transportation companies and terminals, and proposed a simulation optimization method aimed at reducing the total turnover time of trucks. Most of these methods focus on optimizing the scheduling of the external trucks delivery process from the perspective of terminal operations, without considering the interests of coordinating truck companies.
Regarding research on gate queue management, some scholars have focused on optimizing the waiting time of external trucks at terminal gates or altering queuing rules to adjust truck arrival shares across different periods, thereby maximizing gate resource utilization. Dekker R et al. [18] proposed establishing a Chassis Exchange Terminal (CET) as an offshore terminal, where CET and the terminal jointly handle chassis exchange during peak periods and perform container transportation during off-peak periods. This approach aims to reduce the burden on terminal gates and improve overall operational efficiency. Zhang et al. [19] developed a BCMP queuing network model to describe the queuing process of trucks at the terminal and designed a method based on Genetic Algorithm (GA) and Point Steady-State Fluid Flow Approximation (PSFFA). Maurício et al. [20] employed data mining techniques, using key performance indicators such as the average and maximum waiting times of trucks at entry gates and the percentage of missed appointments to balance truck arrivals across time windows and reduce waiting times, designing the PFFA algorithm to calculate truck waiting times. Chen et al. [21] considered the impact of arriving vessels on truck fleets. Based on the theory of Variable Delivery Time Windows (VDTWs), they proposed a method of controlling truck arrival times using “vessel-associated time windows.” By integrating queueing theory, they established an optimization model for port arrival time windows and solved it using a hybrid genetic algorithm. However, limited terminal land resources and the potential for terminal yard congestion due to a large influx of trucks passing through the gates in a short period remain challenges.
Some researchers have addressed congestion issues by implementing additional charges during peak periods. For example, Chen et al. [22] proposed congestion relief fees for each period to reduce truck delays and congestion during peak hours. The PierPass program, initially introduced in 2005 by the West Coast Marine Terminal Operators Agreement (WCMTOA), charges a peak period fee for container trucks during weekday afternoons (3 p.m. to 6 p.m.), aiming to shift cargo handling to off-peak periods and thereby distribute traffic more evenly. Although peak period fees have alleviated congestion to some extent, they have also resulted in losses for cargo owners and truck companies. While this paper does not employ such methods, it establishes maximum acceptance capacities and flexible time windows for terminal gates, encouraging trucks to avoid peak times and arrive punctually.
Currently, most research on the scheduling between external yards and terminals has focused on one-way transportation, often emphasizing the interests of terminal operators. The main objectives of such studies have been to minimize truck turnaround time or reduce terminal operating costs. Additionally, traditional methods typically treat time windows as rigid constraints, making them difficult to adapt to the complexities of real-world scenarios, which results in lower flexibility in scheduling solutions. Furthermore, traditional approaches such as Ant Colony Optimization (ACO) often rely on empirically set parameters, which cannot dynamically adjust to meet the varying needs of different problems, thus limiting the algorithm’s solving efficiency and the quality of the solution.
To address these issues, this study proposes a truck scheduling model for external yards based on an appointment system, with the objective of minimizing fleet operational costs. An improved Ant Colony Optimization (IACO) algorithm is designed, which optimizes the pheromone matrix and state transition formulas. The model introduces time deviations and time window widths, enhancing the adaptability and optimization capability of the scheduling. Moreover, by integrating Particle Swarm Optimization (PSO) to dynamically search for the key parameters of the Ant Colony Algorithm, the model achieves adaptive parameter adjustment, significantly improving the algorithm’s convergence efficiency and solution quality.
Problem description and formulation
Problem description
This study investigates the bidirectional scheduling and transportation between multiple external yards and a single terminal, incorporating soft time windows and penalty mechanisms to flexibly adjust the internal operation sequences of container trucks, thereby reducing operational costs for trucking companies.
External truck scheduling is a key link in port logistics, influenced by various complex factors. The primary factors include gate throughput efficiency, time window duration, traffic conditions, and yard loading and unloading efficiency. As a result, the round-trip time of external truck transportation operations is uncertain, making it difficult to predict the arrival time and volume of trucks at the port, which further complicates the scheduling process. Fig 1 illustrates the layout of the external truck collection and distribution operation system at the port.
Due to the uncertainty in container truck arrival times, during peak hours, the concentration of a large number of trucks arriving at the port can cause traffic congestion in the port area, overload yards, operating equipment, and reduce overall operational efficiency. In contrast, during off-peak hours, port resources may remain underutilized, leading to low operational efficiency and increased idle costs. By introducing the TAS, the 24-hour day is divided into different time slots. The port can set the time window width and the maximum number of containers to be handled in each time slot based on factors such as the operational capacity of each period, yard space, and the number of import and export containers. This ensures balanced utilization of port resources and improves overall operational efficiency.
Trucking companies optimize the internal operation sequences of container trucks according to the scheduling plan prepared by the terminal. The trucks complete the loading and unloading operations within the designated time frame, thereby reducing operational costs. The process of truck arrival at the port based on the TAS system is shown in Fig 2:
The TAS system continuously provides feedback and makes adjustments, balancing the number of trucks arriving at the port during each time period through the use of soft time windows, optimizing the container transport operation process, and reducing truck waiting times at the port, which in turn alleviates yard congestion. This system’s coordination and optimization not only improve the overall operational efficiency of the port but also help trucking companies reduce empty load rates and operational costs.
Building upon this, this paper takes the scenario of a single terminal and multiple external yards for container pickup and delivery as a background. By integrating soft time windows and penalty mechanisms, it develops an external truck scheduling optimization model based on a reservation feedback mechanism. The main goal of this model is to minimize the overall cost of the fleet while completing the transport tasks, from the perspective of optimizing the transportation quota for each time period. To achieve this, an IACO algorithm is designed to solve the model, aiming to enhance the optimization results and solving efficiency.
Parameters and variables
For simple tracking, all notations used in the paper are summarized in Table 1.
Assumptions
Several model settings and assumptions are outlined as follows to better clarify the problem:
- (1). Each reservation period is set to two hours, with the total container volume as well as the reservation quotas for each period being predetermined.
- (2). The terminal only accepts container collection tasks that are scheduled within the specified time frame; tasks without a reservation or outside the designated period are not accepted. Container distribution tasks are not constrained by reservation periods but must be completed within the stipulated timeframe.
- (3). The distances between the terminal and each depot are fixed and unaffected by traffic conditions, assuming that all drayages arrive on time.
- (4). Drayage transport time includes both empty and loaded transport times, determined by the ratio of the distance between locations and the respective speeds.
- (5). Yard operation time includes waiting and loading/unloading times.
- (6). Terminal operation time includes gate waiting times, waiting area waiting times, loading/unloading times, and internal driving times within the terminal; the average terminal operation time is used to represent waiting area waiting times, loading/unloading times, and internal driving times, which vary across terminals.
- (7). Each container drayage truck can only carry one standard container of the same specification, without considering other container types. Besides, all performance indicators for container drayage trucks are assumed to be identical.
Model construction
This paper constructs a model for the simultaneous pickup and delivery operations of external container trucks under the mechanism of appointment, with the condition of soft time windows. The objective is to minimize the fleet operation cost, where the delivery objective function is shown in Eq (1).
Eq (1) is the objective function, which aims to minimize the total cost composed of transportation costs, transfer costs, fixed costs, and penalty costs. Eqs (2–5) respectively illustrate the specific calculation methods for the aforementioned costs. Specifically, Eq (2) is the transportation costs; Eq (3) represents the cost associated with reallocating idle trucks from one depot to another that requires additional trucks; Eq (4) is the fixed expenses of trucks, including driver costs and wear-and-tear costs of those trucks; Eq (5) is the penalty fees incurred by container delivery trucks passing through the gate, whose details are presented in Eq (6).
Eqs (7–11) are constraint conditions. Specifically, Eq (7) ensures that all trucks departing from a container depot will ultimately return to the same depot. Eq (8) represents the constraint on the total number of containers delivered from the depot to the terminal, while Eq (9) represents the constraint on the total number of containers picked up at the terminal. Eq (10) constrains the number of trucks arriving at the terminal gate to not exceed its maximum capacity. Eq (11) represents the constraints for 0-1 variables. Eqs (12 and 13) are time constraints, ensuring that the delivery and pickup tasks form a closed loop. Eq (14) ensures that the truck arrival times fall within the terminal’s appointment time window and the flexible time range.
IACO algorithm design
Algorithm flow.
The traditional ACO algorithm simulates the collective intelligence process of ants searching for food through pheromone transmission. The core idea is that multiple ants randomly traverse the solution space, selecting their movement direction based on the pheromone concentration on the path and heuristic information, continuously updating the pheromone concentration to increase the probability of selecting optimal paths. Although traditional ACO has achieved good results in many optimization problems, it is prone to getting stuck in local optima during the early stages, leading to low search efficiency. Additionally, due to the pheromone update mechanism, the algorithm converges slowly and often suffers from premature convergence. Therefore, traditional ACO has certain limitations when solving complex problems.
To overcome these issues, this paper proposes an IACO algorithm to solve the model. The improved algorithm introduces an adaptive factor in the pheromone update process, which strengthens the early-stage search and prevents premature convergence. Additionally, the algorithm incorporates an elitist ant system to ensure that the pheromone on the optimal path is reinforced in a timely manner. PSO is also used to automatically tune the algorithm’s parameters, further reducing the likelihood of local optima.
During the iteration process of the algorithm, static parameters are used for optimization in the initial phase to ensure gradual convergence towards the objective. In the later stages, parameters are dynamically adjusted through PSO, effectively mitigating premature convergence. Each ant’s path represents the transportation route of container trucks. The total operational cost of the truck fleet is used as the fitness function, and in conjunction with the actual conditions of the truck scheduling under the appointment system, the pheromone matrix and state transition rules are redesigned to better simulate the actual scheduling problem and optimize the total fleet cost. The process of the improved algorithm is shown in Fig 3.
Pheromone update rule.
Unlike the traditional Vehicle Routing Problem with Time Windows (VRPTW), which typically involves single-point transport, container trucks in this context are required to perform bidirectional transport between multiple depots and terminals. Therefore, pheromones are set as a four-dimensional matrix, representing the sequence of external truck dispatches, time window, origin, and destination, respectively. Pheromones are updated after all ants complete a single iterative process and an additional pheromone update is applied to the best-performing ant identified so far. The pheromone update rules for both container pickup and delivery scenarios are the same. The following are the formulas for updating the pheromone trail related to delivery tasks performed by terminal trucks:
Where, ρ represents the pheromone evaporation rate, τijntk(m) denotes the pheromone concentration of truck k delivering from depot i to terminal j during time period t at iteration m, c is a constant, favg is the average fitness of all current feasible solutions, and fbest is the fitness of the best solution found so far, which corresponds to the minimum cost of the truck companies. Δτ(m) is the amount of pheromone increment for ants. Q is the pheromone increment constant. f is the fitness function value for the ant. Xijntk is the decision variable indicating whether truck k delivers from depot i to terminal j during time period t, and e represents the pheromone weight of elite ants. Δτ’(m) is defined similarly to Δτ(m), but f corresponds to the fitness function of elite ants. To prevent excessive pheromone values that may lead to local optima, upper and lower limits are set for the pheromone levels.
The IACO algorithm could reduce the pheromone evaporation rate in the early iteration stage and dynamically adjust the evaporation rate according to the number of iterations. The algorithm enhances the search capability in the initial stages and thus avoids premature convergence.
State transition rule.
The state transition rule in this study is determined by the roulette method. The probability of selecting a particular path is influenced by pheromone concentration along with the heuristic factor, determinants of time window width, and the priority level of loaded versus empty trips. It should be noted that the probability of a truck selecting a customer is not related to the path length but is instead dependent on the degree of time deviation. The formulas for the state transition rule are as follows:
Eq (17) is the state transition formula, where Pijntk is the probability that truck k moves from depot i to terminal j in the nth operation during time period t. τijntk and ηijntk are the pheromone factor and heuristic factor respectively. Sijntk is the time offset factor. Eqs (18 and 19) represent the degree of time offset, influencing the magnitude of heuristic factors, where a1, a2, b1, and b2 are constant parameters. Eq (20) defines the duration of the time window. Eq (21) introduces factors for overload and empty load effects, where λ is a constant parameter.
PSO velocity and position update equations.
Ant Colony Optimization mimics the natural phenomenon where ants use pheromones to select paths during foraging. In the algorithm, ants are more likely to deposit pheromones on paths with higher pheromone concentrations, reinforcing these paths through positive feedback. By adjusting two key parameters, pheromone weight (α) and heuristic weight (β), the algorithm strikes a balance between exploring new paths and exploiting existing good paths. To further enhance the performance of ACO, this study incorporates PSO to automatically adjust the heuristic and pheromone factors in ACO. PSO dynamically optimizes the parameters, improving the algorithm’s adaptability and robustness to different problem instances, thereby enhancing the quality of the solutions. The following are the updated equations for particle velocity and position in PSO:
Eq (22) indicates that the d-dimensional velocity of particle i in the kth iteration consists of three parts, i.e., the particle’s previous velocity, the cognitive component, and the social component. The cognitive component is the difference between the particle’s current position and the best position found during the iteration. The social component is the distance between the particle’s current position and the best position found by the entire swarm. Eq (23) indicates that the updated position of the particle is the sum of its previous position and the updated velocity of the particle.
Tabu list setup.
The truck scheduling problem under the appointment mechanism can be viewed as a variant of the Vehicle Routing Problem with Time Windows, but it differs from the traditional vehicle scheduling problem. Specifically, trucks are allowed to make multiple round trips if customer demands are not met. After each delivery or pickup task at a yard or terminal, the demand at the customer point decreases. When the demand at a customer point reaches zero, the point is added to the tabu list, indicating that no further tasks will be assigned to it. The algorithm continues simulating the scheduling process until all customer demands are satisfied. This process is achieved through iterative cycles until all tasks are completed.
Pseudocode.
The IACO algorithm proposed in this paper is an improvement based on the ant colony optimization algorithm, combined with particle swarm optimization for automatic parameter tuning. The pseudocode is shown in Fig 4.
Experimental design and results
Experimental setup
This study aims to validate the effectiveness of the proposed external truck scheduling model and the improved Ant Colony Optimization algorithm. To this end, a case study is constructed, simulating the task of a trucking company responsible for handling container delivery and pickup tasks between a terminal and six external yards within a 24-hour task cycle. The time information for a delivery task from external yard i to terminal j can be represented as follows, where trij and tdij denote the start and end times of the delivery task time window, respectively, with the time unit in minutes. Qij and Qji represent the number of delivery tasks from yard i to terminal j and the number of pickup tasks from terminal j to yard i, respectively.
Detailed information on the container delivery tasks between the terminal and each external yard is presented in Table 2. This table provides a comprehensive list of the task times and task quantities between each yard and the terminal.
The TAS divides the 24-hour day into 12 periods, each lasting 2 hours. The maximum number of trucks (Rt) that the terminal can accept during each period is shown in Table 3.
The route distances between each external yard and the terminal are shown in Table 4.
The full-load speed of the truck is 40 km/h, while the empty-load speed is 60 km/h. The fuel consumption costs per kilometer for full-load and empty-load operations are 2.8 and 1.76 RMB/km, respectively. The idling fuel consumption cost is 6.4 RMB/h. The truck driver’s salary and depreciation costs are 400 RMB/day, and the waiting time at the yard is 120 minutes. The remaining key parameters are shown in Table 5.
In this study, we configured the parameters for the IACO algorithm as follows: the ant colony consists of 10 ants, with pheromone increments set to 100 for ordinary ants and 1,000 for elite ants to reinforce optimal paths. The constant c is set to 5,000 to balance pheromone and heuristic information. The pheromone concentration is restricted between 1 and 15 to maintain diversity, while the weights for the heuristic and pheromone factors are adjusted between 1 and 5 to balance exploration and exploitation. In the Particle Swarm Optimization algorithm, the initial velocity inertia weight is set to 0.8, and the learning factor is set to 1.5 to optimize individual and group learning. These parameter settings are designed to enhance the performance of the algorithm and ensure its effectiveness in solving optimization problems.
Result analysis
The impact of different evaporation rates on the performance of IACO.
In the Ant Colony Optimization algorithm, the pheromone evaporation rate is a critical parameter that influences the convergence speed of the algorithm and its ability to avoid local optima. By simulating the natural dissipation of pheromones in nature, the evaporation rate helps to reduce outdated pheromones, making space for the deposition of new pheromones, and thereby promoting the exploration of better paths. Proper adjustment of the evaporation rate plays a key role in balancing global search and local exploitation, thus optimizing the performance of the algorithm.
To determine the optimal value of the pheromone evaporation rate, several experiments with evaporation rates set at 0.4, 0.6, and 0.8 were conducted. Each experiment was carried out under the same initial conditions and parameter settings to ensure the comparability and reliability of the results. By comparing the experimental outcomes at different evaporation rates, we can analyze the impact of the evaporation rate on the performance of the improved ant colony algorithm and select the optimal evaporation rate for further analysis. Fig 5 shows the iterative results of the IACO algorithm under different pheromone evaporation rates.
It is evident from the figure that the algorithm performs best with an evaporation rate of 0.6. Although the convergence speed of the algorithm is relatively slow in the early stages under an evaporation rate of ρ = 0.6, the algorithm effectively prevents excessive accumulation of pheromones and avoids getting trapped in local optima as the number of iterations increases. This is because a moderate evaporation rate results in a more balanced distribution of pheromones across paths, thereby enhancing the algorithm’s global search capability.
In contrast, with an evaporation rate of ρ = 0.4, the slower evaporation rate causes excessive accumulation of pheromones on paths, which makes it easier for the algorithm to get stuck in local optima and difficult to escape from. Although the algorithm converges faster in the early stages, the overall optimization performance is poor.
Conversely, with an evaporation rate of ρ = 0.8, the pheromone evaporation is too rapid, leading to minimal accumulation of pheromones on good paths, which impairs the algorithm’s ability to recognize high-quality paths. This causes the algorithm to tend towards random search and results in poorer optimization performance. While a high evaporation rate can prevent excessive accumulation, it also diminishes the guiding effect of pheromones, making the search process less directed.
Considering the experimental results under different evaporation rates, it is concluded that the improved ant colony algorithm performs best with an evaporation rate of ρ = 0.6. At this rate, the algorithm achieves optimal optimization performance while maintaining global search capability and avoiding local optima.
These results indicate that a moderate pheromone evaporation rate is crucial for improving the performance of the ant colony algorithm. Choosing an appropriate evaporation rate not only enhances the convergence speed but also strengthens global search ability, providing effective solutions to complex optimization problems. Therefore, in subsequent experiments, we used an evaporation rate of 0.6 and compared the performance of other algorithms under the same evaporation rate.
Comparative analysis of different algorithms under the same evaporation rate.
Based on the improved ant colony algorithm for the scheduling scheme under the reservation mechanism, the traditional ant colony algorithm and the Variable Neighborhood Search(VNS) algorithm were designed for the same scheduling scenario. For ease of comparison, the data in Table 6 are all iteration results with ρ = 0.6, including the minimum cost, average cost, number of vehicles, and overload rate.
From Table 6, it can be observed that the IACO algorithm yields a scheduling solution with a cost reduction of 10.96% and 3.02% compared to the traditional ant colony algorithm and the VNS algorithm, respectively. Additionally, the average cost after iterations with the improved ant colony algorithm is 7.35% and 15.15% lower than that of the traditional ant colony algorithm and the VNS algorithm, respectively. It can be seen from Figs 6 and 7 that as the number of iterations increases, the cost of the optimal scheduling solution using the improved ant colony algorithm shows less fluctuation. Due to the higher pheromone evaporation rate and the constant increase of pheromones by elite ants, the scheduling solution approaches the optimal solution early in the iterations. Although there is a tendency to get trapped in local optima at certain points, the results eventually converge due to adjustments made by the PSO algorithm. After iterations, the final best cost is 74,887 RMB.
It can also be seen from Table 6 that the optimal scheduling solution produced by the improved ant colony algorithm has an overload rate of approximately 71.2%. Under the same conditions, this is superior to the results of the traditional ant colony algorithm and the VNS algorithm. In port operations, the overload rate typically ranges from 50% to 80%. A higher overload rate indicates more efficient utilization of logistics resources such as vehicles and drivers, thereby improving loading and unloading efficiency, reducing the mileage of transport vehicles, and lowering transportation costs. The results demonstrate that the improved ant colony algorithm not only excels in cost optimization but also significantly enhances resource utilization and operational efficiency. By achieving a higher overload rate, the improved algorithm can more effectively organize and schedule vehicles, allowing each trip to carry more goods, thereby reducing empty runs and repetitive transportation.
Regarding the number of trucks required for the optimal scheduling solution, the improved ant colony algorithm consistently uses fewer trucks than the traditional ant colony algorithm and the VNS algorithm. For a truck fleet, the number of trucks is limited; therefore, using fewer vehicles means that the remaining vehicles can perform additional tasks, thus increasing dispatch efficiency. The results indicate that the improved ant colony algorithm not only performs excellently in optimizing costs and improving overload rates but also significantly reduces the number of trucks required. This means that under the same transportation demand, the improved algorithm can schedule vehicles more effectively, maximizing fleet resource utilization. Fewer vehicle requirements not only reduce scheduling difficulty but also provide the fleet with greater flexibility to handle unexpected situations or other transportation tasks.
Compared with manual scheduling.
Traditional truck companies typically rely on manual experience for scheduling during pickup and delivery tasks, similar to a greedy strategy, with a primary focus on heavy-load transport. In most cases, schedulers will select the nearest node among all available heavy-load transport nodes at the current time as the destination. If no heavy-load nodes are available, the vehicle will enter a waiting state and attempt the transportation task again after a certain period, until all transportation tasks are completed. A comparison of the results between the IACO algorithm and the traditional scheduling approach is shown in Table 7.
The traditional scheduling approach relies on the experience and intuition of the scheduler, which may not fully consider all variables, leading to suboptimal resource utilization. As a result, manual scheduling tends to result in lower operational costs and fewer trucks compared to the IACO algorithm. However, in terms of other metrics, the manual scheduling approach does not show a significant decrease in heavy-load transport rates. This is mainly due to its reliance on a greedy strategy. While this approach can obtain relatively good solutions in the short term, the scheduler’s manual experience struggles to comprehensively consider multiple influencing factors.
In contrast, the IACO algorithm, through systematic calculations and simulations, can evaluate the relationships between various variables more comprehensively, leading to more efficient resource allocation. The algorithm combines ant colony optimization with other heuristic techniques, using information sharing and adaptive mechanisms to adjust scheduling plans in real time, making it more adaptable to complex logistics environments than traditional scheduling.
Result statistics.
Table 8 shows the optimal scheduling order for each truck obtained by the improved ant colony algorithm. The left side of the table lists the required number of trucks, while the right side shows the specific scheduling routes for each truck, where 1 represents the terminal, and 2 to 7 represent different port yard numbers.
Fig 8 illustrates the comparison between the actual arrival quantity and the maximum possible arrival quantity at the terminal gate across 12 consecutive time periods. The orange bars represent the actual arrival quantities in each time period, while the black line indicates the maximum possible arrival quantity. The actual arrival quantity remains relatively stable across the time periods, with the improved ant colony optimization algorithm ensuring a more evenly distributed arrival of trucks across the time slots. This effectively prevents the over-concentration of truck arrivals during certain periods. Additionally, the number of trucks arriving in each time slot does not exceed the maximum reservation capacity of the gate, further validating that the algorithm not only meets system constraints but also optimizes the scheduling plan, ensuring smooth terminal operations.
In summary, in the truck scheduling under the appointment mode, the improved ant colony optimization algorithm, which integrates the advantages of the particle swarm optimization algorithm, outperforms traditional ant colony optimization, variable neighborhood search, and manual scheduling. In terms of minimum cost, the improved algorithm reduces the cost by 10.96% and 3.02% compared to traditional ant colony optimization and variable neighborhood search, respectively, and by 4.89% compared to manual scheduling. For average cost, the improved algorithm decreases the cost by 7.35% and 15.15% compared to traditional ant colony optimization and variable neighborhood search, respectively. Moreover, in terms of the number of vehicles required and the heavy-load rate, the improved ant colony optimization algorithm also performs exceptionally well.
The improved ant colony algorithm not only effectively reduces the waiting time for vehicles at the depot and terminal but also greatly enhances dispatch efficiency. By optimizing the scheduling scheme, this algorithm better coordinates and utilizes limited fleet resources, thereby improving the overall operational efficiency of the logistics system. Overall, the improved ant colony algorithm provides a highly efficient and cost-effective scheduling solution for ports and logistics centers, with broad application potential.
Conclusion
This paper focuses on optimizing the scheduling model for container truck fleets under a reservation mechanism, specifically targeting the delivery and pickup of containers. The goal is to minimize the operational costs of the fleet while meeting the demands of the terminal and depots within the specified time frame. A vehicle scheduling optimization model is designed, and both the IACO algorithm and PSO algorithm are proposed for solving the model. The performance of these algorithms is validated through comparative experiments. The main findings of the paper are as follows:
- (1). By analyzing the workflow of container delivery and pickup between multiple depots and a single terminal under the reservation mode, and considering the reservation quotas and flexible time windows, the paper aims to minimize fleet operational costs. Based on realistic assumptions, a scheduling optimization model for container delivery and pickup between depots and the terminal was constructed. The final result is the operational sequence for the container truck fleets of each depot.
- (2). Given the complexity of the model and the numerous factors involved, obtaining an optimal solution is challenging. The paper designs an improved ant colony algorithm to solve the model. This algorithm modifies the pheromone update rules from the traditional ant colony algorithm and introduces a time window width influence factor and time deviation degree in the state transition rules. It also combines PSO to automatically adjust heuristic influence factors and pheromone influence factors, thereby improving the ability to escape local optima. The results show that this algorithm significantly enhances optimization capability and stability compared to the traditional ant colony algorithm and the VNS algorithm.
- (3). To validate the model and solution algorithm, a set of experiments was conducted. The comparison results show that, in terms of minimum cost, the IACO algorithm reduces the cost by 10.96% and 3.02% compared to the traditional ACO and VNS algorithms, respectively, and by 4.89% compared to manual scheduling. Regarding the average cost, the improved algorithm decreases the cost by 7.35% and 15.15% compared to the traditional ACO and VNS algorithms, respectively. Additionally, improvements were observed in the number of vehicles used and the load rate.
Although this study successfully reduced fleet operational costs and partially addressed port congestion issues, further work is needed to improve terminal dispatch efficiency. First, additional factors affecting container truck scheduling can be considered in further work to better reflect real-world situations, such as vehicle speeds during peak hours, truck no-shows, and gate queuing patterns. Second, the model and the algorithms could be further ameliorated to better reduce fleet costs and improve dispatch efficiency.
Acknowledgments
The authors extend their heartfelt thanks to Dr. Chen for his invaluable guidance and contributions throughout the research process. His expertise has been pivotal in the progression of this work. Gratitude is also extended to Dr. Ouyang for her thorough review and constructive suggestions, which have significantly enhanced the quality of our study. We are further appreciative of the thought-provoking discussions that have been essential in shaping our ideas and approach.
References
- 1. Gharehgozli A, Zaerpour N, de Koster R. Container terminal layout design: transition and future. Marit Econ Logist. 2019;22(4):610–39.
- 2. Xu B, Liu X, Yang Y, Li J, Postolache O. Optimization for a multi-constraint truck appointment system considering morning and evening peak congestion. Sustainability. 2021;13(3):1181.
- 3.
Vacca I, Bierlaire M, Salani M, editors. Optimization at container terminals: status, trends and perspectives. Swiss Transport Research Conference; 2007.
- 4. Halim RA, Kwakkel JH, Tavasszy LA. A strategic model of port-hinterland freight distribution networks. Transp Res Part E Logist Transp Rev. 2016;95:368–84.
- 5. Giuliano G, O’Brien T. Reducing port-related truck emissions: the terminal gate appointment system at the Ports of Los Angeles and Long Beach. Transp Res Part D Trans Environ. 2007;12(7):460–73.
- 6.
Morais P, Lord E. Terminal appointment system study. Canada Csa Final Report Copy; 2006.
- 7. Fan Z, Ren J, Guo Z, Li Y. Truck scheduling problem considering carbon emissions under truck appointment system. Sustainability. 2019;11(22):6256.
- 8. Zehendner E, Feillet D. Benefits of a truck appointment system on the service quality of inland transport modes at a multimodal container terminal. Eur J Oper Res. 2014;235(2):461–9.
- 9. Zhang X, Zeng Q, Yang Z. Optimization of truck appointments in container terminals. Marit Econ Logist. 2019;21(1):125–45.
- 10. Sharif O, Huynh N, Vidal JM. Application of El Farol model for managing marine terminal gate congestion. Res Transp Econ. 2011;32(1):81–9.
- 11. Guan C, Liu R. Container terminal gate appointment system optimization. Marit Econ Logist. 2009;11(4):378–98.
- 12. Holguín-Veras J, Wang Q, Xu N, Ozbay K. The impacts of time of day pricing on car user behavior: findings from the Port Authority of New York and New Jersey’s initiative. Transportation. 2011;38(3):427–43.
- 13. Mani A, Fischer MJ. FHWA operations support - port peak pricing program evaluation. Environmental Impacts. 2009.
- 14. Huynh N, Walton CM. Robust scheduling of truck arrivals at marine container terminals. J Transp Eng. 2008;134(8):347–53.
- 15. He J, Zhang L, Deng Y, Yu H, Huang M, Tan C. An allocation approach for external truck tasks appointment in automated container terminal. Adv Eng Inf. 2023;55:101864.
- 16. Ramirez-Nafarrate A, Gonzalez-Ramirez RG, Smith NR, Guerra-Olivares R, Voss S. Impact on yard efficiency of a truck appointment system for a port terminal. Ann Oper Res. 2017;258(2):195–216.
- 17.
Azab A, Karam A, Eltawil A. A simulation-based optimization approach for external trucks appointment scheduling in container terminals. Taylor & Francis; 2020;(5). https://doi.org/10.1080/02286203.2019.1615261
- 18. Dekker R, van der Heide S, van Asperen E, Ypsilantis P. A chassis exchange terminal to reduce truck congestion at container terminals. Flex Serv Manuf J. 2012;25(4):528–42.
- 19. Zhang X, Zeng Q, Chen W. Optimization model for truck appointment in container terminals. Procedia Social Behav Sci. 2013;96:1938–47.
- 20. da Silva MRF, Agostino IRS, Frazzon EM. Integration of machine learning and simulation for dynamic rescheduling in truck appointment systems. Simul Modelling Pract Theory. 2023;125:102747.
- 21. Chen G, Govindan K, Yang Z. Managing truck arrivals with time windows to alleviate gate congestion at container terminals. Int J Prod Econ. 2013;141(1):179–88.
- 22. Chen X, Zhou X, List GF. Using time-varying tolls to optimize truck arrivals at ports. Transp Res Part E Logist Transp Rev. 2011;47(6):965–82.