This paper presents a rule-based control strategy for the Battery Management System (BMS) of a prosumer connected to a low-voltage distribution network. The main objective of this work is to propose a computationally efficient algorithm capable of managing energy flows between the distribution network and a prosumer equipped with a photovoltaic (PV) energy production system. The goal of the BMS is to maximize the prosumer’s economic revenue by optimizing the use, storage, sale, and purchase of PV energy based on electricity market information and daily production/consumption curves. To achieve this goal, the method proposed in this paper consists of developing a rule-based algorithm that manages the prosumer’s Battery Energy Storage System (BESS). The rule-based approach in this type of problem allows for the reduction of computational costs, which is of fundamental importance in contexts where many users will be coordinated simultaneously. This means that the BMS presented in this work could play a vital role in emerging Renewable Energy Communities (RECs). From a general point of view, the method requires an algorithm to process the load and generation profiles of the prosumer for the following three days, together with the hourly price curve. The output is a battery scheduling plan for the timeframe, which is updated every hour. In this paper, the algorithm is validated in terms of economic performance achieved and computational times on two experimental datasets with different scenarios characterized by real productions and loads of prosumers for over a year. The annual economic results are presented in this work, and the proposed rule-based approach is compared with a linear programming optimization algorithm. The comparison highlights similar performance in terms of economic revenue, but the rule-based approach guarantees 30 times lower processing time.
Integrating a grid-connected battery into a renewable energy community amplifies the collective self-consumption of photovoltaic energy and facilitates energy arbitrage in the electricity markets. However, how much can energy independence really increase? Is it a cost-effective investment? The answer to these questions represents a novelty in the literature due to the innovative nature of the asset under consideration and the market and regulatory framework in which it is evaluated. Employing a net present value assessment, our analysis incorporated aging effects and conducts sensitivity analyses across various parameters: the number of community customers, electricity market prices, battery cost and size, and the decision to engage in energy arbitrage. Each scenario underwent a 20-year hourly simulation using an aging-aware rolling-horizon 24 h-looking-ahead scheduling, optimized with mixed-integer linear programming. Simulations conducted on the Italian market indicate that dedicating a battery solely to collective self-consumption is the most efficient solution for promoting a community’s energy independence, but it lacks economic appeal. However, integrating energy arbitrage, despite slight compromises in self-sufficiency and battery longevity, halves the payback period and enhances the attractiveness of larger battery investments. The net present value is contingent upon the battery size, customer number, and market prices. Nevertheless, if the battery cost does not exceed 200 EUR/kWh, the investment becomes cost-effective across all scenarios.
This work presents a two-level Energy Management System (EMS) for Renewable Energy Communities (RECs) combining rule-based local control with Particle Swarm Optimization (PSO) coordination. A central Energy Management Hub (CEMH) uses digital twins of each Home EMS to optimize community performance through price-signal adjustments rather than direct control. The method achieves near-optimal self-consumption and incentive gains, largely within 10% of an MILP benchmark, while reducing computational time by about threefold. The approach ensures scalability, resilience, and fairness through a transparent incentive redistribution mechanism, enabling real-time and socially accepted REC coordination.
Photovoltaic power conversion systems require maximum power point tracking (MPPT) strategies capable of fast dynamic response with low computational burden, while remaining reliable under variable environmental conditions. While neural-network-based methods have been widely investigated, their practical deployment is often limited by the availability of representative training data and by the gap between offline algorithm development and real-time converter-level validation. This paper presents a reproducible hardware-in-the-loop workflow for the development and assessment of a lightweight neural MPPT controller applied to a photovoltaic system with a two-phase interleaved boost converter. The proposed approach generates a large synthetic training dataset using the single-diode photovoltaic model, leveraging only measurable quantities (PV voltage, PV current, and module temperature) as neural network inputs. The trained network estimates the voltage and current corresponding to the maximum power point, while a proportional-integral controller drives the converter toward the predicted operating point. The trained network is deployed on an STM32 microcontroller interfaced with the Typhoon HIL platform, allowing its real-time behavior to be tested against the emulated system. The measured neural MPPT execution time on the microcontroller is around 65 μs, with an overall CPU occupancy of nearly 4%, considering the PI controller stage. The implemented setup reproduces the photovoltaic generator, converter dynamics, switching behavior, and realistic irradiance and temperature profiles under repeatable real-time conditions. The interleaved boost architecture also reduces input current ripple and distributes current stress, making the setup suitable for medium-power photovoltaic applications. The main contribution of this work lies in the integrated modeling, training, control, and hardware-in-the-loop validation procedure, supporting the implementation of neural MPPT strategies.
Integrating a grid-connected battery into a Renewable Energy Community boosts Collective-Self-Consumption of photovoltaic produced energy and allow to perform Energy Arbitrage in the day-ahead and intraday electricity market. However, is it a cost-effective investment? The proposed analysis relay on Net Present Value assessment. Ageing affects are integrated and sensitivity analyses are conducted: considering community customers number, electricity mar-ket prices, battery cost, size and the decision to engage in energy arbitrage. Each scenario under-goes a 20-year hourly simulation using an ageing aware rolling-horizon 24-hours-looking-ahead scheduling, optimized with Mixed-integer linear Programming. Forecast errors, provid-ing of ancillary services, real time control and grid constrains are not taken into account. Simulations conducted on the Italian market indicates that a battery dedicated solely to collec-tive self-consumption is not economically appealing. However, integrating Energy Arbitrage, despite impact on battery lifespan, halves the payback period and enhances the attractiveness of larger battery investments. The Net Present Value is contingent upon battery size, customer number and market prices. However, if battery cost does not exceed 200 €/kWh the investment become cost-effective across all scenarios.
This work is devoted to the application of complex-valued neural networks based on the multilayer neural network with multi-valued neurons (MLMVN) for short-term electrical load forecasting in smart grid energy systems. Accurate forecasting is a critical component of energy management systems, as it directly impacts the efficiency of control and optimization strategies in increasingly distributed and stochastic environments. The proposed approach leverages the intrinsic properties of complex numbers to model periodicity and nonlinear relationships typical of load time series. A compact feedforward architecture with two hidden layers is adopted and combined with multiple preprocessing strategies, including unit circle encoding, Fourier transform representations, and hybrid feature mappings incorporating temporal information such as the day of the week. The performance of the proposed models is evaluated on real-world prosumer data and compared against two benchmarks: a seasonal persistence model and a Long Short-Term Memory network. Results show that MLMVN-based approaches achieve comparable or improved performance in terms of RMSE and error reduction capability, despite their lower architectural complexity. Fourier-based preprocessing methods demonstrate strong effectiveness in capturing underlying temporal patterns. These findings suggest that complex-valued representations provide a promising alternative to traditional deep learning approaches, offering a favorable balance between accuracy, interpretability, and computational efficiency in Smart Grid forecasting applications.