top of page

Smart Lighting Optimization with Genetic Algorithms: The Energy Future of Smart Cities

The aim to reduce urban energy consumption and use public resources more efficiently has become central to today's sustainability policies and smart city strategies. As growing urban populations put increasing pressure on infrastructure, maintaining the balance between energy production, distribution, and consumption becomes critical from environmental, economic, and social perspectives. Within this context, urban planning must not only focus on discovering new energy sources but also prioritize the optimization of existing consumption models. In particular, systems that cause continuous and high-volume energy usage—such as public space lighting—must be managed more efficiently. While street lighting systems support core urban functions like public safety, social life, and traffic regulation, they also impose a significant burden on municipal energy budgets. Thus, every unit of savings in these systems directly contributes to economic efficiency and indirectly improves environmental outcomes.


Harmony Between Genetic Algorithms and Smart Lighting Systems


One of the primary enablers of this transformation is smart city applications. Through digital tools like the Internet of Things (IoT), sensor technologies, artificial intelligence, and big data analytics, urban infrastructure is becoming increasingly measurable, traceable, and controllable. However, this abundance of data brings with it highly complex, dynamic, and multi-dimensional control problems. Traditional optimization methods often fall short in handling such complexity, whereas nature-inspired evolutionary algorithms offer promising next-generation solutions. Among them, Genetic Algorithms (GA) have emerged as a noteworthy approach due to their ability to broadly scan solution spaces, make intuitive decisions, and simultaneously respond to multiple objective functions.


Genetic algorithms are an AI technique inspired by principles of biological evolution. Their population-based approach, adaptive learning capability, and ability to maintain solution diversity make them particularly useful in situations where conventional mathematical methods are inadequate. These features have made GAs a powerful tool in a wide range of urban applications, including energy systems, traffic optimization, production planning, and infrastructure management. However, a review of the literature reveals that GA’s direct integration into smart lighting systems remains limited. One major reason for this is the past inadequacy of real-time control mechanisms based on sensor data. But today, the widespread use of IoT devices, the availability of low-cost sensors, and the growing accessibility of AI models that process this data are removing these barriers.


In this context, Genetic Algorithms offer a unique advantage—not only by reducing energy consumption but also by addressing multiple goals simultaneously, such as improving lighting quality, minimizing dark zones, maximizing user comfort, and generating context-sensitive responses. For large-scale, continuously operating, and environmentally sensitive systems like street lighting, the flexible structure of GAs allows the creation of scalable and adaptable solutions that can be tested under various scenarios. Therefore, GAs are increasingly recognized as a strategic tool that can enable urban lighting infrastructure to be managed in a more sustainable, economical, and user-oriented manner in smart cities.


Academic Findings on Energy Optimization


The contribution of Genetic Algorithms to energy efficiency has been demonstrated with tangible results across many sectors. For example, a study conducted by Gupta, Singh, and Kaur (2019) developed a GA-based method for optimizing energy consumption in a manufacturing environment. The research reported a 15% reduction in energy usage throughout the production process, highlighting GA’s applicability at an industrial scale and its impact on energy management.


Similarly, Zhang and Lee (2020) tackled the load scheduling problem in smart grids and developed a model that improved energy utilization efficiency through genetic algorithms. Their approach successfully reduced consumption during peak demand periods, resulting in a notable increase in overall system efficiency.


Kumar and Joshi (2020) combined GA with Particle Swarm Optimization (PSO) to create a hybrid model aimed at lowering energy costs. The synergistic effect of the two algorithms yielded significant reductions not only in energy consumption but also in operational expenses. This study illustrates the potential of integrating GA with other AI techniques to generate more robust solutions.


In another study by Li et al. (2019), evolutionary algorithms were applied to lighting systems in commercial buildings. The optimized lighting scenarios achieved energy savings of up to 20%, demonstrating that energy efficiency improvements can be realized without compromising lighting quality.


Wang and Zhou (2020) examined GA-based load control within demand-side management. By analyzing consumer energy usage patterns, they developed a GA-compatible control strategy that enabled the system to adapt to user behavior. Their findings showed simultaneous improvements in consumer satisfaction and energy efficiency.


A microgrid-focused study by Nguyen et al. (2020) integrated GA with control strategies, achieving an 18% increase in efficiency in small-scale energy networks. This work underscored GA’s capability to create flexible, adaptive, and high-performance energy management systems when combined with control algorithms.


Additionally, Ali et al. (2020) modeled scenarios in building-based lighting systems to test GA’s optimization capacity, reporting energy savings of 25%. Elgala et al. (2020) utilized GA in smart home applications to enhance both energy consumption and user satisfaction.


This extensive literature clearly establishes GA as a powerful optimization tool across various scales and scenarios in energy systems.


Application of Genetic Algorithms in Street Lighting: A Simulation Example


To test the theoretical framework outlined above and produce concrete results, a simulation model based on urban street lighting systems has been developed. Street lighting systems, while supporting essential aspects such as urban safety and public space usability, are structures with continuous energy consumption and thus represent an important planning concern from an environmental sustainability perspective. Given rising energy costs, goals to reduce carbon footprints, and smart city strategies, these systems must achieve maximum functionality with optimal resource usage. In situations where traditional control and planning mechanisms fall short, nature-inspired heuristic algorithms come into play, offering new solution possibilities. Genetic Algorithms, by modeling evolutionary processes and efficiently searching large solution spaces, serve as a powerful optimization tool adaptable to engineering problems.


The simulated system consists of 20 lamps illuminating different areas randomly placed within a hypothetical 100x100 unit city layout. This random placement aims to test the algorithm's general performance against various urban morphologies found in real life. Each lamp's brightness level is represented within a range from 20 to 100. The goal is for the system to minimize total energy consumption while simultaneously reducing dark areas within the city. This dual-objective optimization structure produces more realistic and practical results compared to single-objective algorithms, as it accounts for both technical efficiency and user experience.


The fitness function used to evaluate algorithm success is designed not only to minimize energy consumption but also to penalize lighting areas below 40%, thereby reducing spatial imbalances. Such a penalty function allows the system to favor solutions that maintain lighting quality and user comfort rather than just "lower energy use." To preserve genetic diversity and prevent the algorithm from becoming trapped in local minima, the population size was set to 30, the number of generations to 50, and the mutation rate to 10%. Classical but effective strategies such as elitism, tournament selection, single-point crossover, and adaptive mutation ensured in-depth search capabilities of the algorithm.


The MATLAB environment was chosen for code development and simulation due to its matrix-based computation convenience and strong graphical output capabilities. The optimal solution obtained at the end of the simulation is a chromosome sequence representing the brightness levels of all 20 lamps. Visual analysis of the lighting map generated by this solution clearly shows the elimination of previously dark regions caused by random lamp placement and a more balanced light distribution across the area. The simultaneous achievement of energy savings and light distribution balance—the core objectives of the simulation—demonstrates the effectiveness of the solution.


This example goes beyond being a mere simulation; it highlights how data-driven and adaptive solutions can be generated for highly variable engineering problems faced by smart cities. Even in more complex real-world conditions where lamp positions are fixed, sensor-based feedback systems are active, and usage patterns vary over time, this work provides a representative foundation. Particularly when integrated with real-time data-supported dynamic control systems, Genetic Algorithms are expected to produce even stronger and context-aware outputs. Moreover, this simulation serves as a reference for future development of hybrid models incorporating other heuristic algorithms like artificial neural networks and particle swarm optimization.


The complete MATLAB code used for this simulation is available for download here:

.


Simulation Results and Evaluation


The random selection of lamp positions was intentionally chosen to test the algorithm’s performance independently of a specific city layout. This approach is particularly valuable for assessing the algorithm’s applicability in newly developing areas, temporary lighting setups in industrial zones, or park areas where planning is not yet finalized. It demonstrates that the Genetic Algorithm provides flexible and generalizable solutions beyond theoretical constructs.

The optimal solution represented by the best individual at the end of the optimization process adjusted the brightness levels of the lamps to maximize energy efficiency while minimizing dark areas. This result was visually evaluated through a heat map of lighting intensity.

In the heat map, high lighting levels are represented by white and light colors, while low lighting areas transition from red to black in darker tones. Visual analysis revealed a significant reduction in dark spots caused by the initial random distribution, with lighting more evenly spread throughout the area.


Figure 1. Heat map of light intensity obtained in the optimal solution. The spatial distribution of lighting levels is visualized.
Figure 1. Heat map of light intensity obtained in the optimal solution. The spatial distribution of lighting levels is visualized.

Particularly, brightness levels became more homogeneous in both central and peripheral zones, indicating that the system focused not only on minimizing total energy consumption but also on spatial lighting quality.

Numerical evaluations support these findings. After optimization, the overall system’s average brightness reached a satisfactory level, and the percentage of low-light areas was reduced below 15%.


Figure 2. Histogram of lighting levels resulting from the simulation. The uniformity of brightness distribution is clearly evident.
Figure 2. Histogram of lighting levels resulting from the simulation. The uniformity of brightness distribution is clearly evident.

This rate marks a significant improvement compared to similar systems where dark area ratios typically range around 30–40%. Reducing dark areas yields positive outcomes not only in terms of visual comfort but also across various dimensions of urban life such as security, traffic regulation, and crime prevention. The balanced distribution obtained shows that Genetic Algorithms can consider multiple criteria including energy efficiency, user comfort, and urban safety.


The design of the fitness function played a critical role in this success. This function aimed not only to minimize total energy consumption but also to penalize lighting areas below 40%, thereby discouraging the formation of low-light zones. Such penalty-based structures guided the genetic algorithm’s search space, preventing single-objective optimization and enabling a transition to multi-objective optimization. This approach demonstrates that Genetic Algorithms can serve not just as technical computational tools but also as context-aware decision support mechanisms focused on urban experience.


The influence of parameters set for algorithm performance cannot be overlooked. Choosing a population size of 30, 50 generations, and a mutation rate of 10% balanced computational cost with solution quality. Preservation of elite individuals in each generation, tournament selection, single-point crossover, and adaptive mutation strategies helped the algorithm avoid local minima and explore a broader solution space. This structure once again highlighted how evolutionary algorithms effectively maintain genetic diversity and improve solution quality.


However, some areas still exhibited low brightness levels after the simulation. This is mainly due to the fixed locations of the lamps. In real-world conditions, higher success could be achieved with sensor-based lighting, reconfiguration of lamp placements, or application of hybrid algorithms. Furthermore, only fixed brightness levels were optimized in this study; actual lighting needs vary with time, season, weather, and user mobility. Therefore, future models supported by real-time data streams and dynamic systems would further enhance algorithm applicability.


In summary, this simulation study has demonstrated that Genetic Algorithms can be applied to smart lighting systems not only to achieve energy savings but also to directly improve urban quality of life. Evaluated in terms of computational performance, optimization depth, and context sensitivity, GA emerges as a powerful tool that decision-makers in smart city infrastructures can utilize.


Future Perspectives: Toward Dynamic and Context-Aware Systems


While this study successfully demonstrates GA’s applicability and performance in smart lighting systems, some important future directions are suggested to further develop these systems. These include dynamic control systems supported by motion sensors, multi-objective optimization models that simultaneously optimize energy, security, and user comfort, real-time adaptation capabilities, and hybrid algorithms (e.g., GA combined with artificial neural networks or GA combined with PSO). Additionally, comparative analysis of GA performance across different urban planning patterns would enhance the strategic value this method offers to decision-makers.


References

  • A. Gupta, R. Singh, and N. Kaur, “Energy optimization in manufacturing using GA,” IEEE Access, vol. 7, pp. 23411–23419, 2019.

  • M. Zhang and T. Lee, “GA-based load scheduling for smart grid optimization,” IEEE Trans. Smart Grid, vol. 11, no. 3, pp. 2193–2202, 2020.

  • S. Kumar and H. Joshi, “A hybrid GA-PSO model for energy cost reduction,” IEEE Access, vol. 8, pp. 77845–77854, 2020.

  • F. Li et al., “Optimization of lighting energy in commercial buildings using evolutionary algorithms,” Energy Build., vol. 199, pp. 231–240, 2019.

  • J. Wang and K. Zhou, “Demand-side management using GA-based optimization,” Energy, vol. 203, p. 117812, 2020.

  • T. A. Nguyen et al., “GA-enhanced control strategies for smart microgrids,” IEEE Trans. Ind. Inform., vol. 16, no. 2, pp. 1282–1290, 2020.

  • M. Ali et al., “Energy efficient lighting control using GA: A case study,” Renew. Sustain. Energy Rev., vol. 124, p. 109732, 2020.

  • H. Elgala et al., “Lighting system optimization in smart homes via GA,” Sustain. Cities Soc., vol. 52, p. 101855, 2020.

Comments


© 2025 UrbanWise. All rights reserved.

bottom of page