In recent years, unmanned aerial vehicles (UAVs) with the increased flying times, improved command-control systems and carrying capacities have been used successfully for the various military and commerical projects. However, the time and qualities of the services provided by the mentioned vehicles are directly related with the locations determined previously or found instantly. In this study, an appropriate location of an UAV equipped with the base station capability for serving to the users is tried to be determined by utilizing from the Harmony Search (HS) algorithm. The results obtained by the HS algorithm are also compared with the results obtained by the PSO and ABC algorithms. Comparative results show that the mobile base station is capable of serving more successfully when its location is determined with the HS algorithm compared to the locations determined by the PSO or ABC algorithms.