 Original article
 Open Access
 Published:
Scenariobased stochastic optimal operation of wind/PV/FC/CHP/boiler/tidal/energy storage system considering DR programs and uncertainties
Energy, Sustainability and Society volume 8, Article number: 2 (2018)
Abstract
Background
Microgrid (MG) can be described as a group of controllable loads and distributed energy resources that can be connected and disconnected from the main grid and utilized in gridconnected or islanded modes considering certain electrical constraints.
Methods
The objective of this article are as follows: (1) predict the uncertainties through the hybrid method of WTANNICA and (2) determine the optimal generation strategy of a MG containing wind farms (WFs), photovoltaic (PV), fuel cell (FC), combined heat and power (CHP) units, tidal steam turbine (TST), and also boiler and energy storage devices (ESDs). The uncertainties include wind speed, tidal steam speed, photovoltaic power generation (PVPG), market price, power, and thermal load demand. For modeling uncertainties, an effort has been made to predict uncertainties through the hybrid method of wavelet transform (WT) in order to reduce fluctuations in the historical input data. An improved artificial neural network (ANN) based on the nonlinear structure is applied for better training and learning. Furthermore, the imperialist competitive algorithm (ICA) is applied to find the best weights and biases for minimizing the mean square error of predictions.
Result
The scenariobased stochastic optimization problem is proposed to determine the optimal points for the energy resources generation and to maximize the expected profit considering demand response (DR) programs and uncertainties.
Conclusions
In this study, three cases are assessed to confirm the performance of the proposed method. In the first case study programming, MG is isolated from grid. In the second case study, which is gridconnected mode, the WTANNICA and WTANN uncertainty prediction methods are compared. In the third case, which is gridconnected mode, the effect of DR programs on the expected profit of energy resources is assessed.
Background
The microgrid (MG) concept has recently attracted significant public attention. Integration of renewable sources, combined heat and power (CHP) systems, and energy storage technologies in the MGs will result in environmental friendly, low cost, and reliable energy. Recently, using CHP systems in MGs has attracted more attention. The primary motivation for incorporating CHP units is providing electrical and thermal energy, simultaneously. During electricity generation process of CHP systems, waste heat is employed to provide thermal energy. This process will result in the improvement of overall system efficiency as well as a significant reduction in the cost of thermal energy generation. It should be mentioned that, in a CHP unit, the power generation boundaries depend upon the heat generation of unit and the heat generation boundaries depend on the power generation of the unit [1].
Owners of renewable resources need to predict the uncertainties for optimal planning such as photovoltaic voltage/power generation [2], market price [3], and load forecasting [4], wind farm power generation/wind speed (WS) [5,6,7,8,9]. In [7], firstly, historical data of WF is decomposed using wavelet transform (WT) and then WF power generation is predicted by artificial neural network (ANN). This method is tested in two regions of china. Afterwards, comparing WTANN, ANN, and auto regressive moving average (ARMA) methods revealed that WTANN can significantly reduce the error in spite of ANN and ARMA methods. In [8], the optimal weights and biases of ANN are determined by genetic algorithm (GA), imperialist competitive algorithm (ICA), and ICAGA methods; then, they are tested on six specified databases. In the end, the obtained results confirmed that ICA has higher capabilities. Similarly, ANN is employed to predict WF power generation, and then, ICA, GA, and particle swarm optimization (PSO) are chosen to determine the optimal weights and biases [9]. The prediction results were more satisfactory when ICA algorithm was utilized.
The second solution for uncertainty reduction in renewable units including renewable resources is to coordinate other energy resources which are quite expensive, but available and more reliable, such as pumpstorage unit, hydro unit, gas turbines, combined cycle power plants, and energy storage batteries [10,11,12,13,14,15,16,17,18,19,20,21]. However, the share of these energy sources should diminish for many reasons [10]. In [11], the coordinated planning of WF, pumpstorage unit, and thermal units is presented by the multistage stochastic planning and solved by scenario decreasing algorithm of PSO. In [12], the required reserve level is estimated in the presence of highlevel WF penetration. In [13], the optimal strategy of WF is determined in the realtime market. The wind speed and market price are predicted by ARMA. Moreover, the expected profit is limited by FR and the required reserve is determined due to the error prediction in WF power generation. In [14], the coordinated planning problem of WF and thermal power plants are solved by artificial immune optimization method. This optimization method is implemented on a system including ten thermal power plants and two wind farms (WFs). A mixed integer programming algorithm is adopted for period planning of operation startup/shutdown and generating/pumping mode of pumpstorage unit to maximize the profit in coordinated operation of WF and pumpstorage unit [15]. A scenariobased and chance constrained optimization method is hired to consider the WF power generation prediction error. A rolling optimization method for WF coordination with the energystorage systems in the dayahead market is presented to increase the profit of these power plants.
The optimal scenariobased operation management of MG including WF, photovoltaic, microturbine/fuel cell, and energy storage devices are studied in [16]. In this paper, the considered uncertainties are load, WF power generation, photovoltaic power generation, and market price. In [17], the optimal biding strategy model in an electricity distributed company is considered in order to make the maximum profit in the dayahead market. In [18], the modified particle swarm optimization algorithm is used to optimize energy in MG. Moreover, in this study, uncertainty of data is checked using Hong method. In [19], like [18], Hong method is applied for covering uncertainties; however, the modified firefly algorithm is utilized for optimization. In [20], studies on utilization of micronetwork are made in the presence of generating resources of thermal and electrical energy and also Proton Exchange Membrane Fuel cell power plant along with the hydrogen storage. The modified algorithm of selfadaptive charge search algorithm is applied for optimization. In [21], the objective function is considered to maximize the profit of wind farm, fuel cell, boiler, CHP units, electrical power generation unit, and energy storage devices (ESDs) connecting to a MG regarding uncertainties. The uncertainties are predicted by time series methods.
In this paper, the presented issue can be shortly explained as follows:

1.
Prediction of uncertainties via hybrid method (HM) of WTANNICA. According to the studies in [7,8,9], prediction of uncertainties using the proposed method can lessen errors of prediction of WS in comparison to ARMA, ANN, WTANN, WTANNPSO, and WTANNGA methods. Therefore, this approach may generate scenarios closer to reality and lead to the optimal programming.

2.
Generating the scenarios of WS, tidal steam speed (TSS), photovoltaic power generation (PVPG), market price, and power/thermal load demand, decreasing the scenarios with the scenarioreduction backward method, and modeling them through the tree scenario method.

3.
The programming of MG, including WFs, photovoltaic (PV), tidal steam turbine (TST), fuel cell (FC), CHP units, boiler, and electrical and thermal ESDs, considering constraints and the uncertainties of WS, TSS, PVG, market price, and power/thermal load demand.

4.
Studying the expected profit of energy resources with and without DR program.
Methods
An algorithm is proposed for programming generation and unit commitment of an MG including three WFs, PV, TST, FC, two CHP units, boiler, and ESDs with and without considering DR program shown in Fig. 1.
Scenariobased stochastic modeling
As a result of extending renewable resources and uncertainty in the nature of such resources, the modern complicated power systems should be analyzed in uncertain environment so that operating point and reliability of energy supply occur in approximation with the optimal point in reality. Therefore, having access to powerful tools is necessary for transition from uncertain environments with random variables, including their probability contributions, to the certain problems with certain variables. In the modern deregulated power supply markets, the most important random variables are load demands, wind speed, PVPG, and market price. The origin of the abovementioned uncertainties are found in issues like weather conditions, temperature variations, and government decision.
This proposed method for prediction of uncertainties is proposed in Fig. 1 as a flowchart. As observe here, it is assumed that the prediction for dth day can be made and the historical data extracted for every single hour of 24 h beginning 100 days ago.
Stage 1: data homogenization
The historical data are recalled and normalized to improve data homogenization.
Stage 2: data processing using wavelet theory
The components and features of data can be extracted through mathematical equations. More specifically, the components and features of time and frequency domain of data signal can be extracted through wavelet technique. The basic equations of WT are Eqs. (1 and 2) [22].
where ψ (a, b) is the wavelet function and f (t) is the input signal on which wavelet function is implemented until the WT (a, b) signal is yield. Furthermore, a and b are the parameters related to the WT which depend on the type of wavelet function. The approximated values are decomposed once more after some iterations; therefore, the signal is decomposed into smaller parts [7, 23]. WT is essential here to suppress the disturbances in historical data and to alleviate the fluctuation of input data. The input data is decomposed into three approximated components of (Dh1, Dh2, and Dh3) with lower accuracy together with a more precise component (Ah) which plays the most important role in prediction process [23].
Stage 3: ANN
McCulloch and Pitts tried to simulate the ANN by a logical model for the first time which now is widely applied in many fields. Here, the chosen ANN consist of three perception layers: the output layer with one neuron, the input layer with five neurons, and the hidden layer with three neurons. This ANN can predict the information of hours d (t + 1,…,t + 24) for the output signals of WT as the initial data.
Stage 4: ICA
ICA is a new optimization strategy based on political and social evolution of human. Basically, to determine the best solution, GA and PSO are inspired with biological evolutions, chromosomes, and particles. However, the source of inspiration in ICA is the socialpolitical evolution, and it applies colonies (countries) as the variable for finding the optimal solution [8, 9]. The steps of ICA are briefed as follows:

1. Developing initial colonies: the ANN consist of input signals (Ah, Dh1, Dh2, and Dh3), the five neurons in the input layer (IL), the three neurons in hidden layer (HL), and the one neuron in output layer (OL). The matrixes of wrights (W) and biases (B) consist of ILW = [5 × 4], ILB = [5 × 1], HLW = [5 × 3], HLB = [3 × 1], OLW = [3 × 1], and OLB = [1 × 1]. Hence, each colony constitutes 47 variables. Initial colonies are selected through specific range based on initial training of ANN on a random basis. Regarding the cost function based on decreasing the prediction error, the optimization of weights and biases are performed within the neural network for better training. The cost function here is the mean square error which is proposed as Eq. (3).
where \( {\widehat{y}}_{\mathrm{in}} \) and y_{in} are predicted and real value for inth input.

2. Selecting the imperialist: in this stage, the colonies with minimum cost are selected as the imperialists.

3. Allocating the other countries as the colony to the imperialists: in this step, some colonies are allocated to each of imperialists and empires. This allocation is done according to imperialists fitness (fewer cost) by stochastic universal sampling method. The stages of 1–3 are the initialization stages of ICA.

4. Performing the act of assimilation or absorption policy: in this stage, each of the colonies is moved towards the imperialist in each empire. This stage proceeds to improve the exploitation of algorithm.

5. Performing the act of revolution: in this stage, the random changes are applied on each of the colonies. This action can improve the exploration of algorithm and prevent from involving the optimization in the local optimal points.

6. Computing the cost of colonies and imperialists.

7. Comparing the cost of colonies with imperialist in each empire: if a colony holds a lower cost than the imperialist, it will take its place.

8. Evaluating the empires: the cost for each empire is computed according to Eq. (4).
where N_{CLO} is the number of colonies.

9. Decreasing the colonies: in this stage, a colony is omitted from the weakest empire and transmitted to another empire by roulette wheel method. According to this method, the empire with the lower cost has more chance to seize the colony.

10. Omitting the empire: if the weakest empire has no colony, the related imperialist will be transmitted to another empire as a colony.
Stage 5
Studying the termination condition, the stop condition is set based on the number of iterations obtained by trial and error method. If the stop condition of program is satisfactory, the results are moved to the scenario generation stage; otherwise, the algorithm returns to (4) to generate new colonies. ICA flowchart is illustrated in Fig. 2. The uncertainty prediction curves are shown in Fig. 3a–f. The comparison of mean square error of proposed method with ARMA, WTANN, and WTANNPSO methods are listed in Table 1.
Generating scenarios and backward method scenarios reduction
According to the stated issues, the determination of optimal strategy for resources connected to the MG is analyzed randomly. To reach this goal, at first, a probability density function is defined for each variable. In this study, the applied probability density function is adopted for power/thermal load demand, TSS, PVPG, and market price with normal distributed functions. In the case of WS, the statistical model is not coordinated with the normal distribution but more harmonized with Weibull distribution function.
To accomplish this, first, a probability density function is defined for each variable. In this study, the applied probability density function is adopted for power/thermal load demand, TSS, PVPG, and market price with normal distributed functions. In case of WS, the statistical model is not coordinated with normal distribution but more harmonized with Weibull distribution function. First, this distribution function is portioned into N parts with the mean of zero from the center with the width of α. Next, each portion is allocated to the occurrence probability and specific error percentage at each level, Fig. 4, [16]. Then, the probability of each occurrence is normalized in a sense that their accumulated distribution function is equal to 1. Finally, a number is selected for each uncertainty variable and each time interval by roulette wheel method in a random matter; hence, the intended scenario is yield.
The rate of each scenario is obtained by the sum of the error and predicted amount of variable [16]. Eq. (5) shows the amount of scenario for the WS. Consequently, 500 scenarios are generated for each uncertainty.
For modeling, all uncertainty parameters, including WS, TSS, PVG, market price, and power/thermal load demand, and many scenarios are generated. However, the huge number of scenarios makes it burdensome to solve the stochastic problem. In order to solve this problem, the number of scenarios should be declined by the backward method. The basis of this method is to merge the scenarios with close probability into one. This process could continue until reaching the favorable numbers [16, 21]. In this research, the number of scenarios abates down to 10 for each state.
Objective function of WFs, PV, TST, FC, CHP units, boiler, and ESDs
In this study, the optimal scheduling of MG including WFs, PV, TST, FC, CHP units, boiler, and ESDs is examined with the 24hour time horizon as well as considering uncertainties and DR programs in order to maximize the expected profit. The multistage stochastic programming is applied to deal with uncertainties. Since the generation power of units should be determined before applying stochastic processes, they are the first stages or hereandnow decisions and are not dependent to the scenarios. Other variables such as buy or sell power from the market and charge or discharge of storage devices are at the second stage or waitandsee decisions. This mixed integer nonlinear optimization problem is solved through GAMS/COUENNE software. GAMS/COUENNE is a GAMS solver that allows users to combine the high level modeling capabilities of GAMS with the power of COUENNE optimizers which are designed to solve large and difficult problems quickly and with minimal user intervention. This solver is a general one which can be used to solve all scheduling problems. In these conditions, COUENNE solver can be used to solve the proposed optimization problem. COUENNE uses a branch and cut algorithm which solves a series of linear programming and subproblems [24].
Problem modeling
In this section, an optimal bidding strategy is modeled and analyzed. The objective function of this optimization problem utilized for the first time is as Eq. (6). where, ρ_{ s } is the probability of scenario s. P_{sale}(s, t) and P_{buy}(s, t) are the amount of power sold and bought to/from the market, respectively. According to Eq. (7), the probability of sth scenario is obtained by multiplying the probabilities of WS, TSS, PVPG, market price, power, and thermal load demand in each other. The function C_{ T } is the total operation cost of units defined in Eq. (9). The objective is to maximize the expected profit of units considering constraints related to unit usages; the difference between selling excess energy to the market in gridconnected mode and costs. The costs include buying energy from the market in gridconnected mode, the expenditure of operation, startup and shutdown cost, the cost of charge of electrical ESD, and batteries of PV resource proposed as Eqs. (9–12). Eq. (15) is the power balancing constraint of MG.
where i is the index of each energy resources; W, CHP, PV, FC, TST, K, and B are the index of wind farm, combined heat and power, photovoltaic, fuel cell, tidal steam turbine, electrical energy storage device, and boiler; A_{ W }, A_{ TST }, A_{ PV }, A_{ CHP } − F_{ CHP }, A_{ FC }, and B_{ FC } are the cost coefficients of wind farm, tidal steam turbine, photovoltaic, combined heat and power, and fuel cell; T/t is the total number/index of time intervals; S_{ P }, S_{ TSS }, S_{ W }, S_{ PV }, S_{ PL }, and S_{ HL } are the index of scenarios for market price, tidal steam speed, wind speed, photovoltaic power generation, power, and thermal load demand, respectively; Y is the sufficient large number; U_{COST}(i, t) and D_{COST}(i, t) are the startup/shutdown cost of ith generation unit at hour t; M(i, t) is the commitment state of ith generation unit at hour t; ρ_{ s } is the probability of the s_{ W }th wind speed; s_{ TSS }th is the tidal steam speed; s_{ PV }th is the photovoltaic generation; s_{ p }th is the scenario of market price; s_{ PL }th is the scenario of power load demand; s_{ HL }th is the scenario of thermal load demand; C_{ T }(i, t) is the value of total generation cost of ith generation unit at hour t; E_{ P }(s_{ p }, t) is the price of the market ($/MW) for energy for s_{ p }th scenario of price at hour t, respectively; P_{sale}(s, t) and P_{buy}(s, t) are the amount of power sold and bought to/from the market at hour t in MW; \( {P}_G^W\left({s}_W,t\right) \), \( {P}_G^{TST}\left({s}_{TSS},t\right) \), P_{G, CHP}(t), and \( {P}_G^{FC}(t) \) are the power generation of wind farm, tidal steam turbine, heat and power, and fuel cell at hour t in MW, respectively; SU(i, t)/SD(i, t) is the startup/shutdown status of ith unit at hour t.
Demand response program constrains
The aim of demand response programs is shifting the load of MG from high consumption hours (where the energy prices are high) to the low consumption hours. It should be noted that planning for load shifting is just able to change a part or percentage of load from an hour to another [21].
The final load after applying DR program:
The maximum amount of movable load:
Maximum limit of load in each of the intervals:
Load in hour t after applying DR program:
Coefficient limit of increasing load:
Since in dayahead markets, in general, clearing is performed for 24 h ahead, it is assumed that the daily energy expenditure of MG is fixed based on Eq. (21).
where L_{0}(s, t)/L(s, t), DR(s, t), DR_{max}, L_{shift}(s, t), ε_{increased}(s, t), ε_{max} are load before/after applying demand response program, percentage of load shifting from hour t, maximum load which can be shifted, shifted load from other hours to hour t for sth scenario, amount of increased load at hour t, maximum amount of load which can be increased at hour t, respectively.
CHP units constraints
As observed in Fig. 5, the electrical power generations of CHP units are not independent of their thermal power and these two powers cannot be controlled in a separate manner [25]. The electricalthermal characteristics of CHP units are shown Fig. 5. The operation constraints of CHP units can be extracted from Fig. 5. The area under curve is formulated through Eq. (22). Eqs. (23 and 24) represent the models for areas above and curves, respectively. Both electrical and thermal powers are equal zero in the case of nonparticipating CHP units in energy generation according to Eqs. (25 and 26), respectively [26].
where α, β, θ, and λ are the four marginal points of the electricalthermal characteristic of combined heat and power.
Heat energy storage device constraints
n general, the heat buffer tank is added to CHP units and boiler and serves as thermal storage. The total amount of generated thermal energy is obtained from Eq. (27). The delivered thermal energy to the buffer tank influenced is by losses (η_{loss}) and generated excess heat (η_{gain}), respectively. The shutdown and startup modes of CHP units and boiler at hour t can be extracted through Eq. (28) [21]. Therefore, the thermal power available for buffer tank at hour t is computed through Eq. (29). In Eq. (30), the heat storage capacity of buffer tank is calculated. The gradient rate of increasing and decreasing thermal energy are calculated through Eqs. (31 and 32), respectively. The heat capacity limits of boiler are expressed as Eq. (33).
where H^{′}(t), H(t), AH(t), and σ are the total produced heat in combined heat and power and boiler at hour t, real heat which the buffer tank could be supplied at hour t, available heat in the buffer tank, and heat loss rate for heat buffer tank, respectively.
Fuel cell constraints
The power capacity limits of boiler:
Minimum up time constraint:
Minimum down time constraint:
Generation rate constraints: [14].
where \( {t}_{\mathrm{on}}\left( FC,t\right)/{t}_{\mathrm{off}}\left( FC,t\right),{U}_{\mathrm{min}}/{D}_{\mathrm{min}},{R}^{\mathrm{up}}\left( FC,t\right)/{R}^{\mathrm{down}}\left( FC,t\right),\mathrm{and}\;{R}_{\mathrm{max}}^{\mathrm{up}}/{R}_{\mathrm{max}}^{\mathrm{down}} \) are the duration for which fuel cell had been continuously up/down till period t, minimum up/down time of fuel cell, ramp up/down capacity of fuel cell at hour t, and maximum ramp up/down rate of fuel cell, respectively.
WFs constraints
Characteristics of power generation for wind farms are nonlinear according to the wind speed which varies under the influence of type, dimension, and design of turbine. Generally speaking, the generation power of wind unit can be obtained by Eq. (39).
Moreover, A and B are determined by Eqs. (40 and 41) [23].
where WS(s_{ W }, W, t), P_{ WN }(W), WS_{ ci }(W), WS_{ n }(W), and WS_{ co }(W) are the amounts of wind speed of Wth wind farm for s_{ W }th wind speed scenario at time t, rated power of Wth wind farm, the minimum wind speed required to start power efficiency in wind farm (cutin speed), rated speed, and the cutout wind speed (the wind speed by which turbine puts the blades parallel to wind to prevent damages), respectively.
PV constraints
Limits on the ESD of the PV unit while getting charged and discharged:
Charge/discharge switching constraint:
Initial/terminal energy of the battery:
Amount of saved energy in the battery:
The power generation of the PV unit:
where Z_{ CH }(PV, t)/Z_{ DCH }(PV, t), BATT_{ COST }, \( {P}_{BATT}^{CH}\left( PV,t\right) \), \( {P}_{BATT}^{\max CH}(PV) \), \( {P}_{BATT}^{DCH}\left( PV,t\right) \), \( {P}_{BATT}^{\max DCH}(PV) \), ENR(PV, t), and δ are the charge/discharge state of energy saving device of photovoltaic unit at hour t, the cost of buying energy for battery charging, the amount of charging power of PVth photovoltaic unit at hour t and its maximum limit, the amount of power delivered while discharging energysaving device of photovoltaic unit at hour t and its maximum limit, the amount of saved energy in PVth energysaving device of photovoltaic unit at hour t, efficiency factor of electrical energysaving device, respectively.
Electrical energy storage device constraints
The constraints of electrical energy storage devices correspond to Eq. (42–47). This difference is in charging and discharging of these devices and other constraints depend on scenarios pertaining to WS, PVPG, power/thermal load demand, while the PV constraints are just affected by PVPG.
Tidal turbine
In order to extract the tidal energy and generate power electricity, the following two systems are applied:

1.
Tidal stream system where kinetic energy of the freeflowing water is consumed and

2.
Tidal barrage system that consumes potential energy of the ocean at ebb and flow. Usually, this method is not adopted due to the environmental conditions [27].
The generation power of tidal stream turbine is obtained through Eq. (48).
where
TSS(s_{ TST }, TST, t), \( {P}_{TST}^N(TST) \), TSS_{ ci }(TST), TSS_{ n }(TST), TSS_{ co }(TST), ρ_{water}, A, and C_{ P } are the amounts of steam speed of TSTth tidal steam turbine for s_{ TST }th steam speed scenario at time t, the rated power of TSTth tidal steam turbine, cutin steam speed, rated steam speed, cutout speed of tidal steam turbine, fluid density (\( \raisebox{1ex}{$\mathrm{kg}$}\!\left/ \!\raisebox{1ex}{${\mathrm{m}}^2$}\right. \)), the crosssectional area of the tidal steam turbine (m^{2}), and the power coefficient, respectively.
Results and discussions
In this part, firstly, the structure of MG and numerical data concerned with energy resources are studied, and then, simulation results of optimal operation for the stochastic problem are analyzed.
Configuration of MG
In this article, three case studies will be assessed:

1.
Planning isolated MG by predicting uncertainties by hybrid method of WTANNICA

2.
Planning and determining the optimal strategy of MG energy resources connected to grid and comparing hybrid prediction methods of WTANN and WTANNICA, in order to examine the influence of predicting uncertainties upon the profit amount of MG

3.
Programming and determining the optimal strategy of MG connected to the grid and applying hybrid prediction method of WTANNICA for predicting uncertainties and exploring the effect of DR problem on the profit of MG
The case studies are run on three WFs, two CHP units, one TST, one PV, one boiler, one lowtemperature fuel cell (PAFC), one electrical energy storage device, one heat buffer tank together with the fixed and responsive electrical, and the related fixed thermal loads. The startup and shutdown costs of units are tabulated in Table 1. The heat buffer tank data and cost coefficients of CHP units are tabulated in Table 2. The heat buffer tank data and cost coefficients of CHP units are shown in Table 3. Both DR_{max} and ε_{max} are assumed 30%. The electricalthermal characteristics of CHP units are displayed in Fig. 5. The parameters of WFs include WS_{co}(i) = 25^{m/s}, WS_{ n }(i) = 11^{m/s}, WS_{ci}(i) = 2.5^{m/s}, and the rated output power are equal to P_{WN1} = 1.5^{MW}, P_{WN2, 3} = 2.4^{MW}. Historical data pertaining to the WS, electrical demand and market price, electrical energy storage devices data, and photovoltaic power generation are proposed in [21, 28, 29] and [16], respectively. The PV nominal power generation is \( {P}_{\mathrm{max}}^{MW}=4.68,{P}_{\mathrm{min}}^{MW}=0 \) and δ = 0.75. Table 4 lists the parameters used for the tidal steam turbine [30].
Case studies
Case study 1: planning of MG in the gridisolated mode
In this case, P_{buy} = P_{sale} = 0 and the objective function is just concluded in cost terms of energy resources. The uncertainties are predicted by hybrid method of WTANNICA. The simulation results obtained from the first case study are listed in Table 5. According to Table 5, the generation cost is equal to the amount of objective function and $2032.76. In this state, the WF, TST, and PV are not working with their maximum capacity, while the cost of generating them is zero and this occurs due to the thermal load of MG. The CHP units produce heat to provide thermal load. The electricalthermal characteristics of CHP units are the generation factor for both heat and electrical power (Fig. 6).
2. Case study 2
The effect of exchanging electrical energy with grid in connected mode and also the effect of more accurate prediction of random parameters on MG planning are studied by comparing the hybrid methods of WTANNICA and WTANN. The MG planning problem in the presence of all economic and technical constraints and the DR problems will be solved. The results are tabulated in Table 5, where, by WTANNICA prediction method, the generation cost increases by 13.77% in comparison with the first case. The profit of MG resulted from taking part in the market is $792.64 and $909.93 for WTANN and WTANNICA, respectively. This profit is due to the sale of power to the main grid.
The generated power of resources in the planning horizon is shown in Fig. 7. The expected amount of buying and selling powers, WFs, TST, and PV power generation are illustrated in Fig. 7. According to Fig. 7, WFs, TST, and PV power generations are readjusted at their maximum capacity.
Therefore, the excess WFs, TST, and PV power generations can be saved in devices of electrical energy storage and shifted to the hours with more demand (higher price) or can be on offer to the market. In Fig. 8c, d, the generated thermal power of CHP units and boiler are shown, respectively. According to Fig. 8c, d), considering costly expenses of generation, the boiler is less involved in supplying thermal demand, as compared to CHP units.
Due to the stochastic nature of WFs, TST and PV power generations, market price, and power/thermal load demand, more accurate prediction of these random parameters led to generating scenarios proximate to reality and with greater possibility. Consequently, a more detailed planning can be achievable. In Table 5, the obtained results of MG planning are compared by prediction hybrid method of WTANN and WTANNICA. The results indicate 14.79% increased profits of MG in WTANNICA method in comparison with WTANN method.
Case study 3: to explore the effect of DR program on determination of generation strategy of MG
In the third case, the MG planning is studied without DR program in order to investigate its effects on the expected profit of MG by hybrid prediction method of WTANNICA. Table 5 shows the results of case study 3 versus 2. The expected profit decreased while the cost of generation dropped slightly. According to Table 5, the expected profit of MG in the third case study is $712.05 which approximately decreased 27.7% as compared to the second case study (applied DR program). This reduction in profit of MG indicates the efficacy of DR program on the optimal planning of these units.
Regarding Table 5, the objective function values of both cases 2 and 3 are negative. That is because of high energy demand inside the MG and lack of possibility to offer excess power to the main grid.
The difference between energy generation of resources with and without DR is illustrated in Fig. 8. The received and delivered power to grid with and without DR is depicted in Fig. 8a. Regarding this figure, the movable loads can be shifted from peak time to other hours when the energy price is lower and makes profit.
Conclusions
In this paper, an algorithm was suggested to ascertain optimal strategy of a MG including WFs, PV, TST, fuel cell, CHP units, boiler, and ESDs, by considering economic and technical constraints and DR program. This research aimed to present an optimization program to maximize the profit of MG in grid–connected mode, and to minimize the cost of energy resources in grid isolated mode. The uncertainties are WS, TSS, PVPG market price and power/ thermal load demand which are predicted by hybrid prediction methods of WTANN and WT ANNICA, and related scenarios are generated by probability density functions appropriate to each uncertainty and scenario reduction method. The simulation results represent that applying more accurate prediction method, some scenarios proximate to reality and with greater possibility are generated. Hence, a more detailed and precise planning is achieved and the expected profit of MG might be increased. If the method of WTANNICA is used rather than WTANN, the expected profit of MG will be increased by 14.79%. Furthermore, the expected profit can be raised by applying DR program. According to the studied cases, although the DR program increases the generation cost by 7%, the expected profit rises more than 27.7% and it goes to $909.93, while without considering DR program, this profit would be $712.05.
In addition, the outcome of case studies illustrate that by implementing this proposed framework, the MG can obtain a meaningful profit in the gridconnected mode in comparison with the isolated mode, as well as supplying total electrical and heat demand.
References
Lund H (2010) The implementation of renewable energy systems. Lessons learned from the Danish case. Energy 35:4003e9
Askarzadeh A (2014) Voltage prediction of a photovoltaic module using artificial neural networks. International transactions on electrical energy systems. 24(12).
Xiangyu KONG, Linquan BAI, Qinran HU, Fangxing LI (2016) Dayahead optimal scheduling method for gridconnected microgrid based on energy storage control strategy. J Mod Power Syst Clean Energy 4(4):648–658. https://doi.org/10.1007/s4056501602450
Abedinia O, Amjdy N (2016) Shortterm load forecast of electrical power system by radial basis function neural network and new stochastic search algorithm. International transactions on electrical energy systems. 26(7):3243
Wei HU, Yong MIN, Yifan ZHOU, Qiuyu LU (2017) Wind power forecasting errors modelling approach considering temporal and spatial dependence. J. Mod. Power Syst. Clean Energy. https://doi.org/10.1007/s405650160263y
Man XU, Zongxiang LU, Ying QIAO, Yong MIN (2017) Modelling of wind power forecasting errors based on kernel recursive leastsquares method. J. Mod. Power Syst. Clean Energy. https://doi.org/10.1007/s4056501602597
Khorani V, Forouzideh N, Nasrabadi AM (2011) Artificial Neural Network Weights Optimization Using ICA, GA, ICAGA and RICAGA: Comparing Performances, IEEE workshop on Hybrid Intelligent Models And Applications (HIMA)
Amin Shokri Gazafroudi, Nooshin Bigdeli, Mostafa Yousefi Ramandi, Arim Afshar, A hybrid model for wind power prediction composed of ANN and imperialist competitive algorithm (ICA) , the 22nd Iranian Conference on Electrical Engineering (ICEE 2014), 2014
Juan M, Morales AJ, Conejo JPR (2010) Short term trading for a wind power producer. IEEE Trans Power Syst 25(1):345355
Bayón L, Grau JM, Ruiz MM, Suárez PM (2016) A comparative economic study of two configurations of hydrowind power plants. Energy 112:8e16
Tiohy A, Meibom P, Denny E, O’Malley M (May 2009) Unit commitment for systems with significant wind penetration. IEEE Trans. on Power Syst 24(2):592–601
Morales JM, Conejo AJ, PérezRuiz J (May 2009) Economic valuation of reserves in power systems with high penetration of wind power. IEEE Trans on Power Syst 24(2):900–910
HosseiniFirouz M (2013) Optimal offering strategy considering the risk management for wind power producers in electricity market. Int J Electr Power Energy Syst 49:359–368
Lakshmi K, Vasantharathna S (2014) Gencos wind––thermal scheduling problem using artificial immune system algorithm. Int J Electr Power Energy Syst 54:112–122
Ding H, Hu Z, Song Y (2012) Stochastic optimization of the daily operation of wind farm and pumpedhydrostorage plant. Renew Energy 48:571e578
Mohammadi S, Soleymani S, Mozafari B (2014) Scenariobased stochastic operation management of MicroGrid including wind, photovoltaic, microturbine, fuel cell and energy storage devices. Int J Electr Power Energy Syst 54:525–535
Sarkhani S, Soleymani S, Mozafari B (2014) Strategic bidding of an electricity distribution company with distributed generation and interruptible load in a dayahead electricity market. Arab J Sci Eng 39:3925–3940
Baziar A, KavousiFard A (2013) Considering uncertainty in the optimal energy management of renewable microgrids including storage devices. Renew Energ 59:158–166
Mohammadi S, Mozafari B, Solimani S, Niknam T (2013) An Adaptive Modified Firefly Optimisation Algorithm based on Hong’s Point Estimate Method to optimal operation management in a microgrid with consideration of uncertainties. Energy 51:339–348
Niknam T, Golestaneh F, Shafiei M (2013) Probabilistic energy management of a renewable microgrid with hydrogen storage using selfadaptive charge search algorithm. Energy 49:252–267
Alipour M, MohammadiIvatloo B, Zare K (2015) Stochastic scheduling of renewable and CHPbased microgrids. IEEE Trans on industrial informatics 11(5):554563
Shayeghi H, Ghasemi A (2013) Dayahead electricity prices forecasting by a modified CGSA technique and hybrid WT in LSSVM based scheme. Energy Convers Manag 74:482e491
Askarzadeh A (2017) Electrical power generation by an optimized autonomous PV/wind/tidal/battery system. IET Renewable Power Generation 11:152–164
Hakimi, SM, MoghaddasTafreshi SM (2014) “Optimal Planning of a Smart Microgrid Including Demand Response and Intermittent Renewable Energy Resources,” IEEE Trans. on smart grid 5(6).
Jin M, Feng W, Marnay C, Spanos C (2017) “Microgrid to enable optimal distributed energy retail and enduser demand response,” Applied Energy. 233:123–132
AzizipanahAbarghooee R, Niknam T, Malekpour M, Bavafa F, Kaji M (2015) Optimal power flow based TU/CHP/PV/WPP coordination in view of wind speed, solar irradiance and load correlations. Energy Convers Manag 96:131–145
Jin M, Feng W, Liu P, Marnay C, Spanos C (2017) “MODDR: Microgrid optimal dispatch with demand response,” Applied Energy. 187:758–776.
Renewable Energy Organization of Iran. (2015) [Online]. Available: www.suna.org
The Ontario Electricity System Operator (IESO). (2016) [Online]. Available: http://www.ieso.ca/
Bashir, M., Sadeh J, Size optimization of new hybrid standalone renewable energy system considering a reliability index, Environment and Electrical Engineering (EEEIC), pp 989994, 2012
Acknowledgements
The study was possible through financial assistance from the Department of Electrical Engineering, Science and Research Branch, Islamic Azad University, Tehran, Iran.
Author information
Affiliations
Contributions
Dr. J analyzed data and simulated numerical example. Dr. S is the lead author and made a substantial contribution to the conception and design of the manuscript. DR. M and Dr. A revised the manuscript for important intellectual content. He also formatted the paper to conform to the specifications of the journal. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Jafari, E., Soleymani, S., Mozafari, B. et al. Scenariobased stochastic optimal operation of wind/PV/FC/CHP/boiler/tidal/energy storage system considering DR programs and uncertainties. Energ Sustain Soc 8, 2 (2018). https://doi.org/10.1186/s137050170142z
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s137050170142z
Keywords
 Microgrid
 Wind farm
 Photovoltaic
 Combined heat and power
 Tidal steam turbine
 Expected profit