Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion searches/simulated_annealing.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ def simulated_annealing(
start_temperate: the initial temperate of the system when the program starts.
rate_of_decrease: the rate at which the temperate decreases in each iteration.
threshold_temp: the threshold temperature below which we end the search
Returns a search state having the maximum (or minimum) score.
Returns:
A search state having the maximum (or minimum) score.

Example:
>>> isinstance(simulated_annealing, object)
True
"""
search_end = False
current_state = search_prob
Expand Down
Loading