Professional Documents
Culture Documents
Anjos 2017
Anjos 2017
Anjos 2017
R
in Electric Energy Systems
Vol. 1, No. 4 (2017) 220–310
c 2017 M. F. Anjos and A. J. Conejo
DOI: 10.1561/3100000014
Miguel F. Anjos
Department of Mathematics and Industrial Engineering
GERAD & Polytechnique Montreal
anjos@stanfordalumni.org
Antonio J. Conejo
Department of Integrated Systems Engineering
Department of Electrical and Computer Engineering
The Ohio State University
conejonavarro.1@osu.edu
Contents
ii
iii
Appendices 296
B Notation 303
B.1 Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
B.2 Constants . . . . . . . . . . . . . . . . . . . . . . . . . . 304
B.3 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
References 308
Abstract
221
222 Introduction to the Unit Commitment Problem
Gropp and Moré, 1997]. All the computations made in the preparation
of this book were carried out on the NEOS Solver.
This chapter presents a basic formulation for UC, based on the presen-
tation in Ostrowski et al. [2012]. This formulation focuses on modeling
the fundamental aspects of UC, namely the operational limits of gener-
ating units, and ensuring that generation meets demand with spinning
reserves (explained below).
Our starting point is the following simple yet insightful formulation
of UC:
XX
min cj (pj (t)) + cU
j (t) (2.1)
pj (t)
t∈T j∈J
s.t.
X
pj (t) = D(t), ∀t ∈ T (2.2)
j∈J
X
pj (t) ≥ D(t) + R(t), ∀t ∈ T (2.3)
j∈J
224
225
specify this cost in Section 2.2. Typically, each t represents one hour
and T represents a 24-hour horizon (e.g., for day-ahead planning). The
hourly load forecast D(t) and spinning reserve requirements R(t) are
determined a priori by the system operator, but the maximum available
power at time t from unit j, denoted pj (t), is computed as part of the
solution and satisfies pj (t) ≤ pj (t).
The difference pj (t)−pj (t), i.e., the difference at time t between the
actual planned output pj (t) of unit j and the maximum amount pj (t)
it could provide, ensures that the optimal solution provides enough ca-
pacity for spinning reserves. Spinning reserves consist of the generating
capacity that is available from units that are already producing elec-
tricity to satisfy the demand but can still increase their power output
in case of need, for example if there is a disruption at another unit.
Let us look at each of the lines in this formulation. The objective
function (2.1) shows that UC aims to minimize the total cost of power
generation, with cj (pj (t)) denoting the cost of producing pj (t) units
of electricity using unit j at time t. It is common practice to model
cj (pj (t)) as a convex piecewise linear, strictly monotonically increasing
function:
cj (pj (t)) ≥ αjs pj (t) + βjs , s = 1, . . . , Cj ,
rapidly, and when their on/off status changes, it cannot change again
before a minimum amount of time has passed.
All these operational constraints are encapsulated in constraint
(2.4), and the set Πj (t) is formed of the constraints discussed in the
sections that follow.
They ensure that yj (t) and zj (t) take on appropriate values when a unit
starts up or shuts down. Note that constraints (2.5) require knowledge
of the values vj (0) that represent the on/off status of all generating
units in the time period just before the planning horizon starts (t = 0).
For example, suppose that vj (0) = 1 and vj (1) = 0, i.e., unit j is on at
time t = 0 but not at t = 1. Then constraints (2.5) will require that
yj (1) − zj (1) = −1, which holds only if yj (1) = 0 and zj (1) = 1, which
is consistent with the variable definitions.
A startup cost cUj (t) is incurred when unit j starts up at the beginning
of time period t. This cost depends on how long the unit has been
inactive. For example, for thermal units this cost is maximum when
the boiler is completely cold.
228 Deterministic Unit Commitment
where RjD is the maximum ramp-down rate of unit j, and SjD is its
maximum shutdown rate. We observe here that if unit j is shut down
in time period t+1, then its output at t cannot be more than SjD ; and if
it is not, its power output decrease at t cannot be larger than RjD . Note
also that constraints (2.8) require knowledge of pj (0), the generation
levels of all generating units at t = 0.
These constraints account for the fact that a unit cannot be turned on
or off arbitrarily. If unit j starts up in time period t then it has to run
for at least TjU time periods before it can be shut down. Similarly, if it
is shut down at t then it has to remain off for at least TjD periods.
We express the minimum uptime requirement as:
t
X
yj (k) ≤ vj (t) ∀t ∈ [ Lj + 1, . . . , |T | ] ∀j ∈ J, (2.9)
k=t−TjU +1, k≥1
Also with vj (t) = 1, constraint (2.13) ensures that if unit j is shut down
at the beginning of time period t + 1, then pj (t) is bounded above
by the maximum shutdown rate. Otherwise, the constraint becomes
redundant, imposing the same upper bound as in (2.11).
Unit (j) cU
j cj Pj Pj SjU SjD RjU RjD TjU TjD
1 800 5 80 300 100 80 50 30 3 2
2 500 15 50 200 70 50 60 40 2 2
3 250 30 30 100 40 30 70 50 1 2
Unit 1 is a generator that can produce a large quantity of power at low
cost, but it incurs a high startup cost and ramps up relatively slowly.
Unit 2 is a generator that has lower production capacity than unit 1
and a slightly higher cost but costs less to startup. Unit 3 has the lowest
production capacity and is expensive, but it has the lowest startup cost
and ramps up more quickly. The intuition here is that the UC problem
will use unit 1 first, then unit 2, and finally unit 3 if necessary.
Further, suppose that we have the following operating conditions
at t = 0, i.e., just before our planning horizon starts:
Unit (j) vj pj Uj Dj
1 1 120 2 0
2 0 0 0 0
3 0 0 0 0
Thus, at t = 0, unit 1 is on and producing 120 MW, and units 2 and 3
are off. Furthermore, unit 1 is required to stay on for two time periods
at the start of the planning horizon.
The formulation in Section 2.6 is a mixed-integer linear optimiza-
tion problem. We solved it using BARON [Tawarmalani and Sahinidis,
2005], one of the optimization solvers on NEOS that can handle this
type of problem.
Time period t 1 2 3 4 5 6
Demand D(t) 240 250 200 170 230 190
Reserve R(t) 10 10 10 10 10 10
2.7. Illustrative Example 233
For simplicity, we set the reserve to 10 units of demand for each time
period t.
Solving the formulation in Section 2.6, we obtain the following re-
sults:
Time period t 1 2 3 4 5 6
p1 (t) 170 200 200 170 200 190
p2 (t) 70 50 0 0 0 0
p3 (t) 0 0 0 0 30 0
Dual of (2.2) 15 5 5 5 5 5
p1 (t) − p1 (t) 10 10 10 10 10 10
p2 (t) − p2 (t) 0 0 0 0 0 0
p3 (t) − p3 (t) 0 0 0 0 0 0
pj (t) − pj (t)
P
10 0 0 0 0 0
j
Excess over R(t) 0 0 0 0 0 0
Dual of (2.3) 0 0 0 0 0 0
The total cost is 9100. We observe that the marginal price of energy is
15 for the first period and 5 for every subsequent period. We note also
that the reserve requirements are met, and that the marginal price of
the reserve is zero for every period.
The on/off status of each of the generators during the planning
horizon is as follows:
Time period t 1 2 3 4 5 6
Unit 1 on on on on on on
Unit 2 on on off off off off
Unit 3 off off off off on off
Once on, unit 2 must run for two periods before it can be turned
off (T2U = 2), even though unit 1 would be able to satisfy both demand
and reserve at t = 2.
There is a peak in demand at t = 5, but it lasts only one period
and unit 3 is now available. Therefore, the optimal solution is to turn
on unit 3 for only that period and to increase the output of unit 1 to
make up the difference.
If we check the constraints, we see that the ramp-up constraint
(2.7) for units 1 and 2 is binding at t = 1, and that the lower bound
constraints on the production, i.e., the leftmost inequality constraints
in (2.11), are binding for unit 2 from t = 2 onward, and for unit 3 in
every time period.
Time period t 1 2 3 4 5 6
p1 (t) 170 180 150 120 170 140
p2 (t) 70 70 50 50 90 50
p3 (t) 0 0 0 0 0 0
Dual of (2.2) 15 15 -5 -5 15 5
p1 (t) − p1 (t) 10 10 10 10 0 10
p2 (t) − p2 (t) 0 0 0 0 10 0
p3 (t) − p3 (t) 0 0 0 0 0 0
pj (t) − pj (t)
P
10 10 10 10 10 10
j
Excess over R(t) 0 0 0 0 0 0
Dual of (2.3) 0 0 0 0 0 0
The total cost is 10850. The on/off status of each of the generators
during the planning horizon is as follows:
2.7. Illustrative Example 235
Time period t 1 2 3 4 5 6
Unit 1 on on on on on on
Unit 2 on on on on on on
Unit 3 off off off off off off
Time period t 1 2 3 4 5 6
p1 (t) 180 200 200 170 190 140
p2 (t) 60 50 0 0 70 50
p3 (t) 0 0 0 0 0 0
Dual of (2.2) 15 5 5 5 15 5
The total cost is 9850, and all the marginal energy prices are positive.
The on/off status of each of the generators during the planning
horizon is as follows:
236 Deterministic Unit Commitment
Time period t 1 2 3 4 5 6
Unit 1 on on on on on on
Unit 2 on on off off on on
Unit 3 off off off off off off
We see that with its increased ramping capabilities, unit 1 (which has
the cheapest cost per unit of energy) can serve almost all the load. Unit
2 contributes for just four time periods, at lower levels than before.
3
Network-Constrained Deterministic Unit
Commitment
237
238 Network-Constrained Deterministic Unit Commitment
Let N be the set of nodes in the power system network, and let nm
be the line connecting nodes n and m. The DC approximation of the
power flow on a line postulates that it is proportional to the differ-
ence in voltage angles between the nodes at the endpoints of the line.
Specifically, the power flow across the line nm is given by
where Bnm is the negative of the series susceptance of the line (a pos-
itive constant), and θn (t) is the voltage angle at node n. In essence,
Bnm is a proportionality constant linking the differences in the voltage
angle (electrical “height”) and the power flow (see Section 5.1 for more
details on the susceptance and related quantities). Thus, the net power
flow (generation minus demand) at node n is given by
X
Bnm (θn (t) − θm (t)) ,
m∈ΛL
n
We use boxes to highlight the constraints and variables that are specific
to the integration of the network. The remainder of the model is from
the basic UC formulation in Section 2.6.
240 Network-Constrained Deterministic Unit Commitment
XX
min cj (pj (t)) + cU
j yj (t)
Ξ
t∈T j∈J
s.t.
∀n ∈ N, ∀t ∈ T
−P nm ≤ Bnm (θn (t) − θm (t)) ≤ P nm ,
∀n ∈ N, ∀m ∈ ΛLn , ∀t ∈ T
θn̂ (t) = 0, ∀t ∈ T
pj (t) ≥ ∀r ∈ R, ∀t ∈ T
P P
j∈ΩG
r i∈ΩD
r
Di (t) + Rr (t),
cj (pj (t)) ≥ αjs pj (t) + βjs , s = 1, . . . , Cj , ∀j ∈ J
vj (t − 1) − vj (t) + yj (t) − zj (t) = 0, ∀j ∈ J, ∀t ∈ T
pj (t) − pj (t − 1) ≤ RjU vj (t − 1) + SjU yj (t), ∀j ∈ J, ∀t ∈ T
pj (t − 1) − pj (t) ≤ RjD vj (t) + SjD zj (t), ∀j ∈ J, ∀t ∈ T
t
X
yj (k) ≤ vj (t) ∀t ∈ [Lj + 1, . . . , |T |], ∀j ∈ J
k=t−TjU +1, k≥1
t
X
vj (t) + zj (k) ≤ 1 ∀t ∈ [Fj + 1, . . . , |T |], ∀j ∈ J
k=t−TjD +1, k≥1
where the optimization variables in set Ξ are pj (t), pj (t), vj (t), yj (t),
zj (t), and θn (t) , ∀n ∈ N , ∀j ∈ J, ∀t ∈ T .
Let us consider a small power network with six buses. The three gen-
erators are the same as in Section 2.7, and we locate them in nodes
1, 2, and 3 respectively. Nodes 4, 5, and 6 are demand nodes. Thus,
the primary flow of power is from nodes 1, 2, and 3 to nodes 4, 5, and
3.4. Illustrative Example 241
Time period t 1 2 3 4 5 6
D4 (t) 100 100 80 140 100 80
D5 (t) 90 100 80 30 90 60
D6 (t) 50 50 40 0 40 50
Total demand 240 250 200 170 230 190
Reserve R(t) 10 10 10 10 10 10
Further, suppose that the network lines have the following trans-
mission capacities P nm :
1 2 3 4 5 6
1 - - - 100 100 100
2 - - - 100 100 100
3 - - - - 100 100
4 100 100 - - - -
5 100 100 100 - - -
6 100 100 100 - - -
Here a dash denotes the absence of a line between the two nodes, and
Bnm equals 0.8 for every line.
242 Network-Constrained Deterministic Unit Commitment
Time period t 1 2 3 4 5 6
p1 (t) 170 200 200 170 200 190
p2 (t) 70 50 0 0 0 0
p3 (t) 0 0 0 0 30 0
Dual at node 1 15 5 5 5 5 5
Dual at node 2 15 5 5 5 5 5
Dual at node 3 15 5 5 5 5 5
Dual at node 4 15 5 5 5 5 5
Dual at node 5 15 5 5 5 5 5
Dual at node 6 15 5 5 5 5 5
p1 (t) − p1 (t) 10 10 10 10 10 10
p2 (t) − p2 (t) 0 0 0 0 0 0
p3 (t) − p3 (t) 0 0 0 0 0 0
pj (t) − pj (t)
P
10 10 10 10 10 10
j
Excess over R(t) 0 0 0 0 0 0
Dual of (3.4) 0 0 0 0 0 0
The total cost is 9100. Note that this is the same total cost as in Section
2.7.1.
We observe that because power balance is now enforced at each
node of the network (constraints (3.1)), each of these constraints has
its own dual variable, and hence we obtain nodal energy prices. In this
example, they are equal to 15 at every node for t = 1 and equal to 5
at every node for the subsequent time periods.
We note also that the reserve requirements are met, and that the
marginal price of the reserve is zero in every period. Moreover, the
on/off status of each of the generators during the planning horizon is
also the same as in Section 2.7.1:
3.4. Illustrative Example 243
Time period t 1 2 3 4 5 6
Unit 1 on on on on on on
Unit 2 on on off off off off
Unit 3 off off off off on off
1 2 3 4 5 6
1 - - - -66.67 -58.33 -45
2 - - - -33.33 -25 -11.67
3 - - - - -6.67 6.667
4 66.67 33.33 - - - -
5 58.33 25 6.67 - - -
6 45 11.67 -6.67 - - -
Observe that we have, as desired, a total flow of 100 into node 4. Two-
thirds of this power flows from 1 to 4, and one-third from 2 to 4.
We also have an inflow of 90 into node 5, with 58 1/3 coming from
node 1, 25 from node 2, and 6 2/3 from node 3. Note that the power
coming from node 3 is not generated there but flows into 3 from node 6.
Indeed, at node 6 we have as desired a net inflow of 50, but the actual
inflows are 45 from node 1 and 11 2/3 from node 2; these two inflows
add up to 56 2/3, of which 6 2/3 continues on to node 5.
Time period t 1 2 3 4 5 6
p1 (t) 160 157.5 147.5 120 162.5 137.5
p2 (t) 50 92.5 52.5 50 67.5 52.5
p3 (t) 30 0 0 0 0 0
Dual at node 1 5 5 5 5 5 5
Dual at node 2 5 25 5 5 15 15
Dual at node 3 5 30 5 5 17.5 17.5
Dual at node 4 5 15 5 5 10 10
Dual at node 5 5 20 5 5 12.5 12.5
Dual at node 6 5 40 5 5 22.5 22.5
p1 (t) − p1 (t) 10 10 10 10 7.5 10
p2 (t) − p2 (t) 0 0 0 0 2.5 0
p3 (t) − p3 (t) 0 0 0 0 0 0
pj (t) − pj (t)
P
10 10 10 10 10 10
j
Excess over R(t) 0 0 0 0 0 0
Dual of (3.4) 0 0 0 0 0 0
Time period t 1 2 3 4 5 6
Unit 1 on on on on on on
Unit 2 on on on on on on
Unit 3 on off off off off off
At t = 2 the power flows are, with the binding flows shown in bold:
1 2 3 4 5 6
1 - - - -60.83 -56.67 -40.00
2 - - - -39.17 -35.00 -18.33
3 - - - - -8.33 8.33
4 60.83 39.17 - - - -
5 56.67 35.00 8.33 - - -
6 40.00 18.33 -8.33 - - -
At t = 5 they are:
1 2 3 4 5 6
1 - - - -65.83 -56.67 -40.00
2 - - - -34.17 -25.00 -8.33
3 - - - - -8.33 8.33
4 65.83 34.17 - - - -
5 56.67 25.00 8.33 - - -
6 40.00 8.33 -8.33 - - -
At t = 6:
1 2 3 4 5 6
1 - - - -54.17 -43.33 -40.00
2 - - - -25.83 -15.00 -11.67
3 - - - - -1.67 1.67
4 54.17 25.83 - - - -
5 43.33 15.00 1.67 - - -
6 40.00 11.67 -1.67 - - -
The UC problem as considered so far does not take into account the
need to maintain the security of the power system when planning the
day-ahead hourly generation schedule. This is particularly important
in jurisdictions where the security issues may be neglected because of
market pressures and related financial concerns.
The security-constrained UC (SCUC) is a formulation of UC that
integrates key aspects of system security while scheduling generation.
The idea is that the system should be able to continue to meet all the
load demands in the event of failure in one of its major components;
such events are referred to as contingencies. Our concern here is with
contingencies whose impact cannot be handled by the spinning reserves.
For simplicity we consider contingencies pertaining solely to trans-
mission lines and identify each of them by the susceptances of the
transmission lines under the contingency, denoted Bnm c , where the su-
246
4.1. Pre- and Post-Contingency Operating Conditions 247
∀n ∈ N, ∀t ∈ T, ∀c ∈ C (4.1)
c
− P nm ≤ Bnm (θnc (t) − c
θm (t)) ≤ P nm ,
∀n ∈ N, ∀m ∈ ΛLn , ∀t ∈ T, ∀c ∈ C (4.2)
θn̂c (t) = 0, ∀t ∈ T, ∀c ∈ C (4.3)
We use boxes to highlight the constraints and variables that are specific
to the integration of the contingencies. The remainder of the formula-
tion is from the network-constrained UC model in Section 3.3.
For the sake of simplicity, we do not represent the minimum
up/down time constraints or the regional reserve constraints.
4.3. Illustrative Example 249
XX
min cj (pj (t)) + cU
j yj (t)
Ξ
t∈T j∈J
s.t.
cj (pj (t)) ≥ αjs pj (t) + βjs , s = 1, . . . , Cj , ∀j ∈ J
X X X
pj (t) − Di (t) = Bnm (θn (t) − θm (t)) , ∀n ∈ N, ∀t ∈ T
j∈ΛG
n i∈ΛD
n m∈ΛL
n
∀n ∈ N, ∀t ∈ T, ∀c ∈ C
c (θ c (t) − θ c (t)) ≤ P
−P nm ≤ Bnm n m nm ,
∀n ∈ N, ∀m ∈ ΛLn , ∀t ∈ T, ∀c ∈ C
θn̂c (t) = 0, ∀t ∈ T , ∀c ∈ C
pcj (t) − pcj (t − 1) ≤ RjU vj (t − 1) + SjU yj (t), ∀j ∈ J, ∀t ∈ T, ∀c ∈ C
pcj (t − 1) − pcj (t) ≤ RjD vj (t) + SjD zj (t), ∀j ∈ J, ∀t ∈ T, ∀c ∈ C
P j vj (t) ≤ pcj (t) ≤ P j vj (t), ∀j ∈ J, ∀t ∈ T, ∀c ∈ C
pcj (t) − pj (t) ≤ XjU , ∀j ∈ J, ∀t ∈ T, ∀c ∈ C
pj (t) − pcj (t) ≤ XjD , ∀j ∈ J, ∀t ∈ T, ∀c ∈ C
where the optimization variables in set Ξ are pj (t), vj (t), yj (t), zj (t),
θn (t), pcj (t) , and θnc (t) , ∀n ∈ N , ∀j ∈ J, ∀t ∈ T, ∀c ∈ C.
Let us consider the same power network with six buses as in Section
3.4, with generators in nodes 1, 2, and 3, and demand at nodes 4, 5,
250 Security-Constrained Deterministic Unit Commitment
We consider the following nodal net demands over the six time periods:
Time period t 1 2 3 4 5 6
D4 (t) 100 100 100 100 100 100
D5 (t) 0 40 40 40 40 0
D6 (t) 0 0 20 0 30 0
Total demand 100 140 160 140 170 100
1 2 3 4 5 6
1 - - - 100 - 100
2 - - - 100 100 100
3 - - - - 100 100
4 100 100 - - - -
5 - 100 100 - - -
6 100 100 100 - - -
A dash indicates the absence of a line between the two nodes, and Bnm
equals 0.8 for every line.
4.3. Illustrative Example 251
Time period t 1 2 3 4 5 6
p1 (t) 100 140 160 140 170 100
p2 (t) 0 0 0 0 0 0
p3 (t) 0 0 0 0 0 0
Dual at node 1 5 5 5 5 5 5
Dual at node 2 5 5 5 5 5 5
Dual at node 3 5 5 5 5 5 5
Dual at node 4 5 5 5 5 5 5
Dual at node 5 5 5 5 5 5 5
Dual at node 6 5 5 5 5 5 5
Time period t 1 2 3 4 5 6
Unit 1 on on on on on on
Unit 2 off off off off off off
Unit 3 off off off off off off
and the highest power flows occur at t = 5:
1 2 3 4 5 6
1 - - - -97.33 - -72.67
2 - - - -2.67 -19.33 22.00
3 - - - - -20.67 20.67
4 97.33 2.67 - - - -
5 - 19.33 20.67 - - -
6 72.67 -22.00 -20.67 - - -
Observe that none of the transmission capacity constraints are binding.
252 Security-Constrained Deterministic Unit Commitment
Time period t 1 2 3 4 5 6
p1 (t) 100 90 110 90 90 100
p2 (t) 0 50 50 50 50 0
p3 (t) 0 0 0 0 30 0
Dual at node 1 5 5 5 5 5 5
Dual at node 2 5 5 5 5 5 5
Dual at node 3 5 5 5 5 5 5
Dual at node 4 5 5 5 5 5 5
Dual at node 5 5 5 5 5 5 5
Dual at node 6 5 5 5 5 5 5
4.3. Illustrative Example 253
Time period t 1 2 3 4 5 6
Unit 1 on on on on on on
Unit 2 off on on on on off
Unit 3 off off off off on off
1 2 3 4 5 6
1 - - - -64.00 - -26.00
2 - - - -36.00 -16.00 2.00
3 - - - - -24.00 -6.00
4 64.00 36.00 - - - -
5 - 16.00 24.00 - - -
6 26.00 -2.00 6.00 - - -
Comparing these flows with those in Section 3.4.1, we observe in partic-
ular the reduced flows on the two lines out of node 1, and the increased
flow on the line between nodes 2 and 4.
In the event of the contingency, the generation schedule would be:
Time period t 1 2 3 4 5 6
pc1 (t) 100 90 95 90 90 100
pc2 (t) 0 50 65 50 50 0
pc3 (t) 0 0 0 0 30 0
where the power levels in bold are those where pcj (t) differs from pj (t),
and at t = 5, the power flows would be:
254 Security-Constrained Deterministic Unit Commitment
1 2 3 4 5 6
1 - - - -90.00 - -
2 - - - -10.00 -22.50 -17.50
3 - - - - -17.50 -12.50
4 90.00 10.00 - - - -
5 - 22.50 17.50 - - -
6 - 17.50 12.50 - - -
Time period t 1 2 3 4 5 6
p1 (t) 100 90 105 90 90 100
p2 (t) 0 50 55 50 50 0
p3 (t) 0 0 0 0 30 0
Dual at node 1 5 5 15 5 5 5
Dual at node 2 5 5 15 5 5 5
Dual at node 3 5 5 15 5 5 5
Dual at node 4 5 5 15 5 5 5
Dual at node 5 5 5 15 5 5 5
Dual at node 6 5 5 15 5 5 5
with a higher cost of 7600. The power levels in bold are those where
pj (t) differs from pj (t) in Section 4.3.2. The on/off status of the gener-
ators is unchanged from that of Section 4.3.2.
4.3. Illustrative Example 255
Time period t 1 2 3 4 5 6
pc1 (t) 100 90 100 90 90 100
pc2 (t) 0 50 60 50 50 0
pc3 (t) 0 0 0 0 30 0
where the power levels in bold are those where pj (t) differs from pcj (t).
As was the case in Section 4.3.2, we see that the changes in gen-
eration take place at t = 3 for generators 1 and 2. However, there are
additional impacts that are different from those in Section 4.3.2. One
of them is in the nodal energy prices. First, note that the nodal prices
at t = 3 have increased from 5 to 15 in the absence of the contingency
event.
Second, the nodal prices in the event of the contingency are no
longer all equal to zero: the energy price at node 1 for t = 3 is now
-10, indicating that in the event of the contingency, a lower level of
generation for unit 1 at t = 3 would be desirable. Indeed, we saw from
the results in Section 4.3.2 that in the event of the contingency and
with a greater ability to decrease the power output at node 1, the level
of generation for unit 1 at t = 3 (equal to 95) would be lower than here.
This impact of the tighter limit on the maximum decrease in output
from unit 1 in the event of a contingency is also reflected in the dual
variable of the constraint on maximum power output decrease for unit
1 at t = 3: this marginal price is now equal to 10 (whereas it was 0
before).
Another dual quantity that is no longer zero is the marginal price
of transmission capacity from node 1 to node 4 at t = 3: this is now
equal to 10, reflecting the fact that the constraint on the power flow
between nodes 1 and 4 at t = 3 is binding.
5
AC Network-Constrained Unit Commitment
256
5.1. AC Power Flow 257
where Rnm is the resistance of the line, Xnm is its reactance, and j =
√
−1.
The admittance (the inverse of the impedance) is a measure of how
easily the current is allowed to flow. The admittance of the line is
denoted Ynm , and we have
1 Rnm Xnm
Ynm = = Gnm − jBnm = 2 2
−j 2 2 )
. (5.1)
Znm (Rnm + Xnm ) (Rnm + Xnm
(5.2)
X X
qj (t) − Qi (t) =
j∈ΛG
n i∈ΛD
n
X h i
Vn (t)Vm (t) Gnm sin θnm (t) − Bnm cos θnm (t) + Vn2 (t)(Bnm − bshunt
nm )
m∈ΛL
n
(5.3)
∀n, ∀t, and
2
Vn (t)Vm (t) (Gnm cos θnm (t) + Bnm sin θnm (t)) − Gnm Vn2 (t) +
h i 2
Vn (t)Vm (t) Gnm sin θnm (t) − Bnm cos θnm (t) + Vn2 (t)(Bnm − bshunt
nm )
2
≤ S nm , ∀n, ∀m ∈ ΛLn , ∀t (5.4)
Constraints (5.2) enforce active power balance for each node, and
constraints (5.3) do the same for reactive power balance. Constraints
(5.4) enforce transmission capacity limits (in terms of apparent power)
for each line.
and
|Vn (t)| = |Vm (t)| = 1 (in normalized units).
5.3. Integration of AC Network Constraints in UC 259
where Vnmin and Vnmax are respectively the minimum and maximum
voltage magnitude at node n, and qjmin < 0 and qjmax > 0 are the
minimum and maximum reactive power output of generating unit j.
Finally, as in Section 3.1, we set a reference angle:
We use boxes to highlight the constraints and variables that are spe-
cific to the integration of the AC representation. The remainder of the
formulation is from the basic UC model in Section 2.6. For the sake of
simplicity, we do not account for minimum up/down times.
5.4. Recapitulation of the AC Network-Constrained UC Formulation 261
XX
min cj (pj (t)) + cU
j
Ξ
t∈T j∈J
s.t.
θn̂ (t) = 0, ∀t ∈ T
pj (t) ≥ ∀r ∈ R, ∀t ∈ T
P P
j∈ΩG
r i∈ΩD
r
Di (t) + Rr (t),
Vnmin ≤ Vn (t) ≤ Vnmax , ∀n ∈ N, ∀t ∈ T
qjmin vj (t) ≤ qj (t) ≤ qjmax vj (t) ∀j ∈ J, ∀t ∈ T
pj (t) −
P P
j∈ΛG
n i∈ΛD
n
Di (t) =
P h i
m∈ΛL
n
Vn (t)Vm (t) Gnm cos θnm (t) + Bnm sin θnm (t)
where the optimization variables in set Ξ are pj (t), pj (t), vj (t), yj (t),
zj (t), θn (t), qj (t) , and Vn (t) , ∀n ∈ N , ∀j ∈ J, ∀t ∈ T .
262 AC Network-Constrained Unit Commitment
We consider the same power network with six buses as in Section 3.4,
with the same simplifying assumption that there is a single reserve
area, corresponding to the whole network.
Unlike the previous formulations, the formulation in Section 5.4 is
a mixed-integer nonlinear programming problem. We solved our exam-
ple using the KNITRO solver [Byrd et al., 2006] that is available on
NEOS and can handle this formulation for moderately sized instances
of UC. Large-scale instances of the AC network-constrained UC remain
computationally challenging; see Chapter 8 for more details.
Time period t 1 2 3 4 5 6
D4 (t) 100 100 80 140 100 80
D5 (t) 90 100 80 30 90 60
D6 (t) 50 50 40 0 40 50
Total demand 240 250 200 170 230 190
Reserve R(t) 10 10 10 10 10 10
To allow for the increased power flow in apparent power due to ac-
counting for reactive power, we increase the line transmission capacity
limits S nm by 20% compared to the limits in Section 3.4.1:
1 2 3 4 5 6
1 - - - 120 120 120
2 - - - 120 120 120
3 - - - - 120 120
4 120 120 - - - -
5 120 120 120 - - -
6 120 120 120 - - -
5.5. Illustrative Example 263
We maintain the value of the susceptance Bnm = 0.8 for every line
and choose the following values for the additional parameters required
to describe the AC network:
• For every line, we set the conductance Gnm = 0.08 and the shunt
susceptance to zero.
Time period t 1 2 3 4 5 6
Q4 (t) 75.0 75.0 60.0 105.0 75.0 60.0
Q5 (t) 67.5 75.0 60.0 22.5 67.5 45.0
Q6 (t) 37.5 37.5 30.0 0.0 30.0 37.5
Time period t 1 2 3 4 5 6
p1 (t) 170.00 179.81 149.81 119.81 169.81 139.81
p2 (t) 69.73 69.90 50.00 50.00 59.92 50.00
p3 (t) 0 0 0 0 0 0
q1 (t) 150.00 150.00 135.05 65.86 150.00 145.95
q2 (t) 32.71 40.40 16.84 63.53 25.18 -1.55
q3 (t) 0 0 0 0 0 0
The total cost is 10388.5, up 14% from the cost of 9100 in Section
3.4.1. The voltage magnitudes are:
Time period t 1 2 3 4 5 6
Node 1 0.9566 0.9563 0.9941 1.0498 0.9567 0.9838
Node 2 0.9520 0.9522 0.9896 1.0500 0.9518 0.9780
Node 3 0.9513 0.9511 0.9894 1.0493 0.9515 0.9786
Node 4 0.9500 0.9500 0.9886 1.0445 0.9500 0.9776
Node 5 0.9507 0.9504 0.9889 1.0489 0.9508 0.9785
Node 6 0.9519 0.9518 0.9900 1.0497 0.9522 0.9787
Time period t 1 2 3 4 5 6
Unit 1 on on on on on on
Unit 2 on on on on on on
Unit 3 off off off off off off
Let us now look at the power flows. For instance, at t = 1 the active
power flows are as follows:
We see that the flows of active power are nearly identical to those in
Section 3.4.1. The small differences are negligible; the largest discrep-
ancy is observed on the line between 1 and 4 where the flow was 66.67
with the DC representation, and here the power injected at node 1 is
66.65, while the power that arrives at node 4 is 66.76. These discrep-
ancies are all less than 0.2% and essentially insignificant.
Because we are using the AC description for the network, we obtain
information about the reactive power flows as well. For t = 1 they are
as follows:
Note that, unlike for the active flows, the reactive flows are not neces-
sarily symmetric, i.e., the flow of reactive power from node i to node j
is not necessarily the same as that from node j to node i.
Consider for instance the line between nodes 1 and 4: there is a
injection of 57.72 units at node 1, but only 56.67 units, or 1.8% less,
arrive at node 4. Similarly, 51.25 units are injected at node 1 into the
line connecting it to node 5, but only 50.44 units arrive at node 5,
nearly 1.6% less.
These differences in the reactive flows between two nodes reflect the
transmission losses on the respective lines.
266 AC Network-Constrained Unit Commitment
Time period t 1 2 3 4 5 6
p1 (t) 170.00 199.68 199.74 169.74 199.68 189.77
p2 (t) 69.73 50.00 0 0 0 0
p3 (t) 0 0 0 0 30.00 0
q1 (t) 150.00 150.00 123.66 97.47 150.00 115.86
q2 (t) 3.73 11.64 0 0 0 0
q3 (t) 0 0 0 0 -3.33 0
The total cost is 9088.9, a decrease of 12.5% compared to the cost in
Section 5.5.1.
The voltage magnitudes are:
Time period t 1 2 3 4 5 6
Node 1 0.9570 0.9567 0.9554 1.0129 0.9568 0.9553
Node 2 0.9511 0.9514 0.9510 1.0096 0.9513 0.9511
Node 3 0.9518 0.9515 0.9513 1.0114 0.9514 0.9515
Node 4 0.9500 0.9500 0.9500 1.0059 0.9500 0.9500
Node 5 0.9510 0.9506 0.9505 1.0107 0.9508 0.9512
Node 6 0.9521 0.9520 0.9517 1.0115 0.9522 0.9514
Time period t 1 2 3 4 5 6
Unit 1 on on on on on on
Unit 2 on on off off off off
Unit 3 off off off off on off
We see that the commitment of the units changes noticeably from that
in Section 5.5.1; while the commitment of unit 1 remains unchanged,
5.5. Illustrative Example 267
unit 2 is now committed for only the first two time periods, and unit
3 is brought on for t = 5 only.
If we look at the reactive power flows for t = 1, we have:
We see that the differences have noticeably increased with the in-
crease in the shunt susceptance. If we again consider the line between
nodes 1 and 4, we see 58.94 units injected at node 1, and 61.48 units
arriving at node 4, an increase of 4.3%.
6
Stochastic Unit Commitment
268
6.1. Two-Stage Stochastic Optimization 269
Reserves are scheduled in the first stage so that the system will be
able to accommodate any uncertainty realization, i.e., any operating
scenario.
The philosophy of this two-stage formulation is that in the first
stage, scheduling decisions are made using only the information that is
270 Stochastic Unit Commitment
Let Ω denote the set of scenarios, ω be the index for the scenarios,
and πω be the probability of occurrence of scenario ω. We assume that
P
ω∈Ω πω = 1.
Since the second-stage information is scenario-dependent, the opti-
mization model minimizes the deterministic cost of the first-stage de-
cisions (including the cost of the reserves scheduled) plus the expected
cost of the second-stage decisions (including the cost of the reserve
deployment actually called upon according to each scenario). For sim-
plicity, we consider the production and startup costs of all generating
units to be linear and constant, respectively, and the cost of deploying
6.3. First-Stage Constraints 271
where rjωU (t) and r D (t) are respectively the up-reserve and down-
jω
reserve deployed by generating unit j during time period t under sce-
nario ω.
The first-stage constraints are a subset of those from the basic formu-
lation in Section 2.6. We include the logical constraints (2.5) and the
generation limits (2.11), where in the latter we omit the reserve-related
variable pj (t). We also include constraint (2.2) to ensure that the total
amount of generation in time period t meets the expected net demand
Dexp (t) for that period:
X
pj (t) = Dexp (t), ∀t ∈ T. (6.2)
j∈J
For the second stage, the first set of constraints states that the scenario-
dependent amount produced by unit j at time t under scenario ω
is equal to the amount scheduled in the first stage adjusted by the
amounts of up-reserve and down-reserve provided by unit j under sce-
nario ω:
U D
pjω (t) = pj (t) + rjω (t) − rjω (t), ∀j ∈ J, ∀t ∈ T, ∀ω ∈ Ω (6.3)
272 Stochastic Unit Commitment
where pjω (t) is the actual output of unit j at time t under scenario ω.
The next constraints are versions of constraints (2.2), (2.7), (2.8),
and (2.11) (without the variable pj (t)), all of them indexed by ω:
X
pjω (t) = Dω (t), ∀t ∈ T, ∀ω ∈ Ω (6.4)
j∈J
The final constraints link the commitment decisions and the various
operating conditions:
U
0 ≤ rjω (t) ≤ MjU vj (t), ∀j ∈ J, ∀t ∈ T, ∀ω ∈ Ω (6.8)
D
0≤ rjω (t) ≤ MjD vj (t), ∀j ∈ J, ∀t ∈ T, ∀ω ∈ Ω (6.9)
where MjU and MjD are respectively the maximum up-reserve and the
maximum down-reserve provided by generating unit j.
XX
min cj pj (t) + cU
j yj (t)+
Ξ
t∈T j∈J
P P P U (t) − r D (t)
πω cj rjω
ω∈Ω t∈T j∈J jω
s.t.
vj (t − 1) − vj (t) + yj (t) − zj (t) = 0, ∀j ∈ J, ∀t ∈ T
P j vj (t) ≤ pj (t) ≤ P j vj (t), ∀j ∈ J, ∀t ∈ T
Dexp (t), ∀t ∈ T
P
j∈J pj (t) =
U (t) − r D (t)
pjω (t) = pj (t) + rjω ∀j ∈ J, ∀t ∈ T, ∀ω ∈ Ω
jω
∀t ∈ T, ∀ω ∈ Ω
P
j∈J pjω (t) = Dω (t),
pjω (t) − pjω (t − 1) ≤ RjU vj (t − 1) + SjU yj (t), ∀j ∈ J,∀t ∈ T, ∀ω ∈ Ω
pjω (t − 1) − pjω (t) ≤ RjD vj (t) + SjD zj (t), ∀j ∈ J, ∀t ∈ T, ∀ω ∈ Ω
P j vj (t) ≤ pjω (t) ≤ P j vj (t), ∀j ∈ J, ∀t ∈ T, ∀ω ∈ Ω
U (t) ≤ M U v (t)
0 ≤ rjω ∀j ∈ J, ∀t ∈ T, ∀ω ∈ Ω
j j
D (t) ≤ M D v (t)
0 ≤ rjω ∀j ∈ J, ∀t ∈ T, ∀ω ∈ Ω
j j
where the optimization variables in set Ξ are pj (t), vj (t), yj (t), zj (t),
D (t) , r U (t) , ∀j ∈ J, ∀t ∈ T , ∀ω ∈ Ω .
pjω (t) , rjω jω
Time period t 1 2 3 4 5 6
Dexp (t) 220 250 200 170 230 190
Time period t 1 2 3 4 5 6
First-stage
p1 (t) 160 175 145 118 166 125
p2 (t) 60 75 55 52 64 65
p3 (t) 0 0 0 0 0 0
Scenario 1
p11 (t) 148 160 130 103 151 121
p21 (t) 50 65 50 50 56 50
p31 (t) 0 0 0 0 0 0
Scenario 2
p12 (t) 170 180 150 120 170 140
p22 (t) 50 70 50 50 60 50
p32 (t) 0 0 0 0 0 0
Scenario 3
p13 (t) 170 188 158 128 178 150
p23 (t) 61 75 52 50 65 50
p33 (t) 0 0 0 0 0 0
6.6. Illustrative Example 275
The total cost is 10130.75, and the on/off status of the generators
is:
Time period t 1 2 3 4 5 6
Unit 1 on on on on on on
Unit 2 on on on on on on
Unit 3 off off off off off off
Time period t 1 2 3 4 5 6
First-stage
p1 (t) 163 170 140 103 166 136
p2 (t) 57 80 60 67 64 54
p3 (t) 0 0 0 0 0 0
Time period t 1 2 3 4 5 6
First-stage
p1 (t) 163 175 145 118 166 136
p2 (t) 57 75 55 52 64 54
p3 (t) 0 0 0 0 0 0
Scenario 3
p13 (t) 188 200 170 143 191 161
p23 (t) 65 88 60 53 74 58
p33 (t) 0 0 0 0 0 0
7
Robust Unit Commitment
277
278 Robust Unit Commitment
First level The operator schedules the production, i.e., commits the
units, so as to minimize the generation cost. This is similar to the
first stage in the stochastic optimization model.
Second level For every schedule feasible for the first level, the net
demand realizes in the worst possible manner within the uncer-
tainty set, i.e., the production cost is maximized.
Third level Given the schedule and the worst-case demand realiza-
tion, the operator dispatches the committed units so as to mini-
mize the production cost.
Note that the robust UC takes into account all possible future de-
mands represented in the uncertainty set. The optimal robust UC so-
lution therefore will be feasible for any realization of the uncertainty
in the second level. This is in contrast with the basic formulation in
Chapter 2 that guarantees feasibility only for a single set of demands,
and the stochastic optimization formulation in Chapter 6 that considers
only a finite set of preselected scenarios.
where, as in Section 6.3, Dexp (t) is the expected net demand. The
rationale behind this definition follows from the fact that our main
concern is to schedule enough capacity to meet demand, so we want to
be protected against unexpected increases in demand. Therefore, the
numerator in (7.2) measures the deviation from expected demand only
if d(t) lies in the interval [Dexp (t), D(t)]. Except for the presence of the
max function, (7.2) is a linear constraint on the variable d(t), and if
required, the max function can be linearized using binary variables.
The concept of a budget of uncertainty has an elegant practical
interpretation. The value of Γ can be chosen anywhere between 0 and
|T |. The value 0 corresponds to the realized demand d(t) being equal to
Dexp (t), i.e., no deviation is allowed (and hence there is no uncertainty).
At the other extreme, the value |T | corresponds to requiring protection
for the maximum possible deviation of d(t), i.e., d(t) is equal to D(t).
The higher the value of Γ, the higher the robust protection.
In other words, for smaller values of Γ, the realized demand d(t)
cannot deviate too much from Dexp , and hence there is less uncertainty
in d(t), As Γ increases, the range of values allowed for d(t) increases,
and so does the uncertainty.
• Ξ2 = {d(t), ∀t ∈ T }
• Ξ3 = {pj (t), ∀j ∈ J, ∀t ∈ T }
The structure of this objective is aligned with the outline of the robust
formulation in Section 7.1: the commitment of the units is determined
using the variables in Ξ1 with the objective that the total cost is mini-
mized. The total cost is in two parts. The first part is the startup cost
(which we assume to be constant for simplicity), and the second part
is the cost of production.
The cost of production, given a feasible commitment, is maximized
over the demand variables in Ξ2 . This is where the demand is realized
in the worst possible manner while being restricted to lie in the uncer-
tainty set defined in Section 7.2. However, for each realization of the
demand, the cost of dispatch is minimized by the operator who assigns
the amount of power produced by each unit via the variables in Ξ3 ; the
constraints ensure that only units scheduled to be on can be used by
the operator.
The first-level constraints are the logical constraints (2.5) that ensure
consistency of the values of the binary variables with respect to the
decisions to start up or shut down units.
For the third level, the constraints are the fundamental operational
requirements: balance of supply and demand (2.2), limits on ramping
generation up (2.7) or down (2.8), and generation limits as in (2.11) but
omitting the variable pj (t). For simplicity, we do not account explicitly
for dispatching reserves or for uptime and downtime requirements.
We use boxes to highlight the parts of the formulation that are spe-
cific to the robust approach. As noted earlier, reserve requirements, as
well as uptime and downtime limitations, are omitted for the sake of
simplicity.
P P U P P
min t∈T j∈J cj yj (t) + max min t∈T j∈J cj pj (t)
Ξ1 Ξ2 Ξ3
s.t.
vj (t − 1) − vj (t) + yj (t) − zj (t) = 0, ∀j ∈ J, ∀t ∈ T
s.t.
D(t) ≤ d(t) ≤ D(t), ∀t ∈ T
max{0,d(t)−Dexp (t)}
≤ Γ,
P
t∈T D(t)−Dexp (t)
where the optimization variable sets for the three levels are respectively:
• Ξ2 = {d(t), ∀t ∈ T }
• Ξ3 = {pj (t), ∀j ∈ J, ∀t ∈ T }
Time period t 1 2 3
D(t) 130 190 150
Dexp (t) 170 230 190
D(t) 210 270 230
We further assume that d(0) = 200, and that the ramping limits on
the net demand are RdU = 50 and RdD = 50.
For this initial case, we set Γ = 2.0 and solve the model in Section
7.7. To follow the approach described in Section 8.2, we need to enu-
merate all the combinations of the commitment decisions v, y, and z.
Because the first-level constraints (2.5) completely determine the val-
ues of yj (t) and zj (t) given the values of the vj (t) variables, it suffices
to enumerate the possible values of vj (t) for j = 1, 2 and t = 1, 2, 3.
7.8. Illustrative Example 283
Further, note that because p1 (0) = 120 and S1D = 80, it follows
that v1 (1) = 1 must hold. This leaves us with 25 = 32 combinations
to enumerate. When we solve the optimization problem (8.2) for each
of these combinations, we find that most of them have no feasible so-
lution, i.e., the binary variables are set to combinations for which it is
impossible to satisfy all the constraints. In many of these cases, there is
simply not enough generation capacity committed to satisfy demand.
The following table gives the optimal value (maximum cost) for the
nine feasible combinations:
We deduce that the optimal solution to the robust model has a to-
tal cost of 3100 and corresponds to the following on/off status of the
generators:
Time period t 1 2 3
Unit 1 on on on
Unit 2 off off off
Time period t 1 2 3
p1 (t) 170 220 230
p2 (t) 0 0 0
Γ Optimal
(maximum) cost
0 2900
0.5 3000
1.0 3100
1.5 3100
2.0 3100
2.5 3100
3.0 3100
The reader may have already observed that the values of y(t) and z(t)
can be determined from the values of v(t). This observation can be
used to reduce the number of binary variables. This, however, is not
computationally effective, as shown in Ostrowski et al. [2012].
285
286 Computational Aspects
The formulations in Sections 2.6, 3.3, and 4.2 are mixed-integer linear
optimization problems that can be solved using state-of-the-art soft-
ware. This is the technology that is commonly used nowadays to solve
UC in various jurisdictions on a day-ahead basis.
The formulation in Section 5.4 is also mixed-integer but with non-
linear constraints. As mentioned in the introduction to Chapter 5 and in
Section 8.1.2, mixed-integer nonlinear optimization is in general very
challenging. For our small example, a state-of-the-art mixed-integer
nonlinear optimization solver was adequate.
The formulation in Section 6.5 is a mixed-integer linear optimiza-
tion problem, but its solution depends on the number of scenarios |Ω|.
290 Computational Aspects
s.t.
X
d(t) − pj (t) = 0, ∀t ∈ T
j∈J
s.t.
D(t) ≤ d(t) ≤ D(t), ∀t ∈ T
X max{0, d(t) − D exp (t)}
≤ Γ, ∀t ∈ T
t∈T
D(t) − Dexp (t)
d(t) − d(t − 1) ≤ RdU , ∀t ∈ T
d(t − 1) − d(t) ≤ RdU , ∀t ∈ T
s.t.
vj (t − 1) − vj (t) + yj (t) − zj (t) = 0, ∀j ∈ J, ∀t ∈ T
pj (t) and d(t) are optimal for augmented second-level problem
We carry out full enumeration of the possible combinations of
the binary variables, and for each combination we solve the aug-
mented second-level problem as above.
s.t.
X
d(t) − pj (t) = 0, ∀t ∈ T ← β(t)
j∈J
Note that the dual variable β(t) can be positive or negative, while the
variables λi must be non-negative.
292 Computational Aspects
s.t.
cj − β(t) + λ2 (j, t) − λ3 (j, t) − λ4 (j, t) + λ5 (j, t)
− λ2 (j, t + 1) + λ3 (j, t + 1) = 0, ∀j ∈ J, t = 1, . . . , T − 1,
cj − β(T ) + λ2 (j, T ) − λ3 (j, T ) − λ4 (j, T ) + λ5 (j, T ) = 0, ∀j ∈ J
λi (j, t) ≥ 0, i = 2, 3, 4, 5,
β(t) free
Using the dual, there are two ways to obtain optimality conditions
for (8.1):
Primal feasibility:
X
d(t) − pj (t) ≤ 0, ∀t ∈ T
j∈J
pj (t) − pj (t − 1) − K U (j, t) ≤ 0, ∀j ∈ J, ∀t ∈ T
D
pj (t − 1) − pj (t) − K (j, t) ≤ 0, ∀j ∈ J, ∀t ∈ T
LB
K (j, t) − pj (t) ≤ 0, ∀j ∈ J, ∀t ∈ T
UB
pj (t) − K (j, t) ≤ 0, ∀j ∈ J, ∀t ∈ T
Dual feasibility:
No duality gap:
XX X X
cj pj (t) = pj (0)(−λ2 (j, 1) + λ3 (j, 1)) + β(t)d(t)
t∈T j∈J j∈J t∈T
XXh
+ −λ2 (j, t)K U (j, t) − λ3 (j, t)K D (j, t) + λ4 (j, t)K LB (j, t)
t∈T j∈J
i
−λ5 (j, t)K UB (j, t)
s.t.
D(t) ≤ d(t) ≤ D(t), ∀t ∈ T
X max{0, d(t) − D exp (t)}
≤ Γ, ∀t ∈ T
t∈T
D(t) − Dexp (t)
d(t) − d(t − 1) ≤ RdU , ∀t ∈ T
d(t − 1) − d(t) ≤ RdU , ∀t ∈ T
X
d(t) − pj (t) ≤ 0, ∀t ∈ T
j∈J
pj (t) − pj (t − 1) − K U (j, t) ≤ 0, ∀j ∈ J, ∀t ∈ T
pj (t − 1) − pj (t) − K D (j, t) ≤ 0, ∀j ∈ J, ∀t ∈ T
K LB (j, t) − pj (t) ≤ 0, ∀j ∈ J, ∀t ∈ T
pj (t) − K UB (j, t) ≤ 0, ∀j ∈ J, ∀t ∈ T
cj − β(t) + λ2 (j, t) − λ3 (j, t) − λ4 (j, t) + λ5 (j, t) − λ2 (j, t + 1)
+ λ3 (j, t + 1) = 0,
∀j ∈ J, t = 1, . . . , T − 1,
cj − β(T ) + λ2 (j, T ) − λ3 (j, T ) − λ4 (j, T ) + λ5 (j, T ) = 0, ∀j ∈ J
λi (j, t) ≥ 0, i = 2, 3, 4, 5
XX X X
cj pj (t) = pj (0)(−λ2 (j, 1) + λ3 (j, 1)) + β(t)d(t)
t∈T j∈J j∈J t∈T
XXh
+ −λ2 (j, t)K U (j, t) − λ3 (j, t)K D (j, t) + λ4 (j, t)K LB (j, t)
t∈T j∈J
i
−λ5 (j, t)K UB (j, t)
where the optimization variables are Ξ̃2 = {d(t), pj (t), β(t), λi (j, t), i =
2, 3, 4, 5, ∀j ∈ J, ∀t ∈ T }.
The resulting problem is not a linear optimization problem because
of the presence of the |T | bilinear terms d(t)β(t). However, it can be
solved using a nonlinear optimization solver.
9
Conclusions and Directions for Future Research
295
Appendices
A
Derivation of the Dual of the Third-Level
Problem in Section 8.2.1
XX
min cj pj (t)
pj (t)
t∈T j∈J
s.t.
X
d(t) − pj (t) = 0, ∀t ∈ T ← β(t)
j∈J
where β(t) and λi are the dual variables, or Lagrange multipliers, as-
sociated with each constraint, β(t) is unconstrained, the λi are non-
negative, and the following quantities are constant for fixed j ∈ J and
297
298 Derivation of the Dual of the Third-Level Problem in Section 8.2.1
t ∈ T:
K U (j, t) = RjU vj (t − 1) + SjU yj (t),
K D (j, t) = RjD vj (t) + SjD zj (t),
K LB (j, t) = P j vj (t), and
UB
K (j, t) = P j vj (t).
We start by writing down the Lagrangian function for this problem:
XX
L(pj (t), β(t), λi (j, t)) = cj pj (t) (A.1)
t∈T j∈J
X X
+ β(t) d(t) − pj (t)
t∈T j∈J
XX h i
+ λ2 (j, t) pj (t) − pj (t − 1) − K U (j, t)
t∈T j∈J
XX h i
+ λ3 (j, t) pj (t − 1) − pj (t) − K D (j, t)
t∈T j∈J
XX h i
+ λ4 (j, t) K LB (j, t) − pj (t)
t∈T j∈J
XX h i
+ λ5 (j, t) pj (t) − K UB (j, t)
t∈T j∈J
The dual is:
max min L(pj (t), β(t), λi (j, t)) (A.2)
λi (j,t)≥0,β(t) pj (t)
Xh
(−λ2 (j, 1) + λ3 (j, 1))pj (0)
j∈J
T
X i
+ (−λ2 (j, t)pj (t − 1) + λ3 (j, t))pj (t − 1)
t=2
X
pj (0)(−λ2 (j, 1) + λ3 (j, 1)) (A.4)
j∈J
−1
XhTX i
+ (−λ2 (j, t + 1) + λ3 (j, t + 1))pj (t)
j∈J t=1
Noting that the first term of (A.4) is constant with respect to the
variables pj (t), let us substitute (A.4) for the second grouping in (A.3)
to obtain the following expression for the Lagrangian:
Hence,
t∈T j∈J
+λ4 (j, t)K LB (j, t) − λ5 (j, t)K UB (j, t)
s.t.
cj − β(t) + λ2 (j, t) − λ3 (j, t) − λ4 (j, t) + λ5 (j, t)
− λ2 (j, t + 1) + λ3 (j, t + 1) = 0, ∀j ∈ J, t = 1, . . . , T − 1,
cj − β(T ) + λ2 (j, T ) − λ3 (j, T ) − λ4 (j, T ) + λ5 (j, T ) = 0, ∀j ∈ J
λi (j, t) ≥ 0, i = 2, 3, 4, 5,
β(t) free
B
Notation
B.1 Sets
J Generating units.
T Time periods.
Ξ Optimization variables.
ΛG
n Generating units located at node n.
ΛD
n Demands located at node n.
R Reserve areas.
ΩG
r Generating units in reserve area r.
ΩD
r Demands in reserve area r.
Ω Scenarios.
303
304 Notation
B.2 Constants
cU
j (t) Startup cost of unit j in time period t ($).
Kjk Cost of turning on unit j after it has been inactive for k time
periods ($).
bshunt
nm Half of the shunt susceptance of line nm.
ω Scenario index.
B.3 Variables
θnm (t) Difference between the voltage angles at the endpoints of line
nm.
pjω (t) Active power produced by unit j in time period t under scenario
ω (MW).
U (t) Amount of up-reserve deployed by unit j in time period t under
rjω
scenario ω (MW).
D (t) Amount of down-reserve deployed by unit j in time period t
rjω
under scenario ω (MW).
308
References 309