Email Record: Data-driven energy management and tariff optimization in power systems :