MATLAB code and data for the research article : I. Daminov, R. Rigo-Mariani, R. Caire, A. Prokhorov, M-C Alvarez-Herault, “Demand Response Coupled with Dynamic Thermal Rating for Increased Transformer Reserve and Lifetime” in Energies (IF: 2.702, Q2), 2021