Abstract: This paper introduces a mathematical framework for designing digital twins (DTs) for cyber-physical energy systems (CPESs). Hereby we move beyond ad-hoc methods by employing physics-informed ...