Modelling and Metaheuristic for Gantry Crane Scheduling and Storage Space Allocation Problem in Railway Container Terminals

The gantry crane scheduling and storage space allocation problem in the main containers yard of railway container terminal is studied. Amixed integer programmingmodel which comprehensively considers the handling procedures, noncrossing constraints, the safetymargin and traveling time of gantry cranes, and the storagemodes in themain area is formulated. Ametaheuristic named backtracking search algorithm (BSA) is then improved to solve this intractable problem. A series of computational experiments are carried out to evaluate the performance of the proposed algorithm under some randomly generated cases based on the practical operation conditions. The results show that the proposed algorithm can gain the near-optimal solutions within a reasonable computation time.


Introduction
With the promotion of OBOR (One Belt and One Road) strategy, the trade contacts between China and the other countries have been improved significantly.As one of the most convenient and efficient modes of transportation, container transport has been popularized and developed all over the world.For some developed countries, the containerization ratio of general cargo has reached 80%, and the proportion of container cargo also has achieved 20%∼ 40% in all the amount of railway freight [1].Although the railway container transportation of China starts relatively late, the trend of development is very well.For example, in 2015, the year-on-year growth of the railway container freight volume in China is up to 20.2% [2].In terms of the midlong term railway network plan and the eleventh five-year plan of China Railway, a railway container transportation support system which takes 18 railway container terminals as the hub will be established.These terminals are located in the main economic centers and the significant ports, so the transportation resources are extremely rich and the developing potential is tremendous.
Multimodal and door to door transports are the main modes of modern railway container freight organization.The logistics service functions and levels determine the survivability and competitive capacity of the railway container terminals in the entire networked logistics system.As the crucial operation processes, the container handling and storage play a vital role at the aspects of accelerating cargo movement and saving circulation costs in the railway container terminals.Currently, the railway container terminals of China especially the sea port, land port, and metropolis located container freight transport hubs already had comparatively comprehensive handling, transferring, and storage system.However, some problems still exist in the operation systems of railway container terminals, such as low efficiency, high expenses, and weak response to the demand changes; thus the needs of modern logistics cannot be satisfied and even the competitiveness of the whole railway container transportation system is influenced.The reasonable management and control to the processes of railway container terminal have great importance to rationalize the equipment utilization, improve the operation ability and service quality, and enhance the safety and convenience of freight delivery.Compared with the traditional railway freight station, the railway container terminal is quite different in respect of the function and the equipment.As the product of modern logistics, railway container terminal is a complete logistics system to carry out many service tasks.In accordance with the modern logistics service functions of railway container terminal, there are certain functional zones established such as railway handling line, main area, assistant area, intrachannel, gate system, parking area, administration center, and other auxiliary facilities.The specific layout and functional zone division are presented in Figure 1.
In a typical railway container terminal, there are several operation regions established along with the rail line, and a number of gantry cranes are distributed in these regions to implement the handling tasks of container trains.When a railway container train arrived, the suitable stop position must be determined promptly.Normally, the container trains are assigned to the stop position near to the storage spaces in the main area, namely, the expected position.Whereas if the real position that the container train stopped is far away from the expected position, the unloading time of containers to the storage spaces will increase greatly, and the operation efficiency would be adverse influenced accordingly.After fixing the stop position, that is, the railway handling line in main area, then accordingly the unloading operations will be carried out.Some containers are unloaded to the outer container trucks through the gantry cranes and then delivered directly to the consignee.The rest of containers are unloaded to the available storage space of the main area through the gantry cranes, or to the inner container trucks, and then transferred to the assistant area.However, during the practical operation process, the number of containers unloaded to the assistant area is comparatively less and the storage position is relatively fixed in the actual unloading operation process; therefore the research of this paper is mainly focus on the gantry crane scheduling and storage space allocation problem in the main area.
For the purpose of facilitating the analysis and mathematical modelling, the containers that need to be unloaded are ranked from the tail to the head of a train, and the serial numbers are applied to indicate the task numbers of the unloading operations.Figure 2 illustrates the task division of a container train.Gantry crane is the main equipment placed over two railway tracks and have the cantilever to conduct the parallel processing of container transferring in the railway container terminal.For the sake of safety, all the gantry cranes which share the same tracks are not allowed to cross each other, and adequate distance between the adjacent gantry cranes must be kept as well, which will be the interference constraints in the mathematical model.
In this paper, the gantry crane scheduling and storage space allocation problem are integrated to be investigated which has more practical significance comparatively.The remainder of this paper is structured as follows: Section 2 surveys the literatures with respect to the gantry crane scheduling and storage space allocation problems in both railway container terminals and port terminals.Section 3 formulates a mixed integer programming model, and subsequently in Section 4, an improved backtracking search algorithm is proposed to obtain the solution.Then the computational experiments are conducted in Section 5.And finally, Section 6 concludes the article with an outline of future study.

Literature Review
Because the effect factors of the gantry crane scheduling and storage space allocation in railway container terminal are complex and the constraints are numerous, the simulation methods based on software are adopted to present the practical situation in most of the researches.Guo et al. [3] and Benna and Gronalt [4] established the simulation model according to the operation process in railway container terminal separately, and a series of experiments were conducted to evaluate the performance under various configuration.Nonetheless, the mathematical model is required for providing a precise description to the problem.Jeong and Kim [5] integrated the gantry crane scheduling, in and out container flow, and inner truck stop position decision problems as the railway freight station scheduling problem and proposed the relevant genetic and heuristic algorithm.Wang and Zhu [6] constructed a optimization model to minimize the idle time of gantry crane, and an ant colony algorithm was presented correspondingly.They also formulated the storage space allocation optimization models and introduced the rolling horizon method to solve this problem [7].Boysen et al. [8] carried out a train scheduling model in railway container yard and acquired the solution by using the dynamic programming method together with the beam search heuristic algorithm.The above-mentioned researches have begun to study the gantry crane scheduling and storage space allocation problem in railway container terminals, whereas these models are relatively simple and without considering the interference constraints.
Unlike the small number of studies in railway container terminals, the researches of quay gantry crane scheduling and berth allocation problems in port terminals which can provide some crucial inspiration for our research are comparatively rich.The quay gantry crane scheduling problem was first concerned by Daganzo [9] and then this problem has been studied constantly and intensively.As the objectives of operation, containers are gathered by different scopes by the researchers.Lee et al. [10] and Boysen et al. [11] carried on the research of quay gantry crane scheduling problem with bays.The former adopted a mixed integer programming method to establish the mathematical model and took the noncrossing constraints into consideration.The latter subdivided the bay area and regarded the cranes as two different sets.Meanwhile, the relevant optimization model was developed and two solution procedures (exact and heuristic) were proposed.However, the quay gantry crane scheduling problem with bays is proven to be NP-complete when the noncrossing and safety distance constraints were included [12].So currently, the tasks are often aggregated by container groups [13][14][15].Chen et al. [16] took a further study for the quay crane scheduling problem in the indented berth.Some properties of this problem were carefully analyzed and a mixed integer programming model was set up.Unsal and Oguz [17] synthetically considered some practical constraints and offered a programming model for this quay crane scheduling problem as well as the integrated scheduling problem.Expósito-Izquierdo et al. [18] illustrated the importance of the quay crane scheduling problem and designed a hybrid estimation of distribution algorithm along with the local search to obtain the best solution.Beyond that, an approximate evaluation is adopted to improve the computation.
The gantry cranes are assumed to travel freely and without any interference constraints in the original researches [19,20]; however it does not conform to the actual operation situations of the gantry cranes in port terminals.As the research continues, the interference constraints of the gantry cranes have been widely concerned [21][22][23].Although the introduction of interference constraints is more realistic, the complexity of the problem increases as well.In some related optimization field, the evolutionary or heuristic methods are put forward.Chlumecký et al. [24] adopted the genetic algorithm to optimize a rainfall-runoff model and provided a new concept of a random number generator.Su et al. [25] proposed a comprehensive learning artificial bee colony algorithm which used a pool of optimal foraging strategies to balance the exploration and exploitation tradeoff to solve the dynamic environments problems.Cui et al. [26] provided a ranking-based adaptive ABC algorithm, the parent food sources are chosen based on their rankings, and the selection probability of the food source is on the basis of the corresponding ranking.Particle swarm optimization is also widely used in solving the optimization problems.However, the premature convergence and stagnation which are caused by the subtraction-based solution update mechanism are the prominent problems.Kiran [27] presented a distributionbased update rule to overcome these issues and investigated it on 13 benchmark functions together with 3 engineering optimization problems.Meanwhile, some researchers employ the hybrid approach to improve the single algorithm [28,29].Li et al. [30] combined the local search phase in PSO with two global search phases in ABC in order to avoid the local optimal problem of PSO when solving the high-dimensional optimization problems and the slow convergence speed of ABC.Kıran and Gündüz [31] recombined the global best solutions gained by the PSO and ABC and took the recombination solution as the global best of PSO and the neighbor food source of ABC.For the gantry crane scheduling problem, Diabat and Theodorou [32] presented a genetic algorithm to solve the quay crane assignment and scheduling problem; meanwhile they proved the solution of genetic algorithm was better than that of exact methods from a series of computational experiments.Monaco and Sammarra [33] established a mixed integer model for the quay crane scheduling problem and proposed a tabu search algorithm to obtain the feasible solutions.Other heuristic approaches such as variable neighborhood search [34] and simulated annealing [35] are also used quite commonly.
To achieve a more realistic and reliable programming, the quay crane assignment problem, the quay crane scheduling problem, and the berth allocation problem are integrated to study at present.The implementation of integration mainly includes two approaches: (1) take the solution of the first problem as the input of the other problem.(2) Settle the two problems alternately.Raa et al. [36] combined the factors of vessel priorities, operation time, and preferred berthing locations to form a MILP model for the quay crane assignment and berth allocation problem; besides a hybrid heuristic approach was provided to get the solution.Elwany et al. [37] simultaneously handled the quay crane assignment and berth allocation problem.They also used a heuristics-based method to solve this NP-hard problem and acquired the satisfactory solutions.Different with the above two papers which focus on the number of cranes distributed to the vessel, Zeng et al. [38] pay more attention to the specific crane assigned to serve the vessel.In comparison, the researches of integrated quay crane scheduling and berth allocation problem are seldom.Song et al. [39] made use of the bilevel programming approach to solve this integrated problem and applied an improved genetic algorithm together with the branch-and-bound method to gain the solution.Lee and Wang [40] proposed a mixed integer programming model with the genetic algorithm to figure out the discrete quay crane scheduling and berth allocation problem.Nonetheless, some significant affecting factors as berthing position are not concerned adequately in these researches.
The storage space allocation problem in port terminals is first studied by Zhang et al. [41].And then Chen and Lu [42] deal with the problem of storage location assignment for outbound containers.They not only manage the storage locations in bays but also determine the specific storage locations for every container.The mixed integer programming model and the hybrid sequence stacking algorithm were utilized to settle this problem.To minimize the realignment and optimize the operations of the terminal, Rodriguez-Molins et al. [43] provided a domain-dependent heuristic planner which also can be applied to acquire the optimal allocation for each container.Silva et al. [44] proposed a GRASP and tabu search based hybrid algorithm to solve the dynamic space allocation problem which is verified to be a NP-hard problem.With the purpose of decreasing the expected waiting time of outer trucks, Yu and Qi [45] researched both the block space allocation problem and the correlative remarshaling problem.Three models were presented for distinct storing conditions, and a heuristic algorithm was designed accordingly.However, because the facilities scheduling factors are rarely incorporated in these models, there is still a certain limitation.
The gantry crane scheduling and storage space allocation are two closely connected problems; the proper storage space allocation is important in improving the performance of gantry cranes and reducing the operation time.Thus, an integrated frame of the two problems will be more efficient for the practical operation.However, there are abundant researches giving attentions to the quay crane scheduling, berth allocation, storage space allocation, or the integrated problems in port terminals; there is no research that concerns the integrated problem of gantry crane scheduling and storage space allocation in railway container terminals.Meanwhile, various appropriate solution approaches are lacked in solving this problem.

Mathematical Formulation
In this paper, the objective of the gantry crane scheduling and storage space allocation problem is to minimize the handling time of the container train.The handling procedures of gantry cranes to transfer the containers to the specific locations are as follows: firstly, the crane and trolley move to the current position of the unloading task.Then shift to the empty storage space or the transshipment truck with the heavy load and finish the drop operation.Finally, loosen the lock and lift with the empty load.There are two storage modes existing in the main area of railway container terminal: one is along with the railway track as shown in Figure 3(a), and another is vertical to the railway track which is displayed in Figure 3(b).Thus, the different model parameters ought to be input in the light of the storage direction of the containers.
Before establishing the gantry crane scheduling and storage space allocation model, the following assumptions are required: (1) The operation efficiencies of all the gantry cranes are the same.
(2) All the gantry cranes have the unique traveling speed.
(3) The gantry cranes in the same rail cannot cross each other when conducting the handling tasks of a train and a safety distance must be always kept between the adjacent gantry cranes.
(4) The processing task of a gantry crane should be finished before another task proceeded.
On the basis of the assumptions and the objectives, the mathematical model can be established according to the practical operation processes of the main area in the railway container terminal.The notations are defined as below:   : the sum of the average lift and drop time of gantry crane with heavy load, the average rise and fall time of gantry crane with empty load, and the alignment locking and unlocking time when the th task is transferred by the inner truck.
0  : the original operation time of the th task.
: the actual operation time of the th task.
Γ: a large enough positive number   = {1, the th task is assigned to gantry crane ; 0, otherwise} , the th task is arranged to the th storage space in main area; 0, otherwise}.
= {1, the th task is transferred to the assistant area by the inner truck; 0, otherwise} , the th task is completed no later than the start time of the th task; 0, otherwise}. Objective: Subject to: The objective function ( 1) is to minimize the maximum completion time of all the operations, and the maximum completion time is determined by constraint (2).Constraint (3) ensures the number of containers unloaded to the main area is not more than the total number of storage spaces in the main area.Constraint (4) guarantees a task can only be handled by one gantry crane.Constraint (5) determines that a container can just occupy one storage space of the main area.Constraint (6) and Constraint (7) emphasize that the containers only can be unloaded to the main area or the assistant area, and the total number of containers to these two areas equals the number of containers in the container train.Constraint (8) defines the required moving time of crane from the th task to the th task.Constraint (9) means the operation time of the th task.Specifically, the operation time of the th task is the sum of the moving time, rise and fall time, alignment and locking time, and alignment and unlocking time of the gantry crane when the container is unloaded to the main area or to the inner truck and transferred to the assistant area.In practice, the traveling of the crane and trolley often occurred at the same time, so the moving time is the larger value between the traveling times of crane and trolley.Constraint (10) redefines the operation time of the th task on considering the stop position of the container train.Constraint (11) undertakes that the start time of a task is not earlier than the soonest available time of the gantry crane  which is utilized to complete this task.Constraints ( 12) and ( 13) provide a definition to the decision variable   .The variable   equals 1 if and only if the th task is completed before the th task and equals 0 otherwise.Constraint (14) ensures the gantry cranes in the same track do not cross each other.The numbers of tasks and gantry cranes are in an ascending sort order from the tail of the container train.When   +   = 0 (i.e., the th task and the th task are conducted simultaneously, and the index of task  is less than ), if the th task is operated by gantry crane  and the th task is handled by gantry crane ℎ, then  + 1 ≤ ℎ.Similar to Constraint (14), Constraint (15) ensures that the adjacent gantry cranes always keep a safety distance when carrying out the simultaneous operation.Constraint (16) furnishes the value ranges of all the decision variables.

The Backtracking Search Algorithm for the Problem under Study
4.1.The Backtracking Search Algorithm.The backtracking search algorithm (BSA) is a relatively novel evolutionary algorithm at present; it was first introduced by Civicioglu [46] in 2013.Compared with the other evolutionary algorithms such as artificial bee colony (ABC) and particle swarm optimization (PSO) [46], the backtracking search algorithm has a better performance in model fitness, solution speed, and solving precision for solving the nonlinear, nondifferentiable and multimode complicated optimization problem.The reason why the backtracking search algorithm has such favorable property is the unique experimental population creation strategy, the control modes of search direction matrix and search boundary, and the operation methods of crossover and mutation.Even more worth mentioning, the search direction matrix of this algorithm is generated from the memorized previous generation of population and random selecting; therefore, the search efficiency and accuracy of the optimal solution are enhanced.
The backtracking search algorithm also adopts three genetic operators of selection, mutation, and crossover to produce the experimental population; the fundamental framework is as follows: Step 1 (initialization): (repeat) Step 2 (selection-I): (experimental population creation) Step 3 (mutation) Step 4 (crossover): (end of the experimental population creation) Step 5 (selection-II): (end of the repeat when the stop conditions are satisfied).
(1) Initialization.The uniform distribution expression (17) is introduced in the backtracking search algorithm to create the initial population , in which   is the individual of the population ,  is the population size, and  is the dimension of the optimization problem, that is, the design parameter of the problem,  = 1, 2, 3, . . ., ,  = 1, 2, 3, . . ., .
(2) Selection-I.As mentioned before, the search direction matrix is created by randomly choosing from the historical population which is memorized in the backtracking search algorithm.In selection-I, the historical population is initialized through formula (18), and then whether the historical population should be updated in accordance with the criterion (19) at the beginning of iteration is decided.Accordingly, the calculation efficiency is improved by means of the historical population recording and search direction navigating methods.Moreover, for the purpose of increasing the diversity of the individuals and avoiding premature convergence, the random permutations are made for some individuals while the historical population is determined.
if  <  then old fl  | ,  ∼  (0, 1) . ( (3) Mutation.During the producing of each generation of experimental population, ( 20) is utilized to mutate the population and develop the preliminary form of experiment population. in ( 20) is the coefficient of amplitude control to command the range of search direction matrix information acquisition.Obviously, the experimental population created in this step acquires parts of the favorable information from the historical population.Therefore, it plays a significant role in increasing the search efficiency of optimal solution.
(4) Crossover.After the step of mutation, the experimental population undertook a crossover to get the ultimate form  of experimental population of this generation.Different with the traditional methods of crossover, a rather complicated nonuniform method is employed in this algorithm; the concrete operation is as follows: firstly, assign the mutated experimental population Mutant to the population .Then generate a  ×  binary integer matrix .There are two preset ways randomly selected for the matrix generation, one is making use of the mix rate , as presented in (21), and another is choosing an element stochastically to carry out the operation at one time, as (22).Eventually, conduct the crossover of experimental population according to the value of the elements in the binary integer matrix .When the element in the binary integer matrix  is equal to 1, the elements in experimental population  are in line with the corresponding elements in population .The variation rate of elements in population  and the individual value after crossover are controlled separately by the mix rate parameter  and boundary control mechanism.
(5) Selection-II.The greedy choice strategy is introduced in this step to compare the fitness value of all the individuals in the experimental population  and the population ; then the individuals   with the larger fitness value in the experimental population  are assigned to   to accomplish the update.Subsequently, decide whether the best value of fitness  best in population  exceeds the global optimum value at present.If so,  best is taken as the new global optimum value.Repeat the steps mentioned above until the stop conditions are met.
To sum up, the specific implementation procedures of backtracking search algorithm are induced as below.
Step 1 (initialization).Determine the input and output parameters, define the algorithmic function, randomly create the original population  and old, and calculate the initial fitness value of population .
Step 2. Repeat the following procedures.
Step 7 (selection-II).Greedily select the individuals with larger fitness value to form the population .
Step 8.When the best value of fitness  best in population  exceeds the current global optimum value; consider the  best as the new global optimum value.Output the optimal result.
Step 9. End the repeat while the stop conditions are satisfied.

The Improved Backtracking Search Algorithm.
The original backtracking search algorithm can memorize the historical population and the search direction to enhance the calculation efficiency.Nonetheless, the search effect depends on the ability of acquiring the favorable information from the historical population to find a better solution.In consequence, with the purpose of further improving the search ability, enlightened by the particle swarm optimization algorithm, the selection step of backtracking search algorithm is modified.[47] Taking advantage of global optimum value information, the historical population developing formula ( 18) is replaced by the following equation: where   is the random real number ranging from −1 to 1 and follows the uniform distribution. best  is the th element of global optimum value found at present. best  is the th element of optimum value obtained by the current iteration. 1 and  2 are two positive constants.
Furthermore, to avoid falling into the local optimal solution and increasing the diversity of population, when the global optimum value cannot proceed to be optimized and the stop conditions are not satisfied, randomly create the population  according to (24) and then mutate the th solution of this population in accordance with (25) or ( 26) by using the global optimum value information.Finally, compare the fitness value of the th solution in randomly created population, that is,  rand  and the fitness value of the th solution in mutated population, that is,  mutate  ; choose the one with larger fitness value as the new population.
When rand(0, 1) ≤ 0.5, When rand(0, 1) > 0.5, where  is the scale parameter and the value is the positive integer commonly ranging from 2 to 5. Significantly, the backtracking search algorithm is the continuous intelligent optimization algorithm.It cannot be directly applied to the discrete gantry crane scheduling and storage space allocation problem in railway container terminal.Therefore, the permutation sequence approach is adopted in this paper to settle this problem.Through the permutation sequence approach, the structure of solution is recoded to denote the sequence of unloading tasks in container train.For example, Figure 4 demonstrates the encoding approach for 6 tasks.Correspondingly for decoding, the unloading tasks are assigned to the earliest available gantry cranes and the appropriate storage spaces on the basis of the obtained sequence; the procedures are presented in Algorithm 1.
The individual of population is denoted by the task numbers 1-6.
The decoding procedures of above-mentioned algorithm are present as in Algorithm 1.

Computational Experiments
The established mathematical model and the improved backtracking search algorithm are tested in this section by using three different cases which intend to settle the small size, the medium size, and the large size problems.Meanwhile, as the classical evolutionary and metaheuristic methods, the genetic algorithm (GA) and the artificial bee colony (ABC) are adopted to make the comparison.Subsequently, the results are analyzed comprehensively so as to obtain some significant conclusions.Each of the algorithms is run ten times for every case, and the reported results are the mean value of the ten calculations.The crossover and mutation probabilities of GA are ordered to be 0.4 and 0.1.All the computational procedures are implemented in MATLAB by the personal computer equipped Intel Core 2.4 GHz Processor and 2.0 GB RAM.

Instances Generation.
For all the three cases, the storage mode in the main area is along with the railway track.The ratio between the containers unloaded to the main area and the containers transferred to the assistant area by the inner trucks is set as 8 : 2. The initial position of the gantry cranes is randomly selected in [1, 𝑛].The traveling time of crane between the adjacent tasks   is set to 7.2 s.The safety distance required between the adjacent gantry cranes  is set to 1. Let the stop position factor  be 0.2.The traveling speed of the trolley of gantry crane V  is 0.5 m/s; the drop speed of gantry crane with heavy load V  is 0.2 m/s; the horizontal traveling time of the trolley of gantry crane to the inner truck  ℎ is 24 s, and the   and   are 97 s and 137 s, respectively.By convention, three layers of each storage space are arranged in the main area, and the drop distances of the gantry crane with the heavy load (  ) to the first, second, and third layers are 8.8 m, 6.3 m, and 3.8 m separately.Assume there are 52 storage spaces available at present, and the distance between the central axis of railway track and the th storage space (  ) is revealed in Table 1.Besides, the constants  1 and  2 in the backtracking search algorithm are all 1.5, and  is set as 4. Furthermore, the small size tests are conducted with the number of tasks ranging from 6 to 12, and the number of gantry cranes is 2 to 3. Similarly, as the medium size cases, all the combinations of  = {15, 16, 17, 18, 19, 20} and  = {2, 3, 4} are tested.For the large size problems, the number of tasks is chosen from {26, 27, 28, 29, 30, 40, 50}, and the number of gantry cranes is selected from {2, 3, 4}.

Results and Discussion
. The computational results of the small size cases are provided in Table 2.As predicted, the runtime presents an increasing trend.However, all the optimal solutions of these cases can be acquired within 2 seconds by using the improved backtracking search algorithm.
Comparatively, the runtime of GA and ABC is less than BSA, but some of the cases cannot be solved optimally by these two algorithms.
It can be seen from the outcomes in Table 3 that the runtime of these three algorithms grows a lot when solving the medium size cases.Obviously, the performance of BSA is superior to GA and ABC for the medium size problems; even the runtime of BSA is 6.99 seconds which is a little longer than GA and ABC.In addition, when the number of gantry cranes increased, the performance of BSA is influenced to a certain extent.The reason is that, with the increasing of gantry cranes, the effect of interference related constraints becomes more prominent when the algorithm searches for the optimal solution.Therefore, to avert the local optimum, the runtime of BSA gets longer.
Table 4 gives the optimal solutions and the corresponding runtime of GA, ABC, and BSA for the large size cases.For tests 13 to 21, the runtime of all the algorithms has a sharp rise.Particularly, with regard to the case with  = 50 and  = 4, the runtime of BSA is up to 204.10 seconds.Nevertheless, the effectiveness of BSA is much more visible when working out the large size problems within an acceptable runtime horizon.The average value of BSA is 548.24 while GA is 569.24 and ABC is 555.71.
From small size, medium size, and large size tests in Tables 2, 3, and 4, the proposed BSA is proved to be a prominent algorithm to solve the gantry crane scheduling and storage space allocation problem in railway container terminal.In the meantime, some features of BSA also can be obtained during the computation: (1) owing to the characteristics of the problem, the number of gantry cranes has some influence on the performance of BSA.(2) The historical population developing method together with the population creation and mutation strategy is redesigned; thus, the devised BSA takes more time to implement the calculation compared with GA and ABC.

Conclusion
This paper contributes to research the gantry crane scheduling and storage space allocation problem in railway container terminal through providing a mathematical model.The stop position of railway train, the handling procedures, noncrossing requirement, the safety distance of gantry cranes, and the storage modes in the main area were comprehensively considered in the established model.Moreover, to be more in line with the practice, the completion time of a task contains both the operation time and the traveling time of gantry crane.Then a novel metaheuristic backtracking search algorithm (BSA) was proposed to find the optimal solution.To achieve the goals of improving the search ability, avoiding falling into the local optimal solution and increasing the diversity of population, the historical population developing method, the population creation technique, and the mutation strategy of BSA were improved.Eventually, the computational experiment was conducted to assess the performance of the devised algorithm.It turned out that the proposed BSA is effective in solving the gantry crane scheduling and storage space allocation model and can acquire the approximate optimal solution within an acceptable time.Meanwhile, compared with GA and ABC, the BSA algorithm is more competitive when solving the medium and large size problems.Furthermore, there are some related works that can be done for the following research.For example, take the railway container terminal as a whole, combine the front operation region to the back yard, and integrate truck scheduling into

Figure 1 :
Figure 1: Sketch map of railway container terminal.

Figure 2 :
Figure 2: Task division of a container train.

Figure 3 :
Figure 3: Scheme of the storage direction in the main area of railway container terminal.
: the set of containers in need of operating; the number of tasks  ∈  : the set of gantry cranes,  ∈  : the set of storage spaces in main area; the storage space index  ∈   0  : the earliest available time of gantry crane   0  : the initial position of  (denoted by the task number)   : operation position of the th task (denoted by the task number)  0 : the expected stop position of container train : the real stop position of container train : the safety distance required between the adjacent gantry cranes   : the completion time of the th task  max : the maximum completion time of all the unloading tasks of the container train   : the traveling time of crane between the adjacent tasks   : the required traveling time of crane from the th task to the th task   : the distance between the central axis of railway track and the th storage space   : the drop distance of the gantry crane to the main area with the heavy load V  : the traveling speed of the trolley of gantry craneV  : the drop speed of gantry crane with heavy load   : the sum of the average lift time of gantry crane with heavy load, the average rise and fall time of gantry crane with empty load, and the alignment locking and unlocking time when the th task is arranged to the th storage space in main area.ℎ : the horizontal traveling time of the trolley of gantry crane to the inner truck.

Figure 4 :
Figure 4: Interpretation of the encoding scheme.

Table 1 :
The distance between the central axis of railway track and the storage space.

Table 2 :
Results of the random small size cases.

Table 3 :
Results of the random medium size cases.

Table 4 :
Results of the random large size cases.