A framework to predict the price of energy for the end-users with applications to monetary and energy policies