Outdoor lighting is an essential service for modern life. However, the high influence of this type of facility on energy consumption makes it necessary to take extra care in the design phase. Therefore, this manuscript describes an algorithm to help light designers to get, in an easy way, the best configuration parameters and to improve energy efficiency, while ensuring a minimum level of overall uniformity. To make this possible, we used a particle swarm optimization (PSO) algorithm. These algorithms are well established, and are simple and effective to solve optimization problems. To take into account the most influential parameters on lighting and energy efficiency, 500 simulations were performed using DIALux software (4.10.0.2, DIAL, Ludenscheid, Germany). Next, the relation between these parameters was studied using to data mining software. Subsequently, we conducted two experiments for setting parameters that enabled the best configuration algorithm in order to improve efficiency in the proposed process optimization.