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 to improve the efficiency of this code to sort numbers using simulated annealing concept?

I am trying to understand the concept of simulated annealing ,therefore I tried to implement it to sort numbers .I am not sure whether this is conceptually correct implementation of the simulated annealing. Can anyone guide me on how to implement it…
user1907531
  • 99
  • 2
  • 8
0
votes
3 answers

Energy in simulated annealing

What does the energy variable represent in a simulated annealing algorithm? I'm guessing it's similar to the fitness variable in a GA?
Undefined
  • 1,899
  • 6
  • 29
  • 38
0
votes
1 answer

Simulated Annealing N Queens Probability Forumula

I am having some trouble with a simulated annealing algorithm to solve the n queens problem. Basically, I have it look for a better more, which works fine, but then I run a formula to check and see if it should take a "bad" move or not. From my…
Chase552
  • 59
  • 3
  • 8
0
votes
1 answer

How to take a probabilistic step?

I am designing a recursive search function that, under certain conditions, will recurse normally, and under other conditions, must recurse with probability e^(E/Temperature). All the code is done except the recursive steps, because I cannot figure…
0
votes
1 answer

Simulated Annealing - Possible to Improve Performance?

I have applied the simulated annealing algorithm (in Java) to a personal project that I am working on, but was wondering if the SA algorithm would perform slightly better on the same dataset if written in another language (i.e. C++, Python,…
Mus
  • 7,290
  • 24
  • 86
  • 130
-1
votes
1 answer

Difference between exploration and exploitation in Simulated Annealing algorithm

In evolutionary algorithms two main abilities maintained which are Exploration and Exploitation. In Exploration the algorithm searching for new solutions in new regions, while Exploitation means using already exist solutions and make refinement to…
stevGates
  • 910
  • 2
  • 9
  • 19
-1
votes
1 answer

Weight assignment to define an objective function

I have a set of jobs with execution times (C1,C2...Cn) and deadlines (D1,D2,...Dn). Each job will complete its execution in some time, i.e, response time (R1,R2,....Rn). However, there is a possibility that not every job will complete its execution…
-2
votes
1 answer

How do I access this variable in my code?

This is my code for simulated annealing to solve the travelling salesman problem. The comments should describe what's going on. For some reason, the algorithm prints out the best tour LENGTH it finds, but not the actual tour itself. If I were to add…
Sid Jones
  • 55
  • 1
  • 1
  • 10
-2
votes
1 answer

Best Dataset for Feature Selection using Simulated Anneling?

I am working on Feature Selection using heuristic methods in Python, Can anyone tell me which will be best data set for Simulated Anneling ?
-2
votes
1 answer

Random number generation in python for Kernighan–Lin and Simulated annealing algorithm?

Is it a good idea (In terms of quality of the number generated and CPU time required) to use Python's(2.7) default(Mersenne Twister) random() function as the random number generator for Kernighan–Lin algorithm? Is there some better way to do…
-3
votes
1 answer

I have a concept issue with simulated annealing?

Suppose you are an AI programmer for a project that uses simulated annealing to solve a search problem. After testing the program several times, you notice that the program run too slowly. How would you modify the way T changes over time?
lbevs
  • 11
  • 1
  • 3
-3
votes
1 answer

Which optimization techniques can I use for maximizing the sum of minimum distance of each point to other points in a unit hypercube?

Let's say I have the following unit hypercube with 9 points My goal is to maximize this function: In the image, Figure 1 is the original data, Figure 2 is computed using the function, and Figure 3 is the optimized function. I want to know how can…
-3
votes
1 answer

simulated annealing applied on TSP

I have done a brief work on solving TSP using Simulated annealing, and also by brute force. As we know TSP by brute force will take O(n!) steps by checking all possible paths, What I want to ask is that if we allow these many steps using the…
PsJain
  • 3
  • 4
-3
votes
1 answer

Energy in simulated annealing algorithm?

Am I correct in saying the energy in the simulated annealing algorithm is equal to the change in cost? So I can calculate it with the follow: energy = cost(prevSolution) - cost(currentSolution);
Undefined
  • 1,899
  • 6
  • 29
  • 38
1 2 3
12
13