Physics-based modelling leads to port-Hamiltonian structures [1-2]. These models consist of constitutive components: energy storage, energy dissipation, and ports which allows to transfer energy over system boundaries. Our research, supported by Deutsche Forschungsgemeinschaft (DFG), aims to exploit the structure of port-Hamiltonian systems in the realm of optimal and data-driven control.