How pedrovic12/repopulation-with-elite-set works
Project Type and Purpose
• The project is a research-oriented framework that combines an evolutionary algorithm (using DEAP) with a power system simulation engine (Pandapower). It is applied to solve power grid scheduling issues (such as the IEEE14 network) and includes a “Repopulation with Elite Set” strategy.
Analyzing the File Structure
• Several top-level areas can be distinguished:
• The PANDA_POWER folder that encompasses the primary simulation codes, embedded system integrations (Arduino, Python scripts, and notebooks), and the Pandapower-based electric network simulation logic.
• The “app” directory includes components for the evolutionary algorithm (AlgEvolutivoRCE) and the electric grid module (RedeEletrica) with templates for dashboards and multiple main scripts.
• The “evolution_rce_master” directory is extensive, covering notebooks, backend scripts, database files, frontend (both Dash and React) and models. It suggests an evolution or extended version of the base methodology and indicates a separation between experimental code (notebooks), backend processing, front-end visualization, and even some database management.
• Support files like JSON parameter configuration (parameters.json), Excel outputs, and scripts for PDF generation or additional data visualizations indicate integration points between simulation, data capture, and reporting.
Key Components to Highlight
a. Core Evolutionary Algorithm Engine:
• Components for setting up the evolutionary process: “Setup”, “AlgoritimoEvolutivoRCE”, and “DataExploration”.
• Workflow: receiving decision variables, applying the fitness function (which in this case often involves simulation via a Pandapower network), and generating evolved populations.
b. Electric Network Simulation Module:
• “RedeEletricaPandaPower” class and its integration with Pandapower.
• Components such as network loading, scenario evaluation, load flow computations (e.g., using the Newton-Raphson method), and fitness violation calculations.
• Point out how this module interacts with the evolutionary algorithm (i.e., it serves as the evaluation engine for the objective function).
c. Dashboard & Visualization Layer:
• Dashboards (built with Dash and templates in the “app/templates” folder) that showcase results from the evolutionary algorithm.
• Front-end compilation details from “evolution_rce_master/src/front_end” (noting that there is a React-based client and additional Dash servers).
• How visualization components allow users to interact with both simulation results and parameter configurations.
d. Embedded Systems & Microcontroller Integration:
• “embbed_systems” folder components (Arduino sketches, Python integrations, and C++ servers) that suggest hardware interfacing.
• Separate “circuito_RC” for Arduino code which likely handles the hardware-level operations.
e. Data Storage and I/O:
• Notebooks and PDF generation files that handle exploratory data analysis and reporting.
Architectural Patterns & Design Principles
• A different one for simulation (RedeEletricaPandaPower, pandapower calls).
• A separate style for front-end/dashboard components.
• And a unique symbol for hardware/embedded systems.
• Usage of abstraction in the simulation module — encapsulating detailed electric network analysis methods and their interplay with the objective function evaluation.
• Integration of data analytics elements (notebooks) and configuration management (parameters.json and Excel/DB files).
Specific Elements
• “Evolutionary Algorithm (DEAP Framework)”
• “Electric Network Simulator (Pandapower & RedeEletricaPandaPower)”
• “Dashboard & Visualization (Dash, Streamlit, React Frontend)”
• “Embedded Systems / Hardware Integration (Arduino, C++ Server, Python Scripts)”
• “Data I/O and Persistence (JSON, Excel, SQLite DB)”