between them might be defined based on Google
Maps service.
2.2 Problem Formulization
The main goal of the study was to:
1. build and implement the algorithm automatically
constructing the model of tourist facilities
(objects) adjusted to individual user’s
preferences
2. construct and verify the mechanism of selection
and arrangement of chosen points into the tourist
route meeting the requirements of time as well as
starting and finishing point.
The specificity of the mobile application project
imposed required the application worked fast and
efficient.
The construction of the solution (1) was
performed based on activities of user’s and his
friends on social networking portal – Facebook.
The solution (2) was developed gradually to find the
method meeting the requirement of its speed and
performance. That is why the research question was
“Is it possible to create mechanism of selection and
arrangement of points and present user the travel
map in relatively short time?”. This question was
verified based on efficiency testing of the
constructed mechanism.
3 ALGORITHM SELECTION
AND ADJUSTMENT
The propose of created algorithm is to propose user
a route satisfying its requirements in terms of his
interests, location of starting and destination point
and the time. This task can be formed as selection of
points from a given set of all available locations
maximizing all the attributes imposed by the user.
3.1 Applied Algorithm
The used algorithm is multi-objective genetic
algorithms (MOGA) (Shang and Zhang, 2009;
Yang, et. al., 2008). The main advantage of using an
evolutionary algorithm in this task is the ability to
targeting the solutions in terms of all occurring
dimensions due to appropriate use of the objective
function and selection of parents. Therefore, the
fulfilment of all the conditions determining the route
targeting the solutions in terms of all occurring
dimensions due to appropriate use of the objective
function and selection of parents. Therefore, the
fulfilment of all the conditions determining the route
quality can be obtained after only one run of the
algorithm.
3.2.1 Coding, Operators, Parameters
The problem domain must define the type of data
representation used to encode individuals in the
genetic algorithm. Natural chosen solution is an
ordered list of all the sites considered to present to
the user.
The algorithm implements two-point crossover
which gives good results in solving the travelling
salesman's problem. This choice results in necessity
to use the order encoding (OE). Crossing is done
with probability 80%, so it plays the major role in
genes development through forcing the genes
exchange between individuals. This is consistent
with one of the distinguishing features of genetic
algorithms from other evolutionary algorithms: the
dominant role of the crossover operator during the
reproduction of individuals.
The algorithms uses two mutation operators. The
first one replaces two separate strings within a single
chromosome. It is also responsible for abrupt
changes, and thus fulfils the basic functions of
mutation in the genetic algorithms, independent of
the problem domain. The second mutation operator
is necessary to obtain the correct route when the
target time does not allows to visit all the places.
This operator negates the substring value in the
second array describing the individual that stores
information whether a place a given position is
a part of the route or not.
Therefore, this operator can operate in two ways:
first, removing excess locations for routes with
limited time, and also, in later stages, of restoring
locations excluded from the route. In some cases it
can improve the quality of the route in terms of user
interests.
Of course this is not guaranteed, but in the worst
case individuals altered in this way will be
eliminated over the next generations through the
natural selection process. A mutation is performed
with the probability of 20%, so much less than the
crossover operation, but still quite significant. This
probability cannot be too low, because the algorithm
could not react properly to excluding locations form
chromosomes.
3.2.2 Objective Function
The algorithm used in the application uses three
objective functions responsible for routes
development in terms of their quality, user interests,
TheUseofGeneticAlgorithmsinMobileApplications
521