We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68473af commit ae8dfa7Copy full SHA for ae8dfa7
1 file changed
searches/simulated_annealing.py
@@ -34,7 +34,12 @@ def simulated_annealing(
34
start_temperate: the initial temperate of the system when the program starts.
35
rate_of_decrease: the rate at which the temperate decreases in each iteration.
36
threshold_temp: the threshold temperature below which we end the search
37
- Returns a search state having the maximum (or minimum) score.
+ Returns:
38
+ A search state having the maximum (or minimum) score.
39
+
40
+ Example:
41
+ >>> isinstance(10, (int, float))
42
+ True
43
"""
44
search_end = False
45
current_state = search_prob
0 commit comments