Docsity

Tabu Search, Lecture Notes- Physics -, Study notes of Physics

Toggle sidebar
bg1
5R1 GTP
5. Tabu Search
5.1 Introduction
Webster’s dictionary defines the word
tabu
or
taboo
to mean “banned on grounds of morality
or taste or as constituting a risk...”. Tabu Search (TS) is an optimization method designed to
help a search negotiate difficult regions (i.e. to escape from local minima or to cross infeasible
regions of the search space) by imposing restrictions. It was originally developed as a method
for solving combinatorial optimization problems (these are problems where the control vari-
ables are some form of ordered list — the
Travelling Salesman Problem
is the classic exam-
ple), but variants to solve continuous and integer optimization problems have also been
developed. We will focus here on TS for continuous optimization problems.
The power of TS derives from its use of flexible memory cycles. These memory cycles control
the local search pattern and intensify and diversify the search in the quest for a suitable solu-
tion.
5.2 Search Control
5.2.1 Local Search
Local search in the particular variant of TS under discussion is performed using a modified
version of Hooke and Jeeves search. The local search process is now:
1. Choose a
starting point.
Evaluate the objective function . Choose a suitably-sized
increment for each variable .
2. Record the current point as the base point.
3. For each variable in turn:
• Increase it by its increment, i.e. , while keeping the other variables at their base
point values, and evaluate the objective function.
• Decrease it by its increment, i.e. , while keeping the other variables at their base
point values, and evaluate the objective function.
4. Make the best
allowed
(i.e. non-tabu) move of those evaluated in 3.
5. If the objective function was reduced by the move in 4, perform a
pattern move
by repeat-
ing the vector from the last base point. If this reduces the value of the objective function
further, retain it, otherwise discard it.
6. Record the current point as the new base point. Return to step 3.
Whether a move is allowed or not is determined by the
Short Term Memory
(STM). This
records the last
N
locations successfully visited (i.e. accepted in steps 4 or 5 above). This list is
updated every time a new location is successfully visited (on a first in, first out basis). Loca-
fx! "
x1x2#xn
$ $ $
xi
!
i
%
xi
!
i
"
37
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Tabu Search, Lecture Notes- Physics - and more Study notes Physics in PDF only on Docsity!

5. Tabu Search

5.1 Introduction

Webster’s dictionary defines the word tabu or taboo to mean “banned on grounds of morality or taste or as constituting a risk...”. Tabu Search (TS) is an optimization method designed to help a search negotiate difficult regions (i.e. to escape from local minima or to cross infeasible regions of the search space) by imposing restrictions. It was originally developed as a method for solving combinatorial optimization problems (these are problems where the control vari- ables are some form of ordered list — the Travelling Salesman Problem is the classic exam- ple), but variants to solve continuous and integer optimization problems have also been developed. We will focus here on TS for continuous optimization problems. The power of TS derives from its use of flexible memory cycles. These memory cycles control the local search pattern and intensify and diversify the search in the quest for a suitable solu- tion.

5.2 Search Control

5.2.1 Local Search Local search in the particular variant of TS under discussion is performed using a modified version of Hooke and Jeeves search. The local search process is now:

  1. Choose a starting point. Evaluate the objective function. Choose a suitably-sized increment for each variable.
  2. Record the current point as the base point.
  3. For each variable in turn:
    • Increase it by its increment, i.e. , while keeping the other variables at their base point values, and evaluate the objective function.
    • Decrease it by its increment, i.e. , while keeping the other variables at their base point values, and evaluate the objective function.
  4. Make the best allowed (i.e. non-tabu) move of those evaluated in 3.
  5. If the objective function was reduced by the move in 4, perform a pattern move by repeat- ing the vector from the last base point. If this reduces the value of the objective function further, retain it, otherwise discard it.
  6. Record the current point as the new base point. Return to step 3. Whether a move is allowed or not is determined by the Short Term Memory (STM). This records the last N locations successfully visited (i.e. accepted in steps 4 or 5 above). This list is updated every time a new location is successfully visited (on a first in, first out basis). Loca- f! x " x 1 $ x 2 $ # $ xn xi %! i xi "! i

tions within the STM are tabu , i.e. may not be visited again. The appropriate value for N depends on the number of control variables. has been found to give good performance on problems with up to a dozen control variables. If the number of control variables is greater than this N should be increased appropriately (a value slightly greater than half the number of control variables is about right). Note that this requirement that the best allowed move be made means that often this move results in an objective function increase. The effect of the STM is that the algorithm behaves like a normal hill descending algorithm until it reaches a minimum. It is then forced to climb out of the hollow and explore further. Figure 5.1 : An Example of TS Local Search. This is illustrated by the example shown in Figure 5.1. This shows a contour plot of a two- dimensional optimization problem containing one local and one global optimum. From the starting point the TS algorithm rapidly locates the neighbourhood of the local minimum, with- out the STM having any effect. However, once the search has reached this local minimum, it is

N! 7

accepted increment x 1 x 2 rejected increment accepted pattern move rejected pattern move successive base points other tabu locations

5R1 GTP

5.2.4 Step Size Reduction After prolonged lack of success, i.e. if no new best solution has been found for perhaps 25 (for small scale problems) local search iterations despite SI and SD, then Step Size Reduction (SSR) takes place. In SSR the step sizes associated with each control variable are reduced, the search is returned to the location of the best solution found thus far and the counter controlling SI, SD and SSR is reset. SSR is carried out in order to ensure that the neighbourhood of the best solution is searched carefully. 5.2.5 Convergence Like all optimization algorithms, TS is terminated when a specified convergence criterion is met. As in the traditional Hooke and Jeeves algorithm, the convergence criterion can be that the step sizes have been reduced below specified thresholds. An alternative possible criterion is that, despite SI, SD and SSR, the same best location is repeatedly being found. 5.2.6 Search Control Summary The overall search control strategy in TS can be summarised as follows:

  1. Set COUNTER
  1. Test convergence
  2. If converged, stop; If not, perform a local search iteration
  3. If a new best solution has been found, go to step 1; If not, increment COUNTER
  4. If COUNTER

" INTENSIFY, intensify search

  1. If COUNTER

" DIVERSIFY, diversify search

  1. If COUNTER

" REDUCE, reduce step size and go to step 1

  1. Go to step 2 For a small scale problem (up to 12 control variables) suitable values of the three control thresholds might be INTENSIFY

" 10, DIVERSIFY

" 15, and REDUCE

" 25. For larger scale problems these parameters should be increased appropriately. 5.2.7 Local Search Variants The local search at the heart of the basic TS implementation can make the algorithm particu- larly computationally expensive if the evaluation of the problem functions (objective and con-

straints is expensive) and the number of control variables is large. In these circumstances it may be better to conduct a partial rather than an exhaustive local search at each iteration. There are a number of ways of doing this. 5.2.7.1 Random Subset In this approach, at each iteration a random subset of the possible non-tabu moves are evalu- ated and the best allowed amongst these moves is made. 5.2.7.2 Successive Random Subsets In this approach, at each iteration a random subset of the possible non-tabu moves are evalu- ated. If any of these moves improve on the current solution the best allowed move is made. If none of the moves represents an improvement, another subset of the possible non-tabu moves are evaluated. This process continues until either an improving move is found or all possible moves have been evaluated. If no improving, non-tabu move is found the best allowed (non- improving) move is made. 5.2.7.3 Variable Prioritisation In variable prioritisation schemes an attempt is made to identify which control variables have the greatest influence on the objective function and then these are prioritised in the local search. One such scheme works as follows:

  1. Conduct an exhaustive search around the current search point.
  2. Calculate the sensitivity of the objective function to each control variable, i.e. (5.2)
  3. Rank the control variables according to the values of. Select the highest ranked vari- ables to be free variables, and fix the values of the others at their current values.
  4. Continue the search using this reduced set of variables for a defined number of iterations. Then go to 1.

5.3 Constraints

Some thought needs to be given to the handling of constraints when using the TS algorithm. In many cases the routine can simply be programmed to reject any proposed changes which result in constraint violation, so that a search of feasible space only is executed. However, there are three important circumstances in which this approach cannot be followed:

  • if there are any equality constraints defined on the system,
  • if it is suspected that the problem is highly constrained, so that generating feasible solutions si f " x!! i # " f " x "! i # 2! i

si n! 2

Figure 5.2 : Minimization of Rosenbrock’s Function by TS — Initial Local Search.

Figure 5.4 : Minimization of Rosenbrock’s Function by TS — SSR, SI and SD.

 - - 1 5 - 1 0 - Figure 5.3 : Minimization of Rosenbrock’s Function by TS — SI and SD. - -1. - -0. - 0. - 0. - 1. - 1. - 2. - x 
  • x - - 1 5 - 1 0 -
    • -1.
    • -0. - 0. - 0. - 1. - 1. - 2. - x
  • x - - 1 5 - 1 0 - Figure 5.5 : Minimization of Rosenbrock’s Function by TS — Complete Search.
    • -1.
    • -0.
          • x
  • x - - 1 5 - 1 0 -
    • -1.
    • -0.
          • x
  • x