An integrated scheduling method for quay crane berths based on improved genetic algorithm
By constructing a dual-objective terminal berth-quay crane integrated scheduling model and combining the reinforcement learning-Q learning algorithm, the scheduling of container terminal berths and quay cranes is optimized, which solves the problems of low berth and quay crane scheduling efficiency and pollutant emissions in the existing technology. problem, achieving better cost and pollutant emission control.
Patent Information
- Application Number
- CN202410060083.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-01-16
AI Technical Summary
Existing technology fails to effectively optimize the scheduling of container terminal berths and quay cranes, resulting in low operating efficiency and increased gas pollutant emissions, and fails to achieve the overall optimal scheduling results.
An integrated quayside berth scheduling method based on an improved genetic algorithm is used to construct a dual-objective terminal berth-quayside integrated scheduling model, combined with reinforcement learning-Q learning algorithm (RL-Q-NSGA-II) to minimize ship service costs and port The social cost of gas pollutant emissions in the area is targeted, and the integrated dispatch of berths and quay cranes is optimized.
It achieved better ship service costs and social costs of port gas pollutant emissions, with an overall optimization of 3.02% compared to the single-objective model, and significantly improved the convergence speed and optimal value of the objective function, verifying the effectiveness of the model.
Smart Images

Figure CN118014253B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of terminal scheduling, and in particular relates to a quay crane berth integrated scheduling method based on an improved genetic algorithm. Background Art
[0002] The berths and quay cranes of a container terminal are the core resource equipment for the terminal's front-line production operations. The quality of their scheduling plans directly affects the operating efficiency of the entire terminal.
[0003] In container terminal production, berth allocation is closely related to quay crane scheduling. On the one hand, berth allocation restricts quay crane scheduling. The time a ship spends in port is positively correlated with the number of quay cranes configured for the ship. Only by configuring a sufficient number of quay cranes for the ship can it be guaranteed to be completed on time. On the other hand, quay crane scheduling depends on berth allocation. Unreasonable berth allocation may cause problems such as idle or frequent movement of quay cranes, conflicts in quay crane operations, and greatly increase terminal operating costs. Therefore, only by integrated scheduling of berths and quay cranes can the overall optimal scheduling result be achieved.
[0004] Most of the previous issues on berth-quay crane scheduling have not considered the social costs of port gas pollutant emissions.
[0005] Therefore, how to further optimize the berth-quay crane scheduling of container terminals is a problem that needs to be solved. Summary of the invention
[0006] In order to overcome the problems of the prior art, the present invention proposes a quay crane berth integrated scheduling method based on an improved genetic algorithm. The method constructs a berth-quay crane integrated scheduling model based on nonlinear integer programming with the goal of minimizing port service costs and the social cost of port area gas pollutant emissions; in view of the randomness of the mutation process of the multi-objective solution algorithm NSGA-II, an improved algorithm RL-Q-NSGA-II based on the fixed-point mutation strategy of reinforcement learning-Q learning is designed to solve the model; thereby achieving the goal of promoting energy conservation and emission reduction at the terminal and controlling the terminal operating costs.
[0007] The object of the present invention is achieved in that:
[0008] A quay crane berth integrated scheduling method based on an improved genetic algorithm comprises the following steps:
[0009] Step 1: Construction of dual-objective berth-quay crane integrated scheduling model
[0010] S11, determine the objective function:
[0011] The ship service cost consists of four parts: the unit time cost of the ship waiting C 1 , the unit distance cost of the ship away from the preferred berth C 2, the unit time cost of the ship's delayed departure C 3 and the unit time loading and unloading cost C of each quay crane 4 ; Taking minimizing the ship service cost as the objective function 1, as shown in formula (1):
[0012]
[0013] In the formula, f 1 is the ship service cost, S is the set of ships that call at the port during the planning period, S = {1, 2, .. 15}, is the actual arrival time of vessel i, is the estimated arrival time of ship i, i∈S, B i is the actual berth of ship i, b i is the preferred berth of ship i, i∈S, is the estimated departure time of ship i, i∈S, is the actual departure time of ship i, T is the planning period, t is any time within the planning period, t∈T, q i is the number of quay cranes dispatched to ship i;
[0014]
[0015] The objective function 2 is to minimize the cost of ship pollutant emissions, as shown in formula (2):
[0016] minf 2 =∑ m∈M EC m (2)
[0017] In the formula, f 2 is the ship pollutant emission cost, M is the set of pollutant types, M = {1, 2, 3, 4}, EC m Cost of exhaust gas m emitted by ships;
[0018] S12, set constraints:
[0019] (1) The lower bound of the actual port time of ship i is set as shown in formula (3):
[0020]
[0021] (2) The target berth meets the length and draft restrictions of the berthed ship, as shown in formulas (4)-(5):
[0022]
[0023]
[0024] Where, B is the set of berths, B = {1, 2, 3, 4, 5, 6}; K is the set of ship berthing order; D j is the water depth of berth j, j∈B, SD i is the safe draft of ship i, i∈S; L j is the length of berth j, j∈B; SL i is the captain of ship i, i∈S;
[0025] (3) Each ship can only berth at one berth during the planning period, as shown in formula (6):
[0026]
[0027] (4) A berth can provide service to at most one ship at any time, as shown in formula (7):
[0028]
[0029] (5) Determine the berthing order of ships, as shown in formula (8):
[0030]
[0031] In the formula, x ij(k+1) Serve ship i at berth j in order k+1;
[0032] (6) The berthing time of ships berthing at the same berth should not overlap, as shown in formula (9):
[0033]
[0034] In the formula, x' ijk It means serving other ships that berth at the same berth j as the i-th ship;
[0035] (7) The number of quay cranes serving ship i at any time is limited to not more than the total number of quay cranes, as shown in formula (10):
[0036]
[0037] Where, Q is the set of quay cranes, Q = {1, 2, ... 24};
[0038] (8) The number of quay cranes serving a ship at any one time is limited to not more than the total number of quay cranes at the berth where the ship is located, as shown in formula (11):
[0039]
[0040] In the formula, Q j is the number of quay cranes available at berth j, j∈B;
[0041] (9) Formula (12) indicates that the quay crane should complete the designated ship loading and unloading tasks:
[0042]
[0043] In the formula, W is the average speed of the quay crane for loading and unloading operations; i is the total amount of loading and unloading tasks of ship i, i∈S;
[0044] (10) Formula (13) represents the constraint on the number of quay cranes dispatched to ship i:
[0045]
[0046] In the formula, is the minimum number of quay cranes dispatched to ship i, is the maximum number of quay cranes dispatched to ship i, i∈S;
[0047] (11) Formula (14) is used to ensure the continuity of ship loading and unloading operations:
[0048]
[0049] Where M 0 is a sufficiently large positive number;
[0050] (12) Formula (15) sets the lower bound of the actual departure time:
[0051]
[0052] (13) Calculate the actual arrival time and actual working time of the ship using formulas (16)-(17):
[0053]
[0054]
[0055] In the formula, is the port operation time of vessel i;
[0056] (14) Calculate the actual departure time using formula (18):
[0057]
[0058] In the formula, is the berthing time of ship i;
[0059] (15) Determine the value range of the decision variable using formulas (19)-(21):
[0060]
[0061]
[0062]
[0063] Step 2: Collection of relevant data of the terminal to be studied
[0064] S21, basic conditions of the surrounding waters and wharf to be studied:
[0065] Collect the water conditions around the dock to be studied from three aspects: meteorology, tides, and ocean currents;
[0066] Determine the main parameters of the berth and quay crane of the terminal to be studied, as well as the plane layout;
[0067] S22, model data collection:
[0068] The data collected include ship arrival data, ship actual speed data, ship arrival static data, and other relevant data given by the model described in step 1.
[0069] Step 3, model solution:
[0070] Based on the relevant data obtained in step 2, the model constructed in step 1 is solved by the reinforcement learning-Q learning-NSGA-II algorithm based on directed mutation to obtain the Pareto frontier solution set. Each point on the solution set corresponds to a berth-quay crane integrated scheduling scheme.
[0071] Furthermore, in step 2, S22, the ship arrival data includes loading capacity, unloading capacity, expected arrival time, expected departure time and preferred berth; the static data of the ship arriving at the port includes ship draft, captain data; ship construction year, ship design speed, ship main engine power data; ship auxiliary engine power, ship boiler power and ship main engine / auxiliary engine / boiler gas pollutant emission coefficient.
[0072] Furthermore, the specific method for solving the model in step 3 is:
[0073] S31, population initialization:
[0074] Randomly generate an initial parent population P with an initial population size of L t For each individual, double-layer chromosome encoding is used according to the following formula (22):
[0075]
[0076] In the formula, G L is a collection of chromosome codes; represents the first-level gene at position i of the chromosome, i.e., the berthing position of the i-th ship; represents the second-level gene at the i-th position of the chromosome, that is, the number of quay cranes serving the i-th ship, between and A random integer between is the minimum number of quay cranes dispatched to ship i, is the maximum number of quay cranes dispatched to ship i, i∈S; for the generated individuals, substitute into formulas (16) and (18) described in claim 1 to calculate the actual arrival time and actual departure time of the ship;
[0077] S32, crossover operation:
[0078] Using the simulated single-point binary crossover method, for two parent populations P t Two individuals in and The two offspring are obtained by the following formula (22): and This generates the offspring population Q t :
[0079]
[0080] In the formula, i = 1, .. n, m = 1, 2; β is the propagation factor, which is dynamically generated randomly by the distribution coefficient η. As shown in formula (24):
[0081]
[0082] S33, select operation:
[0083] The parent population P t and the offspring population Q t Merge into a new population R with a population size of 2M t , using objective functions 1 and 2 as fitness functions, for R t Perform non-dominated sorting. The specific steps include: calculating R t The number n of dominated individuals p in p and the dominating solution set S of individual p p ; Set n p = 0 are put into the set F 1 In the above example, eliminate F 1 The domination of the individuals in the group over the rest; calculate the number n of the dominated individuals of each remaining individual l l , n l = 0 are put into the set F 2 In the middle, eliminate F 2 The dominance of individuals in R over the rest of the individuals; repeat the above steps until R t All individuals in are divided into sets Fu The corresponding Pareto level is the set of individuals with u. For Z mutually independent individuals in the same set F, the crowding degree is calculated. The specific steps include: taking d u Indicates the congestion degree, take d u =0,d 1 =d Z =∞, all objective function values f k Arrange in ascending order, remember are the maximum and minimum values of the individual objective function respectively; the calculation formula of the congestion degree is shown in formula (25):
[0084]
[0085] S34, population update:
[0086] Adopting an elite retention strategy, giving priority to R t Individuals with a high degree of crowding in the middle until the population size reaches L;
[0087] S35, based on the reinforcement learning fixed-point mutation strategy, performs mutation operation:
[0088] The parent population P t+1 The set of all genes above is taken as the initial action set, the objective function is calculated to obtain the initial state set, and the state-action pair Q(s,a) is used as the Q matrix element; the fixed-point mutation process is used to select P t+1 The location of the key gene, and the uniform mutation method is used to perform the mutation operation and calculate the reward function R n Then update the Q matrix state until the Q matrix converges; the converged action set is used as the offspring population Q t+1 , repeat the above steps S32-S33 until the maximum number of iterations.
[0089] The advantages and beneficial effects of the present invention are:
[0090] In the integrated scheduling method of quay crane berths based on improved genetic algorithm described in the present invention, a dual-objective terminal berth-quay crane integrated scheduling model is constructed; by comparing the dual-objective scheduling model, the single-objective scheduling model, the FCFS service model and the actual scheduling results of the terminal, the effectiveness of the model is verified, and the following conclusions are drawn: compared with the FCFS service model and the actual scheduling results of the terminal, the ship service cost and the social cost of port area gas pollutant emissions obtained by this model are better; compared with the single-objective model that only considers the service cost, the overall optimization of this model is 3.02%. Finally, in order to verify the effectiveness of the algorithm, a comparative experiment between NSGA-II and RL-Q-NSGA-II is designed. The results show that the convergence speed of RL-Q-NSGA-II for objective function 1 and objective function 2, the iteration speed of the optimal value in the frontier solution, and the optimal value after convergence are significantly improved compared with NSGA-II. BRIEF DESCRIPTION OF THE DRAWINGS
[0091] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0092] Figure 1 is a flow chart of the RL-Q-NSGA-II algorithm of the present invention;
[0093] Figure 2 is a plan view of the CCT terminal according to an embodiment of the present invention;
[0094] Figure 3 It is a schematic diagram of the port waters of Shenzhen West Port Area according to the embodiment of the invention;
[0095] Figure 4 is a target ship speed variation diagram according to an embodiment of the invention;
[0096] Figure 5 It is a solution result diagram based on the RL-Q-NSGA-II algorithm described in the embodiment of the invention;
[0097] Figure 6 1 is a result diagram of the social cost ratio of various types of gas pollutant emissions during the period when the ship enters and leaves the port and is in the port according to the embodiment of the present invention; wherein (a) is the period when the ship enters and leaves the port, and (b) is the period when the ship is in the port;
[0098] Figure 7 It is a time-space diagram of ship berth-quay crane scheduling according to an embodiment of the present invention;
[0099] Figure 8 is a graph showing changes in ship service costs (a) and pollutant emission costs (b) according to an embodiment of the present invention;
[0100] Fig. 9 This is the NSGAII / RL-Q-NSGAIIPareto frontier solution distribution diagram described in the embodiment of the present invention. DETAILED DESCRIPTION
[0101] The present invention provides a quay crane berth integrated scheduling method based on an improved genetic algorithm, comprising the following steps:
[0102] Step 1: Construction of dual-objective berth-quay crane integrated scheduling model
[0103] S11, determine the objective function:
[0104] The ship service cost consists of four parts: the unit time cost of the ship waiting C 1 , the unit distance cost of the ship away from the preferred berth C 2 , the unit time cost of the ship's delayed departure C 3 and the unit time loading and unloading cost C of each quay crane 4 ; Taking minimizing the ship service cost as the objective function 1, as shown in formula (1):
[0105]
[0106] In the formula, f 1 is the ship service cost, S is the set of ships that call at the port during the planning period, S = {1, 2, .. 15}, is the actual arrival time of vessel i, is the estimated arrival time of ship i, i∈S, B i is the actual berth of ship i, b i is the preferred berth of ship i, i∈S, is the estimated departure time of ship i, i∈S, is the actual departure time of ship i, T is the planning period, t is any time within the planning period, t∈T, q i is the number of quay cranes dispatched to ship i.
[0107]
[0108] The objective function 2 is to minimize the cost of ship pollutant emissions, as shown in formula (2):
[0109] minf 2 =∑ m∈M EC m (2)
[0110] In the formula, f 2 is the ship pollutant emission cost, M is the set of pollutant types, M = {1, 2, 3, 4}, EC m The cost of ship exhaust gas m.
[0111] S12, set constraints:
[0112] (1) The lower bound of the actual port time of ship i is set as shown in formula (3):
[0113]
[0114] (2) The target berth meets the length and draft restrictions of the berthed ship, as shown in formulas (4)-(5):
[0115]
[0116]
[0117] Where, B is the set of berths, B = {1, 2, 3, 4, 5, 6}; K is the set of ship berthing order; D j is the water depth of berth j, j∈B, SD i is the safe draft of ship i, i∈S; L j is the length of berth j, j∈B; SL i is the captain of ship i, i∈S.
[0118] (3) Each ship can only berth at one berth during the planning period, as shown in formula (6):
[0119]
[0120] (4) A berth can provide service to at most one ship at any time, as shown in formula (7):
[0121]
[0122] (5) Determine the berthing order of ships, as shown in formula (8):
[0123]
[0124] In the formula, x ij(k+1) Serve ship i at berth j in order k+1.
[0125] (6) The berthing time of ships berthing at the same berth should not overlap, as shown in formula (9):
[0126]
[0127] In the formula, x' ijk It represents the service for other ships that berth at the same berth j as the i-th ship.
[0128] (7) The number of quay cranes serving ship i at any time is limited to not more than the total number of quay cranes, as shown in formula (10):
[0129]
[0130] Where Q is the set of quay cranes, Q = {1, 2, ... 24}.
[0131] (8) The number of quay cranes serving a ship at any one time is limited to not more than the total number of quay cranes at the berth where the ship is located, as shown in formula (11):
[0132]
[0133] In the formula, Q j is the number of quay cranes available at berth j, j∈B.
[0134] (9) Formula (12) indicates that the quay crane should complete the designated ship loading and unloading tasks:
[0135]
[0136] In the formula, W is the average speed of the quay crane for loading and unloading operations; i is the total amount of loading and unloading tasks of ship i, i∈S.
[0137] (10) Formula (13) represents the constraint on the number of quay cranes dispatched to ship i:
[0138]
[0139] In the formula, is the minimum number of quay cranes dispatched to ship i, is the maximum number of quay cranes dispatched to ship i, i∈S.
[0140] (11) Formula (14) is used to ensure the continuity of ship loading and unloading operations:
[0141]
[0142] Where M 0 is a sufficiently large positive number.
[0143] (12) Formula (15) sets the lower bound of the actual departure time:
[0144]
[0145] (13) Calculate the actual arrival time and actual working time of the ship using formulas (16)-(17):
[0146]
[0147]
[0148] In the formula, is the operating time of ship i in port.
[0149] (14) Calculate the actual departure time using formula (18):
[0150]
[0151] In the formula, is the berthing time of ship i, i∈S.
[0152] (15) Determine the value range of the decision variable using formulas (19)-(21):
[0153]
[0154]
[0155]
[0156] Step 2: Collection of relevant data of the terminal to be studied
[0157] S21, basic conditions of the surrounding waters and wharf to be studied:
[0158] Collect the water conditions around the dock to be studied from three aspects: meteorology, tides, and ocean currents;
[0159] Determine the main parameters of the berths and quay cranes of the terminal to be studied, as well as the plane layout.
[0160] S22, model data collection:
[0161] The data collected include ship arrival data, ship actual speed data, ship static data at port, and other relevant data given by the model in step 1. Specifically, the ship arrival data include loading capacity, unloading capacity, expected arrival time, expected departure time and preferred berth; the ship static data at port include ship draft, ship length data; ship construction year, ship design speed, ship main engine power data; ship auxiliary engine power, ship boiler power and ship main engine / auxiliary engine / boiler gas pollutant emission coefficient.
[0162] Step 3, model solution:
[0163] Based on the relevant data obtained in step 2, the model constructed in step 1 is solved using the reinforcement learning-Q learning-NSGA-II algorithm based on directed mutation to obtain the Pareto frontier solution set. Each point on the solution set corresponds to a berth-quay crane integrated scheduling solution. The specific method is:
[0164] S31, population initialization:
[0165] Randomly generate an initial parent population P with an initial population size of L tFor each individual, double-layer chromosome encoding is used according to the following formula (22):
[0166]
[0167] In the formula, G L is a collection of chromosome codes; represents the first-level gene at position i of the chromosome, i.e., the berthing position of the i-th ship; represents the second-level gene at the i-th position of the chromosome, that is, the number of quay cranes serving the i-th ship, between and A random integer between is the minimum number of quay cranes dispatched to ship i, is the maximum number of quay cranes dispatched to ship i, i∈S; for the generated individuals, substitute into formulas (16) and (18) described in claim 1 to calculate the actual arrival time and actual departure time of the ship.
[0168] S32, crossover operation:
[0169] Using the simulated single-point binary crossover method, for two parent populations P t Two individuals in and The two offspring are obtained by the following formula (22): and This generates the offspring population Q t :
[0170]
[0171] In the formula, i = 1, .. n, m = 1, 2; β is the propagation factor, which is dynamically generated randomly by the distribution coefficient η. As shown in formula (24):
[0172]
[0173] S33, select operation:
[0174] The parent population P t and the offspring population Q t Merge into a new population R with a population size of 2M t , using objective functions 1 and 2 as fitness functions, for R t Perform non-dominated sorting. The specific steps include: calculating R t The number n of dominated individuals p in p and the dominating solution set S of individual p p ; Set n p = 0 are put into the set F 1 In the middle, eliminate F1 The domination of the individuals in the group over the rest; calculate the number n of the dominated individuals of each remaining individual l l , n l = 0 are put into the set F 2 In the middle, eliminate F 2 The dominance of individuals in R over the rest of the individuals; repeat the above steps until R t All individuals in are divided into sets F u The corresponding Pareto level is the set of individuals with u. For Z mutually independent individuals in the same set F, the crowding degree is calculated. The specific steps include: taking d u Indicates the congestion degree, take d u =0,d 1 =d Z =∞, all objective function values f k Arrange in ascending order, remember are the maximum and minimum values of the individual objective function respectively; the calculation formula of the congestion degree is shown in formula (25):
[0175]
[0176] S34, population update:
[0177] Adopting an elite retention strategy, giving priority to R t Individuals with a higher crowding degree are removed until the population size reaches L.
[0178] S35, based on the reinforcement learning fixed-point mutation strategy, performs mutation operation:
[0179] The parent population P t+1 The set of all genes above is taken as the initial action set, the objective function is calculated to obtain the initial state set, and the state-action pair Q(s,a) is used as the Q matrix element; the fixed-point mutation process is used to select P t+1 The location of the key gene, and the uniform mutation method is used to perform the mutation operation and calculate the reward function R n Then update the Q matrix state until the Q matrix converges; the converged action set is used as the offspring population Q t+1 , repeat the above steps S32-S33 until the maximum number of iterations.
[0180] Example:
[0181] This embodiment applies the improved genetic algorithm-based integrated scheduling method for quay crane berths to an actual production terminal, Shenzhen Chiwan Container Terminal. Based on the inventor's field work experience and comprehensive understanding of the current status of terminal production, combined with terminal production data, the rationality of the model and the effectiveness of the algorithm are further verified.
[0182] 1. Overview of the Terminal
[0183] 1. Basic Situation of the Port Waters in the Western Port Area of Shenzhen
[0184] The Western Port Area of Shenzhen is located at the east bank of the Lingdingyang in the Pearl River Estuary, where the Fanshi Waterway meets the Anshidun Waterway, with good natural water depth conditions. Meanwhile, the waters of the Western Port Area of Shenzhen are the only passage for ships traveling between the Hong Kong Special Administrative Region and the upper reaches of the Pearl River, and the ship traffic flow is very intensive. This section introduces the natural conditions of the port waters from three parts: meteorology, tide, and ocean current respectively.
[0185] (1) Meteorology and Tide
[0186] The Western Port Area of Shenzhen belongs to the subtropical marine monsoon climate. According to the statistics of the Chiwan Meteorological Observation Station, the average number of days with strong winds of level 6 and above per year is 34.8 days. There are about 4 - 5 tropical cyclones affecting the Western Port Area of Shenzhen every year, and the tropical cyclones hit the Western Port Area of Shenzhen head-on about once every 2.5 years; the average number of foggy days (visibility not exceeding 1 km) affecting ship navigation is 12 days per year. The tidal pattern number of the Western Port Area of Shenzhen is 0.5 < F ≤ 2.0, belonging to the irregular semi-diurnal tide type, and the daily inequality of the tide is significant. The average flood tide duration is 6 hours and 18 minutes, and the average ebb tide duration is 6 hours and 25 minutes.
[0187] (2) Ocean Current
[0188] Affected by the flow from the Pearl River and the tide, it is basically an irregular rectilinear current. The flood current direction in the waters opposite the Chiwan Container Terminal is NNW, and the ebb current direction is SSE. The ebb current is greater than the flood current. The average flow velocity in the maximum flood tide section and the maximum vertical flood current velocity in the Tonggu waters are 0.43 m / s and 1.05 m / s (in the NNE direction) respectively; the average flow velocity in the maximum ebb tide section and the maximum vertical ebb current velocity are 0.52 m / s and 1.16 m / s (in the SSW direction) respectively. The maximum ebb current velocity recorded in the Shekou Warning Area is 4.4 knots, and the maximum flood current velocity is 4.2 knots.
[0189] 2. Basic Situation of the Terminal
[0190] Shenzhen Chiwan Container Terminal Co., Ltd. (Chiwan Container Terminal, abbreviated as CCT) is located on the Nantou Peninsula in the west of Shenzhen, on the east bank of the Pearl River Estuary, only 20 nautical miles away from the Hong Kong Special Administrative Region. It is one of the three major terminals in the Western Port Area of Shenzhen and is affiliated to China Merchants Port Group Co., Ltd. The annual designed throughput capacity of CCT is 6.2 million TEUs, and it is the "sea gateway" connecting the world and the Pearl River Delta Economic Circle.
[0191] At present, CCT covers an area of 78 hectares, directly manages 7 berths with a total berth length of 2,347 meters, a yard storage capacity of 80,700 TEUs, 26 available quay cranes, 72 tire yard cranes, and 186 in-port container trucks, providing 24-hour uninterrupted service 365 days a year. The main parameters of the terminal berths and quay cranes are shown in Tables 1 and 2, and the plane layout is as follows Figure 2 shown.
[0192] Table 1 CCT terminal berth static data
[0193]
[0194] Table 2 Main parameters of CCT terminal quay crane
[0195]
[0196] 2. Application of the dual-objective berth-quay crane integrated scheduling model
[0197] 1. Model data
[0198] (1) Ship arrival data
[0199] In this example, the arrival of the ship CFL at the front of the terminal at 15:00 on January 10, 2022 is selected as the starting point 0 of the planning cycle. In units of minutes, 15 ships that berthed continuously at CCT within 84 hours are studied as research objects. The target ship arrival data is shown in Table 3.
[0200] Table 3 Target ship arrival data
[0201]
[0202] (2) Actual ship speed data
[0203] As mentioned above, the western port area of Shenzhen is a must-pass area for ships traveling between the Hong Kong Special Administrative Region and the upper reaches of the Pearl River. The waterways in the port area are dense and the scope of the water area is difficult to define. This embodiment uses the pilot boarding point P (22°24′299″N, 113°53′618″E) as the starting and ending points for ships entering and leaving the port. Figure 3 Based on the ship AIS data, the actual speed V of the target ship entering and leaving the port a like Figure 4 As shown. Combined with the actual speed change of the ship, the corresponding cruising condition is: V a Between 8-12 knots, corresponding to low speed conditions; V a Between 1-8 knots, corresponding to maneuvering conditions; V a Less than 1 knot, corresponding to the mooring condition.
[0204] (3) Static data of ships arriving at the port
[0205] Based on the ship AIS data, the ship's draft and length data are given; based on the ship's construction data, the ship's construction year, ship's design speed, and ship's main engine / auxiliary engine power data are given, as shown in Table 4; the ship's boiler power is 423KW (deceleration / maneuvering / mooring conditions) / 675KW (cruise conditions). The ship's main engine / auxiliary engine / boiler gas pollutant emission coefficients are shown in Table 5.
[0206] Table 4 Ship construction data arriving at the port
[0207]
[0208] Table 5 Emission coefficients of ship main engine, auxiliary engine and boiler (g / kwh)
[0209]
[0210] (4) Other data
[0211] Now give other data input of the model: C 1 =2000 yuan / hour, C 2 = 5000 yuan / berth, C 3 =4000 yuan / hour, C 4 = 2160 yuan / hour; the average efficiency of quay crane loading and unloading is Average energy consumption per unit operation of quay crane qc =2.87KWh / TEU; average peak power of the field bridge P d =22.4KW / h; average travel distance of container truck to complete unit workload d i =1.38km / TEU.
[0212] 2. Model solution
[0213] Based on the above data, the experimental parameters of this embodiment are set as follows: population size N = 200, number of objective functions M = 2, crossover probability P c =0.5, the mutation probability P of each position m =0.5, maximum number of iterations Gen max =200, the RL-Q-NSGA-II algorithm based on directed mutation is used to solve the Pareto frontier solution set. Figure 5 Each point on the solution set corresponds to a berth-quay crane integrated scheduling scheme, and the objective function value of each scheme is shown in Table 6:
[0214] Table 6 Pareto frontier solution set
[0215]
[0216] 3. Results Analysis
[0217] Figure 6 The Pareto frontier solution set of the dual-objective discrete berth-quay crane scheduling problem considering the social cost of ship gas pollutant emissions and ship service costs is shown. As shown in Table 6, the fluctuation range of the frontier solution of ship service costs is [1033040, 1067600], and the fluctuation range of the frontier solution of the social cost of port gas pollutant emissions is [1854950, 1993578]. The results show that:
[0218] (1) In the Pareto frontier solution, the ship service cost is negatively correlated with the social cost of port gas pollutant emissions. This is because the share of port gas pollutant emissions from ships is greater than that from land-based ports. Therefore, shortening the time ships spend in port can effectively reduce the social cost of port gas pollutant emissions, but more quay cranes, container trucks and yard cranes are required, and the ship service cost increases accordingly.
[0219] (2) The fluctuation range of the social cost of port area ship service costs and port area gas pollutant emissions is small. This is because the different scheduling schemes corresponding to the Pareto frontier solution only differ in the number of quay crane scheduling, which only affects the time the ship stays in the port, and does not generate additional ship delay costs and waiting costs.
[0220] In order to balance the two objectives, the solution 15 with the minimum total cost in the Pareto frontier solution set is selected as the final solution, and a detailed berth-quay crane scheduling solution is given as shown in Table 7. According to scheduling solution 15, the social cost proportion of various types of gas pollutant emissions during the entry and exit of each ship and during the period of stay in the port is calculated, as shown in Figure 6 This scheme corresponds to the ship berth-quay crane scheduling time-space diagram, as shown in Figure 7 As shown, it is used to verify the non-overlapping time of different ships in port and the ships calling at the same berth at different times.
[0221] At the same time, in order to verify the effectiveness of the algorithm model of the present invention, the following three models are set up in this embodiment for comparative analysis: First Come First Served (FCFS) model: ships that arrive at the port first are given priority in service; ships only dock at their preferred berths, and if there are other ships operating at the berth, the ships need to wait; the maximum number of available quay cranes is used to provide services to ships. (2) A single-objective optimization model that only considers service costs, that is, the constraints and decision variables remain unchanged, and only minimizing the ship service cost is used as the objective function. (3) Actual terminal scheduling results. The comparison of various costs under different models is shown in Table 8.
[0222] Table 7 Berth-quay crane dispatch results (unit: minutes)
[0223]
[0224] Note: Quay cranes 04 and 05 are operating barges at berth 9# and are not involved in liner operations.
[0225] Table 8 Comparison of emission costs under different models (unit: yuan)
[0226]
[0227] It can be seen from Table 8 that compared with the FCFS model, the dual-objective integrated scheduling model described in this application calculates the social cost of ship service costs and port gas pollutant emissions with better results. Among them, the ship service cost is optimized by 18.60%, and the social cost of gas pollutant emissions is optimized by 8.5%. Compared with the single-objective optimization model that only considers the service cost, although the ship service cost of the dual-objective scheduling model is slightly improved, the total cost is optimized by 3.02%; compared with the actual scheduling results, the ship service cost is optimized by 39.8%, and the social cost of gas pollutant emissions is optimized by 17.8%, which is a large optimization range. This is because this application approximates the ship's time in port with the ship's operating time, and due to the lifting and lowering of the big arm of the terminal crane, the disassembly and assembly of reinforcement rods during loading and unloading operations, the lifting of hatch covers, inspections and inspections by customs and maritime departments, ship material replenishment, etc., the proficiency of operators and some emergencies (equipment failures), will cause the actual time of the ship in port to be greater than the ship's operating time. Therefore, in actual production, the social cost of terminal service costs and ship gas pollutant emissions is higher.
[0228] 4. Algorithm performance analysis
[0229] To verify the effectiveness of the improved algorithm, this example compares the performance of the RL-Q-NSGA-II and NSGA-II algorithms. Figure 8 It can be seen that from the perspective of convergence speed, RL-Q-NSGAII has significantly improved the convergence speed of objective function 1 and objective function 2, the decreasing speed of the optimal value in the frontier solution, and the optimal value after convergence compared with NSGA-II. Fig. 9 It can be seen that compared with NSGA-II, the Pareto frontier solution set of RL-Q-NSGAII is more dense, more evenly distributed, and has a better overall solution set. Therefore, the performance of the comparative algorithm of RL-Q-NSGAII is significantly improved over that of NSGA-II.
[0230] In summary, this application studies the dual-objective discrete berth-quay crane integrated scheduling problem. Based on the actual production situation of the terminal, a berth-quay crane integrated scheduling model based on nonlinear integer programming is constructed with the goal of minimizing the port service cost and the social cost of port area gas pollutant emissions. In view of the randomness of the mutation process of the multi-objective solution algorithm NSGA-II, an improved algorithm RL-Q-NSGA-II based on the fixed-point mutation strategy of reinforcement learning-Q learning is designed to solve the model. At the same time, this application carried out an empirical study and applied the dual-objective scheduling model to the Shenzhen Chiwan Container Terminal. The results show that the service cost of the ship is negatively correlated with the social cost of the ship's gas pollutant emissions. If port enterprises only consider controlling the ship service cost, which leads to an increase in the ship's port time, it will incur huge social costs for the emission of port area gas pollutants. By comparing the dual-objective scheduling model, the single-objective scheduling model, the FCFS service model and the actual scheduling results of the terminal, the effectiveness of the model was verified, and the following conclusions were drawn: Compared with the FCFS service model and the actual scheduling results of the terminal, the ship service cost and the social cost of gas pollutant emissions in the port area obtained by this model are better; compared with the single-objective model that only considers the service cost, the overall optimization of this model is 3.02%. Finally, in order to verify the effectiveness of the algorithm, a comparative experiment between NSGA-II and RL-Q-NSGA-II was designed. The results show that the convergence speed of RL-Q-NSGA-II for objective function 1 and objective function 2, the iteration speed of the optimal value in the frontier solution, and the optimal value after convergence are significantly improved compared with NSGA-II.
[0231] Finally, it should be noted that the above is only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred arrangement scheme, a person skilled in the art should understand that the technical solution of the present invention (such as the use of various formulas, the sequence of steps, etc.) can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A quay crane berth integrated scheduling method based on improved genetic algorithm, characterized in that: The method comprises the following steps: Step 1: Construction of dual-objective berth-quay crane integrated scheduling model S11, determine the objective function: The ship service cost consists of four parts: the unit time cost of the ship waiting C1, the unit distance cost of the ship away from the preferred berth C2, the unit time cost of the ship's delayed departure C3 and the unit time loading and unloading cost of each quay crane C4. The objective function 1 is to minimize the ship service cost, as shown in formula (1): Where f1 is the ship service cost, S is the set of ships that call at the port during the planning period, S = {1, 2, .. 15}, is the actual arrival time of vessel i, is the estimated arrival time of ship i, i∈S, B i is the actual berth of ship i, b i is the preferred berth of ship i, i∈S, is the estimated departure time of ship i, i∈S, is the actual departure time of ship i, T is the planning period, t is any time within the planning period, t∈T, q i is the number of quay cranes dispatched to ship i; The objective function 2 is to minimize the cost of ship pollutant emissions, as shown in formula (2): minf2=∑ m∈M EC m (2) Where f2 is the cost of ship pollutant emissions, M is the set of pollutant types, M = {1, 2, 3, 4}, BE m Cost of exhaust gas m emitted by ships; S12, set constraints: (1) The lower bound of the actual port time of ship i is set as shown in formula (3): (2) The target berth meets the length and draft restrictions of the berthed ship, as shown in formulas (4)-(5): Where, B is the set of berths, B = {1, 2, 3, 4, 5, 6}; K is the set of ship berthing order; D j is the water depth of berth j, j∈B, SD i is the safe draft of ship i, i∈S; L j is the length of berth j, j∈B; SL i is the captain of ship i, i∈S; (3) Each ship can only berth at one berth during the planning period, as shown in formula (6): (4) A berth can provide service to at most one ship at any time, as shown in formula (7): (5) Determine the berthing order of ships, as shown in formula (8): In the formula, x ij(k+1) Serve ship i at berth j in order k+1; (6) The berthing time of ships berthing at the same berth should not overlap, as shown in formula (9): In the formula, x' ijk It means serving other ships that berth at the same berth j as the i-th ship; (7) The number of quay cranes serving ship i at any time is limited to not more than the total number of quay cranes, as shown in formula (10): Where, Q is the set of quay cranes, Q = {1, 2, ... 24}; (8) The number of quay cranes serving a ship at any one time is limited to not more than the total number of quay cranes at the berth where the ship is located, as shown in formula (11): In the formula, Q j is the number of quay cranes available at berth j, j∈B; (9) Formula (12) indicates that the quay crane should complete the designated ship loading and unloading tasks: In the formula, W is the average speed of the quay crane for loading and unloading operations; i is the total amount of loading and unloading tasks of ship i, i∈S; (10) Formula (13) represents the constraint on the number of quay cranes dispatched to ship i: In the formula, is the minimum number of quay cranes dispatched to ship i, is the maximum number of quay cranes dispatched to ship i, i∈S; (11) Formula (14) is used to ensure the continuity of ship loading and unloading operations: In the formula, M0 is a sufficiently large positive number; (12) Formula (15) sets the lower bound of the actual departure time: (13) Calculate the actual arrival time and actual working time of the ship using formulas (16)-(17): In the formula, is the port operation time of vessel i; (14) Calculate the actual departure time using formula (18): In the formula, is the berthing time of ship i, i∈S; (15) Determine the value range of the decision variable using formulas (19)-(21): Step 2: Collection of relevant data of the terminal to be studied S21, basic conditions of the surrounding waters and wharf to be studied: Collect the water conditions around the dock to be studied from three aspects: meteorology, tides, and ocean currents; Determine the main parameters of the berth and quay crane of the terminal to be studied, as well as the plane layout; S22, model data collection: Collect data including ship arrival data, ship actual speed data, ship arrival static data, and other relevant data given by the model described in step 1; Step 3, model solution: Based on the relevant data obtained in step 2, the model constructed in step 1 is solved by using the reinforcement learning-Q learning-NSGA-II algorithm based on directed mutation to obtain the Pareto frontier solution set. Each point on the solution set corresponds to a berth-quay crane integrated scheduling scheme. The specific method of solving the model is: S31, population initialization: Randomly generate an initial parent population P with an initial population size of L t For each individual, double-layer chromosome encoding is used according to the following formula (22): In the formula, G L is a set of chromosome codes; represents the first-level gene at position i of the chromosome, i.e., the berthing position of the i-th ship; represents the second-level gene at the i-th position of the chromosome, that is, the number of quay cranes serving the i-th ship, between and A random integer between is the minimum number of quay cranes dispatched to ship i, is the maximum number of quay cranes dispatched to ship i, i∈S; for the generated individuals, substitute into the formulas (16) and (18) to calculate the actual arrival time and actual departure time of the ship; S32, crossover operation: Using the simulated single-point binary crossover method, for two individuals in the two parent populations i and The two offspring are obtained by the following formula (22): and This generates the offspring population Q t : In the formula, i = 1, .. n, m = 1, 2; β is the propagation factor, which is dynamically generated randomly by the distribution coefficient η. As shown in formula (24): S33, select operation: The parent population P t and the offspring population Q t Merge into a new population R with a population size of 2M t , using objective functions 1 and 2 as fitness functions, for R t Perform non-dominated sorting. The specific steps include: calculating R t The number n of dominated individuals p in p and the dominating solution set S of individual p p ; Set n p = 0 are put into the set F1 to eliminate the domination of the individuals in F1 over the remaining individuals; calculate the number n of the dominated individuals l of the remaining individuals l , n l = 0 are put into the set F2 to eliminate the domination of the individuals in F2 over the rest of the individuals; repeat the above steps until R t All individuals in are divided into sets F u The corresponding Pareto level is the set of individuals with u. For Z mutually independent individuals in the same set F, the crowding degree is calculated. The specific steps include: taking d u Indicates the congestion degree, take d u =0,d1=d Z =∞, all objective function values f k Arrange in ascending order, remember are the maximum and minimum values of the individual objective function respectively; the calculation formula of the congestion degree is shown in formula (25): S34, population update: Adopting an elite retention strategy, giving priority to R t Individuals with a high degree of crowding in the middle until the population size reaches L; S35, based on the reinforcement learning fixed-point mutation strategy, performs mutation operation: The parent population P t+1 The set of all genes above is taken as the initial action set, the objective function is calculated to obtain the initial state set, and the state-action pair Q(s,a) is used as the Q matrix element; the fixed-point mutation process is used to select P t+1 The location of the key gene, and the uniform mutation method is used to perform the mutation operation and calculate the reward function R n Then update the Q matrix state until the Q matrix converges; the converged action set is used as the offspring population Q t+1 , repeat the above steps S32-S33 until the maximum number of iterations.
2. The integrated scheduling method for quay crane berths based on improved genetic algorithm according to claim 1 is characterized in that: In step 2, S22, the ship arrival data includes loading capacity, unloading capacity, expected arrival time, expected departure time and preferred berth; the static data of the ship arriving at the port includes ship draft, captain data, ship construction year, ship design speed, ship main engine power data, ship auxiliary engine power, ship boiler power and ship main engine, auxiliary engine and boiler gas pollutant emission coefficient.
