Error estimation and step size control with minimal subsystem interfaces
Lars T. Kyllingstad, Severin Sadjina, Stian Skjong
TL;DR
This paper tackles error estimation and macro-step size control for co-simulation with minimal subsystem interfaces. It surveys error-estimation approaches that do not require rollback or internal state access, highlighting three practical methods—NEPCE, explicit predictor/corrector, and ECCO—and shows how to construct a usable scalar error indicator. It then presents a PI-based step-size controller, with pseudocode and an illustrative quarter-car example, offering concrete guidance for implementing robust co-simulation orchestration. The work emphasizes practical recommendations, reliability considerations, and the need for further theoretical analysis of co-simulation as a dynamical system, aiming to enable high-performance, accurate, and scalable simulations with black-box subsystems.
Abstract
We review error estimation methods for co-simulation, in particular methods that are applicable when the subsystems provide minimal interfaces. By this, we mean that subsystems do not support rollback of time steps, do not output derivatives, and do not provide any other information about their internals besides the output variables that are required for coupling with other subsystems. Such "black-box" subsystems are common in industrial applications, and the ability to couple them and run large-system simulations is one of the major attractions of the co-simulation paradigm. We also describe how the resulting error indicators may be used to automatically control macro time step sizes to strike a good balance between simulation speed and accuracy. The various elements of the step size control algorithm are presented in pseudocode so that readers may implement them and test them in their own applications. We provide practicable advice on how to use error indicators to judge the quality of a co-simulation, how to avoid common pitfalls, and how to configure the step size control algorithm.
