Automated Design of Relocation Rules For Minimisin
Automated Design of Relocation Rules For Minimisin
(1) develop a GP based hyperheuristic method to optimise the above it must be moved to another stack to allow retrieval. RS uses
total energy consumption for CRP; PF to decide which stacks the containers above the target container
(2) compare priority functions for relocation rules evolved by should be moved to in order to relieve the target containers. This
GA and GP. is done iteratively, one container at a time. RS determines the con-
tainer that needs to be moved next, and PF assigns a numeric value
2 CRP PROBLEM DESCRIPTION to each stack to which the given container can be moved. Depend-
We consider the single bay CRP in which the bay consists of 𝑆 stacks ing on PF, the container is moved to the stack for which the best
with 𝐻 tiers. Every stack has a height denoted with ℎ(𝑆) that has to value was determined.
be less or equal to the maximum height 𝐻 . There are 𝐶 containers RSs are simple algorithms that are defined manually. Based on
in the bay and a single crane that can move one container at a time. the moves that are allowed we distinguish between the restricted
Each container has a different priority, which denotes the order of and the unrestricted RS. In the restricted version, only containers
their retrieval from the yard. To solve the problem, two types of located above the target container may be moved, while in the
operations can be performed by the gantry crane, relocation and unrestricted version, there is no such restriction, i.e., all containers
retrieval. Relocation moves a container from the top of one stack to located on top of their stack may be moved.
another, which can be done only if the stack to which the relocation
is being made has a height smaller than 𝐻 . The second operation,
3.2 Using GA and GP for developing PFs
retrieval, picks a container from the top of the stack and moves it to
the truck used for loading, which is located at position 0 denoting Designing a good PF manually is a challenging task, because of
the beginning of the bay. which several attempts to automate this process were performed.
Each container in the bay has an ID that determines in which Partial automation was done in [6], in which the authors manually
order they need to be retrieved. The container with the smallest ID defined a general expression with a certain number of free parame-
in the yard is the one that needs to be retrieved next, and is called ters that were optimised with GA. In a more recent work the entire
the target container. If the target container is not located at the top PF was developed using GP [15], which achieved significantly better
of its stack, it is required to relocate all the containers above it to performance than several existing manually designed PFs.
different stacks. The stack from which the container is moved is In this work, we consider both ways to design PFs to optimise
called the origin stack, whereas the stack to which the container is the total energy consumption for CRP. Both GA and GP use the
moved is called the destination stack. All relocation and retrieval same evolutionary scheme, with the the main difference being the
sequences that guarantee the crane can retrieve every container in representation of individuals. The GA uses a list of floating point
a predetermined order denote feasible CRP solutions. The goal is to numbers denoting the parameters it optimises, while GP uses the
find a sequence that minimises a given objective. In this study we standard expression tree representation. The evaluation is done
optimise the total energy consumed while retrieving all containers using a fitness function that evaluates each individual on a set of
from the yard, which can be defined as [6]: problems and assigns a numerical value (fitness) to the individual.
In each iteration, a 3-tournament selection is used, the two better
𝑀
∑︁ of the selected individuals are used for crossover, and the worst
𝑇 𝐸𝐶 = 𝑊𝑚 (ℎ ∗ ℎ𝑚 + 𝑙 ∗ 𝑙𝑚 + 𝑥 ∗ 𝑥𝑚 ),
is replaced by a newly created individual to which the mutation
𝑚=1
operator is applied with a certain probability. This is repeated until
where: the maximum number of fitness function evaluations is reached.
• ℎ (𝑙) – energy consumed per ton for one tier hoisted (lowered) In [6], the authors propose the global retrieval heuristic (GRH)
• 𝑥 – energy consumed per ton when moving the crane stack for restricted CRP with container weights to optimise total en-
• ℎ𝑚 (𝑙𝑚 ) – tiers hoisted (lowered) during move 𝑚 ergy consumption. In this study, we adapt GRH to also work with
• 𝑥𝑚 – stacks crossed during move 𝑚 the unrestricted RS to test whether this can improve the results.
• 𝑊𝑚 – moving weight of move 𝑚; 𝑊𝑚 = 𝑊𝑠 + 𝑊𝑐 , where 𝑊𝑠 When deciding where to move the container, GRH uses a penalty
denotes the weight of the crane, and 𝑊𝑐 denotes the weight function and selects the stack that received the lowest value. The
of the container moves (equals to 0 if crane was empty) penalty function is given by expression (1), and the description of
• 𝑀 – number of moves required to retrieve all containers. the variables can be found in the Tables 1 and 2. Table 2 outlines the
Based on [6], values for ℎ, 𝑙, 𝑥 are set to 0.9, 0.02 and 0.08 respec- variables that the algorithm uses as inputs, while Table 1 contains
tively, while crane weight 𝑊𝑠 is equal to 0.5 tons. the free parameters that must be set before solving the problem
and whose values are between 0 and 1. The idea presented in the
3 METHODOLOGY paper [6] is to apply a GA to determine the free parameters from
Table 1. The GA uses a simple floating-point encoding, where each
3.1 Relocation rules individual consists of 12 real numbers, each denoting one of the
Relocation rules (RRs) represent simple constructive heuristics that parameters.
iteratively build the solution to CRP. They consist of two parts - GP as a hyperheuristic achieves good results in automatic de-
the relocation scheme (RS) and the priority function (PF) [15]. RS velopment of scheduling rules [1, 10] and has been successfully
takes care of problem constraints and creates a plan for container applied to the basic CRP problem [15], in which the total number of
retrieval and relocation. If the container that needs to be retrieved relocations and crane operation time were optimised. Encouraged
next is on top of its stack, it is retrieved, otherwise, the containers by this, in this paper we apply GP to generate PFs to minimise the
Conference’17, July 2017, Washington, DC, USA
If we compare the rules obtained with GP and the GRH, we see for CRPs with non-standard criteria, especially considering that
that the rules generated by GP perform better in almost all cases. it uses the same system properties as GRH. Thus, we see that the
This is most evident in the restricted variant, where even the worst additional flexibility of GP to freely design the expression of PF gives
solution obtained with GP outperforms the best solution obtained it the ability to obtain better solutions than rules where the structure
with GRH. The only discernible advantage of GRH is that the re- is manually defined and only the corresponding coefficients are
sults are less dispersed than with GP. However, as these results optimised. Based on these results, we conclude that GP can be used
are generally worse, this has no obvious advantage. On average, to generate effective RRs for new problem variants of CRP.
the results obtained with GP are about 5% better than those ob- In the future work we will propose several new terminal nodes
tained with GRH. The statistical tests showed that restricted RRs for minimising total energy consumption. Furthermore, it is planned
evolved by GP perform significantly better than all other RR vari- to optimise the energy consumption in a multi-objective scenario
ants, thus confirming its superiority. Furthermore, the restricted RR with other criteria like the total number of relocations. Finally, the
variants always perform significantly better than their unrestricted model considering energy minimisation will be extended to other
counterparts, proving that the restricted variants are preferable for CRP variants including multiple bays and duplicate containers.
optimising this criterion. Finally, GP evolved RRs always perform
better than GA evolved rules, except in one case in the Zhu dataset, ACKNOWLEDGMENTS
where only GP-U and GRH-R perform equally well. Based on these This research has been supported by the Croatian Science Founda-
results, we can conclude that GP is more appropriate for designing tion under project IP-2019-04-4333 and the Spanish State Agency
new RRs, compared to GA coupled with GRH. for Research (AEI) under research project PID2019-106263RB-I00.
2200000 REFERENCES
2150000
[1] Jürgen Branke, Su Nguyen, Christoph W. Pickardt, and Mengjie Zhang. 2016.
Automated Design of Production Scheduling Heuristics: A Review. IEEE Transac-
2100000
tions on Evolutionary Computation 20, 1 (2016), 110–124. https://doi.org/10.1109/
TEVC.2015.2429314
2050000
[2] Marco Caserta, Silvia Schwarze, and Stefan Voß. 2012. A mathematical formula-
tion and complexity considerations for the blocks relocation problem. European
2000000 Journal of Operational Research 219, 1 (2012), 96–104. https://doi.org/10.1016/j.
ejor.2011.12.039
1950000 [3] Marco Caserta, Stefan Voß, and Moshe Sniedovich. 2011. Applying the corridor
method to a blocks relocation problem. OR Spectrum 33, 4 (2011), 915–929.
1900000 https://doi.org/10.1007/s00291-009-0176-5
[4] Camila Díaz Cifuentes and María Cristina Riff. 2020. G-CREM: A GRASP approach
GP-R GP-U GRH-R GRH-U to solve the container relocation problem for multibays. Applied Soft Computing
Journal xxxx (2020), 106721. https://doi.org/10.1016/j.asoc.2020.106721
[5] Tomislav Erdelić and Tonči Carić. 2019. A Survey on the Electric Vehicle Routing
(a) Caserta dataset Problem: Variants and Solution Approaches. Journal of Advanced Transportation
2019 (May 2019), 1–48. https://doi.org/10.1155/2019/5075671
[6] Mazen Hussein and Matthew E.H. Petering. 2012. Genetic algorithm-based
31500000
simulation optimization of stacking algorithms for yard cranes to reduce fuel
consumption at seaport container transshipment terminals. 2012 IEEE Congress
31000000 on Evolutionary Computation, CEC 2012 1 (2012), 10–15. https://doi.org/10.1109/
CEC.2012.6256471
30500000 [7] Raka Jovanovic, Shunji Tanaka, Tatsushi Nishi, and Stefan Voß. 2019. A GRASP
approach for solving the Blocks Relocation Problem with Stowage Plan. Flexible
30000000
Services and Manufacturing Journal 31, 3 (2019), 702–729. https://doi.org/10.
1007/s10696-018-9320-3
[8] Kap Hwan Kim and Gyu Pyo Hong. 2006. A heuristic rule for relocating blocks.
29500000
Computers and Operations Research 33, 4 (2006), 940–954. https://doi.org/10.
1016/j.cor.2004.08.005
29000000 [9] Israel López-Plata, Christopher Expósito-Izquierdo, and J. Marcos Moreno-Vega.
GP-R GP-U GRH-R GRH-U
2019. Minimizing the operating cost of block retrieval operations in stacking
facilities. Computers & Industrial Engineering 136 (2019), 436–452. https://doi.
org/10.1016/j.cie.2019.07.045
(b) Zhu dataset [10] Su Nguyen, Yi Mei, and Mengjie Zhang. 2017. Genetic programming for pro-
duction scheduling: a survey with a unified framework. Complex & Intelligent
Figure 1: Results of automatically designed RRs. Systems 3, 1 (Feb. 2017), 41–66. https://doi.org/10.1007/s40747-017-0036-x
[11] Riccardo Poli, William B. Langdon, and Nicholas Freitag McPhee. 2008. A field
guide to genetic programming.
[12] Kun-Chih Wu and Ching-Jung Ting. 2010. A beam search algorithm for mini-
6 CONCLUSIONS AND FUTURE WORK mizing reshuffle operations at container yards. , 703–710 pages.
[13] Wenbin Zhu, Hu Qin, Andrew Lim, and Huidong Zhang. 2012. Iterative
In this paper, the application of GP to automatically generate RRs for deepening A* algorithms for the container relocation problem. IEEE Trans-
actions on Automation Science and Engineering 9, 4 (2012), 710–722. https:
solving CRP with the aim of minimising total energy consumption //doi.org/10.1109/TASE.2012.2198642
was investigated. The method was tested on an extensive set of [14] Marko Ðurasević and Domagoj Jakobović. 2022. Heuristic and metaheuristic
experiments and compared with GRH, where the parameters for RR methods for the parallel unrelated machines scheduling problem: a survey. Artifi-
cial Intelligence Review (Aug. 2022). https://doi.org/10.1007/s10462-022-10247-9
are adjusted using a GA. The experimental results show that RRs [15] Marko Ðurasević and Mateja Ðumić. 2022. Automated design of heuristics for the
designed using GP significantly outperform those designed using container relocation problem using genetic programming. Applied Soft Computing
GRH. This shows the versatility of GP in obtaining high quality RRs 130 (2022), 109696. https://doi.org/10.1016/j.asoc.2022.109696