1 Introduction

Participation of wind-based power plant in electricity markets offers diverse privileges for utilities and end-use costumers. However, trading of wind power in electricity markets is a challenging issue. Most wind power producers prefer trading electricity with grant-in-aid fixed feed-in tariff or long-term agreements to guarantee their profits against price fluctuations in short-term electricity markets [1, 2]. Such risk-free long-term contracts usually have lower selling prices compared to those in short-term electricity markets. On the other hand, participation in day-ahead (DA) electricity markets imposes a significant degree of risk for wind power producers. There are three main risk sources that the producers are faced with, namely, uncertainties in the forecasts of wind power, DA price, and balancing market price for the next day [3]. Contrary to the wind power generation, thermal generation is highly controllable and flexible. However, due to uncertainty and variability in market prices, thermal units are also subjected to risk of low profit or loss in DA markets [4]. Coordination facilitates thermal units to contribute to the revenue of a generation company by balancing wind generation deviations at periods of low thermal profitability. Wind generation, on the other hand, utilizes thermal units to avoid high imbalance penalties in balancing market with the coordination. Consequently, wind-thermal coordination has been found beneficial under wind and price uncertainties [5].

DA markets mandate participants to declare their generation schedules for the next day several hours before the start of the operational day. Time difference between the submission of bids and real-time operation ranges from 14 to 38 hours. For example, in Spanish DA market, bids are submitted a day before at 10:00 a.m. [5]. It is 11:30 a.m. for Turkish DA market case [6]. However, hourly wind power generation can be forecasted with a mean absolute error in the range of 15%-20% for a single plant from one day before; thus, deviations from DA schedule inevitably occur in actual generation [7]. Consequently, wind power producers are exposed to high imbalance penalties in balancing markets because of the uncertain wind forecasts. Likewise wind uncertainty, imbalance prices are also highly volatile and unpredictable. One of the reasons for this is that the amount of energy traded and the number of participants in balancing markets are relatively low compared to DA markets. Secondly, dual pricing mechanism, which Turkish balancing market has been practicing, makes imbalance prices even more difficult to estimate due to almost random nature of the direction of overall imbalances of the producers and the system.

There are various studies in literature for hedging risks associated with wind uncertainty in DA markets. Authors in [1, 3, 8, 9] suggest bidding strategies for multiple short-term markets for wind units alone. In addition to this, coordinating wind units with different generation types are widely suggested in recent studies. In [8, 10, 11], pumped-storage and hydro-power units are proposed to complement the wind generation because of their capability to compensate imbalance power. There are other studies in [5, 12] that combine wind and thermal units to reduce imbalance penalties caused by wind deviations; however, they are not directly applicable to Turkish DA electricity market due to the different imbalance price mechanism. In addition to this, most of the previous research studied the wind-thermal coordination from an independent system operator (ISO) perspective [13, 14].

This paper contributes to the state-of-art with coordinating wind and thermal units by adapting conditional value at risk (CVaR) concept — a mathematical approach to optimize risk of profit — to control profit variation in DA markets from the view point of generation company. For this purpose, a stochastic programming procedure considering Turkish DA market mechanism is developed. Moreover, realistic scenario studies are carried out to test the profitability of coordination and the performance of the solution algorithm under different risk measures. Results show that it is more profitable to coordinate wind and thermal units for DA and balancing markets than participation of wind and thermal units independently.

The rest of the paper is organized as follows. Electricity market mechanism in Turkey is summarized in Section 2. Section 3 presents detailed description of the problem formulation. In Section 4, the algorithm developed to solve the coordination problem is introduced. In Section 5, numerical studies are carried out and comparisons are made to investigate the benefit of coordination and the effect of risk attitude of generation company on CVaR and expected profit. Finally, concluding remarks are given in Section 6.

2 Turkish electricity market

In Turkish electricity market, participants can trade electricity via bilateral contracts, DA market, ancillary services market (for primary and secondary frequency control) and balancing market. The aim of the DA market is complementing bilateral agreements to ensure daily electricity supply and demand balance of the system. Balancing market manages tertiary reserves of attendants which preserve system supply/demand balance and security. Both DA and balancing markets are coordinated by the market operator and national load dispatch centre. Participation in the DA and the balancing markets is not mandatory for both supply and demand sides.

In Turkish DA power exchange market, market clearing price (MCP) is initially determined by ignoring network constraints. Market participants submit their supply and demand volumes remaining from bilateral transactions to the DA market. Participants bid power quantities (MW) and their corresponding prices ($/MWh) that they are willing to sell or buy. At the end of the auction period, the market operator puts these quantity-price offers in order, starting from the least-cost for generator bids and highest price for buying bids. The highest demand bids are matched with the lowest supply bids in terms of price. MCP, which is equal to DA price in this case, corresponds to the point that ordered demand and supply offers are met (i.e., marginal point).

Supply and demand sides can submit both up-regulation and down-regulation bids into the market. There are certain rules in up-regulation and down-regulation bids. Price for up-regulation bid of an hour must be equal or more than the DA price of that hour. On the contrary, down-regulation price of an hour must be equal or lower than DA price of that hour. Up-regulation and down-regulation bids of qualified participants are arranged in increasing and decreasing order based on their price by market operator of Turkey, respectively. The hourly price determined by the system direction and amount of deficit is called system marginal price (SMP). Network constraints including secondary reserves and transmission over-loadings at steady state and significant contingencies are considered in determining the upward/downward regulation orders in Turkish electricity market, as illustrated in Fig. 1.

Fig. 1
figure 1

Hourly-based DA Turkish electricity market

3 Problem formulation and methodology

3.1 Two-stage stochastic programming

To make optimal decisions in the presence of uncertainties and tackle the uncertainties in electricity markets, two-stage stochastic programming is widely used [1, 5, 11, 15,16,17,18]. First stage decisions, which are also known as “here-and-now decisions”, are made before the wind generation is realized. Scenarios that represent the probability distribution of the wind power forecast are generated in the first stage for realization of plausible wind power scenarios in the second stage. The first stage decisions involve the DA power bid and the thermal unit commitment (UC). DA price, imbalance-up and imbalance-down prices, and the risk preference of generation company are the inputs to the first stage, and its objective is to maximize the expected profit.

Second stage decisions, which are also known as “wait-and-see decisions”, are given according to deviations in wind speed. Second stage decisions involve economic dispatch (ED) of thermal units. Results of the first stage, the DA power bid and thermal commitment decisions are deterministic inputs to the second stage. Two-stage stochastic programming model for wind-thermal coordination problem is summarized in Fig. 2.

Fig. 2
figure 2

Two-stage stochastic programming model for wind-thermal coordination

3.2 CVaR

CVaR is frequently used to handle optimization problem in case of uncertainties. This method is a useful tool in electricity markets due to its linearity and other superior mathematical properties [1, 3, 5]. CVaR is correlated to the value at risk (VaR) which provides information about low profits or large losses that generation company may incur. VaR measures the potential minimum profit for a given confidence level α. On the other hand, CVaR, which is also known as the mean excess loss, mean shortfall, or tail VaR, is measured as the weighted average of expected profits lower than VaR. In comparison with VaR, CVaR calculates the risk beyond VaR by looking at the tail of distribution. Mathematically speaking, at a confidence level α, CVaR is the expected value of conditional profits that does not exceed VaR with a probability of 1 − α. Value of α is proportional to the risk aversion attitude of generation company. Maximization of CVaR of profit in optimization problems is formulated as:

$${\text{max }}CVaR_{\alpha } = \zeta - \frac{1}{1 - \alpha }\mathop \sum \limits_{s = 1}^{{N_{\text{S}} }} \pi_{s} \eta_{s}$$
(1)

s.t.

$$- P_{s} + \zeta - \eta_{s} \le 0 \qquad\forall s$$
(2)
$$\eta_{s} \ge 0\qquad \forall s$$
(3)

where \(CVaR_{\alpha }\) is the CVaR at the α confidence interval; s and \(N_{\text{S}}\) are the scenario index and the total number of scenarios, respectively; \(\zeta\) is an auxiliary variable whose optimal value is equal to VaR; \(\eta_{s}\) is the difference between VaR and \(P_{s}\) which is equal to the profit of scenario \(s\) with the corresponding probability of \(\pi_{s}\).

VaR and CVaR parameters are illustrated in Fig. 3, where PDF and CDF stand for probability density function and cumulative density function, respectively. Assumptions made in the formulation are given explicitly as follows.

Fig. 3
figure 3

VaR and CVaR illustration on profit distribution

3.3 Assumptions

  1. 1)

    Generation company is assumed to have no bilateral agreement and to trade energy only in the DA market. It does not participate in the balancing market by bidding up-regulation and down-regulation power; however, is obliged to exchange power with balancing market in case of a deviation from its DA power bid.

  2. 2)

    This paper aims to evaluate benefits of coordination and observe how thermal units react to wind power generation deviations. In order to see this explicitly, generation company is assumed to have forecasted DA and imbalance prices (i.e., MCP and SMP) and use them as direct inputs into its profit maximization problem. Forecasting MCP and SMP in electricity markets similar to the one in Turkey is a difficult task and is out of the scope of this paper. However, it should be mentioned that this study utilizes the output of a previous work which estimates MCP and SMP probabilistically based on artificial neural networks [19].

  3. 3)

    Given the estimated market prices for each hour, generation company is assumed to be a price taker which ensures acceptance of its bids to the DA market for each hour by bidding low prices. Thus, generation company is only concerned about the amount of power in DA market bidding, not the price.

  4. 4)

    Wind power scenarios have finite values with certain probabilities of occurrence, and sum of probabilities of these different scenarios is equal to 1.

  5. 5)

    Hourly DA wind power forecast errors are assumed to have a normal distribution. Expected value and standard deviation of wind power forecast are available.

  6. 6)

    Generation company is assumed to degrade the system balance for all hours in case of a deviation, i.e., when generation company is short, the system is long or vice-versa. Hence, generation company is paid with the imbalance-up price for its excess generation sold to the balancing market and buys deficit power with imbalance-down price from balancing market.

  7. 7)

    System constraints such as spinning and non-spinning reserves for primary and secondary frequency control are not considered in the formulation.

  8. 8)

    Operating cost of wind power generation is assumed to be zero. Outputs of wind power units are aggregated and represented as if there is single wind power plant.

3.4 Objective function

The main objective of generation company’s wind-thermal generation coordination problem is to maximize its total expected profit PE,tot in Turkish DA market, as shown in (4).

$$\mathop { \hbox{max} }\limits_{{(P_{tgw}^{bid} ,P_{tsg}^{{}} ,u_{tg} ,\Delta_{ts} )}} P_{\text{E,tot}} = \sum\limits_{t = 1}^{{N_{T} }} {\sum\limits_{s = 1}^{{N_{\text{S}} }} {\pi_{s} } } \left( {R_{tgw} - \sum\limits_{g = 1}^{{N_{G} }} {C_{tsg} + P_{{{\text{I,}}ts}} } } \right)$$
(4)

where t denotes index for bidding period; w and g denote indices for wind plant and thermal unit, respectively; \(N_{T}\) and \(N_{G}\) denote duration of period (hour) and number of units, respectively; \(P_{tgw}^{bid}\) denotes optimum DA bid at t for coordinated generation; \(P_{tsg}\) denotes power produced by thermal unit g at time t for scenario s; \(u_{tg}\) denotes UC status of thermal unit g at time t, 1 means on, 0 means off; \(\Delta_{ts}\) denotes net imbalance power at time t for scenario s; \(R_{tgw}\) denotes revenue from coordinated wind-thermal generation DA bid; \(C_{tsg}\) denotes thermal generation cost of thermal unit g at time t for scenario s; \(P_{{{\text{I}},ts}}\) denotes imbalance penalty at time t for scenario s.

Revenue of generation company results from the total energy sold to the DA market and the excess energy sold to the balancing market. The first and the second stage decision variables of the objective function are given in parenthesis. Note that the first stage decision variables — the DA power bid \(P_{tgw}^{bid}\) and thermal unit status \(u_{tg}\) — are independent of wind power scenarios, while the second stage decision variables — the thermal unit dispatch \(P_{tsg}\) and the imbalance power \(\Delta_{ts}\) — are dependent on the realization of wind power scenario.The terms within the brackets in (4) refer to per scenario revenue of the DA bid, total cost of thermal generation and imbalance penalty, respectively. These three terms can be expressed as follows:

$$R_{tgw} = \rho_{t}^{da} P_{tgw}^{bid} \qquad \forall t$$
(5)
$$\begin{aligned} C_{tsg} &= C_{{{\text{F}}g}} u_{tg} (a_{g} P_{tsg}^{2} + b_{g} P_{tsg} + c_{g} ) + \hfill \\ &\quad{\text{max\{ }}0,C_{{{\text{S}}g}} (u_{tg} - u_{t - 1,g} )\} \qquad\forall t,s,g \hfill \\ \end{aligned}$$
(6)
$$P_{{{\text{I}},ts}} = \left\{ {\begin{array}{*{20}l} {\left( {\rho _{t}^{ + } \Delta _{{ts}} } \right)M} \hfill &\quad {\Delta _{{ts}} \ge 0, M = 1,\forall t,s} \hfill \\ {\left( {\rho _{t}^{ - } \Delta _{{ts}} } \right)\left( {1 - M} \right)} \hfill & \quad {\Delta _{{ts}} < 0, M = 0, \forall t,s} \hfill \\ \end{array} } \right.$$
(7)

where \(\rho_{t}^{da}\) denotes DA market price at time; \(\rho_{t}^{ + } , \rho_{t}^{ - }\) denote imbalance-up and imbalance-down prices at time t; \(C_{{{\text{F}}g}}\) denotes fuel cost of thermal unit g; \(a_{g} ,b_{g} ,c_{g}\) denote heat rate curve parameters of unit g; \(C_{{{\text{S}}g}}\) denotes start-up cost of thermal unit g; M denotes a binary variable.

As seen from (5), DA revenue is dependent on the power bid \(P_{tgw}^{bid}\) and the DA price \(\rho_{t}^{da}\). Total cost function of the thermal generation in (6) contains fuel cost of generation type, generation cost function and start-up cost of the unit. Thermal generation cost function is a quadratic function which causes nonlinearity in the objective function. Imbalance penalty function \(P_{{{\text{I}},ts}}\) is modeled with a binary variable M in (7). In this paper, an equivalent linear formulation proposed in [3] is used to eliminate the binary variable in order to obtain computational simplicity and efficiency in the solution. This linear formulation which is presented in (8) is descended from the decomposition of energy imbalance \(\Delta_{ts}\) into summation of positive and negative imbalances \(\Delta_{ts}^{ - }\) and \(\Delta_{ts}^{ + }\), respectively. Since the imbalance penalty, regardless of positive or negative, opposes to the maximization of profit, the optimization problem tends to minimize the imbalance penalty function. Therefore, without a necessity of M, the optimal solution is guaranteed with one of the variables \(\Delta_{ts}^{ - }\) or \(\Delta_{ts}^{ + }\) is zero since \(\rho_{t}^{ + } \le \rho_{da}\) and \(\rho_{t}^{ - } \ge \rho_{da}\). Hence, thermal UC status \(u_{tg}\) is the only integer variable in the problem.

$$P_{{{\text{I}},ts}} = \rho_{ts}^{ + } \Delta_{ts}^{ + } - \rho_{ts}^{ - } \Delta_{ts}^{ - } \qquad \forall t,s$$
(8)

where \(\Delta_{ts}^{ + }\) and \(\Delta_{ts}^{ - }\) denote imbalance-up and imbalance-down power at time t for scenario s.

The introduced coordinated objective function aims to maximize the expected profit excluding the risk. Risk assessment is crucial for the evaluation of the trade-off between profit and risk in stochastic problems. CVaR is included as a risk measurement term in the objective function given in (9). CVaR term is multiplied by a weighting factor — risk aversion parameter β∈ [0, ∞) — in order to simulate the effect of risk averse behavior on the expected profit and CVaR.

$$\mathop { \hbox{max} }\limits_{{(P_{tgw}^{bid} ,P_{tsg} ,u_{tg} ,\Delta_{ts}^{ + } ,\Delta_{ts}^{ - } )}} P_{\text{E,tot}} + \beta \cdot CVaR_{\alpha }$$
(9)

3.5 Constraints

There are various types of constraints that can be added to the wind-thermal generation coordination problem. Detailed description on system constraints, emission constraints, crew and other constraints are given in [20]. In this paper, bidding, market and thermal constraints are embedded in the problem formulation.

3.5.1 Bidding constraints

Bidding constraints are separately defined for stochastic and deterministic bidding approach for coordinated generation as well as uncoordinated generation.

  1. 1)

    Stochastic wind-thermal coordinated bidding

The amount of power bided to DA market must be within maximum and minimum wind power generation plus generation limits of thermal generators which are available (on) at that hour. Equation (10) presents the bidding constraint.

$$P_{tsw}^{ \hbox{min} } + \sum\limits_{g = 1}^{{N_{G} }} {P_{tsg}^{ \hbox{min} } } u_{tg} \le P_{tgw}^{bid} P_{tsw}^{ \hbox{max} } + \sum\limits_{g = 1}^{{N_{G} }} {P_{tsg}^{ \hbox{max} } } u_{tg} \;\;\;\;\;\;\;\;\forall t$$
(10)

where \(P_{tsw}^{ \hbox{min} }\) and \(P_{tsw}^{ \hbox{max} }\) denote the minimum and maximum wind power generations at time t for scenario s; \(P_{tsg}^{ \hbox{min} }\) and \(P_{tsg}^{ \hbox{max} }\) denote the minimum and maximum power outputs of thermal unit g at time t for scenario s.

  1. 2)

    Deterministic wind-thermal coordinated bidding

Power bid is within the limits between the possible maximum and minimum generation limits of thermal generators available at that hour. The amount of power bid for wind generation is determined as if wind power forecast is certain. Equation (11) illustrates the deterministic wind-thermal bidding constraint:

$$P_{tw}^{\exp } + \sum\limits_{g = 1}^{{N_{G} }} {P_{tsg}^{ \hbox{min} } } u_{tg} \le P_{tgw}^{bid} \le P_{tw}^{ \exp } + \, \sum\limits_{g = 1}^{{N_{G} }} {P_{tsg}^{ \hbox{max} } } u_{tg} \qquad \forall t$$
(11)

where \(P_{tw}^{ \exp }\) denotes expected wind power generation at time t.

  1. 3)

    Stochastic wind-thermal uncoordinated bidding

Power bids of thermal and wind units are determined separately as in (12) and (13).

$$\mathop \sum \limits_{g = 1}^{{N_{G} }} P_{tg}^{ \hbox{min} } u_{tg} \le P_{tg}^{bid} \le \mathop \sum \limits_{g = 1}^{{N_{G} }} P_{tg}^{ \hbox{max} } u_{tg} \qquad\forall t$$
(12)
$$P_{tsw}^{ \hbox{min} } \le P_{tw}^{bid} \le P_{tsw}^{ \hbox{max} } \qquad\forall t$$
(13)

where \(P_{tg}^{bid}\) and \(P_{tw}^{bid}\) denote optimum DA bid and optimum DA power bid at time t for uncoordinated thermal generation, respectively; \(P_{tg}^{ \hbox{min} }\) and \(P_{tg}^{ \hbox{max} }\) denote the minimum and maximum power outputs of thermal unit at time t.

3.5.2 Imbalance price constraints

Double price mechanism which is practiced by Turkish balancing market is presented below for the supplier side.

$$\left\{ {\begin{array}{*{20}c} {\rho_{t}^{smp} \le \rho_{t}^{da} } & \quad{ \lambda > 0,\forall t} \\ {\rho_{t}^{smp} \ge \rho_{t}^{da} } & \quad { \lambda < 0,\forall t} \\ \end{array} } \right.$$
(14)

where \(\rho_{t}^{smp}\) denotes SMP at time t; \(\lambda\) denotes system direction.

  1. 1)

    When generation company’s real-time generation is more than the amount of DA schedule, excess generation is sold to the balancing market with imbalance-up price \(\rho_{t}^{ + }\) as in (15).

    $$\rho _{t}^{ + } = \left\{ {\begin{array}{*{20}l} {\text{min}\left\{ {\rho _{t}^{{da}} ,\rho _{t}^{{smp}} } \right\} = \rho _{t}^{{smp}} } &\quad {\lambda > 0, \forall t} \\ {\text{max}\left\{ {\rho _{t}^{{da}} ,\rho _{t}^{{smp}} } \right\} = \rho _{t}^{{da}} } &\quad {\lambda < 0, \forall t} \\ \end{array} } \right.$$
    (15)
  2. 2)

    When generation company’s real-time generation is less than the amount of DA power schedule, generation deficit is bought from balancing market with imbalance down price \(\rho_{t}^{ - }\)as in (16).

    $$\rho _{t}^{ - } = \left\{ {\begin{array}{*{20}l} {\text{min}\left\{ {\rho _{t}^{{da}} ,\rho _{t}^{{smp}} } \right\} = \rho _{t}^{{da}} } & \quad {\lambda > 0, \forall t} \\ {\text{max}\left\{ {\rho _{t}^{{da}} ,\rho _{t}^{{smp}} } \right\} = \rho _{t}^{{smp}} } & \quad {\lambda < 0, \forall t} \\ \end{array} } \right.$$
    (16)

Since it is assumed that generation company degrades the system balance for all hours, constraint on imbalance prices can be summarized as in (17).

$$\rho_{t}^{ + } \le \rho_{t}^{da} \le \rho_{t}^{ - } \qquad \forall t$$
(17)

3.5.3 Imbalance power constraints

Imbalance power is equal to the difference between DA power schedule and real-time generation of generation company. Either \(\Delta_{ts}^{ + }\) or \(\Delta_{ts}^{ - }\) is equal to zero for all t and s due to nature of the optimization problem. Equation (18) presents the imbalance power constraint.

$$\Delta_{ts} = P_{tsw} + \mathop \sum \limits_{g = 1}^{{N_{G} }} P_{tsg} - P_{tgw}^{bid} = \Delta_{ts}^{ + } - \Delta_{ts}^{ - }\qquad \forall t,s$$
(18)

3.5.4 Thermal unit constraints

Thermal unit constraints considered in the paper are generation, ramp-up and ramp-down power and minimum-up and minimum-down time limits.

  1. 1)

    Unit’s ramp-up and ramp-down capacity constraints

Due to machinery limits, electrical output of a thermal unit cannot change more than a certain amount over a period of time. Generation of thermal unit for successive hours is bounded by ramp-up and ramp-down constraints, as shown in (19).

$$- \bar{R}_{Dg} \le P_{tsg} - P_{t - 1,sg} \le \bar{R}_{Ug} \qquad\forall t,s,g$$
(19)

where \(\bar{R}_{Ug}\) and \(\bar{R}_{Dg}\) denote the maximum ramp-up rate limit and the maximum ramp-down rate limit of thermal unit g, respectively.

  1. 2)

    Generation constraints

Generation constraints are defined as the minimum and maximum feasible generation capacity of an operating thermal unit. In addition, ramp-up and ramp-down constraints related with the units should be taken into account, as shown in (20)–(22).

$$P_{tsg}^{ \hbox{min} } u_{tg} \le P_{tsg} \le P_{tsg}^{ \hbox{max} } u_{tg} \qquad \forall t,s,g$$
(20)
$$P_{{tsg}} = \left\{ {\begin{array}{*{20}l} {{\text{min}}\{ P_{{t - 1,sg}} + \bar{R}_{{Ug}} ,\bar{P}_{g} \} \;\;\;\;\; u_{{tg}} = u_{{t - 1,g}} = 1, \forall t,s,g} \hfill \\ {{\text{min}}\{ P_{g} + R_{{ug}} ,P_{g} \} \;\;\;\;\;\;\;\;\;\;\;\; u_{{tg}} = 1, u_{{t - 1,g}} = 0, \forall t,s,g} \hfill \\ \end{array} } \right.$$
(21)
$$P_{{tsg}} = \left\{ {\begin{array}{*{20}l} {{\text{min}}\{ P_{{t - 1,sg}} + \bar{R}_{{Dg}} ,\underset{\raise0.3em\hbox{$\smash{\scriptscriptstyle-}$}}{P} _{g} \} \;\;\;\;\; u_{{tg}} = u_{{t - 1,g}} = 1, \forall t,s,g} \hfill \\ {\underset{\raise0.3em\hbox{$\smash{\scriptscriptstyle-}$}}{P} _{g} \qquad\qquad\qquad\qquad\;\;\;\; u_{{tg}} = 1, u_{{t - 1,g}} = 0, \forall t,s,g} \hfill \\ \end{array} } \right.$$
(22)

where \(\bar{P}_{g}\) and \(\underline{P}_{ g}\) denote the maximum and the minimum thermal power output limits of thermal unit g.

  1. 3)

    Minimum-up and minimum-down time constraints

Once a unit is running, it cannot be shut down immediately. Likewise, the off units cannot be started immediately. Time requirement for a thermal unit to be turned off and on is defined as minimum-up and minimum-down times as given in (23) and (24), respectively.

$$(T_{t - 1,g}^{up} - T_{{{ \hbox{min} },g}}^{up} )(u_{t - 1,g} - u_{tg} ) \ge 0 \qquad\forall t,g$$
(23)
$$(T_{t - 1,g}^{dn} - T_{{{ \hbox{min} },g}}^{dn} )(u_{tg} - u_{t - 1,g} ) \ge 0 \qquad\forall t,g$$
(24)

where \(T_{t - 1,g}^{up}\) and \(T_{t - 1,g}^{dn}\) denote the time that thermal unit g has been up and the time that thermal unit g has been down at time t, respectively; \(T_{{{ \hbox{min} },g}}^{up}\) and \(T_{{{ \hbox{min} },g}}^{dn}\) denote the minimum-up time and the minimum-down time of thermal unit g, respectively.

4 Solution algorithm

The solution algorithm for the wind-thermal coordination, which is developed in MATLAB environment, is presented in a flowchart in Fig. 4. Dynamic programming (DP) is used in order to eliminate the mixed-integer nature of the problem formulation and find the optimum UC of thermal units.

Fig. 4
figure 4

Solution algorithm for wind-thermal coordination

In the first stage of the solution algorithm, t and k, which denote time and number of feasible previous transitions, respectively, are initialized. t is initialized as 1 since it is the beginning of the scheduling period and k is initialized as 1 due to there is only one feasible previous state at t = 1 (i.e., operating conditions of the units in the last hour of the previous day). Also, at this stage of the algorithm, the problem is fed with market, wind and thermal unit data. These include:

  1. 1)

    Market data: forecasted DA clearing price, imbalance-up and imbalance-down prices.

  2. 2)

    Wind power forecast data: expected wind power and standard deviation.

  3. 3)

    Thermal unit data: number of units, unit generation capacity, ramp-up/down limits, start-up costs, initial on/off durations, minimum-up/down time, fuel price, and cost coefficients for each unit.

In the second stage of the algorithm, all possible N = 2G (G is the number of thermal units) thermal UC states for each previous transition k and hour t are created with complete enumeration. However, only limited number of statuses is recorded to reduce the computational time, as discussed below.

Whether transition k from previous hour to current hour for state n is feasible or not is checked with minimum-up and minimum-down constraints in the third stage of the algorithm. For this purpose, on/off data of thermal units in current state n are compared to data stored in XR (working hour of thermal unit matrix) which keeps the duration that thermal units have been on or off until that hour. Then, XR is updated for the next hour if transition to current state is feasible. Infeasible transitions are not stored in the memory.

In the fourth stage of the algorithm, ED with thermal units which are on is conducted for each wind power scenario. Expected profits and corresponding optimum transition sub-paths are saved in PR (profit matrix) and TR (transition matrix), respectively.

Obtaining an optimal solution for this problem is not easy. The size of the transition matrix TR increases with t through the scheduling horizon. As mentioned before, for G number of thermal units there are 2G possible states. Assume that all state transitions are feasible, for T hours of scheduling horizon, size of TR, K, becomes (2G)T. In order to reduce the computational effort, time and program memory, at each hour not all but K number of most profitable states are saved in PR, TR and XR in the fifth, sixth and seventh stages. This approach may result in a suboptimal solution. In the eighth stage of the problem, the algorithm decides on the number of transitions K to be saved for the next hour. Whether the DP reaches to the last hour in the scheduling period is checked in the ninth stage with the counter t. In the final stage, the suboptimal transition path (thus the UC schedule) is found by the transition path saved in TR that corresponds to the maximum profit in PR.

5 Numerical studies and results

Effects of coordination and bidding strategy on the expected profit and CVaR are evaluated in a 24-hour scheduling problem for different scenarios. Problems are solved in a computer that has Intel Core i5 processor with 2.60 GHz and 8 GB memory. Not all but K number of most profitable states are saved in each stage of the DP in order to reduce the computational size and time. Nevertheless, this may result in a suboptimal solution since not all the integer combinations are searched by DP. In order to test the optimality of solution, expected profit and execution time are compared under different K values. It is found that the value of 8 for K provides the best balance between optimal solution and execution time.

The generation company considered in the numerical studies is assumed to own two thermal units and a wind farm. The capacity of the wind farm is 180 MW, while the total installed capacity of thermal plants is 90 MW. Market prices and wind power forecasts are inputs to the proposed model. Thermal unit data are given in Table 1, where uini represents the number of hours that unit has been on.

Table 1 Thermal unit data

It is assumed that hourly wind power forecast error lies within a normal distribution fashion similar to [5, 13, 21, 22] and an increasing standard deviation in the later hours of the day. Instead of dealing with a continuous PDF, discrete variables which are called scenarios that could represent continuous variables are generally preferred [12, 19, 23]. In order to find a good approximation for the wind power forecast, large number of scenarios is needed to cover the probability space. On the other hand, there is a trade-off between number of sample scenarios and the computational complexity. For the scenario studies, PDF of the wind power forecast error, denoted as Q(x) in Fig. 5, for each hour is divided into six confidence intervals with a standard deviation of σ around the expected value μ in the x-axis between [−3σ, +3σ] so as to find representative scenarios. The interval [−3σ, +3σ] spans the 99.74% of the total area in PDF. This can be interpreted as the probability of the wind power outcome in the next day lies within this interval with 99.74% of chance. Therefore, values which deviate more than 3σ from the expected wind power forecast value are ignored to reduce the computational burden and execution time. In Fig. 6, six representative wind power scenarios for different σ intervals are drawn in black lines.

Fig. 5
figure 5

Normal PDF of wind power forecast and confidence intervals with respect to σ

Fig. 6
figure 6

Wind power scenarios for every σ interval

The six different scenarios investigated throughout this paper are uncoordinated wind-thermal generation (scenario 1, corresponds to −3σ), coordinated wind-thermal generation with risk attitude parameter β of 0, 0.1, 0.5 and 1.0 (scenarios 2, 3, 4, 5, correspond to −2σ, −σ, σ, 2σ), and coordinated wind-thermal generation with deterministic bidding (scenario 6, corresponds to 3σ). Market data and wind power forecast data considered in the study are presented in Table 2 and Table 3, respectively. Wind power generation data for scenarios 1-6, which are developed based on assumptions in Table 3, are illustrated in Table 4.

Table 2 Market data
Table 3 Wind power forecast data
Table 4 Wind power generation data for different scenarios

UC results in Table 5 (U1 and U2 represent unit 1 and unit 2) ensure optimal trade-off between the expected profit and the risk under wind uncertainty under the ED solutions presented in Table 6.

Table 5 UC statuses of thermal units
Table 6 Amount of DA power bid

The profit and CVaR values for each scenario are presented in Table 7. CVaR is calculated for α = 0.98 (CVaR0.98) which equals to the value of lowest profitable scenario in the problem. In terms of expected profit and CVaR, coordinated wind-thermal generation with stochastic bidding is prominent to uncoordinated generation and coordinated generation with deterministic bidding. Expected profit of coordinated generation is 1.25% which is 0.5% higher than that of uncoordinated generation and coordinated deterministic bidding. Situation in CVaR is even more distinct for coordinated generation with 4.6% and 2.4% higher CVaR values compared to uncoordinated generation and coordinated deterministic bidding, respectively. Note that CVaR of uncoordinated thermal generation is equal to its expected profit as there is no stochasticity in thermal only generation.

Table 7 Profit analysis of scenario studies

Expected profit versus CVaR plot is given for all scenarios in Fig. 7. Uncoordinated bidding has the lowest expected profit and CVaR among all scenarios. For coordinated generation, as the risk averse behavior increases with β; CVaR0.98 increases as well but the expected profit decreases. The performance of coordinated deterministic bidding in terms of expected profit and CVaR is better than that of uncoordinated generation. Comparing scenario 1 and scenario 5 reveals that 4.6% increase in CVaR results in only 1.3% reduction in the expected profit. According to this trade-off between the expected profit and CVaR, generation company can choose its preference of risk before bidding in the DA market.

Fig. 7
figure 7

Expected profit versus CVaR

The risk on profit variability can be controlled at the cost of a small reduction in the expected profit. Figure 8 illustrates such a case for the coordinated wind-thermal generation with generation company’s attitude towards risk. As the risk averse behavior increases with β, standard deviation of realized profits decreases. In Fig. 9, coordinated wind-thermal generation with β = 0 is solved for different values of K and expected profit and execution time results are presented. According to results, optimality of the solution changes with K; expected profit increases as the value of K increases due to the larger search space scanned with DP. For K > 4, significant increment in the expected profit is not observed; hence, for this specific problem one can make a tradeoff between K and the execution time.

Fig. 8
figure 8

Expected profit versus standard deviation

Fig. 9
figure 9

Expected profit versus execution time with respect to K

6 Conclusion

In this paper, a two-stage stochastic programming model for wind-thermal coordination is proposed. The problem considers a generation company participating in Turkish DA electricity market with its thermal and wind generation units. The main objective of the generation company is to determine the optimum power for the DA market to maximize its expected profit in the first stage while controlling risks associated with possible realizations of wind power output in the second stage. Based on this objective, generation company obtains the most suitable hourly generation schedule and optimal bids under CVaR consideration. Comparative scenario studies are investigated to illustrate the performance of bidding strategies and benefits of the coordination. Results indicate that the wind-thermal generation coordination could significantly contribute to profit of generation company by reducing the imbalance penalty charged by the balancing market. Coordination also steers thermal units to commit more often to balance real-time generation deviations from the DA bid caused by the wind uncertainty. Thus, ramp limits, start-up cost, minimum-up times, minimum-down time and generation capacity of thermal units can greatly affect the benefit of coordination. To determine hourly power bid to market, generation company should not compute optimal thermal and wind power bids separately but aggregate wind and thermal power bids in order to have higher profit. Wind-thermal coordination not only improves expected profits but also substantially increases the CVaR. The imbalance penalty for any discrepancy between the DA schedule and the real-time delivery may force generation company to accept more risk averse decisions to increase CVaR. The CVaR criterion maximizes the expected profits of the lowest possible wind power scenarios which lessens the chance of having low profits. Generation company can effectively control the trade-off between CVaR and expected profit with the proposed model. Small reduction in the expected profit can result in high growth in CVaR. Hence, generation company determines its generation scheduling and DA bidding according to associated risk preference.

In this study, the DA market prices are assumed to be forecasted deterministically. Future studies might include effects of stochastic DA price forecasting on the results. Analysis can be further scaled up with other types of generation such as hydro pumped-storage. Impact of greenhouse emission caps on electricity generation facilities which are likely to be imposed in near future by governments aiming to comply with international agreements can be added to the coordination problem with different objective functions and constraints. The development in battery storage technology is promising for the utility scale. In future studies, battery storage could be considered to mitigate risks from the short-term operational and long-term investment perspectives.