In order to optimize the indoor lighting effect and reduce the energy consumption of indoor lighting, the light source layout of conventional rooms and special rooms is studied in this paper. Firstly, the indoor space lighting model is analyzed, and the expressions of light source output and illumination on the target plane are derived. Secondly, in order to improve the search ability of the algorithm in specific areas, combined with the artificial bee colony algorithm, an improved artificial bee colony algorithm suitable for indoor lighting optimization is proposed. Using the average square difference of the illuminance of the target plane as the adaptation function, a penalty function is introduced, and the minimum circle surrounding strategy is used to search the specific location of the light source. Finally, the obtained layout is fitted by engineering standardization, and the indoor light source layout is obtained. Through the simulation of illuminance effect in conventional room and irregular room, it is proved that the proposed method can effectively improve the lighting effect and reduce the energy consumption of indoor lighting under the same number of light sources and the same illuminance index.