In this research, we present results of simulated annealing (SA), a heuristic optimization algorithm, for focusing light through a turbid medium. Performance of the algorithm on phase and amplitude modulations has been evaluated. A number of tips to tune the optimization parameters are provided. The effect of measurement noise on the performance of the SA algorithm is explored. Additionally, SA performance is compared with continuous sequential and briefly with other optimization algorithms.