Similar Items: An $omega$-Algebra for Real-Time Energy Problems