Skip to content

Modernization of an Optimization Algorithm Operated for Short-Term Load Forecasting in Quebec

Pierre Borie, Alain Marcotte, Fabian Bastin, Stéphane Dellacherie

math.OC

Abstract

We report on the modernization of a nonlinear least-squares solver used in a short-term electricity load forecasting system operated by Hydro-Québec, the public utility of the province of Quebec, Canada. The solver, ENLSIP, is a Fortran library that has been in production use since 2003 to calibrate a nonlinear regression model whose parameters are re-estimated daily. Growing maintenance difficulties, compatibility issues, and the need to accommodate larger datasets and additional weather features motivated its conversion to the Julia programming language. We describe the conversion strategy, a Fortran-Julia interface that allows existing Fortran routines to be called from Julia without modification, and the two-stage validation process conducted to assess the reliability of the new implementation. On benchmark problems from the nonlinear programming literature, both versions converge to the same solutions and differ only in the number of iterations performed. On operational calibration instances derived from Hydro-Québec data, the forecast errors of the Julia implementation are equivalent to those of the production version. The Julia version is currently slower, but remains well within the time budget of the overnight calibration. Beyond these results, we share the incremental process adopted to safely replace a legacy system in a critical industrial environment.

Create a lesson