Questions tagged [simulated-annealing]

Simulated annealing (SA) is a generic probabilistic metaheuristic for the global optimization problem of locating a good approximation to the global optimum of a given function in a large search space.

Simulated annealing (SA) is a generic probabilistic metaheuristic for the global optimization problem of locating a good approximation to the global optimum of a given function in a large search space.

It is often used when the search space is discrete (e.g., all tours that visit a given set of cities). For certain problems, simulated annealing may be more efficient than exhaustive enumeration — provided that the goal is merely to find an acceptably good solution in a fixed amount of time, rather than the best possible solution.

The name and inspiration come from annealing in metallurgy, a technique involving heating and controlled cooling of a material to increase the size of its crystals and reduce their defects, both are attributes of the material that depend on its thermodynamic free energy. Heating and cooling the material affects both the temperature and the thermodynamic free energy. While the same amount of cooling brings the same amount of decrease in temperature it will bring a bigger or smaller decrease in the thermodynamic free energy depending on the rate that it occurs, with a slower rate producing a bigger decrease.

This notion of slow cooling is implemented in the Simulated Annealing algorithm as a slow decrease in the probability of accepting worse solutions as it explores the solution space. Accepting worse solutions is a fundamental property of metaheuristics because it allows for a more extensive search for the optimal solution.

The method was independently described by Scott Kirkpatrick, C. Daniel Gelatt and Mario P. Vecchi in 1983, and by Vlado Černý in 1985. The method is an adaptation of the Metropolis-Hastings algorithm, a Monte Carlo method to generate sample states of a thermodynamic system, invented by M.N. Rosenbluth and published in a paper by N. Metropolis et al. in 1953.

Source: Wikipedia (Simulated annealing)

194 questions
0
votes
1 answer

How can I better optimize a search in possible Fantasyland constructions in Pineapple poker?

So, a bit of explanation to preface the question. In variants of Open Face Chinese poker, you are dealt one and one card, which are to be placed into three different rows, and the goal is to make each row increasingly better, and of course getting…
0
votes
0 answers

optimizing parallel loops with OpenMP using C

EDIT: changed the code and phrasing to make my doubt more explicit I'm struggling to parallelize a loop in C using OpenMP for quite a while and want directions of how I should takle this challenge. the loop consists of the following (in case you…
sharp_c-tudent
  • 463
  • 5
  • 17
0
votes
0 answers

What Optimization Algorithm to use to Find Site Locations?

I need to find an algorithm which will pick 6 zip codes from a list of 956 (the six zip codes will later be used as sales territory centers). I'm happy that I have a good function to rank possible solutions. I also know which zip codes are adjacent…
Steve Maughan
  • 1,174
  • 3
  • 19
  • 30
0
votes
1 answer

Why does WSAT outperform Simulated Annealing?

on some journal i read that WSAT ( Walking SAT ) algorithm has better performances than Simulated Annealing algorithm in the resolution of SAT problem. So my question is, can someone kindly explain why we got this result ? Could be because SA is…
0
votes
0 answers

How does Matlab's simulannealbnd enforce bound constraints?

I'm using the simulannealbnd Function of Matlab for finding the minimum of a function using simulated annealing. As arguments one can pass lower and upper bounds of the variables. In the documentation it is described how simulated annealing works…
machinery
  • 5,972
  • 12
  • 67
  • 118
0
votes
0 answers

Simulated annealing for solving mixed chinese postman prob

a guy asked me to solve the MCPP using heuristics. He pointed out simulated annealing. I'm doing my research and as far as I'm concerned this algorithm can not be applied for this problem. Why? Cause to find a solution some roads (edges, arcs) have…
0
votes
0 answers

Same code, different performance: Simulated Annealing (Ruby vs Java)

I made an attempt to convert the Ruby Code given in [http://www.cleveralgorithms.com/nature-inspired/physical/simulated_annealing.html][1] for solving the Travelling Salesman Problem using Simulated Annealing, and both codes ran without any bugs.…
ayePete
  • 411
  • 1
  • 7
  • 23
0
votes
1 answer

Encog Lunar Lander Extended

This question is with reference to C#'s Lunar Lander Example obtained in Encog repository. As the example suggests, I am using NeuralSimulatedAnnealing to train my multi-layer feedforward network (50 epoch's) BasicNetwork network =…
0
votes
2 answers

Simulated annealing doesn't return (an) optimal solution

I decided to learn simulated annealing as a new method to attack this problem with. It essentially asks how to fill a grid with -1, 0, or 1 so that each row and column sum is unique. As a test case, I used a 6x6 grid, for which there is definitely…
qwr
  • 9,525
  • 5
  • 58
  • 102
0
votes
0 answers

Resource Allocation in a Wireless Network

What deterministic algorithm is suitable for the following resource allocation/scheduling problem? Consider a set of players: P1, P2, P3 and P4. Each player receives data from a cell tower (e.g. in a wireless network). The tower transmits data in 1…
0
votes
1 answer

simulated annealing algorithm

I implemented simulated annealing in C++ to minimize (x-2)^2+(y-1)^2 in some range. I'm getting varied output which is not acceptable for this type of heuristic method. It seems that the solution is converging but never quite closing in on the…
0
votes
1 answer

Genetic Algorithm or Simulated Annealing for Work Project Scheduling & Optimization

I have been tasked with improving my company's rudimentary scheduling process and making it more data driven, efficient, and streamlined. As it stands, we currently simply sum per month, total hours needed for projects & compare this value to…
0
votes
2 answers

Matlab Spmd Termination

I'm implementing a simulated annealing algorithm in matlab using spmd. I will compare different implentation types. One of them is asynchronous paralellism. 12 workers will run the code. if one of them meets the criteria(error<0.01) code will stop…
0
votes
1 answer

Caret Genetic Algorithms Feature Selection

I am trying to use Caret Feature Selection using Genetic Algorithms or Simulated Annealing and I am getting an identical error message in both cases. I have tried the most basic form of the gafs and safs with very simple input data frame. >…
0
votes
2 answers

What is this step for in the Simulated Annealing algorithm?

Both Wikipedia and this site describe a similar step in the Simulated Annealing algorithm, which I've picked out here: Wikipedia: if P(e, enew, temp(k/kmax)) > random() then // Should we move to it? s ← snew; e ← enew …
PizzAzzra
  • 715
  • 13
  • 25