Text this: Analysis of Profit Maximization Problem in Multiperiod Energy Markets with Uncertain Photovoltaics Power