Skip to content

Commit a794dec

Browse files
authored
Update README.md
1 parent a6afbc1 commit a794dec

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Diff for: Simulated annealing/README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,20 @@ Pseucocode
1717
Sbest = Scurrent
1818
temperature = temperature * (1-coolingRate)
1919

20-
Common acceptance criteria : P(accept) <- exp((e-ne)/T) where
21-
e is the current energy ( current solution ),
22-
ne is new energy ( new solution ),
23-
T is current temperature.
20+
Common acceptance criteria :
21+
22+
P(accept) <- exp((e-ne)/T) where
23+
e is the current energy ( current solution ),
24+
ne is new energy ( new solution ),
25+
T is current temperature.
2426

2527

2628
We use this algorithm to solve a Travelling salesman problem instance with 20 cities. The code is in `simann_example.swift`
2729

2830
#See also
2931

3032
[Simulated annealing on Wikipedia](https://en.wikipedia.org/wiki/Simulated_annealing)
33+
3134
[Travelling salesman problem](https://en.wikipedia.org/wiki/Travelling_salesman_problem)
3235

3336
Written for Swift Algorithm Club by [Mike Taghavi](https://github.com/mitghi)

0 commit comments

Comments
 (0)