1. Introduction
With the globalization of the supply chain, many products are manufactured in multiple countries and shipped to customers worldwide. As international trade increases, the demand for transportation significantly rises, making ports crucial in logistics management. Port authorities must enhance service quality and optimize resource utilization to strengthen their competitiveness in the global transportation network. Berths are the most critical resources in port terminals due to the difficulty of expanding them quickly and their construction costs being the highest among all relevant costs for other facilities in the terminal. Developing an efficient and effective berth allocation strategy is essential for port authorities to manage the heavy and increasing ship traffic in the global transportation network [
1,
2,
3,
4].
The terminal operation system comprises three subsystems: vessel planning in the quayside area, storage and stacking in the yard, and transportation in the landside area [
5,
6]. The productivity and throughput of the container terminal between the seaside and the landside depend on the efficiency of the terminal handling system; therefore, optimizing the berth scheduling plan is critical for port authorities to increase port throughput and improve service quality [
7,
8]. This article focuses on the initial operation of seaside planning in container terminals, known as the berth allocation problem (BAP). In the survey of berth allocation and quay crane scheduling problems in container terminals reviewed by Bierwirth and Meisel [
5], the BAP is commonly referred to as the assignment of quay space and service time to vessels that have to be unloaded and loaded at a terminal.
The BAP has been categorized into two classes based on the berth type and vessel arrivals [
5]. According to a present partitioning of the quay into berths, the BAP can be modeled with a discrete or a continuous quay. In the discrete case, the quay is divided into several partitioned sections. Each single berth can be occupied by only one vessel simultaneously. In the continuous case, the quay is a continuous space that vessels can berth at arbitrary positions within the boundaries of the quay. Berth planning in a continuous layout leads to better utilization of quay space but is more computationally complicated than in a discrete layout [
5,
7,
9]. In terms of vessel arrivals, the BAP can be divided into static and dynamic. The static one underlies the assumption that all vessels have arrived at the port before berth planning starts. Hence, the arrival time of vessels does not affect berthing assignment. The dynamic BAP allows vessels to arrive at any time during the planning time horizon, but their arrival times are known in advance, and each vessel will be served after its arrival. In common practice, the static assumption occurs only in a bustling port [
5,
10].
Since a continuous quay results in a higher utilization than a discrete quay, and the port authorities usually assign the berth to a vessel based on the expected arrival time before its arrival, this study focuses on the BAP with a continuous quay and dynamic vessel arrivals. The berth allocation aims to provide efficient and reliable services for each arriving vessel. Many studies have discussed the BAP with several practical factors and considered various constraints and objective functions.
Complete surveys of problem formulations, problem classification schemes, and solution algorithms for the BAP through 2022 are provided by Bierwirth and Meisel [
5,
11] and Rodrigues and Agra [
3].
Rodrigues and Agra [
3] categorized papers based on their objective functions and pointed out that the time spent by vessels at ports directly affected the service level. In the literature surveyed by Rodrigues and Agra [
3], most papers incorporated minimized waiting time, handling time, completion time, or tardiness as components of the objective function [
12,
13]. The BAP can be addressed by minimizing waiting time, handling time, completion time, or tardiness to enhance port service levels or achieve optimal berth utilization.
The methods employed for addressing the BAP are diverse, broadly falling into two main categories: exact methods and heuristic methods. Exact methods typically employ mathematical models and run them through commercial solvers. However, it is noted that most exact methods are limited to solving small-scale instances and are often utilized to evaluate the performance of the proposed heuristic algorithms. On the other hand, heuristic methods constitute a significant portion of the approaches used to tackle BAP. The survey results from Rodrigues and Agra [
3] indicate that the number of papers proposing heuristic solution methods is greater than those considering exact methods. A wide range of solution algorithms have been utilized over time, including genetic algorithms (GA), simulated annealing (SA), Tabu search (TS), artificial bee colony algorithm (ABC), squeaky wheel optimization (SWO), grey wolf optimization (GWO), and adaptive differential evolution algorithm (ADEA). Among these, genetic algorithms are the most commonly chosen method. Heuristics are employed in approximately 55% of the papers surveyed, with genetic algorithms being utilized in approximately 19% of the papers. Lv et al. [
14], Rodrigues and Agra [
15], and Wu and Miao [
16] utilize genetic algorithms (GA) as part of the method for solving the BAP.
The following briefly reviews the literature on continuous and dynamic BAP. Lim [
17], Kim and Moon [
1], Guan and Cheung [
18], Wang and Lim [
6], and Lee et al. [
19] transformed the berthing problem into a restricted form of the two-dimensional packing problem. Lim [
17] used a graph-theoretical representation to capture the problem and proposed a heuristic method to minimize the length of quay occupied by vessels. Kim and Moon [
1] aimed to minimize additional travel costs resulting from non-optimal berthing locations and penalty costs resulting from a delayed departure after the requested due time. A simulated annealing algorithm was developed for finding near-optimal solutions. Guan and Cheung [
18] proposed a tree search procedure to minimize total weighted flow time, the sum of waiting and processing time of vessels. The weights reflect the relative importance of vessels. Wang and Lim [
6] solved the problem by using a stochastic beam search algorithm. The constructed mixed-integer programming model determines the berthing time and the position to minimize the total berthing cost consisting of unallocation cost, berthing position cost, and delay berthing cost. Lee, Chen and Cao [
19] followed the mathematical formulation of Guan and Cheung [
18] to develop two versions of the greedy randomized adaptive search procedure (GRASP) in identifying the possible locations for the next vessel in the time-space diagram.
This study aims to improve port throughput and efficiency by optimizing berth utilization and enhancing service quality. Optimal berth utilization is achieved by minimizing the overall completion time of vessel service, while service quality improvement is pursued by minimizing the total waiting time for vessels. The proposed approach introduces a deterministic optimization model that formulates the BAP as a restricted form of two-dimensional packing problem solvable through existing deterministic optimization techniques to reach the globally optimal solution. Relating to the packing problem, the BAP has been shown to be an NP-hard problem [
17]. The computational time to solve the deterministic optimization model significantly increases as the problem size increases. Consequently, this study also develops a genetic algorithm (GA) optimization approach to solve large-scale problems efficiently. The contributions of this paper include
Formulate the BAP as a mathematical programming model of a two-dimensional packing problem solvable to reach the globally optimal solution;
Develop a GA optimization approach to solve large-scale problems efficiently;
Compare the performance of solving the BAP between a deterministic optimization model and a GA optimization approach.
The rest of this article is organized as follows.
Section 2 formulates the BAP as a deterministic optimization model. Subsequently, a GA optimization approach is developed to solve large-scale BAP problems in
Section 3.
Section 4 presents some numerical examples to illustrate the proposed method. Finally, concluding remarks are made in
Section 5.
2. Problem Formulation
This research considers the BAP with continuous quay and dynamic vessel arrivals. A deterministic optimization model is constructed to transform the BAP into a two-dimensional packing problem.
Figure 1 indicates the berth allocation time-space graph. The vertical axis represents the quay space, and the horizontal axis represents the berthing time. The quay space is divided into integer units. Each unit accommodates one vessel each time, and each vessel occupies an integer number of consecutive units when it is moored. Each rectangle represents a vessel; the height and length of the rectangle are the vessel’s length and operation time, respectively. The x-coordinate of the bottom-left of the rectangle stands for the starting time of the operation. The y-coordinate of the bottom-left of the rectangle stands for the starting position of the operation. The BAP aims to decide the x-coordinate and y-coordinate of each rectangle in the space formed by the quay space and the berthing time. All vessels must be placed non-overlapping in the time-space graph for a feasible berthing assignment. Other constraints, such as the draft restrictions at the assigned berths for the vessels, must also be satisfied. The notations used throughout this study are defined below and indicated in
Figure 2.
Berthing parameters, such as the number of berths required by the vessel, the estimated arrival time, and the estimated operation time, are typically filled 8 to 36 h before vessel arrival in the maritime practice (Lee and Chen [
20]).
Parameters:
: the number of all partitioned berths in the quay;
: the number of vessels to be scheduled;
: the estimated operation time of vessel ;
: the number of berths required by vessel , ;
: the estimated arrival time of vessel ;
: the draft of vessel ;
: the starting position suitable for berthing vessel ;
: the ending position suitable for berthing vessel
;
Decision variables:
: the overall completion time of handling all vessels at the port;
: the starting time of handling vessel ;
: the starting position of handling vessel ;
, : 0–1 variables used to control the relative positions of vessels and .
Four cases of non-overlap between two vessels
and
can be formulated by two binary variables
and
as follows and indicated in
Figure 3.
Condition 1: = 0 and = 0 if and only if vessel is at the right of vessel .
Condition 2: = 1 and = 0 if and only if vessel is at the left of vessel .
Condition 3: = 0 and = 1 if and only if vessel is above vessel .
Condition 4: = 1 and = 1 if and only if vessel is below vessel .
The following assumptions are introduced for formulating the BAP:
Each berth serves only one vessel at a time. The length of each berth is identical. Each vessel may occupy more than one berth according to the length of the vessel.
Vessels are served after arrival.
The operation time of each vessel is assumed deterministic and known in advance.
The number of berths required for each vessel is assumed deterministic and known in advance.
When a vessel starts operations at any berth, it will only move once loading/unloading is completed.
The draft of the vessel must be less than the water depth in the assigned berths.
The parameters and are determined by . is the estimated operation time of vessel , and is the number of berths required by vessel . When the BAP is formulated as a two-dimensional packing problem, and are the length and height of a rectangle representing vessel in a time-space graph. is used in constraints to guarantee that all rectangles will not overlap. That means all vessels cannot occupy the same berth simultaneously.
According to the discussions above, the mathematical formulation of the berth allocation optimization problem can be expressed as follows:
subject to
The objective function is to minimize the total waiting time of all vessels and the overall completion time of vessel service. Constraints (2)–(5) guarantee that vessels cannot occupy the same berth simultaneously. In Constraint (6), is the overall completion time of the service for all vessels at the port. Constraint (7) indicates that each vessel is served after arrival. Constraints (8) and (9) ensure that each vessel must be assigned to the appropriate position considering the draft of the vessel.
Since the model is a mixed-integer linear programming problem, it can be globally solved by conventional mixed-integer linear programming techniques to obtain an optimal berth assignment. Although the proposed mixed-integer linear programming model of the BAP can be solved to derive a globally optimal solution, the solution time significantly increases as the number of vessels increases. Consequently, this study develops a GA optimization approach to efficiently obtain a near-optimal solution for large-scale problems.
3. Proposed GA Optimization Approach
The proposed approach combines a genetic algorithm and a berth allocation strategy. The GA is responsible for evolving the chromosomes representing the vessels’ scheduling sequence. The berth allocation strategy is a critical process that constructs a berth allocation plan using the vessels’ scheduling sequence defined in the previous phase. After reaching the terminal condition of the GA, a near-optimal berth allocation layout is obtained for all vessels.
Figure 4 indicates the flow chart of the proposed GA optimization approach.
The following describes the processing steps in the flow chart.
This step is to generate the chromosomes in the first generation. Each chromosome representing a vessel’s berthing sequence is made of
n genes where
n is the number of vessels. The genes of each chromosome of the initial population are randomly generated.
Figure 5 displays a chromosome for solving a nine-vessel scheduling problem. The vessel scheduling sequence is No. 1, No. 2, No. 4, No. 9, No. 5, No. 6, No. 8, No. 3, and No. 7.
A large population provides a large solution search space, but GA will slow down if there are too many chromosomes. A population size index with the size of a problem is a good solution [
21]. After conducting several experiments, the suitable population size for this problem is two times the number of vessels.
This step is to construct a berth allocation plan according to the chromosomes in the population. Jakobs [
22] designed the well-known bottom-left algorithm (BLA) integrated with a GA to obtain the packing pattern for solving a packing problem. In BLA, each item is moved as close as possible to the bottom of the object and then as close as possible to the left. Inspired by this idea, the current study develops the berth allocation strategy called the best-position algorithm (BPA). The BPA places each vessel at the best position according to the scheduling sequence, i.e., each vessel selects the bottom berth of suitable berthing positions, cannot overlap with others, and minimizes its waiting time. The detailed algorithm is as follows (Algorithm 1).
Algorithm 1: Best-position algorithm of berth allocation. |
be the ith vessel to be allocated to berths |
for i = 1 to n do |
read data of |
|
found = no |
repeat |
if ( continuous berths in [, ] are available at time ) then |
found = yes |
else |
|
end if |
until found = yes |
= starting position of available berths |
end |
The following example demonstrates how to assign berthing locations for vessels. The original data of three vessels, assigned to berths 0 to 20, are shown in
Table 1. According to the BPA, the starting positions for vessels No. 1 and No. 2 are (0, 0) and (6, 0), respectively. These positions, (0, 0) and (6, 0), are also the best positions for vessels No. 1 and No. 2 because the waiting time of the two vessels is zero. The starting bottom-left coordinate of vessel No. 3 is (5, 0), as indicated by 1 in
Figure 6. The dotted block in
Figure 6 illustrates the quay space and service time that will be assigned to vessel No. 3. Since berths have been allocated to vessels No. 1 and No. 2 during the 5th to 11th time units, vessel No. 3 can only be allocated to the unoccupied berths. According to the BPA, positions (5, 14), (6, 0), and (6, 12) are tried for vessel No. 3 sequentially, as indicated by 2, 3, and 4 in
Figure 7, respectively. The feasible bottom-left coordinate of vessel No. 3 is (6, 12). The waiting time for vessel No. 3 is 1, calculated from
minus
. The final assigned berthing positions of three vessels are listed in
Table 1.
The fitness value is the sum of the waiting time of each vessel plus the overall completion time of vessel service. A lower fitness value indicates a better berth allocation plan.
According to the data from
Table 1, the total waiting time of all vessels is 1. Observing the berth allocation layout of
Figure 7, the overall completion time limited by vessel No. 2 is 14. The fitness value is 15.
This step is to adopt an evolutionary strategy that can extract the most desirable features from parents’ genes and combine them with new genes to form the next generation.
Figure 8 illustrates that the chromosomes of the next-generation population are composed of three parts: part 1 is comprised of the top-performing chromosomes from the previous generation, part 2 consists of chromosomes generated through mutation operations from those in part 1, and part 3 is generated randomly. The following steps show how to form the next-generation population.
Lin [
24] indicated that the same chromosome segments of different chromosomes do not lead to the same rectangle deployment in assortment problems. Therefore, a genetic algorithm with crossover operation for solving assortment problems performs poorly. The current study transforms the BAP into a two-dimensional packing problem, similar to the assortment optimization problem. Hence, crossover operation preserving some chromosome segments seems unnecessary in the BAP because the final layouts of the same chromosome segments depend on the genes before these segments. This study adopts only mutation operation to guarantee population diversity in the genetic algorithm without any crossover operation.
In this study, the operation of the genetic algorithm (GA) is determined by the following three factors. Considering the preservation of highly fit gene combinations with moderate proportions and the introduction of new genes through mutation operations to increase population diversity, the recommended values for these three factors are as follows:
The percentage of highly fit chromosomes to retain, denoted as ‘noChroRes’ in
Table 2. Method 1 retains only the best chromosome, while methods 2 through 5 retain 12.5% of highly fit chromosomes.
The number of offspring each highly fit chromosome should generate, denoted as ‘noGen’ in
Table 2. Method 1 does not generate offspring from each highly fit chromosome, while methods 2 and 3 generate 2 offspring from each highly fit chromosome, and methods 4 and 5 generate 1 offspring from each highly fit chromosome.
The number of genes inherited from the parent chromosome through the mutation operation, denoted as ‘mRate’ in
Table 2. In method 1, no genes are inherited from highly fit chromosomes, while in methods 2 and 4, 50% of genes are inherited, and in methods 3 and 5, 30% of genes are inherited.
Proper settings of these factors directly impact the performance and convergence speed of the algorithm and should be determined based on specific problem characteristics and algorithm performance. Methods 1 to 5 in
Table 2 consider the combinations of different parameters for these three factors. By conducting experiments and analyses on these five methods listed in
Table 2, the most appropriate parameter settings for this study are identified.
One-way ANOVA was conducted to test the significance of the difference among the five methods. However, Levene’s test showed that variances of the five methods were unequal (Leven statistics = 3.609, df1 = 4, df2 = 245, significance = 0.007), indicating that the assumption of ANOVA is invalid. Instead, Brown–Forsythe [
25] was employed as the robust test of equality of the means. The results showed significant (BF = 17.561, df1 = 4, df2 = 229.155, significance = 0.000), implying at least one mean distinct from others. Because the sample size was over 50, the Games–Howell test was performed for post hoc multiple comparisons. Conclusively, the fitness value of method 1 is the worst. Also, the mean of fitness values in method 3 (mean = 542.16) and method 5 (mean = 539.32) are better than the other three methods.
The results show that preserving the genes from highly fit chromosomes to generate the next generation helps obtain better solutions. The results of fifty trials of 3000 evaluations suggest that noChroRes = 12.5%, noGen = 1 or 2, and mRate = 30% appear to be better combinations than others. According to the results in
Table 2, this research adopts the combination of parameters in method 5, which produces a lower mean of fitness value than other methods for the experiments in
Section 4. If 81 vessels need to be scheduled, then the population size is 162. Part 1 consists of 20 chromosomes (162 × 12.5%). Part 2 comprises 20 chromosomes generated through mutation operations from those in part 1 (noGen = 1), with each mutated chromosome inheriting 24 genes (81 × 30%) from the parent generation. Part 3 consists of 122 chromosomes (162–20–20).
4. Numerical Examples
Due to the strong heterogeneity of BAP models, making a fair comparison among them seems impossible. Because of the lack of benchmarks involving different types of BAPs [
11], this study uses a set of real-world simulated instances to demonstrate the effectiveness and efficiency of the proposed method. First, Examples 1 and 2 are used to evaluate the performance of the GA optimization approach. Then, Example 3 is presented to examine the practicability of the GA optimization approach. Finally, a convergence diagram shows that the GA optimization approach is an effective tool for solving the BAP problem. All the examples were solved on a personal computer with Intel Core i5 M460 @2.53 GHz CPU. The GA optimization approach was implemented with Java programming language, while the deterministic optimization model was solved with LINGO 20.0 (2009).
Example 1 is to assign berthing locations for 27 vessels in four types of quays. The data of quays and vessels are shown in
Table 3 and
Table 4, respectively.
Table 3 lists four types of quay that provide specific terminal facilities for loading/unloading in a port. Every quay has limitations on its berths and water depth.
Table 4 lists the data of 27 vessels scheduled to arrive within twenty-four hours.
Example 2 is to assign berthing locations for 54 vessels in four types of quays. The data set in
Table 4 is duplicated for Example 2 so that the number of vessels increases from 27 to 54. In Example 2, the estimated operation time (
) and the number of berths needed (
) are divided by two for all vessels. The estimated arrival time (
) of vessels No. 28 to No. 54 is increased by five units.
In order to evaluate the performance of the GA optimization approach, Examples 1 and 2 were solved using the deterministic optimization model and the GA optimization approach, respectively.
Table 5 compares the results of the two methods. Solving the deterministic optimization models on LINGO 20.0, the obtained globally optimal values of Examples 1 and 2 are 98 and 36, respectively. Fifty trials of 3000 evaluations were ran by GA optimization approach with noChroRes = 12.5%, noGen = 1 and mRate = 30%. Observing the computational results in
Table 5, the best solution of the GA optimization approach is identical to the globally optimal solution obtained from the deterministic optimization model. In addition, the objective values of the global optimal solution and the average solution of the GA optimization approach are very close. Therefore, the results demonstrate that the GA optimization approach provides competitive results in terms of solution quality.
Example 3 verifies that the GA optimization approach yields near-optimal solutions efficiently for more complicated problems. Example 3 contains 81 vessels that are increased threefold from
Table 4. Data of vessels No. 1 to No. 27 are the same as in
Table 4. Data of vessels No. 28 to No. 54 and vessels No. 55 to No. 81 are generated from
Table 4 where the estimated arrival time (
) of each vessel is shifted backward by increasing five and eight units, respectively.
Table 6 lists the experimental results of the two methods. The deterministic optimization model involving 81 vessels cannot be solved within two hours by LINGO 20.0. The developed GA optimization approach takes about three minutes to obtain a near-optimal solution with the best objective value of 1324. The GA optimization approach provides a near-optimal solution for allocating berths to vessels if the deterministic optimization model cannot globally solve the BAP within a reasonable amount of computational time. Therefore, the results demonstrate that the GA optimization approach is a more practical method for large-scale problems.
The optimal berth allocation layout of Example 3 is presented as a time-space diagram indicated in
Figure 10. Herein, 81 vessels are assigned to the corresponding type of quay and do not overlap with each other.
Figure 11 illustrates the convergence of the GA optimization approach in 100, 500, 1500, and 3000 evaluations for Example 2. The best solutions to 100, 500, 1500, and 3000 evaluations are identical to the globally optimal value of Example 2, 36. The objective value stabilizes toward the globally optimal solution as the number of evaluations increases. The convergence diagram indicates that the GA optimization approach is an effective tool for solving the BAP.
5. Conclusions
This research offers a twofold solution for the port authorities to enhance their competitiveness in the global transportation network. This study focuses on the continuous and dynamic berth allocation problems. The proposed method models the berth allocation problem as a mixed-integer linear programming problem that minimizes the total waiting time of vessels and the overall completion time of vessel service to improve the berth utilization rate. The formulated model can be globally solved by conventional mixed-integer linear programming techniques. For practical scenarios involving a significant number of vessels and complex conditions, a GA optimization approach is developed to provide a near-optimal solution within a reasonable amount of computational time. The experimental results indicate the effectiveness and efficiency of the proposed method. Finally, the results of berth assignment are presented as time-space diagrams, aiding port authorities in making more informed and timely decisions regarding berth allocation.
The nature of seaside operations, encompassing berth allocation problems (BAP), quay crane assignment problems (QCAP), and quay crane scheduling problems (QCSP), is comprehensive. While this study emphasizes time-related factors in berth allocation, port authorities and carriers are also concerned with several related issues, including cost factors and berthing priority. Consequently, more factors should be considered in future research. Additionally, the GA optimization approach can reach a near-optimal solution of the BAP, but it still cannot guarantee the global optimality of the solution. Developing an efficient deterministic method to obtain a globally optimal solution for practical cases with heavy vessel traffic is also worth investigating in the future.