1 Introduction

Different countries have increased contribution of renewable energy resources by planning and applying protectionist policies of renewable energies [1]. In some countries, wind sources participate in the electricity markets disregarding imbalance penalties [2]. Imbalance penalties are defined as power planned by supplier minus generated power. It is used for security and appropriate utilization of system and avoids to be trifled with market. In some power markets, wind resources will be allowed to offer energy in the market, but some of supportive methods are used to increase their income. These methods usually increase power imbalance in the time of use and thereupon, will follow increasing the cost for the system [3].

In [4], a changeable tariff method has been used to specify income of wind power unit in the power market. In the current method, the consumption cost rises in proportion to its increase and therefore, more consumption is not associated with more subsidy and high consumption customers are in the focus of rising cost instead of whole customers. In [5, 6], the method of profit maximization is used to participate wind power plants. Modelling of uncertainties is necessary for these methods. Also, since the interval between time of bidding and time of use may be high, wind power plant’s income will be reduced in these methods. A supportive method for contribution of wind power plant to the power markets has been discussed in [7]. However, if the content of wind resources increases, use of supportive methods will be inefficient.

In this paper, two-stage stochastic bidding considering uncertainty in the market price is carried out. Uncertainty in the market price is modelled as probability density function and finally, each renewable generating unit presents a set of its strategies as probability density function. Among the presented models for estimation of wind speed, Weibull distribution has the best fitting for statistical data, so in most articles it is used as a suitable distribution to estimate the wind speed [8, 9]. Appropriate values for parameters estimation of this probability function accepted for wind speed have been given in [10, 11].

In the current paper, the aim is to model players’ behavior in the imperfect market and obtain the optimum point to tariff the DRPs, while the scope of research is from the perspective of independent system operator (ISO). A model is proposed for day-ahead and real-time energy markets with implementation of DRPs in presence of the wind turbines. In fact, system uncertainties including outage of wind farms are merged in a two-stage stochastic model.

The remainder of this paper is structured as follows. Relationship to smart systems is provided in Sect. 2. In Sect. 3, modelling the wind power units in the market is introduced and their mathematical model is presented. Numeric results of the model are presented in Sect. 4, and the last section concludes the paper.

2 Relationship to Smart Systems

With the expansion of smart meters, like Advanced Metering Infrastructure (AMI) and Internet of Things (IoT), in demand side of power systems, implementation of different methods of DR is going to be much more applicable [11]. A suitable DR method can not only decrease total operation cost but also provide security and safety of the network operation [12].

In [13], DR is discussed considering wind units connected to a smart grid. They have tried to maximize the social welfare while the intermittent nature of wind may impose some real challenges. It is performed a comparison with the predictable scheduling and with a non-smart grid. The proposed approach balances the wind power fluctuations in the grid due to DR management.

In continuous we proposed DR programs as well to mitigate the challenges of grid including wind units.

3 The Proposed Model

In the current paper, the price-based DRP, Time of Use (TOU) [14, 15], is considered. Equation (1) denotes the optimal customer’s demand in 24 h while taking part in price-based DRPs [16].

$$ d(t) = d_{0} (t)\left\{ {1 + \sum\limits_{{t^{\prime} = 1}}^{24} {E(t,t^{\prime}).\frac{{[\rho (t^{\prime}) - \rho_{0} (t^{\prime})]}}{{\rho_{0} (t^{\prime})}}} } \right\} $$
(1)

where \( d(t) \) and \( d_{0} (t) \) are the final and initial electricity demand, respectively. \( \rho_{0} (t) \) and \( \rho_{0} (t) \) are the final and initial electricity tariffs, respectively. \( E(t,t^{\prime}) \) represents the elasticity of demand. Considering to a guaranteed purchase of electricity from the renewable resources including wind and solar, in many studies and planning, renewable loads are considered as negative loads when setting the market prices based on offer for sale of all power plants. In addition to, in some markets, these renewable resources can also bid their price in the power market and sell their energy as thermal and other power plants.

But, according to the policy makings of the governments to encourage and attract investor toward generating electricity from the renewable energies and developing clear energies in the countries, they usually purchase the electricity of clear resources from the vendors at prices several times the market clearing price to make an incentive to attract investors to this industry and guarantee to purchase the electricity at high and fixed price [17].

The unit commitment program and its aggregate constraints can be modeled as below:

$$ \begin{aligned} & Minimize \\ & \sum\limits_{t = 1}^{NT} {\sum\limits_{i = 1}^{NG} {\left( {SUC_{i,t} + MPC_{i} U_{i,t} + \sum\limits_{m = 1}^{NM} {(P_{i,t,m}^{e} C_{i,t,m}^{G\_Eng} )} } \right)} } + \sum\limits_{t = 1}^{NT} {\sum\limits_{i = 1}^{NG} {C_{i,t}^{G\_UC} R_{i,t}^{G\_UC} + C_{i,t}^{G\_DC} R_{i,t}^{G\_DC} } } \\ & + \sum\limits_{t = 1}^{NT} {\sum\limits_{w = 1}^{NW} {\rho_{w} } } \left( {\sum\limits_{i = 1}^{NG} {C_{i,t}^{G\_UE} r_{i,t,w}^{G\_up} - C_{i,t}^{G\_DE} r_{i,t,w}^{G\_dn} } } \right) \\ \end{aligned} $$
(2)

where \( P_{i,t,m}^{e} \) denotes the production of segment m in a linear form of cost function. \( C_{i,t,m}^{G\_Eng} \) is the slope of each segment. \( C_{i,t}^{G\_DC} \) and \( C_{i,t}^{G\_UC} \) are the offered price of down- and up-reserves of power producers. \( C_{i,t}^{G\_UE} \) and \( C_{i,t}^{G\_DE} \) represent the offered price of up- and down- deployed reserves of each unit. \( R_{i,t}^{G\_UC} \) and \( R_{i,t}^{G\_DC} \) the scheduled up- and down-reserve capacities of each unit, respectively. \( r_{i,t,w}^{G\_up} \) and \( r_{i,t,w}^{G\_dn} \) represent the real-time up- and down- deployed reserves of each unit. \( SUC_{i,t} \) denotes the start-up cost. \( MPC_{i} U_{i,t} \) is the minimum production cost. The costs of start-up, minimum generation, and the electricity of producer plants are included in the objective function. The second part of the objective function is associated with the offer price of up/down reserve from production plants. The next term consists of the scenarios consideration. The prices with regard to the expected delivered up/down reserve through production plants are formulated in the next term. The scenarios of wind power are generated based on a roulette wheel mechanism presented in [18]. The objective function is subjected to following constraints.

3.1 Day-Ahead Equations

Equation (3) guarantees the demand-supply balance. As regard with modelling the linearized transmission limits, DC load flow is used as formulated through (4). Furthermore, the branch limitations are modelled in (5). Wind units considered in the day-ahead session are constrained due to the predicted wind production in (6). Electricity and capacity equations of thermal plants are proposed in (7)–(11). Block electricity output of thermal plants and the limits are described through (7). Equations (8)–(9) restrain the generation of thermal plants. The reserve up/down limits are described in (10)–(11) as well. The inequality (12) denotes the start-up limit of thermal plants. Constraints (13) and (14) formulate the minimum up/down times of thermal plants, respectively [19].

$$ \sum\limits_{{i \in G_{b} }} {P_{it} } + \sum\limits_{{wf \in WF_{b} }} {P_{wf,t}^{WP,S} } - \sum\limits_{{j \in J_{b} }} {L_{j,t}^{C} } = \sum\limits_{{l \in L_{b} }} {F_{l,t}^{0} } \quad \forall b,\begin{array}{*{20}c} t \\ \end{array} $$
(3)
$$ F_{l,t}^{0} = {{\left( {\delta_{b,t}^{0} - \delta_{{b^{\prime},t}}^{0} } \right)} \mathord{\left/ {\vphantom {{\left( {\delta_{b,t}^{0} - \delta_{{b^{\prime},t}}^{0} } \right)} {X_{l} }}} \right. \kern-0pt} {X_{l} }}\quad \forall l,\begin{array}{*{20}c} t \\ \end{array} $$
(4)
$$ - F_{l}^{\hbox{max} } \le F_{l,t}^{0} \le F_{l}^{\hbox{max} } \quad \forall l,t $$
(5)
$$ 0 \le P_{wf,t}^{WP,S} \le P_{wf,t}^{WP,\hbox{max} } \quad \forall wf,t $$
(6)
$$ P_{i,t} = \sum\limits_{m = 1}^{NM} {P_{i,t,m}^{e} } \;,\;0 \le P_{i,t,m}^{e} \le P_{i,m}^{\hbox{max} } \quad \forall i,t $$
(7)
$$ P_{i,t} + R_{i,t}^{G\_UC} \le P_{i}^{\hbox{max} } \quad \forall i,t $$
(8)
$$ P_{i,t} - R_{i,t}^{G\_DC} \ge 0\quad \forall i,t $$
(9)
$$ 0 \le R_{i,t}^{G\_UC} \le RU_{i} \tau \quad \forall i,t $$
(10)
$$ 0 \le R_{i,t}^{G\_DC} \le RD_{i} \tau \quad \forall i,t $$
(11)
$$ SUC_{i,t} \ge SC_{i} (U_{i,t} - U_{i,t - 1} )\quad \forall i,t $$
(12)
$$ \sum\limits_{{t^{\prime} = t + 2}}^{{t + MUT_{i} }} {\left( {1 - U_{{i,t^{\prime}}} } \right)} + MUT_{i} \begin{array}{*{20}c} {\left( {U_{i,t} - U_{i,t - 1} } \right)} \\ \end{array} \le MUT_{i} \quad \forall i,t $$
(13)
$$ \sum\limits_{{t^{\prime} = t + 2}}^{{t + MDT_{i} }} {U_{{i,t^{\prime}}} } + MDT_{i} \begin{array}{*{20}c} {\left( {U_{i,t - 1} - U_{i,t} } \right)} \\ \end{array} \le MDT_{i} \quad \forall i,t $$
(14)

3.2 Real-Time Equations

This stage is dealing with fulfilling the limits in the realization of all scenarios. The demand-supply balance is taken into account for all the scenarios in (15) by considering the updates of wind generation. Constraints (16)–(17) are similar to (4)–(5) that consider for all the scenarios. The delivered up/down reserve in all scenarios needs to be limited to the planned reserve capacity formerly submitted to the markets (18)–(19). Constraint (20) characterizes the net generation of thermal plants in real-time. Equation (21) represents the technical constraints of thermal generators. Ramp up/down limit is given in (22)–(23).

$$ \sum\limits_{{i \in G_{b} }} {\left( {r_{i,w,t}^{G\_up} - r_{i,w,t}^{G\_dn} } \right)} + \sum\limits_{{wf \in WF_{b} }} {\left( {P_{wf,w,t}^{W} - P_{wf,t}^{WP,S} } \right)} = \sum\limits_{{l \in L_{b} }} {F_{l,w,t} - F_{l,t}^{0} } \quad \forall b,w,t $$
(15)
$$ F_{l,w,t} = {{\left( {\delta_{b,w,t} - \delta_{{b^{\prime},w,t}} } \right)} \mathord{\left/ {\vphantom {{\left( {\delta_{b,w,t} - \delta_{{b^{\prime},w,t}} } \right)} {X_{l} }}} \right. \kern-0pt} {X_{l} }}\quad \forall l,w,t $$
(16)
$$ - F_{l}^{\hbox{max} } \le F_{l,w,t} \le F_{l}^{\hbox{max} } \quad \forall l,w,t $$
(17)
$$ 0 \le r_{i,w,t}^{G\_up} \le R_{i,t}^{G\_UC} \quad \forall i,w,t $$
(18)
$$ 0 \le r_{i,w,t}^{G\_dn} \le R_{i,t}^{G\_DC} \quad \forall i,w,t $$
(19)
$$ P_{i,w,t} = P_{i,t} + r_{i,w,t}^{G\_up} - r_{i,w,t}^{G\_dn} \quad \forall i,w,t $$
(20)
$$ P_{i}^{\hbox{min} } U_{i,t} \le P_{i,w,t} \le P_{i}^{\hbox{max} } U_{i,t} \quad \forall i,w,t $$
(21)
$$ P_{i,w,t} - P_{i,w,t - 1} \le RU_{i} \begin{array}{*{20}c} {U_{it} } \\ \end{array} + SUR_{i} \begin{array}{*{20}c} {\left( {1 - U_{i,t - 1} } \right)} \\ \end{array} \quad \forall i,w,t $$
(22)
$$ P_{i,w,t - 1} - P_{i,w,t} \le RD_{i} \begin{array}{*{20}c} {U_{i,t - 1} } \\ \end{array} + SDR_{i} \begin{array}{*{20}c} {\left( {1 - U_{i,t} } \right)} \\ \end{array} \quad \forall i,w,t $$
(23)

4 Numerical Results of the Model

In order to indicate the impact of DRPs on the oligopolistic behavior of electricity market in presence of wind farm, the IEEE six-bus test system is employed [20]. The mixed-integer linear programming has been modeled in GAMS 24.0 and solved by CPLEX 12.0. In addition different types of TOU programs are studied as presented in Table 1. It is assumed that 20% of consumers are responsive demand except the TOU-3 tariff that its price tariff is considered as the same as TOU-1 but at this program 40% of consumers are responsive demand.

Table 1. Tariffs/incentives of considered DRPs (€/MWH)

The impact of different types of TOU programs on Genco 1 is compared with the generation in base case without the presence of wind farm and in presence of the wind units, the power output of Genco 1 in these cases are presented in Figs. 1 and 2, respectively. According to Fig. 1, Genco 1 is affected by the load shifting arisen from TOU tariffs. On this basis, the generation in valley period is increased based on the low tariff, while the generation reduces in the peak period. Figure 2 depicts the same great affection but the very considerable and beneficial changes in base case in presence of wind units. As it is shown there is a comprehensive reform in the curve and chart. It should be noted that the prices in base case program is obtained from the simulation of the electricity market without implementation of DRPs. In the base case, the average of market prices is considered as electricity tariff in all hours. In TOU programs, the mentioned tariff is considered as the tariff in off-peak hours. The self- and cross-elasticities are extracted from [21].

Fig. 1.
figure 1

Impact of different types of TOU program on the generation of Genco 1 without the presence of wind farm.

Fig. 2.
figure 2

Impact of different types of TOU program on the generation of Genco 1 in the presence of wind farm.

Developing the investigation of the impact of different types of TOU programs on the behaviour of market players Figs. 3 and 4 are presented. These figures depict the power output of Genco 2 without the presence of wind farm and in presence of the wind units respectively. These results show the different tariffs of TOU demand response in presence of wind farm can more considerably effect on shifting peak loads to Valley. Figure 3 shows the significant impact of TOU programs on the electricity market prices in the peak period, because of the reduction of offered prices of the system’s Gencos. The impact of different types of TOU programs on objective function is presented in Table 2. As it is expected, it shows that total price after implementation of DRPs with presence of wind farm is less than that in the system with no renewable units.

Fig. 3.
figure 3

Impact of different types of TOU program on the generation of Genco 2 without the presence of wind farm.

Fig. 4.
figure 4

Impact of different types of TOU program on the generation of Genco 2 in the presence of wind farm.

Table 2. Total cost for different DRPs in compere of presence or absence of wind farm

5 Conclusions

In this paper, modelling the power market was conducted and bidding of power plants and making the supply curve and then its intersection with the demand curve to find clearing price of market were modelled. Next, the impacts of uncertainty of wind farms outages on electricity price were investigated by modelling them as negative loads. Lower electricity prices reduced profits from the sale of electricity for thermal power plants that had higher utilization cost and made them reduce their motivation to take part in the electricity markets.

Regarding the unstable nature of wind energy and the problem of market price reduction in the case of wind energy, the impact of a demand response program on such a system was studied. In other words, finally by adding the demand response planning to the models, the electricity market and approach to the real condition were studied. The presence of both the wind energy and demand response program led to lower prices and provided price adjustment and market stability.