# Stochastic-Based Energy Procurement

## Abstract

In this section, the uncertainty of the pool price and load demand in the power procurement problem of a large consumer is modeled using the stochastic programming. Based on the deterministic formulation of the problem, which was introduced in Chap. 2, the stochastic formulation is presented to solve the problem.

Then, using normal distribution, uncertainties of the problem as the load, solar irradiance, temperature, and power price in the market are modeled generating 100 discrete scenarios considering the output power of photovoltaic panels. Furthermore, the uncertainty of the output power of the wind turbine is modeled using the Weibull distribution, which is used to model the wind speed by 100 scenarios.

Two different cases as without and with considering demand response programs are assumed to solve the problem and investigate the impact of demand response programs. To do so, the time-of-use rate of demand response is applied to reduce the total power procurement cost of the large consumer.

The problem is formulated as a mixed-integer linear program, which is solved by the CPLEX solver under GAMS optimization software.

## Keywords

Power procurement of large consumer Uncertainty modeling Stochastic programming Normal distribution Weibull distribution Bilateral contracts Demand response programs## References

- 1.H. Ebrahimian, S. Barmayoon, M. Mohammadi, N. Ghadimi, The price prediction for the energy market based on a new method. Econ. Res. Istraživanja
**31**(1), 313–337 (2018)CrossRefGoogle Scholar - 2.V. Dua, N.A. Bozinis, E.N. Pistikopoulos, A multiparametric programming approach for mixed-integer quadratic engineering problems. Comput. Chem. Eng.
**26**(4–5), 715–733 (2002)CrossRefGoogle Scholar - 3.J.R. Birge, F. Louveaux,
*Introduction to Stochastic Programming*(Springer, New York, 2011)CrossRefGoogle Scholar - 4.P. Beraldi, A. Violi, G. Carrozzino, M.E. Bruni, A stochastic programming approach for the optimal management of aggregated distributed energy resources. Comput. Oper. Res.
**96**, 200–212 (2018)CrossRefGoogle Scholar - 5.S. Xie et al., Multi-objective active distribution networks expansion planning by scenario-based stochastic programming considering uncertain and random weight of network. Appl. Energy
**219**, 207–225 (2018)CrossRefGoogle Scholar - 6.F. Xie, Y. Huang, A multistage stochastic programming model for a multi-period strategic expansion of biofuel supply chain under evolving uncertainties. Transp. Res. Part E Logist. Transp. Rev.
**111**, 130–148 (2018)CrossRefGoogle Scholar - 7.M.-C. Hu, S.-Y. Lu, Y.-H. Chen, Stochastic–multiobjective market equilibrium analysis of a demand response program in energy market under uncertainty. Appl. Energy
**182**, 500–506 (2016)CrossRefGoogle Scholar - 8.M. Peker, A.S. Kocaman, B.Y. Kara, A two-stage stochastic programming approach for reliability constrained power system expansion planning. Int. J. Electr. Power Energy Syst.
**103**, 458–469 (2018)CrossRefGoogle Scholar - 9.G. Schweickardt, V. Miranda, A two-stage planning and control model toward economically adapted power distribution systems using analytical hierarchy processes and fuzzy optimization. Int. J. Electr. Power Energy Syst.
**31**(6), 277–284 (2009)CrossRefGoogle Scholar - 10.K. Marti, P. Kall (eds.),
*Stochastic Programming*, vol 423 (Springer Berlin Heidelberg, Berlin, Heidelberg, 1995)Google Scholar - 11.A.J. Conejo, M. Carrión, J.M. Morales,
*Decision Making Under Uncertainty in Electricity Markets*, vol 153 (Springer US, Boston, MA, 2010)zbMATHGoogle Scholar - 12.Y. Liu, W. Wang, N. Ghadimi, Electricity load forecasting by an improved forecast engine for building level consumers. Energy
**139**, 18–30 (2017)CrossRefGoogle Scholar - 13.H.A. Aalami, S. Nojavan, Energy storage system and demand response program effects on stochastic energy procurement of large consumers considering renewable generation. IET Gener. Transm. Distrib.
**10**(1), 107–114 (2016)CrossRefGoogle Scholar - 14.M. Abbaspour, M. Satkin, B. Mohammadi-Ivatloo, F. Hoseinzadeh Lotfi, Y. Noorollahi, Optimal operation scheduling of wind power integrated with compressed air energy storage (CAES). Renew. Energy
**51**, 53–59 (2013)CrossRefGoogle Scholar - 15.N. Ghadimi, A. Akbarimajd, H. Shayeghi, O. Abedinia, Application of a new hybrid forecast engine with feature selection algorithm in a power system. Int. J. Ambient Energy, 1–10 (2017)Google Scholar
- 16.D.T. Nguyen, L.B. Le, Optimal bidding strategy for microgrids considering renewable energy and building thermal dynamics. IEEE Trans. Smart Grid
**5**(4), 1608–1620 (2014)CrossRefGoogle Scholar - 17.N. Ghadimi, A. Akbarimajd, H. Shayeghi, O. Abedinia, A new prediction model based on multi-block forecast engine in smart grid. J. Ambient Intell. Humaniz. Comput., 1–16 (2017)Google Scholar
- 18.D.K. Barrow, N. Kourentzes, Distributions of forecasting errors of forecast combinations: implications for inventory management. Int. J. Prod. Econ.
**177**, 24–33 (2016)CrossRefGoogle Scholar - 19.S. Nojavan, H. Allah Aalami, Stochastic energy procurement of large electricity consumer considering photovoltaic, wind-turbine, micro-turbines, energy storage system in the presence of demand response program. Energy Convers. Manag.
**103**, 1008–1018 (2015)CrossRefGoogle Scholar - 20.“CPLEX 12.” [Online]. Available: https://www.gams.com/latest/docs/S_CPLEX.html. Accessed 15 Jul 2018
- 21.A. Brooke, D. Kendrick, A. Meeraus, GAMS user’s guide. Redwood City (CA): The Scientific Press; 1990. Available: http://www.gams.com/docs/gams/GAMSUsersGuide.pdf