Light propagation in turbid media, such as biological tissues, experience scattering due to inhomogeneous distribution of refractive indices. Control of light scattering is important for focusing the light or imaging through scattering medium. By spatially shaping the wave-front of the incident beam, using spatial light modulator (SLM), the scattered light can be focused to a point. Iterative optimization is a popular way of obtaining the most optimum phase map on the SLM. In this study, we implement six optimization algorithms including continuous sequential, partitioning algorithm, transmission matrix estimation method, genetic algorithms, particle swarm optimization, and simulated annealing to obtain the optimum phase map of the SLM. The main characteristics of the algorithms such as convergence time, improvement ratio and performance are compared and discussed.