Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs - Annapoorani Department:CSE
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs - Annapoorani Department:CSE
Prepared By:Mrs.Annapoorani
Department:CSE
1
UNIT 8-MetaHeuristics
1.The Nature of Metaheuristics
2.Simulated Annealing
3.Tabu Search
4.Genetic Algorithms
2
Heuristics
• Heuristics are rules to search to find optimal
or near-optimal solutions. Examples are FIFO,
LIFO, earliest due date first, largest processing
time first, shortest distance first, etc.
3
• Many constructive heuristics are greedy or
myopic, that is, they take the best thing next
without regard for the rest of the solution.
4
1. Meta-Heuristics
An iterative generation process which guides a
subordinate heuristic by combining intelligently
different concepts derived from classical
heuristics, artificial intelligence, biological
evolution, natural and physical sciences for
exploring and exploiting the search spaces using
learning strategies to structure information in
order to find efficiently near-optimal solutions.
5
1.1 Advantages of Meta-Heuristics
• Very flexible
• Often global optimizers
• Often robust to problem size, problem
instance and random variables
• May be only practical alternative
6
1.2 Disadvantages of Meta-Heuristics
Solution space
2. Simulated Annealing
• What
– Exploits an analogy between the
annealing process and the search for
the optimum in a more general
system.
2.1Annealing Process
• Annealing Process
– Raising the temperature up to a very high level
(melting temperature, for example), the atoms
have a higher energy state and a high possibility
to re-arrange the crystalline structure.
Initialize:
– initial solution x ,
– highest temperature Th,
– and coolest temperature Tl
T= Th
When the temperature is higher than Tl
While not in equilibrium
Search for the new solution X’
Accept or reject X’ according to Metropolis Criterion
End
Decrease the temperature T
End
2.3 Example of Simulated Annealing
• Search mechanism
– Swap any two integers (except for the first one)
• (1,4,2,3,6,5) (1,4,3,2,6,5)
• Cost function
3.Tabu Search
• What
– Neighborhood search + memory
• Neighborhood search
• Memory
– Record the search history – the “tabu list”
– Forbid cycling search
• Aspiration criteria
– The criteria for overruling the tabu constraints and
differentiating the preference of among the neighbors
Contd…
• Effective Computing
– “Move” may be easier to be stored and computed
than a completed solution
• move: the process of constructing of x’ from x
• NP-hard
4. Genetic Algorithm
• Reproduction (Selection)
• Crossover
• Mutation
Example 1
Maximize f(x) = x2 where x I and 0 x 31
1. Coding of a solution : A five-bit integer,
e.g. 01101
2. Fitness function : F(x) = f(x) = x2
3. Initial population : (Randomly generated)
01101
11000
01000
10011
Reproduction
Roulette Wheel
Reproduction
Crossover
Mutation
Loop
Each ant applies a state transition rule to
incrementally build a solution and applies a
local updating rule to the pheromone
Until each of all ants has built a complete solution
Until End_Condition