Code for a Novel Decentralized Inverter Control Algorithm for Loss Minimization and LVRT Improvement

Citation Author(s):
Technical University of Denmark
Mirle Vishwanath
Indian Institute of Technology Kanpur
Indian Institute of Technology Roorkee
Indian Institute of Technology Roorkee
Submitted by:
Ilgiz Murzakhanov
Last updated:
Fri, 03/03/2023 - 01:36
Data Format:
0 ratings - Please login to submit your rating.


Algorithms that adjust the reactive power injection of converter-connected RES to minimize losses may compromise the converters’ fault-ride-through capability. This can become crucial for the reliable operation of the distribution grids, as they could lose valuable resources to support grid voltage at the time they need them the most. This paper explores how two novel loss-minimizing algorithms can both achieve high reduction of the system losses during normal operation and remain connected to support the voltage during faults. The algorithms we propose are decentralized and model-free: they require no communication and no knowledge of the grid topology or the grid location of the converters. Using local information, they control the reactive power injection to minimize the system losses. In this paper, we extend these algorithms to ensure the low voltage ride through (LVRT) capability of the converters, and we integrate them with state-of-the-art Wavelet-CNN-LSTM RES forecasting methods that enhance their performance. We perform extensive simulations on the real-time digital simulation (RTDS) platform, where we demonstrate that the algorithms we propose can achieve a substantial decrease in power losses while remaining compliant with the grid codes for LVRT makes them suitable for the implementation across the distribution system.


The provided dataset corresponds to the "A Novel Decentralized Inverter Control Algorithm for Loss Minimization and LVRT Improvement" paper. The dataset consists of several parts: Matlab simulations and RTDS results. The "Matlab" provides an understanding of the proposed Algorithms 1-3. The executable file is Script_GENERAL_dPMin. m. The code is structured and has explanatory comments for most of the operations.


Due to IEEE Dataport limitations on the size of each uploaded file, only part of the RTDS results is introduced here. The files can be sent upon request.


The code for PV forecasting is also uploaded. For wind forecasting, a code of a similar structure can be used. The used real-time SYSLAB data are under NDA and cannot be shared. 


If you have any questions or problems while executing the script, please do not hesitate to contact me at:

Funding Agency: 
Innovation Fund Denmark, Grant Agreement No. 8127-00017B and Department of Science and Technology (DST), India, Grant No: DST-1390-EED