Smart Meters, Heat Pumps, And Energy Management Systems Optimization Of Designs And Purchases