Code

Open-source implementations accompanying IDEAL Lab publications. These repositories make research methods easier to inspect, reproduce, and extend.

Real-time dispatch code

Short-term forecast-augmented surrogate Lyapunov-based real-time dispatch of hybrid power plants in island power systems

Yuxin Deng, Xin Fang, and Jin Tan · Sustainable Energy, Grids and Networks · 2026

Research code accompanying the paper's short-term forecast-augmented surrogate Lyapunov-based real-time dispatch method for hybrid power plants in island power systems.

Block diagram connecting seasonal net-load profiles, ambient temperature, standard distribution-transformer options, planning horizon, thermal aging, cost parameters, optimization, and the resulting install-or-replace plan.
Thermal-aging-constrained transformer planning workflow from the paper.

Optimization code

Thermal-Aging-Constrained Distribution Transformer Sizing for Demand-Side Resource Integration

Bishal Rijal, Xin Fang, and Wenbo Wang · IEEE Open Access Journal of Power and Energy · 2026

Open-source implementation for the paper's multiyear distribution-transformer sizing and replacement framework, including thermal aging and demand-side resource integration.

Two frequency-deviation plots: (a) a stable response without SFR and an unstable response with SFR; (b) unstable and stable responses with SFR for different cases.
Frequency responses illustrating how secondary frequency regulation (SFR) affects small-signal stability.

Frequency stability analysis code

Analytical Small-signal Stability Analysis of Low-Inertia Power System Frequency Response Considering Secondary Frequency Regulation

Yuxin Deng, Xin Fang, Shuan Dong, Ningchao Gao, and Jin Tan · Electric Power Systems Research · 2026

Python scripts for calculating inverter-based-resource parameter stability intervals and a MATLAB/Simulink system frequency-response model accompanying the paper's analytical small-signal stability study.

Flowchart of the paper's real-time economic dispatch and time-domain simulation co-simulation framework, connecting the EV aggregator, DC optimal power flow, AC optimal power flow, and repeated dynamic simulation steps.
Real-time economic dispatch and time-domain simulation co-simulation framework from the paper.

EV frequency regulation code

Electric Vehicles Charging Time Constrained Deliverable Provision of Secondary Frequency Regulation

Jinning Wang, Fangxing Li, Xin Fang, Wenbo Wang, Hantao Cui, Qiwei Zhang, and Buxin She · IEEE Transactions on Smart Grid · 2024

Open-source EV aggregator implementation for charging-time-constrained, deliverable secondary frequency regulation within the paper's real-time economic dispatch and time-domain simulation framework.

CPDS information-exchange diagram connecting a transmission control center, turbine governor, transmission simulator, distributed energy resource aggregators, and distribution simulators with their update intervals.
CPDS information exchange among transmission, control, DER-aggregator, and distribution simulators.

Cyber-physical co-simulation code

Transmission-and-Distribution Dynamic Co-Simulation Framework for Distributed Energy Resource Frequency Response

Wenbo Wang, Xin Fang, Hantao Cui, Fangxing Li, Yijing Liu, and Thomas J. Overbye · IEEE Transactions on Smart Grid · 2022

Open-source HELICS-based CPDS framework coordinating ANDES and OpenDSS for transmission-and-distribution dynamic co-simulation of distributed energy resource primary and secondary frequency response.