energy-matching.This repository contains the code for the paper Energy matching in reduced passive and port-Hamiltonian systems. The goal is to obtain low-dimensional port-Hamiltonian (pH) models that effectively approximate both the input-output dynamics and the energy (Hamiltonian) of a full-order model (FOM).