```function SimulatedAnnealing(initialState, temperature, coolingRate)currentSolution = initialStatebestSolution = currentS