Another method for measuring performance of an
algorithm is to investigate its ability to reduce a cost
function (or conversely, increase some fitness func-
tion). Using the cost function defined by Equation 1
in Section 2.1.2, we compared the cost of applying
an RHGA strategy with a static strategy where tugs
are kept stationary at their initial random positions.
We found that the RHGA greatly reduces the cost
compared with the static strategy, however, it still re-
mains to compare the RHGA with other intelligent
algorithms for the same problem defined in this pa-
per. Nevertheless, we believe that the results from this
study are very promising and that the RHGA provides
a viable method for solving problems of the kind pre-
sented here.
4.3 Cost Functions
Choosing a suitable cost function is essential for a GA
to be able to solve the problem at hand. While we
believe our choice of cost function in Section 2.1.2 is
a very reasonable one, there are likely other choices
that may be equally, or better, suited to our problem.
One possible cost measure is to count the num-
ber of nonreachable cross points from tug positions
at time t = t
d
to t = t
d
+ T
h
ahead. Nonreachable
points are easily identified as the points that lie out-
side the dotted lines, or envelopes, that depict pa-
trol trajectories of tugs at maximum speed in Fig-
ure 2. Here, one of the southernmost drift trajectory’s
cross points is nonreachable by the southernmost tug
at y
p
(0) ≈ −20. Similarly, seven of the northmost
drift trajectory’s cross points are nonreachable by the
northmost tug at y
p
(0) ≈ 10. This count may then be
repeated for envelopes starting at t = 1, 2, . . . , T
h
− 1
and ending at t = T
h
and finally integrated for all t.
The goal of the GA would then be to select patrol tra-
jectories that minimise the total number of nonreach-
able points, integrated over time.
Preliminary results (not presented in this paper)
using a cost function involving nonreachable cross
points are promising but needs to be investigated fur-
ther. One major drawback is that this method is com-
putationally much more expensive compared to using
the cost function in Section 2.1.2. Another possible
drawback is that the RHGA will not lead to the same
close tracking of predicted drift trajectories as seen in
Figure 3. The reason for this is that the algorithm will
not punish patrol trajectories further away from cross
points than close ones as long as the number of non-
reachable crosspoints does not increase. On the other
hand, this may not be a problem for the case study
presented here. After all, the main goal of the tugs is
to be able to stop a drifting oil tanker from running
aground. Whether this is achieved by close tracking
of predicted drift trajectories or by some other intelli-
gent positioning is not as relevant, although secondary
goals such as minimisation of fuel consumption could
mean that close tracking be given importance.
A potential modification to the cost function in
Section 2.1.2 is to include a term for the control input
in order to punish excessive fuel consumption. For
example, consider Figure 3(a), where the third and
nortmost tug is not assigned any drift trajectory and
as a consequence is given a somewhat "random" os-
cillatory trajectory. Instead of planning such a fuel-
consuming trajectory, including a small input term in
the cost function would ensure that this patrol tug was
simply assigned a stationary trajectory, thus avoiding
unnecessary fuel consumption.
4.4 Other Heuristics
While we have compared the performance of our al-
gorithm with that of a static solution, it could have
been informativeto compareits performancewith that
of an algorithm using some simple heuristic method.
One such method is to let each patrol tug be allocated
the nearest oil tanker not already allocated to another
tug and then let it track that tanker’s drift trajectory.
We have not included any simulations using such a
heuristic in this paper. Nevertheless, we have found
that this method performs well when the numbers of
tugs and tankers are approximately equal but as the
number of tankers increases its performance drops
significantly compared to that of the RHGA. The rea-
son, of course, is that when all tugs have been allo-
cated an oil tanker, they "do not care" about the drift
trajectories of the remaining oil tankers, which in turn
causes evaluations of the cost function to increase.
Another simple heuristic is to spread out the tugs
evenly along the patrol line. Although not simu-
lated, we assume that this method could work rea-
sonably well for very large numbers of tankers since
the tankers’ cross points would then likely be roughly
uniformly distributed along the patrol line (assuming
the tankers not clustering). For a small number of
tankers, on the other hand, this heuristic would not be
able to perform well as cross points would not very
often occur close to the positions of the tugs.
4.5 Simulation Scenarios
There are numerous alternative scenarios that we
could have investigated in this paper. For exam-
ple, we could have lifted some of our restrictions
and incorporated changing drift dynamics (e.g., use
a dynamically-changing vector map for ocean curren-
A RECEDING HORIZON GENETIC ALGORITHM FOR DYNAMIC MULTI-TARGET ASSIGNMENT AND
TRACKING - A Case Study on the Optimal Positioning of Tug Vessels along the Northern Norwegian Coast
123