Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

IEEE - 56998

OPTIMAL SHIP ROUTE SEARCH BASED


ON MULTI-OBJECTIVE GENETIC
ALGORITHM
Ashwin R1, Ilamparithi Yaazharasu CR2, Pavan Teja Ramana3, Paladugu Shilpa4, Jeyakumar G5
Department of Computer Science and Engineering, Amrita School of Computing, Coimbatore,
Amrita Vishwa Vidyapeetham, India.
1
cb.en.u4cse19345@cb.students.amrita.edu, 2cb.en.u4cse19325@cb.students.amrita.edu,
3
cb.en.u4cse19343@cb.students.amrita.edu, 4cb.en.u4cse19342@cb.students.amrita.edu,
5
g jeyakumar@cb.amrita.edu (corresponding author)

Abstract—Optimization of ship routing depends on several Planning a sea route for a ship is not an easy job. It depends
parameters such as ship and cargo characteristics, on different constraints. They range from the wind to the
environmental factors, topography, international navigation wave, from health to wealth, and from time to money. For a
rules and crew comfort, etc. Ship route optimization is an ship to travel from one point to other there might be multiple
essential problem for ship operators to reduce fuel
consumption and voyage duration. This work presents an
objectives that need to be considered to optimize along the
algorithm to plan safe and optimal routes for ships moving route. Finding an optimal ship route considering all the
inaccessible areas and with unlimited traffic direction. The route constraints over the complete journey is the objective of the
obtained is optimized with multiple objectives which makes it work proposed in this paper.
more unique and optimal. An evolutionary algorithm is used to
create numerous locally optimal routes, and a parallel genetic The remaining part of the paper has multiple sections, as
algorithm is used to construct a final route by optimizing a set
of said routes. mentioned below. Section II explains the studies reported in
the literature related to the work presented in this paper,
Keyword - Genetic algorithm, Mutations, Crossovers, Ship Route Section III describes the design of experiments conducted as
Planning, Multi Objective, Single Objective.
part of this study, Section IV discusses the performance of
I. INTRODUCTION different GA variants and finally, Section V concludes the
Evolutionary Computing (EC) is a discipline of computer paper. The experiments are implemented using Google Colab
science categorized under soft computing paradigms of with Python as the base language.
Artificial Intelligence (AI). To overcome issues with global
optimization, EC has a pool of algorithms known as
Evolutionary Algorithms (EAs). EAs technically fall under the II. RELATED WORKS
category of population-based, iterative, stochastic computing This section explores the applications of GA in solving
metaheuristic problem solvers. The biological processes of optimal ship route-finding problems. The article [1] proposes
reproduction, recombination, mutation, and selection are a multi-objective evolutionary algorithm that uses non-
imitated by the EAs. The fitness score of the individual is dominated Sorting. This paper reduces the time complexity
calculated by the fitness functions, designed for the given from MN3 to MN2 for multi-objective meta-heuristics
optimization problem. The best candidates are chosen in the algorithms. It restricts the spread of uniformity in some cases.
evolutionary process, iteratively, until an optimal solution is In [2], GA is used to reduce a ship’s fuel consumption while
attained. For the purpose of solving optimization and search taking into account the two main factors affecting the weather
problems, the genetic algorithm (GA), a part of EA, is employed. of ship routes – the wind and the waves. To demonstrate that
The initial solutions, the maximum number of generations, the the algorithm can provide high-quality routes under actual
kind of mutation, and the type of crossover are the parameters conditions even with uncertain weather forecasts, stochastic
of GA. The values for these parameters are either initialized or weather data is used to evaluate it. Unique environmental
given as input by the user. GA generates an initial random modeling is used to represent the initial route and obstacle
population and uses a fitness function, for the process of natural generation. The authors considered other factors like tides into
evolution to find an ideal solution for the population. Until the the objective function to get more accurate route generations.
acceptable solution is obtained or the allowed constraints are
reached, the GA process is in the run. In [3], authors suggest a constrained nonlinear optimization
problem or a constrained graph problem, or a combination

14th ICCCNT IEEE Conference


July 6-8, 2023
IIT- Delhi, Delhi, India
IEEE - 56998

of both can be used to model the weather routing problem. The position link between the intended route and terrestrial features
exact needs of the optimization targets, control variables, and on the map. Finally, this paper offers a novel evolutionary
restrictions, as well as the implementation, clearly have a algorithm based on double-cycling optimization. GA is also
considerable impact on the model. The method proposed in [4] used to resolve several delicate real word optimization issues in
is adaptable to bigger regions and degree-based coordinates. our environment. Next, a few of these pieces are shown. The
The parameters are the time a ship is expected to arrive at paper [10] focuses on one of the main issues the online
a waypoint, the time a ship is expected to leave a waypoint, community facing - computer malware or more particularly
and the speed a ship is expected to travel while following the cyber security. The two fields of biologically inspired
edge after the waypoint. The algorithms are divided into two computing and computer malware are combined in this article.
parts. The first sub-algorithm designs a single route, while the This paper explores the potential, difficulties, and opportunities
second takes multiple of the first’s routes as input and produces associated with merging evolutionary computing methods with
eight single routes as a result. This work proposes an algorithm malware generation under the guidance of proactive defense. In
that ignores sea level fluctuations, assuming that a ship goes [11], the author implies a GA-based method for dividing up
alone, that there are no other ships in the region, and does slices of brain MRI (Magnetic Resonance Imaging) images. In
not take into account tides or sea depth. The PSO-GA hybrid this study, various GA parameters have been examined, and a
algorithm used in [5] uses the ability of social thinking in PSO. slice-type-based optimum threshold value has been established.
The authors, in [6], provide more route options for captains and Thus, the wide applicability of GA (on its own and by
shipping companies by putting forth a multi-criteria ship route hybridizing with other algorithms [12, 13]) is evident in the
planning method based on an improved PSO-GA. Based on the literature on solving a variety of global optimization algorithms.
components of multi-criteria route planning and ship GA is also used for optimizing the design parameters of neural
navigational characteristics, the study establishes a framework networks. In [14], the authors have used GA to train the
for multi-criteria route planning. Crossover, mutation, and spiking neural networks. In [15] the authors have explained
multi group elite selection operations are used to increase different methods of implementing different steps of a GA,
population diversity. while [16] discusses different types of GA that have been found
and used in recent years and all the operators that have been
In [7], the regions with higher wave heights are predicted used till now in solving different steps of a GA.
using machine learning techniques. A prediction map is created,
and the A* algorithm is used to avoid these areas. It entails The article [17] works on how GA can be implemented
building a model for a neural network that predicts waves. A to solve a real-life problem which in this case is a different
neural network with five feature inputs and one wave height variant of the Job Scheduling Problem. The authors of [18]
feature output is constructed. The shortest route is found discuss an approach to solve the 0/1 knapsack problem using
directly using the A* algorithm. The text and visual statistics an evolutionary multi-objective genetic algorithm where
are not adequately real-time, and the technique is not simple point mutation and simple point crossover are used.
sufficiently accurate. However, this approach has the In [19] differential evolution (DE, a meta-heuristic
drawbacks of being time and labor-consuming. approach) is used to solve the or calculate the exact threshold
In the article [8], the authors suggest a newly established value for thresholding which later is used in the image
weather routing optimization technology that tracks fuel segmentation, while [20] uses same DE to perform image
consumption while taking into account ongoing variations in the fusion instead of segmentation. The article [21] presents a
sea and weather, such as wind, waves, and currents. In this critical analysis of an existing prominent graph model of EAs
study, route optimization is done by minimizing a cost function and also a comprehensive analysis of interactions within
that represented the total amount of fuel used to navigate from differential evolution, modeling as a graph.
one place to another. An evaluation of the course from the point On understanding the applicability of GA and the
that corresponds to the identical navigation time from the initial complexity involved in the ship route finding the problem, this
point to the destination is done in the simulation at a particular paper proposes a simplified GA-based approach to solve a
navigation time using a revised weather prediction that is altered single stage multi-objective ship route finding problem.
from the starting one. The weather routing issue is solved
iteratively by repeating this process. III. DESIGN OF EXPERIMENTS
The objective of this work is to predict the ship route
In [9], to quickly determine precise planning routes, the ship
between two cities/ports with multiple objectives so that the
maneuvering constraints are taken into account. First, the
route is as short as possible and is highly safe for the ship to
turning and speed reduction model of ships is constructed,
travel in the path. Initially, the problem is modeled as a single
which serves as the foundation for the precise computation of
objective route-finding problem between two ports. Later, the
approach states between the own ship and target ships. Second,
model is extended to include multiple objectives along the
using the quadtree approach, a detection algorithm between
routes.
lines and irregular polygon borders is obtained to validate the

14th ICCCNT IEEE Conference


July 6-8, 2023
IIT- Delhi, Delhi, India
IEEE - 56998

The ocean environment is modeled as a 2-dimensional grid, represented as a 2-dimensional grid, the ship is modeled to
with each cell containing several objective values and costs. A travel from the left side of the grid to the right. Considering the
route in the grid is the set of line segments connecting the single objective, each cell in a row with the least cost is marked
grids between the source port and destination port. The details from starting cell to the destination cell, which results in the
are presented in Figure 1. A set of random routes are generated generation of a complete route that the ship to travel along.
as the initial population. The GA-based crossover and mutation
A sample route for the grid of size 10 x 10 is (4,1), (4,2),
operators are used to generate new routes and to run the
(9,3), (10,4), (6,5), (8,6), (4,7), (5,8), (4,9), (8,10).
genetic evolution.
The ship travels from one column to the next column to the
right at each position. The cost function designed to measure
the fitness of the routes is shown in Equation 1, for a grid of
size m x m.
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓𝑠𝑠𝑠𝑜 (𝑆𝑟𝑐, 𝐷𝑒𝑠𝑡)
𝑗=𝑚/2 𝑗=𝑚

= ∑ 𝑔𝑟𝑖𝑑[𝑖1 ][𝑗] + ∑ 𝑔𝑟𝑖𝑑[𝑖2 ][𝑗]


𝑗=0 𝑗=𝑚/2
(1)

where Src is the source port, Dest is the destination port,


Fig. 1. Grid representing a map and path(traced) grid[i][j] is the cost (measured as time or distance), i1 and
i2 are the adjacent way-points and ssso is ‘single stage single
The fitness of the routes is measured using a cost function. objective’.
The optimized and non-dominated routes are chosen. By sorting
all the available routes from the current and previous As seen in the cost function, if the ship moves from (5,0)
generations the Pareto front is created, from which the routes to (3,9) (as shown in Figure 1), the cost in the cells (5, 0),
for the next generations are decided. A visualization of the (6,1), (3, 2), (6,3), (5, 4), (7, 5), (0, 6), (0, 7), (4, 8) and (3, 9)
sorted population of the routes is presented in Figure 2. The is summed up as the total cost to travel from (5,0) to (3,9).
stopping criteria are that either the algorithm runs for the
B. Single stage-Multi Objective
required number of generations, or the algorithm stops when a
few continuous generations have the same best solution (i.e., the In this model, the ship travels from starting port to the
route with the same cost). destination port with multiple objectives like distance, safety,
travel time, and fuel consumption. Similar to the previous
model, the ship always travels from the left to the right side of
the grid. Considering multiple objectives, each cell in a row
with the least cost is marked from starting cell to the
destination cell, which results in the generation of a complete
route that the ships can travel along. Multi-objective sorting is
done using NSGA III non-dominated sorting.
The cost calculation procedure is similar to as it is done in
the single stage single objective model, with a distinction that
each cell holds the cost of several objectives (here constraints
are also taken into account)
The cost function for single stage multi-objective problem,
Fig. 2. Visualization of fronts
for a grid of size m x m, is designed as follows
The experiments are carried out by modeling the problem 𝑛/2
in to following two types. 𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑓𝑠𝑠𝑚𝑜 (𝑆𝑟𝑐, 𝐷𝑒𝑠𝑡) = ∑𝑗=0(𝑇𝑖𝑚𝑒[𝑖1 ][𝑗] + 𝑔(𝑦 ∗
(1) Single stage single objective problem. 𝑠𝑖𝑛𝑧) + 𝑔(𝑦 ∗ 𝑐𝑜𝑠𝑧)) + ∑𝑛𝑗=𝑛/2(𝑇𝑖𝑚𝑒[𝑖2 ][𝑗] + 𝑔(𝑦 ∗
(2) Single-stage multiple objective problems. 𝑠𝑖𝑛𝑧) + 𝑔(𝑦 ∗ 𝑐𝑜𝑠𝑧)) (2)
The details of the experiments, the results, and the discussions where y and z represent the wind magnitude and wind
are presented next. direction, respectively, Src is the source port, Dest is the
destination port, g(a) is the function that calculates the effect
A. Single stage–Single Objective
of wind on time, i1 and i2 are the adjacent way-points and ssmo
The ship travels from starting port to the destination port is ‘singe stage multi-objective’.
with a single objective i.e., distance. Since the map is

14th ICCCNT IEEE Conference


July 6-8, 2023
IIT- Delhi, Delhi, India
IEEE - 56998

IV. RESULTS AND DISCUSSIONS (1) for single stage single objective, the cost for the
optimized path with distance as the objective is 38.80, and
A. Single Stage-Single Objective
the time taken for this route is 52.14.
On an assumed grid the for ship to travel from (5,0) to (3,9), (2) for single-stage multi-objective, the cost for the
the initial route generated by the algorithm is [(5, 0), (8, 1), optimized path with objectives time and distance, the
(4, 2), (4, 3), (5, 4), (4, 5), (5, 6), (5, 7), (6,8), (3, 9)]. distance is 35.00 and the time taken is 41.65.

The final route generated is [(5,0), (5,1), (6,2), (5,3), (5,4), It is evident that the multi-objective model has optimized
(5,5), (5,6), (4,7), (4,8), (3,9)]. The initial and final routes are the path on both the time and distance parameters while the
presented in Figure 3. The evolution of the routes, for an single objective model optimized the path on only distance,
example run, over the generations is presented in Table 1. hence the cost for time has increased. Overall, the multi-
objective model produces good results for this ship route-
finding problem.
TABLE II
THE ROUTE AND THE COST OF THE ROUTE FOR
SINGLE STAGE MULTI OBJECTIVE MODEL

Generation Route Time Distance


Cost Cost
1 [(5, 0), (6, 1), (6, 2), (6, 3), (5, 50.31 54,68
4), (5, 5), (4, 6), (4, 7), (1, 8),
(3, 9)]
6 [(5, 0), (6, 1), (6, 2), (6, 3), (5, 39.47 59.30
4), (5, 5), (4, 6), (1, 7), (1, 8),
(3, 9)]
14 [(5, 0), (6, 1), (6, 2), (5, 3), (4, 34.43 41.92
Fig. 3. Initial and Final routes for single stage single objective 4), (5, 5), (4, 6), (5, 7), (5, 8),
TABLE I (3, 9)]
THE ROUTE AND THE COST OF THE ROUTE FOR 17 [(5, 0), (5, 1), (6, 2), (5, 3), (5, 29.20 39.21
SINGLE STAGE SINGLE OBJECTIVE MODEL 4), (4, 5), (3, 6), (4, 7), (3, 8),
(3, 9)]
Generation Route Cost
21 [(5, 0), (5, 1), (6, 2), (5, 3), (4, 29.02 39.22
1 [(5, 0), (8, 1), (6, 2), (6, 3), (5, 64 4), (4, 5), (4, 6), (5, 7), (5, 8),
4), (5, 5), (4, 6), (4, 7), (1, 8), (3, 9)]
(3, 9)]
5 [(5, 0), (3, 1), (6, 2), (6, 3), (5, 50
4), (4, 5), (3, 6), (4, 7), (3, 8),
(3, 9)]
7 [(5, 0), (5, 1), (6, 2), (5, 3), (5, 40
4), (4, 5), (4, 6), (4, 7), (5, 8),
(3, 9)]
9 [(5, 0), (5, 1), (6, 2), (5, 3), (5, 38
4), (4, 5), (3, 6), (4, 7), (3, 8),
(3, 9)]
14 [(5, 0), (5, 1), (6, 2), (5, 3), (5, 38
4), (4, 5), (3, 6), (4, 7), (3, 8),
(3, 9)] Fig. 4. Initial and Final routes for single stage multi objective

B. Single Stage-Multi Objective V. CONCLUSIONS


For the same route considering multiple objectives, the initial The study presented in this paper verified that the
route generated upon running the algorithm is [(5,0), (4,1), application of GA to the ship route finding problem yields
(3,2), (2,3), (3,4), (3,5), (4,6), (7,7), (6,8), (3,9)]. The final significant benefits in terms of both efficiency and
route generated is [(5,0), (4,1), (4,2), (5,3), (4,4), (4,5), (4,6), effectiveness. Two models (single-stage single objective and
(3,7), (2,8), (3,9)]. single-stage multi- objective) are designed and implemented.
The ship routes generated by these models are compared. It is
The initial and final routes are depicted in Figure 4. The
observed that the multi-objective model is able to produce
route obtained along with the time and distance over different
better ship routes than the single-objective model.
generations, for an example run, is presented in Table II.
On comparing the single-objective and multi-objective The results of this study suggest that the use of genetic
models, the following observations are made. algorithms in ship route finding is a promising approach,

14th ICCCNT IEEE Conference


July 6-8, 2023
IIT- Delhi, Delhi, India
IEEE - 56998

however it warrants further investigation. By incorporating the on Double-Cycling Genetic Algorithm Considering Ship
Maneuverability Constraint,” in IEEE Access, vol. 8, pp. 190746-
insights and findings presented in this paper into future research 190759, 2020.
efforts, it is possible to design even more sophisticated [10] M., Ritwik Velayutham, C. Shunmuga, “Conceptual Direction on
algorithms that can effectively balance multiple objectives and Automatically Evolving Computer Malware using Genetic and
Evolutionary Algorithm”, International Conference on Inventive
generate highly optimized ship routes in a variety of different Computation Technologies (ICICT), pp. 226-229, 2020.
contexts. [11] Vikram, K. Menon, Hema Dhanalakshmy, “Segmentation of Brain
Parts from MRI Image Slices Using Genetic Algorithm”, Lecture
VI. LIMITATIONS Notes in Computational Vision and Biomechanics, Vol 28, 2018.
[12] Shinde S.S., Thangavelu S., Jeyakumar G, “Mixed Differential
The work presented in this paper considered a grid-based Evolution and Genetic Algorithm Hybridization for Solving Global
approach, where the path is formed by considering single cell Optimization Problems” Advances in Intelligent Systems and
from each column and connection them. This approach does Computing, Springer, Vol 1392, 2021.
[13] A Harishchander, S Senapati, DA Anand, “Analysis of drug resistance
not take the ship maneuver into account, i.e., the cell from the to HIV-1 protease using fitness function in the genetic algorithm”,
first column can be at the top and the cell from the second BMC Infectious Diseases, Vol. 12, No. 1, 2012
column can be at the bottom, and the ship will not be able [14] Sangeetha, V., and J. Preethi. “Cluster analysis of breast cancer data
change the direction (as an extreme case). One way to reduce using Genetic Algorithm and Spiking Neural Networks.” 2015 IEEE
9th International Conference on Intelligent Systems and Control
the maneuvering cost is to increase the grid size from 10 x 10 (ISCO), IEEE, 2015.
to 60 x 60, but this in turn increases the run time of the [15] Lingaraj, Haldurai. (2016). “A Study on Genetic Algorithm and its
algorithm. Applications”. International Journal of Computer Sciences and
Engineering., 4. 139-143, 2015.
REFERENCES [16] Muhammad Kamal Amjad et al., “Recent Research Trends in Genetic
Algorithm Based Flexible Job Shop Scheduling Problems”,
[1] K. Deb, A. Pratap, S. Agarwal and T. Meyarivan, “Fast and elitist Mathematical Problems in Engineering, Vol. 2018, Article ID
multiobjective genetic algorithm: NSGA-II,” IEEE Transactions on 9270802, 32 pages, 2018.
Evolutionary Computation, Vol. 6, No. 2, pp. 182-197, 2002. [17] S. N. Mohanty and R. Satapathy, “An evolutionary multiobjective
[2] Kuhlemann, S., Tierney, K. A genetic algorithm for finding genetic algorithm to solve 0/1 Knapsack Problem,” 2nd IEEE
realistic sea routes considering the weather. J Heuristics 26, pp. 801– International Conference on Computer Science and Information
825, 2020. Technology, Beijing, China, 2009, pp. 397-399, 2009.
[3] Laura Walther, Anisa Rizvanolli, Mareike Wendebourg, Carlos [18] Sathyajit, B.P., Velayutham, C.S. “Visual Analysis of Genetic
Jahn, Modeling and Optimization Algorithms in Ship Weather Algorithms While Solving 0-1 Knapsack Problem”, In: Hemanth, D.,
Routing, International Journal of e-Navigation and Maritime Smys, S. (eds) Computational Vision and Bio Inspired Computing.
Economy, Vol 4, pp. 31 – 45, 2016. Lec- ture Notes in Computational Vision and Biomechanics, vol 28.
Springer, Cham, 2018.
[4] Ivan Yanchin, Oleg Petrov, “An approach to measure route quality
and refine the route during the voyage using characteristic [19] SandhyaSree, V., Thangavelu, S., “Performance Analysis of
coefficients”, arXiv:2011.01607, 2011. Differential Evolution Algorithm Variants in Solving Image
[5] Harish Garg,A hybrid PSO-GA algorithm for constrained Segmentation” In: Smys, S., Tavares, J., Balas, V., Iliyasu, A. (eds)
optimization problems, Applied Mathematics and Computation, Vol. Computational Vision and Bio-Inspired Computing. ICCVBIC 2019.
274, 2016. Advances in Intelligent Systems and Computing, Vol 1108. Springer,
Cham, 2020.
[6] Zhao, W.; Wang, Y.; Zhang, Z.; Wang, H. Multicriteria Ship
Route Planning Method Based on Improved Particle Swarm Op- [20] Haritha, K.C., Thangavelu, S, “Multi Focus Region-Based Image
timization–Genetic Algorithm. J. Mar. Sci. Eng. Vol. 9, 2021. Fusion Using Differential Evolution Algorithm Variants. In:
Hemanth, D., Smys, S. (eds) Computational Vision and Bio
[7] Xin Jin, Junting Xiong, Dongliang Gu, Chengtao Yi, Yongxin Jiang,
Inspired Comput- ing. Lecture Notes in Computational Vision and
“Research on Ship Route Planning Method Based on Neural Net-
Biomechanics, vol 28. Springer, Cham, 2018.
work Wave Data Forecast” in IOP Conf. Series: Earth and Environ-
mental Science 638 012033, 2021. [21] Indu, M.T., Somasundaram, K., Velayutham, C.S, “A Preliminary
Investigation on a Graph Model of Differential Evolution Algorithm”
[8] E. i. Kobayashi, S. Yoneda and A. Morita, "Advanced route
In: Deka, B., Maji, P., Mitra, S., Bhattacharyya, D., Bora, P., Pal, S.
optimization in ship navigation," 2014 4th International Conference
(eds) Pattern Recognition and Machine Intelligence. PReMI 2019.
On Simulation And Modeling Methodologies, Technologies And
Lecture Notes in Computer Science, Vol 11941. Springer, Cham,
Applications (SIMULTECH), Vienna, Austria, pp. 572-577, 2014.
2019.
[9] L. Wang, Z. Zhang, Q. Zhu and S. Ma, “Ship Route Planning Based

14th ICCCNT IEEE Conference


July 6-8, 2023
IIT- Delhi, Delhi, India

You might also like