arXiv Science⌕ Search

arXiv · 2612.00797

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

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Pierre Borie, Alain Marcotte, Fabian Bastin, Stéphane Dellacherie. 2026-12-01. Modernization of an Optimization Algorithm Operated for Short-Term Load Forecasting in Quebec. https://arxiv.science/abs/2612.00797

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Stabilizing Rate of Stochastic Linear Systems with Multiplicative Noise

This paper develops a quantitative framework for analyzing the mean-square exponential stabilization of stochastic linear systems with multiplicative noise, focusing specifically on the optimal stabilizing rate, which characterizes the fastest exponential stabilization achievable under admissible control policies.The framework consists of two complementary developments. First, we extend the norm-based analysis from deterministic switched systems to the stochastic setting and establish computable upper and lower bounds for the optimal stabilizing rate. Second, by restricting attention to state-feedback policies, we introduce an optimal control formulation of the feedback-restricted optimal stabilizing rate problem and derive a Bellman-type equation. Since this Bellman-type equation is not directly tractable, we recast it as a nonlinear matrix eigenvalue problem whose valid solutions require strictly positive-definite matrices. To overcome the possible absence of such solutions, we introduce a regularization scheme and develop a Regularized Normalized Value Iteration (RNVI) algorithm, which in turn generates strictly positive-definite fixed points for a perturbed version of the original nonlinear matrix eigenvalue problem while producing feedback controllers. Evaluating these regularized solutions further yields certified lower and upper bounds for the feedback-restricted optimal stabilizing rate, providing a constructive procedure for estimating the fastest achievable mean-square decay rate. We also provide a sufficient condition for the certified gap to close and a necessary structural condition satisfied by each regular nonvanishing-gap fixed-point sequence. Numerical experiments further demonstrate the effectiveness of the proposed framework.

math.OC↗

An Adaptive Algorithm for Nonconvex Bilevel Optimization under the Uniform Polyak--Łojasiewicz Condition

Existing methods for nonconvex bilevel optimization (NBO) require prior knowledge of problem-specific parameters, such as Lipschitz moduli and the Polyak--Łojasiewicz (PŁ) constant, to configure stepsizes. This requirement severely limits the practical applicability as these parameters are often unknown or prohibitively expensive to estimate. To circumvent this limitation, we propose an adaptive first-order algorithm, named Adaptive Fully First-order Bilevel Approximation (AF${}^2$BA), for solving NBO problems under the uniform PŁ condition. The algorithm combines an outer backtracking mechanism based on inexact hyperobjective values with an adaptive auto-conditioned gradient method that converges linearly for the inner PŁ problems. We prove that AF${}^2$BA generates an $ε$-stationary point with a $\widetilde{\mathcal{O}}(\ellκ^4ε^{-2})$ first-order oracle complexity, which is near-optimal in its dependence on $ε$: up to logarithmic factors, it matches the first-order lower bounds for nonconvex smooth optimization and nonconvex--strongly-convex smooth bilevel optimization. Moreover, the condition-number dependence of this complexity also matches that of the well-tuned F${}^2$BA algorithm under the uniform PŁ condition, without requiring problem-specific constants in stepsize selection. Experiments demonstrate that AF${}^2$BA achieves comparable performance to existing well-tuned algorithms while exhibiting better robustness.

math.OC↗

Unlocked Backpropagation using Wave Scattering

Both the backpropagation algorithm in machine learning and the maximum principle in optimal control theory are posed as a two-point boundary problem, resulting in a ``forward-backward'' lock. We derive a reformulation of the maximum principle in optimal control as a hyperbolic initial value problem by introducing an additional ``optimization time'' dimension. We introduce counter-propagating wave variables with finite propagation speed and recast the optimization problem in terms of scattering relationships between them. This relaxation of the original problem can be interpreted as a physical system that equilibrates and changes its physical properties in order to minimize reflections. We discretize this continuum theory to derive a family of fully unlocked algorithms suitable for training neural networks. Different parameter dynamics, including gradient descent, can be derived by demanding dissipation and minimization of reflections at parameter ports. Explicit physical sub-dynamics (i.e., analytical world-model elements) or constraints can be naturally incorporated, as they themselves correspond to known optimization problems. Our formulation automatically supports parallel, feedback, and hierarchical combinations of specialized subsystems, as well as communication delays between subsystems. It also suggests that backpropagation and more general distributed optimization problems can plausibly be implemented by biology.

math.OC↗