In order to solve the problem of maximizing the utilization of resources through reasonable deployment under limited resources, this paper studies from two aspects: one is to establish the mathematical model of maximum coverage of space detection, and the other is to improve the harmony algorithm. The exploration performance and convergence performance of the harmony search algorithm are analyzed theoretically, and the more general formulas of exploration performance and convergence performance are proved. Based on theoretical analysis, the algorithm called opposition-based learning parameter adjusting harmony search is proposed. By using the algorithm to test the functions of different properties, the value range of key control parameters of the algorithm are given. The proposed algorithm is applied to optimize the problem of radar deployment. This paper takes a certain area of the Shandong Peninsula as the deployment scope. The simulation results show that the proposed algorithm is effective and practical. Although there is a large amount of calculation, it provides ideas and ways for other problems, such as the site selection of new observation and communication post, the deployment of maneuvering radar stations, and the track planning of fleet.