Overall Scheduling Model for Vessels Scheduling and Berth Allocation for Ports with Restricted Channels That Considers Carbon Emissions

: As maritime transportation develops, the pressure of port trafﬁc increases. To improve the management of ports and the efﬁciency of their operations, vessel scheduling must be optimized. The vessel scheduling problem can be divided into channel scheduling and berth allocation. We considered the complex problem of vessel scheduling in a restricted channel and the berth allocation problem, and a combined model that considers carbon emissions was developed. This model should reduce vessel waiting times, improve the quality of the berth loading and unloading service, meet the requirements of “green” shipping, and improve the overall scheduling efﬁciency and safety of ports. An adaptive, double-population, multi-objective genetic algorithm NSGA-II-DP is proposed to calculate the mathematical model. In the case study, the rationality veriﬁcation and sensitivity analysis of the model and algorithm are conducted, and the NSGA-II-DP and NSGA-II were compared. Results demonstrate that the overall convergence of the NSGA-II-DP algorithm is better than that of NSGA-II, demonstrating that the NSGA-II-DP algorithm is a useful development of NSGA-II. In terms of port scheduling, the results of our model and algorithm, compared with the decisions provided by the traditional First Come First Service (FCFS) strategy, are more in line with the requirements for efﬁciency and cost in the actual port management, and more dominant in the port management can provide better decision support for the decision-makers.


Introduction
Ocean transportation has always been the primary transportation mode used for global trade, accounting for 75% of global transportation.According to the report of the United Nations Conference on Trade and Development (UNCTAD), global marine trade in 2021 increased by 4.3%; the average growth rate of seaborne trade in the past two decades has been 2.9%, and the commercial shipping fleet will increase by 3% in 2020 [1].In addition to the vigorous development of maritime trade, the cargo volume and fleet as well as the number of vessels visiting ports has increased owing to which the traffic pressure is increasing daily.However, in the short term, it is difficult for ports to employ expensive and tedious methods to relieve traffic pressure and increase their operating capacity such as expanding the port, improving their infrastructure, or widening channels.Therefore, the best approach to effectively solve traffic conflicts and improve the efficiency of port management and operations is to optimize the scheduling of vessels [2].
For ports with restricted channels, a vessel first enters the restricted channel from its anchorage.At this time, the vessel is constrained by the complex navigation rules of the restricted channel.After entering the harbor basin via the restricted channel, the vessel enters its allocated berth for both loading and unloading.The berth must meet the requirements of the vessel length and draft, and its service cargo type must be consistent with the type of cargo transported by the vessel.The loading and unloading times will be affected by the working efficiency of the berth.When the vessel has finished loading and unloading, it leaves the berth and then the port, again via the restricted channel.
To date, in most studies, the channel scheduling problem and the berth allocation problem have been separately considered.However, because of the complexity of the navigation rules for restricted channels, for example, allowing two-way navigation in one section but only one-way navigation in another section because of the narrow channel; or because of the insufficient depth of the channel, vessels with deep draft require to consider entering and leaving the port as per the tide [3].Therefore, when a vessel enters the restricted channel, it is difficult to predict its impact on other vessels.Moreover, an unreasonable scheduling sequence in the channel may lead to multiple vessels being delayed.If a vessel fails to enter the port on schedule, it will affect the berth allocation plan.The working efficiency of the berth that has been allocated as per the berth allocation plan affects the berthing time of the vessel, thus affecting the departure time of the vessel and indirectly affecting the scheduling plan for the restricted channel.Therefore, an optimal scheduling plan obtained from a separate consideration of the channel scheduling and berth allocation problems may, in fact, be suboptimal; it is necessary to consider both problems together to conduct an overall scheduling study.Furthermore, to promote "green" shipping, terminal operators, shipping companies, and relevant environmental protection departments are extremely concerned about carbon emissions and pollution during navigation.Therefore, as part of the overall scheduling, it is necessary to consider the carbon emissions of vessels and to make reasonable speed arrangements for different types of vessels within the speed limit of the port.It is thus extremely important to comprehensively consider multiple factors such that reasonable vessel scheduling and berth allocation sequences can be devised.However, it is difficult to achieve fast and effective scheduling using the fixed vessel scheduling sequences produced by the traditional FCFS strategy used by ports.
Based on the abovementioned considerations, the optimization of channel scheduling and berth allocation in ports was considered from the overall perspective of the management of the port operations in this study.
In this paper, we will consider the complex vessel scheduling problem for a restricted channel along with the berth allocation problem, a comprehensive model for vessel scheduling in a restricted channel and berth allocation that considers carbon emissions is developed.
Tide times, traffic conflicts, port scheduling resources, and other factors will be considered in the overall scheduling model to make the model more realistic.Furthermore, the degree of matching between the berth and vessel is based on the type of cargo served by the berth and the distance from the yard, thus improving the safety of the cargo handling and reducing the amount of cargo damage and transportation costs during cargo handling.The carbon emissions during navigation will be considered in the model, which brings the research more in line with the real requirements of port management and the general trend toward sustainable shipping.
To address the defects of the traditional multi-objective genetic algorithm, an adaptive two-population multi-objective genetic method will be proposed and applied to the model.
The rest of this study is organized as follows.In Section 2, we summarize the relevant literature on vessel scheduling.In Section 3, we describe and analyze the problems that were studied and explain the factors to be considered in the proposed model.In Section 4, the proposed mathematical model for the optimization of vessel scheduling and berth allocation is described.In Section 5, the adaptive double-population multi-objective genetic algorithm on which the model is based is described.In Section 6, the rationale for using the proposed algorithm and model is discussed along with a consideration of their effectiveness and their superiority to other methods in different cases.In Section 7, the content of the article is summarized and the prospects for future research are discussed.Constraints: 1: safety interval (distance/time); 2: tidal time window; 3: speed; 4: traffic conflict; 5: dispatch resources (tugs, etc.); 6: number of berths; 7: berthing time and location; 8: berth allocation; 9: berth physical environment; 10: berth matching degree; 11: carbon emissions; 12: time buffer; 13: weather conditions; 14: distance between berth and storage space in yard.Research topics: CSP: channel scheduling problem; BAP: berth allocation problem.Objective functions: 1: minimization of the total waiting time; 2: minimization of the total dispatch time; 3: minimization of the maximum waiting time; 4: minimization of the vessel flow time; 5: minimization of the waiting and delay costs; 6: minimization of the total weighted service cost; 7: minimization of the total service time; 8: minimization of the basic planning cost and the expected recovery cost in all possible cases; 9: minimization of the delay length; 10: minimization of the carbon emissions from navigation and berthing; 11: minimization of delay penalties; 12: minimization of the crane service costs; 13: minimization of the total outbound vessel delay; 14: minimization of the total distance traveled by trucks; 15: minimization of the total weighted vessel dwell time; 16: minimization of the weighted sum of the completion time of the shift operations for inbound and outbound vessels; 17: maximization of the berth matching.Algorithms: SA: simulated annealing algorithm; GA: genetic algorithm; SWA: sliding-window method; CHA: self-built heuristic algorithm; CS: commercial software; AIEA: adaptive island evolutionary algorithm; O-MaSE: multi-agent systems engineering; ε: ε-constraint method; PSO: particle swarm optimization; CG: column vector generation.
In their research into the channel scheduling problem, Zhang et al. [4] considered the constraints related to berths, safety intervals, and one-way channel navigation rules.Although the berth factor was considered, the berth was assumed to have been allocated in advance in this study, and the only consideration was whether the vessel was in conflict when berthing.A mixed-integer linear program (MILP) model that had the minimum total scheduling time and vessel waiting time as its aim was constructed, and the nondominated sorting genetic algorithm (NSGA) was used to calculate and verify the reliability of the model.Zhang et al. [5] established a mathematical model that was based on a comprehensive consideration of constraints such as the tide and the navigation rules for a one-way channel and that had the shortest total waiting time for vessels as its goal.In the study by Abou Kasm [6], the aim was to minimize the maximum delay of vessels, considering the one-way channel navigation rules and the constraints of port resources.An MIP model was then built, and a combination of a heuristic algorithm and a relaxation strategy was used to solve the model.Hill [7] considered the constraints caused by the channel, the tidal time window, and two-way channel navigation rules and developed a linear integer model with the aim of minimizing the total vessel waiting time to solve the vessel scheduling problem for channels at ports.With the aim of reducing the total vessel waiting time, Zhang et al. [8] developed a vessel scheduling model for a two-way channel that considers tides, safety intervals, and other constraints and uses a genetic algorithm to solve the model.Lalla-Ruiz et al. [9] considered multiple constraints and developed a vessel scheduling model for composite channels.To reduce the vessel waiting times, this model assigned different channels to different vessels during scheduling and combined greedy and simulated annealing algorithms to calculate the model.Based on the actual layout of Tianjin port, Zhang et al. [10] considered the minimum total waiting time of vessels as the objective function and developed a mathematical model for vessel scheduling in a composite channel; this model was based on a genetic algorithm.Li et al. [3] based their model on the physical layout of Huanghua port and considered the minimum total scheduling time and the minimum total waiting time of vessels as the objectives.A vessel adjustment model for a restricted channel that was based on the NSGA-II algorithm was then developed.
In a study of berth allocation, al Refaie [11] comprehensively considered constraints such as the physical environment of the berth, the vessel safety interval, and the satisfaction of the service provider while aiming to avoid vessel berthing conflicts.INLP models for berth allocation were then developed for normal conditions and for the case of an emergency arrival and solved with commercial software.Correcher et al. [12] aimed to minimize the addition of the cost of waiting before berthing and the cost of delays for each vessel; this work was based on an irregular berth layout after considering constraints such as the physical environment of the berth and the aim of avoiding vessel berthing conflicts.An MILP model for the berth allocation was developed, and an iterative local search heuristic algorithm was built to solve it.To solve the berth allocation problem, Dulebenets [13] proposed a new adaptive island evolutionary algorithm.The aim of this study was to minimize the total weighted service cost for vessels; the vessel berthing time and location were considered constraints in the model.Bacalhau et al. [14] established a berth allocation model with the aim of minimizing the total vessel service time.This model included a comprehensive consideration of constraints such as the vessel safety interval, the physical environment of the berth, and vessel berthing conflicts.A genetic algorithm and a domain search algorithm built by the authors were used to solve the model.Liu [15] examined the berth allocation problem for uncertain conditions.With the aim of minimizing the basic planning cost and the expected recovery cost under all possible circumstances, constraints such as vessel berthing conflicts and the physical environment of the berth were considered.An MILP model was constructed, and the model was solved using commercial software and the sliding-window method.Mnasri [16] established a single-objective berth allocation LP model with the aim of minimizing the service time, including the waiting time, for all vessels.Furthermore, the aim was to avoid vessel berthing conflicts, and multi-agent systems engineering was used to identify the solution.Hu [17] established a multi-objective berth allocation model with the aim of minimizing the delay time and the carbon emissions from navigation and berthing.This model considered possible berthing conflicts and vessel carbon emissions ε-constraint method.To examine the berth allocation problem where the loading and unloading times are uncertain because of the weather, Guo [18] first built a model for vessel loading and unloading times under different weather conditions that consider the weather, the number of cranes, the vessel capacity, and other factors.The relationship between the weather and the loading and unloading times was then investigated using machine learning; constraints such as avoiding vessel berthing conflicts, minimizing the cost of using cranes, and penalties for delays to vessels were considered, and a berth allocation model for situations where the vessel loading and unloading times are uncertain was developed for different weather conditions.The model was solved using a particle swarm optimization algorithm.Wu [19] established a mixed-integer program (MIP) model for berth allocation with the aim of minimizing the total vessel departure delay.In this case, the constraints that were considered included berthing conflicts and the continuity of berth service; a time buffer was included in the berth allocation plan to ensure that the overall berth allocation plan would not be affected in the event of a short delay to the arrival of a vessel.A self-built search algorithm was used to solve this model.To examine the joint allocation of berths and yards, Guo [20] considered such constraints as the vessel loading workload, physical environment of berths, number of allocated yards, number of containers in the yards, and vessels' berthing times and locations.An IP model was then built to minimize the total distance traveled by trucks; a genetic algorithm was used for the calculations.
In a study of the overall problem of channel scheduling and berth allocation, Zhang [21] set the minimum total waiting time as the aim and built an MILP model for one-way channel scheduling and berth allocation.This model considered constraints such as the safe time interval, the physical environment of the berths, and the vessel berthing time, in addition to the avoidance of berthing conflicts; a simulated annealing algorithm and a genetic algorithm were used to identify the solution.Liu [22] comprehensively considered constraints such as navigation safety intervals, navigation rules, tides, the physical environment of berths, and vessel berthing conflicts and considered the minimization of the weighted total dwell time for all vessels as the aim.An MILP model for overall one-way channel scheduling was constructed, which was solved by a self-built adaptive large neighborhood search algorithm.On the basis of the 2020 study, the following year, Liu [23] considered two-way channel constraints and built an MILP model for the overall scheduling of vessels in a two-way channel.In this study, the aim was to minimize the weighted sum of the completion time of the shift operations for inbound and outbound vessels; a column generation algorithm was used to solve the problem.
From the abovementioned analysis and the information presented in Table 1, a number of researchers have considered the problems of channel scheduling and berth allocation separately in their research to date.However, few studies have considered the channel vessel scheduling problem and the berth allocation problem in combination.
There have been certain preliminary studies on the overall scheduling problem that have combined considerations of channel vessel scheduling and berth allocation.However, in these studies, one-and two-way channels with relatively simple constraints have generally been considered, and there is a lack of research on restricted channels with complex navigation environments and rules.There has been little consideration of the factors that actually affect scheduling such as tide times, traffic conflicts, and port scheduling resources.During the process of berth allocation, only the physical environment of berths and vessels' berthing times and locations have been considered, without considering the degree of matching between berths and berthing vessels.Currently, in order to promote environmentally sustainable shipping, terminal operators, shipping companies, and environmental protection departments are very concerned about reducing carbon emissions and pollution from shipping.However, the carbon emissions related to the overall scheduling of vessels is rarely considered.In order to address these issues, in this study, we improve on the existing research by proposing a model for vessel scheduling in restricted channels as well as berth allocation that takes carbon emissions into account.Compared with previous studies, we consider the channel and berth scheduling problem at the same time, avoiding the sub-optimal results of separate optimization, and add constraints more in line with the actual situation of port scheduling in the model for the above problems, so that the model is more practical, and the results are more effective.The specific improvements are as follows.
By combining the complex restricted channel vessel scheduling problem with the berth allocation problem, this paper constructs the overall scheduling model of vessel scheduling in the restricted channel and berth allocation considering carbon emission, expands the model of this research direction, and provides basic theoretical support for further expanding this research direction.Tide time, traffic conflict, port scheduling resources, and other factors are considered in the overall scheduling model to make the model more realistic.At the same time, the matching degree between the berth and the vessel is constructed according to the type of cargo served by the berth and the distance from the stockyard space in the yard and is considered in the model, so as to improve the safety of cargo handling in the scheduling and reduce the cargo damage and transportation cost during cargo handling.In addition, the carbon emission during navigation is considered in the model, which makes the research more in line with the actual management needs and the general trend of green shipping.

Problem Description
Based on an analysis of the layout of the coal port at the port of Huanghua, we constructed a port layout that included restricted channels and harbor basin berths, as illustrated in Figures 1 and 2. Our analysis and description of the vessel channel scheduling and berth allocation problems were based on this layout.
provements are as follows.
By combining the complex restricted channel vessel scheduling problem wit berth allocation problem, this paper constructs the overall scheduling model of v scheduling in the restricted channel and berth allocation considering carbon emission pands the model of this research direction, and provides basic theoretical support fo ther expanding this research direction.
Tide time, traffic conflict, port scheduling resources, and other factors are consid in the overall scheduling model to make the model more realistic.At the same time matching degree between the berth and the vessel is constructed according to the ty cargo served by the berth and the distance from the stockyard space in the yard a considered in the model, so as to improve the safety of cargo handling in the sched and reduce the cargo damage and transportation cost during cargo handling.In add the carbon emission during navigation is considered in the model, which makes th search more in line with the actual management needs and the general trend of g shipping.

Problem Description
Based on an analysis of the layout of the coal port at the port of Huanghua, we structed a port layout that included restricted channels and harbor basin berths, as trated in Figures 1 and 2. Our analysis and description of the vessel channel sched and berth allocation problems were based on this layout.In terms of vessel scheduling, in the above layout, the restricted channel can be considered to be composed of a two-way navigable channel and two one-way navigable channels.The harbor basin is connected to the outlet of the restricted channel.After being allowed to enter the port, an incoming vessel that has been waiting at the anchorage arrives at the entrance of the restricted channel then proceeds into the channel from the entrance In terms of vessel scheduling, in the above layout, the restricted channel can be considered to be composed of a two-way navigable channel and two one-way navigable channels.The harbor basin is connected to the outlet of the restricted channel.After being allowed to enter the port, an incoming vessel that has been waiting at the anchorage arrives at the entrance of the restricted channel then proceeds into the channel from the entrance and enters the harbor basin.In particular, as the vessel enters the port, the pilot vessel first carries a pilot on board, and then the pilot assists the vessel to enter the port.Once the vessel enters the restricted channel, it begins to use the channel resources.Then, when the vessel enters the harbor basin, a tug is used to assist the pilot to bring the vessel into the berth.Finally, the vessel is moored in its berth.During the departure operation, the vessel is first unberthed, the pilot vessel embarks, and a tug assists the vessel to reach the outlet of the harbor basin.The vessel then leaves the port via the restricted channel.During these operations, to ensure the safety of navigation, it is prohibited to overtake in the same direction during the internal navigation of the restricted channel and harbor basin.The length of time that each resource is used depends on the speed of the vessel; the speed limits that apply to the vessel in the harbor basin and within the channel will be different.Moreover, because a vessel's carbon emissions are related to its fuel consumption and because the speed directly affects the fuel consumption and indirectly affects the carbon emission cost, it is necessary to set reasonable speeds for the different types of vessels entering and leaving the port, within the speed limits specified by the port.Generally, pilots are assigned by the pilot terminal after the vessel scheduling plan has been formulated and submitted to the pilot station.Therefore, pilot resources were not considered in this study.During vessel scheduling, it is necessary to comply with the navigation rules of the restricted channel.At the same time, due to the impact of environmental factors related to the restricted channel, it is necessary to consider the safe distance between vessels and the tide-riding factors of large vessels.
As shown in Figure 2, the berths in the layout that was constructed were discrete, and the physical conditions such as the draft and length of the berths were fixed.Additionally, according to the type of service provided, berths can be divided into universal berths and appropriated berths.Different types of berths are equipped with different types of specialized equipment and facilities for dealing with different types of cargo.The use of specialized equipment and facilities can reduce the difficulty of operations, improve safety during loading and unloading, and reduce the loss of cargo during loading and unloading [24].Therefore, when allocating berths, in addition to considering whether the physical conditions of the vessel and the berth match, it is also necessary to consider the degree of matching between the type of cargo to be loaded or unloaded and the type of cargo served by the berth.After the cargo has been unloaded at the berth, it will be transported from the berth to the yard for storage.The horizontal distance between the berth and the stockyard spaces in the yard is also an important factor affecting the overall operational efficiency and running costs of the port.Therefore, the horizontal transportation distance between the berth and the vessel's allocated space in the stockyard should also be considered during the allocation of berths, so as to reduce costs [25] (also see [20,26,27]).As shown in the two-dimensional Gantt chart of the berth allocation (Figure 3), in the case of vessels served by the same berth, later vessels can enter the berth only after the servicing of the previous vessel is complete: the berth service times of two vessels cannot overlap.
To sum up, in this study, the joint problems of vessel scheduling and berth allocation in a restricted channel were considered while taking carbon emissions into account.The following factors were considered when constructing a model of the problem.

1.
The resources required for inbound and outbound operations: channels, tugs, and berths 2.
The requirement for a reasonable vessel service sequence 3.
The port's navigation rules 4.
The safe time intervals needed to ensure the safety of navigation 5.
The tidal time windows for large vessels 6.
The physical factors and service types of the berth 7.
The distance between berths and the stockyard space in the yard 8.
The service times of different vessels using the same berth 9.
The carbon emissions of vessels (in relation to reasonable speed arrangements) of cargo served by the berth.After the cargo has been unloaded at the berth, it will be transported from the berth to the yard for storage.The horizontal distance between the berth and the stockyard spaces in the yard is also an important factor affecting the overall operational efficiency and running costs of the port.Therefore, the horizontal transportation distance between the berth and the vessel's allocated space in the stockyard should also be considered during the allocation of berths, so as to reduce costs [25] (also see [20,26,27]).As shown in the two-dimensional Gantt chart of the berth allocation (Figure 3), in the case of vessels served by the same berth, later vessels can enter the berth only after the servicing of the previous vessel is complete: the berth service times of two vessels cannot overlap.To sum up, in this study, the joint problems of vessel scheduling and berth allocation in a restricted channel were considered while taking carbon emissions into account.The following factors were considered when constructing a model of the problem.
1.The resources required for inbound and outbound operations: channels, tugs, and berths 2. The requirement for a reasonable vessel service sequence 3.The port's navigation rules 4. The safe time intervals needed to ensure the safety of navigation 5.The tidal time windows for large vessels 6.The physical factors and service types of the berth 7. The distance between berths and the stockyard space in the yard 8.The service times of different vessels using the same berth 9.The carbon emissions of vessels (in relation to reasonable speed arrangements)

Model Assumptions
Based on the considerations described in Section 3, in this section, the construction of the vessel scheduling and berth allocation model will be described.
In order to facilitate the construction of the model, the following assumptions were made.

1.
It is assumed that the time for all tugs to arrive at the inbound and outbound vessels is the same, and the distance from all berths to the entrance of the harbor basin is the same.This is based on the reasonable assumption that the distances within the harbor basin are small and have little impact on the overall scheduling.

2.
In order to highlight the research focus, the yard and reclaimer allocation and scheduling are not considered at this stage.Therefore, it is assumed that there will be sufficient yard and reclaimer resources in the port to meet the needs of loading and unloading.As shown in Figure 2, the stockyard spaces in the yard are discrete.Each vessel is allocated stockyard spaces before entering the port to avoid any conflict.

3.
It is assumed that there are sufficient pilots at the pilot station and sufficient resources for wharf loading and unloading.The weather and visibility are assumed to be good and the pilot and captain to be experienced.It is also assumed that no accidents occur during navigation.

Mathematical Model
The overall planning cycle is discrete, and the start and end times of all operations are represented by discrete time.
Sets: I: the set of all vessels; vessels are indexed using i.I cj : the set of vessels that need to enter the port by tide.I cc : the set of vessels that need to leave the port by tide.I 1 : the set of inbound vessels that can conduct two-way navigation according to the navigation rules.
I 2 : the set of outbound vessels that can conduct two-way navigation according to the navigation rules.I 1t : the set of inbound vessels that need one-way navigation according to the navigation rules.
I 2t : the set of outbound vessels that need one-way navigation according to the navigation rules.
T: the length of the planning cycle, indexed using t.K: the set of inbound and outbound vessel types.D s : the set of distances between the stockyard space, s, in the yard and all of the berths in the port, indexed by parameter d sb .
B: the set of all berths, indexed by b. S i : the set of stockyard spaces in the yard allocated to vessel i. Parameters: a i1 : time of vessel i applying for inbound operations.a i2 : time of vessel i applying for outbound operations.t si : the time that the nearest tidal window for vessel i starts.t ei : the time that the nearest tidal window for vessel i ends.t 1i : the time that inbound vessel enters the channel from the anchorage.t 2i : the length of time for inbound and outbound vessels to pass through area A (see Figure 1).t 3i : the length of time for inbound and outbound vessels to pass through area B (see Figure 1).t 4i : the length of time for inbound and outbound vessels to pass through area C (see Figure 1).t 5i : within area C, the time required for the inbound vessel i to reach its berth from the entrance of the harbor basin, or the time required for the outbound vessel i to reach the entrance of the harbor basin from its berth.
t 6i : within area C, the time that the inbound vessel i reaches the entrance of the harbor basin from the exit of the two-way navigable channel, or the time that the outbound vessel i reaches the exit of the two-way navigable channel from the entrance of the harbor basin.
t sa f e : the safe time interval.t wi : the berthing time of the inbound vessel i or the unberthing time of the outbound vessel i. D 1 : the distance from the anchorage to the channel entrance.D 2 : the distance from the channel entrance to the entrance of the two-way navigable channel.
D 3 : the distance from the entrance to the exit of the two-way navigable channel.D 6 : the distance from the exit of the two-way navigable channel to the entrance of the harbor basin.
D 5 : the distance from the entrance of the harbor basin to the berth.v 1i : the speed of vessel i before it enters the entrance of the harbor basin.v 2i : the speed of vessel i after it enters the entrance of the harbor basin.v t : the tug speed.v 1max : the maximum speed of the vessel before entering the harbor basin, as stipulated by the navigation rules.
v 1min : the minimum speed of the vessel before entering the harbor basin, as stipulated by the navigation rules.
W: the total number of tugs.W i : the number of tugs required for vessel i. T i1 : the total time required for vessel i to complete the inbound operation.T i2 : the total time required for vessel i to complete the outbound operation.S sb : the degree of matching between berth b and stockyard space s (as a percentage).d sb : the horizontal distance between stockyard space s and berth b.R b : the matching degree of the service type provided at berth b.R sb : the degree of matching between berth b and stockyard space s. g i : the fuel consumption rate of the main engine of vessel i. IO ijb : has a value of 1 if vessel j is assigned to enter berth b after vessel i; otherwise, 0.
IO ib : has a value of 1 if berth b is allocated to vessel i; otherwise, 0.
IO ihb : has a value of 1 if berth b can service cargo h of vessel i; otherwise, 0.
IO it : has a value of 1 if vessel i starts its inbound or outbound operations at time t; otherwise, 0.
In this model, the main objective is to minimize the total scheduling time, which is the sum of the differences between the time a vessel applies for the inbound operations and the time when it completes the outbound operations: In addition, in order to improve the overall operational efficiency of the port and reduce the cost of operations, and in line with the general trend toward reducing carbon emissions related to the global shipping industry, in this study, the degree of matching between berths and vessels and the carbon emissions of inbound and outbound vessels were considered and taken as secondary targets in the model.
Bulk cargo ports are different from container ports.As cargo vessels carry a wide range of cargo, bulk cargo ports are equipped with both universal berths and cargo-appropriate berths.Cargo-appropriate berths are equipped with different types of specialized equipment and facilities for servicing different types of cargo.Although a cargo vessel can berth at a special berth for cargo, it can also berth at a universal berth.However, it is certain that the match degree is higher if a vessel is serviced at a special berth for cargo; this will reduce the difficulty of the loading and unloading operations and the loss of cargo during these processes.The distance that cargo is transported between the berth and the stockyard space is another important factor that affects the overall operational efficiency of a port and the cost of its operations.Therefore, we assigned a rank to the berths according to these two factors to reflect the degree to which a particular berth matched the cargo.For convenience, cargo-special berths were assigned a rank, denoted by R b , of 3, universal berths that can service two different types of cargo were assigned a rank of 2, and universal berths that can service three different types of cargo were assigned a rank of 1.As well as this, the Manhattan distance between the central point of the stockyard space and the center of the berth was used to define the horizontal distance over which the cargo was transported between each stockyard space and the berth.This was then used to calculate the degree of matching, S sb , between berth b and stockyard space s: The value of S sb is expressed as a percentage.When S sb is greater than 0.8, the degree of matching, R sb , between berth b and stockyard space s is 5.When S sb is less than 0.8 and greater than 0.6, R sb is 4, and so on, until R sb is 1.The overall degree of matching, R bi , between berth b and vessel i is given by As a result of recent developments in the shipping industry, more attention is being paid to reducing the carbon emissions of vessels by the international community [28].Vessels emit a large amount of carbon dioxide (CO 2 ) when entering and leaving port.The amount of CO 2 emitted is generally calculated using the formula: carbon emitted = carbon emission factor × vessel fuel consumption.The carbon emission factor is a fixed parameter, so reducing the carbon emissions of vessels entering and leaving port requires reducing their fuel consumption.The amount of fuel consumed by a ship i as the ship enters and leaves the port, Q i , is given by the formula where v i is the speed at which the vessel is sailing.It can be seen from this equation that when the distance traveled by the vessel and the vessel's draft are fixed, the vessel's fuel consumption is related to the vessel's speed, which means that the vessel's carbon emissions are also related to its inbound and outbound speed.Therefore, in order to reduce the carbon emissions of vessels, reasonable speed arrangements need to be made for different types of vessels within the port's speed limit.Given the above, the two secondary objectives of the model were The complete mathematical model for the optimization of vessel scheduling is described below.
Time window constraint: Tidal time window constraint: Safe time interval constraint: Same direction: Different direction: Channel constraint: Tug constraint: Berth constraints: Time calculation: Speed constraint: Binary requirements for variables: Objective Function ( 1) is used to minimize the total scheduling time.Objective Function ( 5) is used to maximize the degree of matching between the berth, the vessel, and the cargo.Objective Function ( 6) is used to minimize the fuel consumption of vessels entering and leaving the port; that is, to minimize carbon emissions.Constraints (2), (3), (4), and ( 7) are used to calculate the decision variables.Constraint (8) ensures that the calculated time result does not have a negative value.Constraints ( 9) and (10) ensure that the actual start time of a vessel's inbound and outbound operations is later than the start time applied for.Constraint (11) ensures that the actual start and end times of the inbound and outbound operations of large vessels that need to sail according to the tide are within the appropriate tidal time windows.During the inbound and outbound operations, constraints ( 12) and ( 13) ensure that there is always an appropriate safe time interval between two consecutive inbound vessels or two consecutive outbound vessels after they enter the channel; these constraints also ensure that the vessels will not overtake one another.Constraint (14) ensures that there is an appropriate safe time interval between the time that an outbound vessel leaves the channel and the time that an inbound vessel enters the channel, so as to prevent conflict.Constraint (15) ensures that after an inbound vessel arrives at the berth, no vessel will carry out its outbound operations before the inbound vessel has completed mooring.Constraints ( 16) and (17) ensure that there will be no two-way navigation of vessels in the one-way section of the restricted channel (see Figure 1).Constraints (18) and (19) ensure that inbound and outbound vessels that can only conduct one-way navigation according to the navigation rules will adopt one-way navigation throughout their voyage.Constraint (20) ensures that the number of tugs used does not exceed the total number of tugs available at the port.Constraints (21) and (22) ensure that a vessel meets the physical constraints of the berth allocated to it.Constraint (23) ensures that the servicing times of vessels allocated to the same berth do not conflict.Constraint (24) ensures that each vessel is served by at least one berth and that the cargo carried by each vessel conforms to the type of cargo that can be serviced by the berth.Constraints ( 25)-(33) are used to calculate time and ensure time continuity.Constraints (34)-(36) ensure that the speed arrangements for each vessel meet the speed constraints of the port.Constraint (37) is the requirement of zero one variable of the model.

Algorithm Design
It can be seen from the above description that the vessel scheduling and berth allocation model is complex and includes many constraints.When the number of vessels and the feasible solution set are both large, it is difficult to obtain the optimal solution by using traditional methods that give exact solutions [8].However, heuristic algorithms, such as the simulated annealing algorithm, genetic algorithm, and particle swarm optimization algorithm, can search within the range of feasible solutions to compare optimal solutions and thus obtain relatively optimal solutions.The proposed model is a multi-objective optimization model.At present, the mainstream solution methods that can be applied to such models can be divided into multiple criteria decision-making approaches in which multiple objectives are combined into one objective using weighting [29], and multi-objective evolutionary algorithms (MOEAs) based on Pareto optimization [30].Using the former type of method, human factors have a great influence on the results, which are cruder.Therefore, the nondominated sorting genetic algorithm (NSGA-II), which is a widely used MOEA, was selected as the solution method in this study.The NSGA algorithm was proposed by Deb in 1995 [31].In 2000, the same author optimized the algorithm complexity and added the elite retention strategy to the original algorithm to produce the NSGA-II algorithm.In contrast to traditional multi-objective algorithms, the NSGA-II algorithm does not need to consider the target weight.Other features of the algorithm include a low complexity of the process, high computational efficiency, and a well-distributed Pareto solution set.The algorithm also uses its own elite strategy and has high convergence efficiency; it can better approach the Pareto front and has many advantages in terms of solving multi-objective problems.NSGA-II algorithm has the disadvantage that individuals in the population tend to the same state and stop evolving, which then leads to the decline of population diversity, and the solution falls into the local optimum.In order to deal with this defect, in this study, we combined the NSGA-II algorithm with the double-population strategy.By referring to the relevant literature on adaptive probability, we then developed an adaptive algorithm that we named NSGA-II-DP.The proposed algorithm is described in detail below.

Gene Coding and Population Initialization
In the proposed model, the set of all vessels is labeled I, and 1-I represents each incoming and outgoing vessel.Vessel types, which constitute the set K, are numbered 1 . . .K. Set B is the set of berths, which are numbered 1 . . .B. As shown in Figure 4, the chromosome is coded using multiple coding information, which is used to encode information in the inbound and outbound stages of the vessel.The chromosome is divided into three layers.The first 1-I codes in the first layer correspond to 1-I inbound vessels.These 1-I codes are copied from coding positions I + 1 to I + I to represent the outbound stage of the same vessels.The codes from I + I + 1 to I + I + K are fixed vessel-type numbers.The first 1-2I codes in the second layer correspond to the overall service sequence of all vessels entering and leaving the port (entry and exit are considered together), and the codes 2I + 1 to 2I + K correspond to the speeds arranged for vessels of different types.The first 1-I codes in the third layer correspond to the numbers of the berths where vessels stop after entering the port.These 1-I codes are copied to the coding positions I + 1 to I + I to represent the berth numbers where vessels are located before they leave the port.Codes I + I + 1 to I + I + K have no meaning and are set to 0. The above steps are repeated in a similar fashion to generate a specified number of populated chromosomes to form the initial population (the first line of the NSGA-II-DP algorithm).
K. Set B is the set of berths, which are numbered 1 … B. As shown in Figure 4, the chromosome is coded using multiple coding information, which is used to encode information in the inbound and outbound stages of the vessel.The chromosome is divided into three layers.The first 1-I codes in the first layer correspond to 1-I inbound vessels.These 1-I codes are copied from coding positions I + 1 to I + I to represent the outbound stage of the same vessels.The codes from I + I + 1 to I + I + K are fixed vessel-type numbers.The first 1-2I codes in the second layer correspond to the overall service sequence of all vessels entering and leaving the port (entry and exit are considered together), and the codes 2I + 1 to 2I + K correspond to the speeds arranged for vessels of different types.The first 1-I codes in the third layer correspond to the numbers of the berths where vessels stop after entering the port.These 1-I codes are copied to the coding positions I + 1 to I + I to represent the berth numbers where vessels are located before they leave the port.Codes I + I + 1 to I + I + K have no meaning and are set to 0. The above steps are repeated in a similar fashion to generate a specified number of populated chromosomes to form the initial population (the first line of the NSGA-II-DP algorithm).

Fitness, Selection, Crossover, and Mutation
The fitness value is determined by the value of the model's objective function.Because the objective is to find the maximum value of the berth matching degree, its negative value is taken when calculating the fitness, which will calculate the minimum value like the other two fitness values.The chromosomes are decoded, and the value of the objective function is calculated to determine the fitness value (lines 7 and 18 in the NSGA-II-DP algorithm).In decoding, the chromosomes may correspond to an unreasonable service order.In the chromosome code, the sequence number of the service sequence of the same vessel at the outbound stage must be greater than at the inbound stage, and the positions in this sequence of different vessels at the same berth must also meet the priority relationship to ensure that the outbound time of the previous vessel has already been arranged when the next vessel arranges its inbound time.Therefore, the chromosome needs to be modified to ensure that it is reasonable (lines 6 and 17 in the algorithm).
The tournament selection method was used for the chromosome selection (line 14 in the algorithm).Two chromosomes were selected each time, and the dominant one was selected as the parent.If the two chromosomes were the same, one of them was randomly selected to be the parent for subsequent reproduction.If neither chromosome was dominant and the chromosomes were not the same, the selection operation was performed again.
As shown in Figure 5, because the coding logic is different for the service sequence, berths, and vessel speeds, different methods are used for the cross-operation in each case (line 15 in the algorithm).Take out the service sequence code, berth code, and speed code of the two parent generations, respectively, for the cross-operation.For the coding of the service sequence, the sequence crossing method is used.
1.After the crossover operation has been determined based on the crossover probability, two numbers between 0 and 2I are randomly generated as the crossover points, and the genes between the service sequence encoding crossover points of two parents are taken as the selected genes.

Fitness, Selection, Crossover, and Mutation
The fitness value is determined by the value of the model's objective function.Because the objective is to find the maximum value of the berth matching degree, its negative value is taken when calculating the fitness, which will calculate the minimum value like the other two fitness values.The chromosomes are decoded, and the value of the objective function is calculated to determine the fitness value (lines 7 and 18 in the NSGA-II-DP algorithm).In decoding, the chromosomes may correspond to an unreasonable service order.In the chromosome code, the sequence number of the service sequence of the same vessel at the outbound stage must be greater than at the inbound stage, and the positions in this sequence of different vessels at the same berth must also meet the priority relationship to ensure that the outbound time of the previous vessel has already been arranged when the next vessel arranges its inbound time.Therefore, the chromosome needs to be modified to ensure that it is reasonable (lines 6 and 17 in the algorithm).
The tournament selection method was used for the chromosome selection (line 14 in the algorithm).Two chromosomes were selected each time, and the dominant one was selected as the parent.If the two chromosomes were the same, one of them was randomly selected to be the parent for subsequent reproduction.If neither chromosome was dominant and the chromosomes were not the same, the selection operation was performed again.
As shown in Figure 5, because the coding logic is different for the service sequence, berths, and vessel speeds, different methods are used for the cross-operation in each case (line 15 in the algorithm).Take out the service sequence code, berth code, and speed code of the two parent generations, respectively, for the cross-operation.For the coding of the service sequence, the sequence crossing method is used.

1.
After the crossover operation has been determined based on the crossover probability, two numbers between 0 and 2I are randomly generated as the crossover points, and the genes between the service sequence encoding crossover points of two parents are taken as the selected genes.

2.
Child 1 is generated with the same gene and location as the selected gene of parent 1.

3.
The position of the selected gene of parent 1 in parent 2 is found; the remaining genes of parent 2 are added to child 1 in order.

4.
Similarly, the selected gene of parent 2 is used to generate child 2.
This step avoids the generation of unfeasible service sequence codes and reduces the number of correction operations.
The two-point crossing method is used for the berth coding, as follows.

1.
After the crossover operation has been determined by the crossover probability, two numbers between 0 and I are randomly generated, and the genes between the berth coding intersections of the two parents are selected as the selected genes.2.
The selected genes of the berth codes of the two parents are exchanged.3.
The 1-I genes of child 1 are copied to gene positions I + 1 to I + I; the same operation is then performed on child 2 to generate two new berth codes for the offspring.
The two-point crossing method is also used for the speed coding as follows. 1.
After the crossover operation has been determined by the crossover probability, two numbers between 0 and K are randomly generated as the intersection points, and the genes between the intersection points of the speed codes of the two parents are selected as the genes.2.
The selected genes of the speed codes of the two parents are exchanged to generate two new speed codes for the offspring.
Two new child chromosomes are then generated by integrating the progeny codes generated by the three crossover operations described above.

1.
3. The position of the selected gene of parent 1 in parent 2 is found; the remaining genes of parent 2 are added to child 1 in order.4. Similarly, the selected gene of parent 2 is used to generate child 2.
This step avoids the generation of unfeasible service sequence codes and reduces the number of correction operations.
The two-point crossing method is used for the berth coding, as follows.
1.After the crossover operation has been determined by the crossover probability, two numbers between 0 and I are randomly generated, and the genes between the berth coding intersections of the two parents are selected as the selected genes.2. The selected genes of the berth codes of the two parents are exchanged.3. The 1-I genes of child 1 are copied to gene positions I + 1 to I + I; the same operation is then performed on child 2 to generate two new berth codes for the offspring.
The two-point crossing method is also used for the speed coding as follows.
1.After the crossover operation has been determined by the crossover probability, two numbers between 0 and K are randomly generated as the intersection points, and the genes between the intersection points of the speed codes of the two parents are selected as the genes.2. The selected genes of the speed codes of the two parents are exchanged to generate two new speed codes for the offspring.
Two new child chromosomes are then generated by integrating the progeny codes generated by the three crossover operations described above.After determining the mutation operation to be performed based on the mutation probability, for the service sequence encoding, two numbers between 0 and 2I are randomly generated as the mutation points, and the genes of the two mutation points are exchanged in the chromosome.For the berth encoding, a number between 0 and I is randomly generated as the mutation point, and a berth is randomly selected from the assignable berths based on the vessel's position; the number of this berth is then used to replace the mutation point gene.For the speed encoding, a number between 0 and K is randomly After determining the mutation operation to be performed based on the mutation probability, for the service sequence encoding, two numbers between 0 and 2I are randomly generated as the mutation points, and the genes of the two mutation points are exchanged in the chromosome.For the berth encoding, a number between 0 and I is randomly generated as the mutation point, and a berth is randomly selected from the assignable berths based on the vessel's position; the number of this berth is then used to replace the mutation point gene.For the speed encoding, a number between 0 and K is randomly generated as the mutation point; the speed is then randomly generated within the specified speed range and used to replace the mutation point gene.After the mutation operation has been performed on all of the chromosomes (line 16 in the algorithm), the correction operation (line 17) is carried out to generate the offspring population.

Elite Retention Policy
The NSGA-II algorithm has its own elite retention policy.First, the parent population and the offspring population are merged to give a new joint population.Using fast nondominated sorting, the nondominated set Li is obtained.The smaller the i, the better an individual in the nondominated set.First, the individuals of set L1 are added to the new population; the nondominated sets L2, L3, . . .Li are then also added to the new population in order.When putting set Li into the new population, if the new population exceeds the upper population limit, the degree of crowding for each individual in Li is calculated and these are compared.The individuals in set Li are then arranged in descending order of the degree of crowding, and the individuals that meet the upper limit of the size of the new population are selected from the set in the same descending order and added to the new population (lines 23 and 24 of the algorithm).This ensures that the outstanding individuals from each generation will enter the next generation.

Adaptive Probability and Double-Population Strategy
The NSGA-II algorithm generally selects a fixed crossover probability and mutation probability within a given probability interval; however, a small probability will lead to the algorithm falling into the local optimum, whereas a large probability will destroy the heredity of the algorithm and affect the convergence.Therefore, after referring to the relevant literature, we chose to use the following crossover and mutation probabilities, which can be adjusted adaptively according to the population algebra [24]: Here, P c and P m are, respectively, the crossover and mutation probabilities of each generation in the iteration; P cmax and P cmin are the maximum and minimum values of the crossover probability, respectively; P mmax and P mmin are the maximum and minimum values of the mutation probability, respectively; iter is the number of current iterations; and numiter is the upper limit on the number of iterations.When the number of iterations is small, large crossover and mutation probabilities are obtained, which means that the algorithm can search over a large range to prevent it falling into a local optimum.When the number of iterations is large, the probability of crossover and mutation becomes smaller; this causes the algorithm to search close to the current optimal solution so that the loss of the optimal solution due to the destruction of heredity can be avoided.
As previously mentioned, when applying the NSGA-II algorithm, there is the problem of population individuals tending toward the same state and ceasing to evolve; the population diversity then decreases, and the algorithm falls into the local optimum.To address this problem, we adopted a double-population strategy and integrated this into the NSGA-II algorithm.The details of this strategy are as follows.
First, two initial populations are generated according to the population parameters and are selected, crossed, and mutated, and the elite individuals are retained.Next, the two populations will form their own nondominated set L1, and both replace the worst individuals in their populations with each other's nondominated set L1, thereby forming two new populations for the next iteration.If the number of the worst individuals in both populations, m, is less than the number of individuals from LI in the nondominated set of the other population, denoted n, then m individuals from LI that have a higher crowding degree will be used to replace the worst individuals so as to prevent the number of individuals in the new population from exceeding the upper limit (line 25 in Algorithm 1 NSGA-II-DP).Using this strategy, not only do the two populations evolve separately, which enhances the search ability of the algorithm, but each generation also introduces the optimal individuals of both sides into the other population.This prevents individuals from reaching the same state and ceasing to evolve, ensures the diversity of the population of each generation, reduces the possibility of the solution falling into local optimum, increases the heredity of the optimal individuals, and improves the convergence of the algorithm.
According to the above strategy, the NSGA-II-DP algorithm, which was intended to address the shortcomings of the NSGA-II algorithm, was constructed.This new algorithm was then used for the model calculations.

Case Study
In this section, a simulation that was performed using the model described in Section 4 will be discussed.This simulation involved the dispatch of 15 vessels and was based on the port layout described in Section 3. Details of the types of vessels and the berths used in the simulation are given in Tables 2 and 3, respectively.Due to the limitations of the channel width, 75000 DWT bulk carriers required one-way navigation throughout the simulation.Due to the limitations of the water depth in the channel, if fully loaded, the same class of carriers needed to enter and leave the port by the tide.The port has semi-diurnal tides, and the first tidal time window is at time [120,480].The distance data for the simulation are given in Table 4.The berthing time, t wi , of inbound vessels was generally 40 min, and the unberthing time, t wi , of outbound vessels was 15 min.The safe time interval, t sa f e , was set as 15 min, the unit time of discretization time was 1 min, the number of tugs in the port was 10, and the speed of the tugs was 5 knots.The speed limit range in the port channel was [8,10] knots, and the speed of the vessels in the harbor basin had to match the speed of the tugs.Specific data for the 15 vessels used in the simulation are listed in Table 5; these include details of the tonnage, type of operation (loading or unloading), cargo type, serial number of the stockyard space allocated to the vessel, coordinates of the center of this space, time of the vessel applying for inbound operations, and number of tugs required.We used a computer with a 2.59 GHz CPU and 16 GB RAM, together with MAT-LAB2017b software to run the NSGA-II-DP algorithm and solve the model.For the NSGA-II-DP algorithm, the parameter is set to: the population size was 300, and the upper limit on the number of iterations was 300.For the genetic algorithm, the crossover probability is generally between 0.5 and 1.0 and the mutation probability is usually between 0.001 and 0.5 [32].Therefore, we set the maximum value of the crossover probability as 1.0 and the minimum value as 0.5; the maximum value of the mutation probability was set to 0.5 and the minimum value to 0.001.
The final results of applying the NSGA-II-DP algorithm to our model consisted of Pareto solution sets containing optimization solutions for different target weights.These results could be used by port decision-makers according to the specific demands of the management of their own ports.The target values for each Pareto solution are listed in Table 6, and the Pareto frontier diagram is illustrated in Figure 6.The convergence curve and average value curve for each generation of the optimal values-F1, F2, and F3-of the three targets of the total scheduling time, berth matching degree, and fuel consumption are shown in Figures 7-9, respectively.As explained in Section 4, fuel consumption can be used to represent carbon emissions: the lower the fuel consumption, the lower the carbon emissions, and the greater the fuel consumption, the greater the carbon emissions.From Table 6 and Figure 6, it can be seen that the values of the two secondary targets (berth matching degree and fuel consumption) will affect the values of the primary target (total scheduling time).For a given berth matching degree, the smaller the fuel consumption-that is, the lower the carbon emissions-the longer the total scheduling time because the smaller the fuel consumption, the slower the speed of the ship, which will increase the sailing time.For a given fuel consumption-that is a given amount of carbon emissions-the greater the berth matching degree, the greater the total scheduling time.If vessels of the same type carrying the same cargo choose the same berth because it has a high matching degree, this will increase the waiting time of vessels in the queue.If an idle berth with a low matching degree is selected under these circumstances, the waiting time will be reduced but the matching will be too.The optimal solution for the total scheduling time from the Pareto solution set was then selected for verification of the model.The results of this are shown in Table 7.

Rationality Verification
This section will test the rationality of the model according to the optimal solution with the optimal total scheduling time in the Pareto solution set given in Table 7 and the requirements of navigation rules and port resource constraints.
As shown in Table 7, the actual start times of the individual vessels are not earlier than the start times that were applied for the inbound time.Additionally, the start and end times of vessels 3 and 15, which need to enter the port by the tide and of vessel 11, which needs to leave the port by the tide, are within the relevant tide time windows.The times that each vessel enters and leaves areas A, B, and C (see Figure 1) are listed in Table 8.A Gantt chart for the channel and berths is shown in Figure 10.According to the information in Table 8 and Figure 10, within the one-way navigation area, there is no time overlap between the inbound and outbound vessels.It can also be seen from Figure 10 that the inbound and outbound vessels that are not allowed to undertake two-way navigation (vessels 3, 11, and 15) remain in one-way navigation mode throughout the process of entering and leaving the port.In addition, according to these results, an appropriate safe time interval is maintained between successive inbound and outbound vessels.Therefore, it can be concluded that the results obtained by using the According to the information in Table 8 and Figure 10, within the one-way navigation area, there is no time overlap between the inbound and outbound vessels.It can also be As for the berth constraints, it can be seen from the Gantt chart in Figure 10 that there is no conflict between the berthing time and the berth space when the vessels are berthing and no time conflict between the vessels continuously berthing at the same berth.Therefore, again, the berth constraints in the model can be said to be reasonable.
The number of use of tugs scheduled for use at different times throughout the planning period is shown in Figure 11.It can be seen that the maximum number of tugs in use at the same time does not exceed the number of tugs in the port.This shows that the resource constraints in the model are also reasonable.
throughout the process of entering and leaving the port.In addition, according to these results, an appropriate safe time interval is maintained between successive inbound and outbound vessels.Therefore, it can be concluded that the results obtained by using the NSGA-II-DP algorithm to solve the proposed model conform to the navigation rules, which indicates that, in terms of time and navigation rules, the model constraints are reasonable.
As for the berth constraints, it can be seen from the Gantt chart in Figure 10 that there is no conflict between the berthing time and the berth space when the vessels are berthing and no time conflict between the vessels continuously berthing at the same berth.Therefore, again, the berth constraints in the model can be said to be reasonable.
The number of use of tugs scheduled for use at different times throughout the planning period is shown in Figure 11.It can be seen that the maximum number of tugs in use at the same time does not exceed the number of tugs in the port.This shows that the resource constraints in the model are also reasonable.The speed allocated by the model to each vessel type in the case study conforms to the speed constraints of the port, indicating that the model effectively accounts for the speed constraints.
It can be concluded that, based on the results presented in Table 8 and Figure 10, the model produces reasonable results.

Sensitivity Analysis
In the previous two sections, the proposed model was verified by analyzing the results of the case study involving 15 vessels.In this section, the results for cases with different numbers of tugs and different numbers of vessels will be analyzed.The results obtained using our model and the NSGA-II-DP algorithm will then be compared with the results obtained using the traditional FCFS strategy used by ports.This will allow the reliability of the model and the robustness of the algorithm, as well as their advantages, compared to the traditional FCFS strategy, to be tested.
Cases involving small, medium, and large vessels were generated.For these different cases, the results of applying the NSGA-II-DP algorithm and traditional FCFS strategy The speed allocated by the model to each vessel type in the case study conforms to the speed constraints of the port, indicating that the model effectively accounts for the speed constraints.
It can be concluded that, based on the results presented in Table 8 and Figure 10, the model produces reasonable results.

Sensitivity Analysis
In the previous two sections, the proposed model was verified by analyzing the results of the case study involving 15 vessels.In this section, the results for cases with different numbers of tugs and different numbers of vessels will be analyzed.The results obtained using our model and the NSGA-II-DP algorithm will then be compared with the results obtained using the traditional FCFS strategy used by ports.This will allow the reliability of the model and the robustness of the algorithm, as well as their advantages, compared to the traditional FCFS strategy, to be tested.
Cases involving small, medium, and large vessels were generated.For these different cases, the results of applying the NSGA-II-DP algorithm and traditional FCFS strategy will be compared in this section.Because the traditional FCFS strategy arranges vessels according to the order of the time of vessel applying for inbound and outbound operations, the order for servicing vessels is fixed.However, there are no detailed regulations on berth allocation.Therefore, for this analysis, we followed the principle of the FCFS strategy to allocate the berths as follows.The vessels that arrived earliest were allocated berths in order of the berth matching degrees (from high to low).For berths with the same matching degree, one of these berths was randomly selected.If all berths suitable for vessels have been allocated at this time, the berth with the earliest service end time was allocated to the vessel.If multiple berths were idle at the same time during the subsequent allocation, the berth with the highest matching degree was preferred for allocation.If several berths had the same matching degree, the random selection of berths could produce several different berth allocation plans, which could affect the results.Since the goal of using the FCFS strategy is to reasonably arrange the total vessel scheduling time, we selected the optimal result for the total scheduling time for comparison with the optimal solution with the optimal total scheduling time in the Pareto solution set obtained using the NSGA-II-DP algorithm.Table 9 shows the optimal values, F1, F2, and F3, for different targets calculated by the NSGA-II-DP algorithm for different numbers of vessels (5, 10, 15, 20, 25, and 30).It can be seen from the table that, for different numbers of vessels, Pareto solution sets containing optimized solutions with different objective weights can still be obtained using our model and the NSGA-II-DP algorithm.This illustrates the reliability of the model and the robustness of the NSGA-II-DP algorithm.Table 10 and Figure 12 show a comparison under different numbers of vessels between the results for the optimal vessel scheduling time that were obtained using the traditional FCFS strategy and optimal solution with the optimal total scheduling time in the Pareto solution set obtained using the NSGA-II-DP algorithm; here, F1 is the optimal scheduling time and F2 is the berth matching degree.Since vessel speeds cannot be set using the FCFS strategy, the speed from the NSGA-II-DP solution was used in this case.As a result, the fuel consumption and carbon emissions for the two sets of results were the same and no comparison between these was made.According to the analysis in Section 6.1, if different vessels of the same type carrying the same cargo choose the same berth with a high matching degree, the overall matching degree of the solution will increase; however, this will also increase the total scheduling time.If instead, one of these vessels chooses an idle berth with a low matching degree, the vessel's waiting time will be reduced; however, the overall matching degree will also be lower.In the cases with 5 and 10 vessels described above, based on the settings of the vessel and berth parameters, the number of berths in the port can meet the requirements of all vessels even if they enter the port at the same time.Therefore, according to the previous analysis, the optimal solution for the total vessel scheduling time selected from the Pareto solution set is a solution obtained by optimizing the total vessel dispatch time and the berth matching degree at the same time under the conditions that the same berth is not reused and the total scheduling time accounts for a large target weight.According to the above analysis, under the condition that berths are not reused, the berth allocation of the FCFS strategy is equivalent to taking the optimization of the berth matching degree as the goal, and because it does not need to consider the optimization of the total scheduling time, the FCFS strategy will obtain a better matching degree of berths similar to the former.Because in the case of 5 and 10 vessels, we set only one one-way navigable vessel, which is in the front of the fixed vessel service sequence of FCFS strategy, and it also needs priority scheduling in the optimization results given by our model and algorithm, and their service sequence has little impact on the scheduling time.Therefore, the fixed vessel service sequence used by the FCFS strategy is similar to the optimized vessel service sequence given by our model and algorithm and can produce good results in terms of the total scheduling time.Therefore, in these two special cases related to the parameter settings, the FCFS strategy will produce a solution similar to the optimal solution for optimal total scheduling time obtained using our model and the NSGA-II-DP algorithm.In the 5-and 10-vessel cases, the solutions obtained using the two methods each have their own advantages, but there is not much difference between them.However, as the total number of vessels increases, the number of one-way vessels increases; the fixed vessel service sequence of the FCFS then has difficulty in obtaining a better total scheduling time.In addition, the advantages related to berth resources become fewer, and the complexity of the berth allocation increases.It is difficult to provide a berth allocation scheme with a good berth matching degree based on the principle of first come first serve.Compared with the FCFS strategy, the use of our model together with the NSGA-II-DP algorithm can produce better solutions that meet the needs of multi-objective optimization.In this comparison, we choose the solution with the best total scheduling time in the Pareto solution set; compared with other solutions in the set, the berth matching degree for the optimal solution was relatively low.In contrast, the berth allocation method we used for the FCFS strategy tends to give priority to berths with a high matching degree.Therefore, compared with the results obtained using the FCFS strategy, the ability of the proposed method to optimize the total scheduling time is more obvious; the berth matching degree is also improved, and these advantages become greater as the number of vessels increases.In addition, the use of the proposed model with the NSGA-II-DP algorithm produces Pareto solution sets containing optimized solutions with different objective weights.The solution sets also contain other solutions in which the results for all objectives are better than the results obtained using the FCFS strategy when the number of vessels is small (this does not include the solution with the optimal total scheduling time in the solution set).Decision makers can be chosen by themselves according to management needs.Therefore, our model and NSGA-II-DP algorithm have more advantages in assisting port decision management.A case study in which the number of tugs was varied was also performed, with the case of 15 vessels in Section 6.1 as the basic case, and the number of tugs was changed to generate different cases.Table 11 and Figure 13 show a comparison between the results obtained using our model together with the NSGA-II-DP algorithm and those obtained using the traditional FCFS strategy.As before, since the vessel speed could not be set using the FCFS strategy, the speed from the NSGA-II-DP solution was used, which again meant that the fuel consumption and carbon emissions for the two sets of results were the same and no comparison was made.From the results, it can be seen that, for both sets of results, changing the number of tugs has little effect on the berth matching degree.In terms of the total vessel scheduling time, there is little change for the total scheduling time obtained through our model and the NSGA-II-DP algorithm when the upper limit on the number of tugs is 4, 6, 8, or 10; when the upper limit on this number is changed to two, the total vessel scheduling time obtained through our method increases slightly, whereas, for the FCFS strategy, the total vessel scheduling time increases significantly once the upper limit on the number of tugs falls below six.Because the FCFS strategy provides a fixed vessel service sequence, it cannot produce a better scheduling result if the number of tugs is changed, so the number of tugs has a great impact on the total scheduling time.However, our model and the NSGA-II-DP algorithm can always give an optimized vessel service sequence through optimization in cases of different upper limits of the number of tugs.This leads to better vessel scheduling results and reduces the impact of the change in the number of tugs on the results, which proves the reliability of our model and the robustness of the NSGA-II-DP algorithm.Overall, if the number of tugs is changed, the use of our model and the NSGA-II-DP algorithm always gives a better solution in terms of the multiple objectives of port scheduling than the FCFS strategy.In cases with different numbers of tugs, the results of our model and NSGA-II-DP algorithm are always better than the traditional FCFS strategy, and have obvious advantages in total scheduling time, which is in line with the previous analysis.A case study in which the number of tugs was varied was also performed, with the case of 15 vessels in Section 6.1 as the basic case, and the number of tugs was changed to generate different cases.Table 11 and Figure 13 show a comparison between the results obtained using our model together with the NSGA-II-DP algorithm and those obtained using the traditional FCFS strategy.As before, since the vessel speed could not be set using the FCFS strategy, the speed from the NSGA-II-DP solution was used, which again meant that the fuel consumption and carbon emissions for the two sets of results were the same and no comparison was made.From the results, it can be seen that, for both sets of results, changing the number of tugs has little effect on the berth matching degree.In terms of the total vessel scheduling time, there is little change for the total scheduling time obtained through our model and the NSGA-II-DP algorithm when the upper limit on the number of tugs is 4, 6, 8, or 10; when the upper limit on this number is changed to two, the total vessel scheduling time obtained through our method increases slightly, whereas, for the FCFS strategy, the total vessel scheduling time increases significantly once the upper limit on the number of tugs falls below six.Because the FCFS strategy provides a fixed vessel service sequence, it cannot produce a better scheduling result if the number of tugs is changed, so the number of tugs has a great impact on the total scheduling time.However, our model and the NSGA-II-DP algorithm can always give an optimized vessel service sequence through optimization in cases of different upper limits of the number of tugs.In this section, the reliability of the proposed optimization model and the robustness of the NSGA-II-DP algorithm were verified, as was the superiority of the proposed model and NSGA-II-DP algorithm over the traditional FCFS strategy used by ports in terms of meeting the multiple objectives of vessel scheduling.In port management, it is necessary to consider not only the total vessel scheduling time, but also other objectives.The FCFS strategy cannot be used to optimize the fuel consumption of vessels, and, as the number of vessels increases, the results for the total scheduling time and berth matching degree become poorer.However, by applying the proposed model and the NSGA-II-DP algorithm, better solutions for the multiple objectives can be obtained, and the advantages of the proposed method become clearer as the number of vessels increases.Using the traditional FCFS strategy, changing the number of tugs does not lead to better scheduling results because of the fixed vessel service sequence used.Additionally, as the number of tugs is reduced, the total scheduling time increases significantly.Using the proposed model together with the NSGA-II-DP algorithm, the vessel service sequence can always be optimized.This leads to better results for vessel scheduling and reduces the impact of changing the number of tugs on the results.The results obtained using our model and the NSGA-II-DP algorithm are better than those obtained using the traditional FCFS strategy In this section, the reliability of the proposed optimization model and the robustness of the NSGA-II-DP algorithm were verified, as was the superiority of the proposed model and NSGA-II-DP algorithm over the traditional FCFS strategy used by ports in terms of meeting the multiple objectives of vessel scheduling.In port management, it is necessary to consider not only the total vessel scheduling time, but also other objectives.The FCFS strategy cannot be used to optimize the fuel consumption of vessels, and, as the number of vessels increases, the results for the total scheduling time and berth matching degree become poorer.However, by applying the proposed model and the NSGA-II-DP algorithm, better solutions for the multiple objectives can be obtained, and the advantages of the proposed method become clearer as the number of vessels increases.Using the traditional FCFS strategy, changing the number of tugs does not lead to better scheduling results because of the fixed vessel service sequence used.Additionally, as the number of tugs is reduced, the total scheduling time increases significantly.Using the proposed model together with the NSGA-II-DP algorithm, the vessel service sequence can always be optimized.This leads to better results for vessel scheduling and reduces the impact of changing the number of tugs on the results.The results obtained using our model and the NSGA-II-DP algorithm are better than those obtained using the traditional FCFS strategy for any number of tugs.In addition, using the proposed model with the NSGA-II-DP algorithm produces a Pareto solution set, which can be used by decision-makers to select the solutions appropriate to their requirements and preferences.The results obtained using this model and NSGA-II-DP algorithm thus conform better to port management needs and can provide better assistance for decision-makers.

Sensitivity Analysis
In this section, a comparison between the results of applying the NSGA-II algorithm and NSGA-II-DP algorithm to different numbers of vessels will be used to demonstrate the superiority of the NSGA-II-DP algorithm.In order to ensure a fair comparison, the algorithms were both run 10 times in each case.Each calculation produces a Pareto solution set and optimal values for three objectives (total dispatch time, berth matching degree, and fuel consumption).The worst, best, and average values of the optimal values of each target in 10 calculations are shown in Table 12.The average values of these optimal values for different numbers of vessels over the 10 calculations are shown in Figures 14-16.From Table 12 and Figures 14-16, it can be seen that because the range of speeds is small, the feasible solution range for the fuel consumption is also small.Therefore, the NSGA-II and NSGA-II-DP algorithms give the same optimal value as each other for fuel consumption in cases of different numbers of vessels.For the total scheduling time and berth allocation, when the number of vessels is small (five vessels in the case of the total scheduling time and five or ten vessels in the case of the berth allocation), the feasible solution range is again small and the two algorithms converge to the same optimal values.However, as the number of vessels increases, the range of feasible solutions increases.cal significance as they can be used to support the decisions of port managers who can select solutions appropriate to their requirements.The proposed mathematical model is universally applicable and can be modified according to the actual needs of individual ports.However, there are still some additional problems that remain to be considered such as vessel delays, inner anchorages, pilot scheduling, and yard allocation.We will expand our research to include considerations of these problems in future studies.

Figure 1 .Figure 1 . 37 Figure 2 .
Figure 1.The constructed port layout, including an anchorage, restricted channel, and harbor Figure 1.The constructed port layout, including an anchorage, restricted channel, and harbor basin.J. Mar.Sci.Eng.2022, 10, x FOR PEER REVIEW 7 of 37

Figure 2 .
Figure 2. Layout of the berths and yard.

Figure 5 .
Figure 5. Illustration of the crossover and mutation operations.

Figure 5 .
Figure 5. Illustration of the crossover and mutation operations.

Figure 7 .
Figure 7. Optimal value convergence curve of total scheduling time and average value curve of each generation.

Figure 7 .
Figure 7. Optimal value convergence curve of total scheduling time and average value curve of each generation.

Figure 7 .
Figure 7. Optimal value convergence curve of total scheduling time and average value curve of each generation.

Figure 8 .
Figure 8. Optimal value convergence curve of the matching degree of the berth and average value curve of each generation.

Figure 9 .
Figure 9. Optimal value convergence curve of fuel consumption and average value curve of each generation.

Figure 8 . 37 Figure 8 .
Figure 8. Optimal value convergence curve of the matching degree of the berth and average value curve of each generation.

Figure 9 .
Figure 9. Optimal value convergence curve of fuel consumption and average value curve of each generation.

Figure 9 .
Figure 9. Optimal value convergence curve of fuel consumption and average value curve of each generation.

Figure 10 .
Figure 10.Gantt chart of the navigation channel and berths.

Figure 10 .
Figure 10.Gantt chart of the navigation channel and berths.

Figure 11 .
Figure 11.Number of tugs scheduled to operate at different times.

Figure 11 .
Figure 11.Number of tugs scheduled to operate at different times.

Figure 12 .
Figure 12.Comparison between the results of the NSGA-II-DP and FCFS strategies for different numbers of vessels.

Figure 12 .
Figure 12.Comparison between the results of the NSGA-II-DP and FCFS strategies for different numbers of vessels.

Figure 13 .
Figure 13.Comparison between the results of the total vessel scheduling time and the berth matching degree obtained using the traditional FCFS strategy and those obtained using the NSGA-II-DP algorithm for different numbers of tugs.

Figure 13 .
Figure 13.Comparison between the results of the total vessel scheduling time and the berth matching degree obtained using the traditional FCFS strategy and those obtained using the NSGA-II-DP algorithm for different numbers of tugs.

Figure 14 .
Figure 14.The average value of the optimal value of the total scheduling time over 10 calculations.

Figure 15 .
Figure 15.The average value of the optimal value of the berth matching degree over 10 calculations.

Figure 14 .
Figure 14.The average value of the optimal value of the total scheduling time over 10 calculations.

Figure 14 .
Figure 14.The average value of the optimal value of the total scheduling time over 10 calculations.

Figure 15 .
Figure 15.The average value of the optimal value of the berth matching degree over 10 calculations.Figure 15.The average value of the optimal value of the berth matching degree over 10 calculations.

Figure 15 .
Figure 15.The average value of the optimal value of the berth matching degree over 10 calculations.Figure 15.The average value of the optimal value of the berth matching degree over 10 calculations.

Table 2 .
Specifications of the different types of vessels used in the simulation.

Table 5 .
Details of the 15 vessels used in the simulation.

Table 6 .
Target values of solutions in the Pareto solution set.

Table 7 .
Optimal solutions with the optimal total scheduling time in the Pareto solution set.

Table 8 .
Time data for vessels entering and leaving areas A, B, and C.

Table 9 .
Results of applying the NSGA-II-DP algorithm to cases with different numbers of vessels.

Table 10 .
Results of applying the traditional FCFS strategy and the NSGA-II-DP algorithm to different numbers of vessels.

Table 11 .
Comparison between the results of the total vessel scheduling time obtained using the traditional FCFS strategy and those obtained using the NSGA-II-DP algorithm for different numbers of tugs.

Table 12 .
The optimal values of the three targets calculated for different numbers of vessels.The results are based on running the algorithms 10 times in each case.