The Tabu List Object
We're going to use a tabu list that's included with the OpenTS package.
It's full name is
As discussed with the MySwapMove object,
the tabu list expects you to override the
We set the tabu list's tenure to seven (7) in the constructor. There are many papers and many hours of work that people put into determining how long the tabu list tenure should be, but for this problem seven is a good number. The tenure is how many iterations a move remains tabu after it has been put on the tabu list.
You can make this tabu list dynamic by calling its
Let's put it all together and run the program to see how our very simple tabu search performs.