Optimization Through Simulated Annealing And Genetic .

3y ago
13 Views
4 Downloads
1.59 MB
17 Pages
Last View : 2m ago
Last Download : 3m ago
Upload by : Milo Davies
Transcription

Optimization Through Simulated Annealing AndGenetic AlgorithmsBy Dan Tardiff (With Charles Parker)

My Directed Reading Program Random Number Generation Techniques for simulating distributions Random Walks and their applications Optimization by Monte Carlo Methods(Specifically Simulated Annealing (SA) and GeneticAlgorithms (GA))

Formal Optimization: Given some ”Objective Function” ! " , " Ω Maximize or minimize ! " over admissible or feasible "’s Monte Carlo Methods are often useful for problems of a combinatorial nature, with exponentially large domain. with many local optima, such that even if you can easily find one, finding the global optimum ischallenging.

Example: Traveling Salesman Problem One of the most famous difficult combinatorics problems Find the shortest “tour” of the cities (! 1)! different tours Unsolved Analytically

Background: Markov Chains A sequence of RV’s !" , ! , Ω Such that((!* " - !" /" , ! / , X1 /* ) ((!* " - X1 /* ) 345 Markov Chains which are irreducible and aperiodic will converge over time(regardless of initial distribution) to some unique Stationary Distribution 6, with 4 8 6 / 345 6(-), 4 8 6 / 1

Background: The Metropolis Algorithm Algorithm for simulating some target distribution ! over Ω. Core idea: create a Markov chain whose stationary distribution # is !. Thenwe can sample from ! by running the Markov chain. To do this, make use of rejection sampling. Design a symmetric proposal1(')matrix % (%&' %'& ) and let your acceptance discipline ℎ ,-(1, 1(&)). At each step, starting at 23 Ω, propose some 5 Ω by %. Let 2367 5 withprobability ℎ, and otherwise propose some 5 Ω by % again.

Simulated Annealing Adapted from annealing thermal systems to achieve minimal energy states. To minimize the objective function !, Use the metropolis algorithm to samplefrom the Boltzmann distribution with ! as our energy function:# %&'( * ,- .) By using some symmetric proposal matrix and the acceptance discipline:! 5 ! &67 8 Over time, slowly decrease T. At high temperatures, differences in objectivefunction hardly matter. At low temperatures you tend to move downhill only. Keep track of best result.ℎ 123 1, %&'

Tackling Traveling Salesman: Use metropolis algorithm to simulate Boltzmann distribution over possiblepaths, using the distance of the tour as our energy function. Symmetric Proposal Matrix: PPR: Select two cities in the tour at random, andreverse the path between them.{1,4,2,5,6,3,1}{1,4,3,6,5,2,1} Over time as temperature T decreases, theprobability that the markov chain is in a low energystate increases.!"# %( ( )* ,)

Genetic Algorithms Motivated by populations in nature, basically simulating natural selection Each generation !" is a population over Ω. Each Ω is a “chromosome” representing the genetic makeup of anindividual. The objective function & that we are trying to optimize is interpreted as the“fitness” of an individual. Goal is for the population to become more fit over time.

Parts of a Genetic Algorithm:Genetic Algorithms vary Widely, but generally rely on 3 basic stochasticoperations defined on Ω: Mutation Recombination SelectionOne loop of a genetic algorithm will consist of some applications of these threeoperations.

A Simple Example For GA: “The Knapsack Problem” You are presented with a set of items. Each item has a value and a weight orcost. You have a knapsack that can only hold items totaling less than or equal to acertain weight or cost. What set of items do you put in your knapsack to maximize the value you getto take with you?

Applying GA What is a “Chromosome” in this situation?The set of items you put in your sack. Easily represented as a 01 stringof length 18. What is the ”fitness” of a given chromosome?The sum of the values of the items you put in your sack. (The dot productof the chromosome and the respective values)

How will we define our operations? Mutation: For a single chromosome, flip some bit at random (equivalent torandomly taking an item or putting an item back) to make a mutated version,making sure you don’t exceed the maximum cost. Recombination: Given two chromosomes, create a third by “one pointcrossover.” (again making sure you don’t exceed the maximum cost) e.g.Parent 1: 100110101101000110Parent 2: 010101110010101110Child:100110110010101110 Selection: Remove chromosomes from the population until it to the originalsize. Remove those with lower fitness with a higher probability.

Outline of one possible algorithm: Randomly generate a starting population of admissible 01 strings Loop through N generations. For each generation: Mutate some of the more successful individuals. Add these to the population. Recombine some of the more successful individuals with others. Add their childrento the population. Delete some individuals from the population. Deleting less fit individuals with ahigher probability.

Solved it! (Maybe?) What if you run your algorithm twice and get two different answers? Niching Cooling Schedules Allowing inadmissible states and “Wrong Side of Tracks” algorithms.

Summary:If you encounter challenging optimization problems, with a large domain or manylocal optima, SA and GA1. Are easy to code.2. Are relatively quick to run.3. Give pretty good results.Consider Trying Them!

Simulated Annealing Adapted from annealing thermal systems to achieve minimal energy states. To minimize the objective function !,Use the metropolis algorithm to sample from the Boltzmann distribution with !as our energy function: . “The Knapsack Problem” .

Related Documents:

4 The R Package optimization: Flexible Global Optimization with Simulated-Annealing 1 initialize t, vf with user specifications 2 calculate f(x 0) with initial parameter vector x 0 3 while t t min do 4 for i in 1: n inner do 5 x j x i 1 6 call the variation function to generate x i in dependence of x j, rf and t 7 check if all entries in x i are within the boundaries 8 if all x

MCMC: Simulated Annealing General optimization problem: maximize function G(z) on all feasible solutions Ω – let Q be again symmetric transition prob. matrix on Ω Simulated Annealing is Metropolis Algorithm with p ij q ij min{1, exp( b(t) [G(j)-G(i)]) } for i j p ii 1 - j i p ij Effect of b(t): exploration vs. exploitation .

tree structure. Egeblad and Pisinger (2009) propose a simulated annealing based methodology for the two and three-dimensional knapsack problems, and a three-dimensional knapsack model is presented. The authors present an iterative heuristic approach for the knapsack problem that is based on the sequence triple representation.

10th Int'l Conference on Innovations in Science, Engineering, Computers and Technology (ISECT-2017) Oct. 17-19, 2017 Dubai (UAE) A Cloud Theory-based Simulated Annealing for Discovering Process Model from Event Logs . Mirpouya Mirmozaffari 1, Mostafa Zandieh 2 and Seyed Mojtaba Hejazi 3.

problem for large projects with many constraints, heuristic techniques are applied. A genetic algorithm approach is proposed and compared with simulated annealing. Key-Words: - multi-knapsack problem, resource-constrained scheduling, genetic algorithm, simulated annealing 1 Introduction The scheduling problem is a frequent task in the

Stochastic Local Search combined with Simulated Annealing for the 0-1 Multidimensional Knapsack Problem. Abdellah Rezoug Department of Informatics Faculty of Science University M'hamed Bougara of Boumerdes Boumerdes, Algeria Email: abdellah.rezoug@gmail.com Dalila Boughaci Department of Informatics Faculty of Electronics and Informatics

3. SIMULATED ANNEALING In this study, we propose an SA to solve the considered problem. The problem of determining the number of machines does not need to be derived in a short period time because it is rather a strategic decision problem in the companies. The result would be more desirable if a better solution is obtained with longer solving .

ISO 14001:2015 – Why was the standard revised? Technically sound basis - should be based on proven management practices or existing scientifically validated and relevant data. Easily understood - should be easily understood, unambiguous, free from cultural bias, easily translatable, and applicable to businesses in general. Free trade - should permit the free trade of goods and .