Title: Data-Driven Energy Management and Tariff Optimization in Power Systems