OPF, UC
OPF, UC
Market Mechanism
Course Code: EEE 465
Credit: 3.00
Optimal Power Flow
8.1 INTRODUCTION
❑Economic dispatch (ED) is the calculation that finds the lowest-cost generation
dispatch for a set of generators that is constrained within the individual generator
limits and results in a total generation that equals the total load plus losses.
❑ED calculation ignores the specific details of the network that the generators are
connected to and lumps all the network effects into the losses and total load
demand.
❑ED calculation ignores the effect that the dispatch of generation has on the loading
of transmission branches or the effect it has on bus voltages.
❑The total losses of the power system are simply part of the power flow calculation
and are reflected in the loading of the generation on the reference bus—thus, there
is no need to specifically calculate the losses since they are inherently a part of the
power flow.
❑The result is the generation dispatch representing the minimum $/h total generation
cost and that also solves the power flow at that optimum.
8.2 THE ECONOMIC DISPATCH FORMULATION (Revisited)
In the ED calculation, we solve the following problem:
1. Objective function = total generation cost in $/h.
2. Each generator is within its minimum and maximum limits.
3. Sum of all generator outputs = total load + losses.
8.2 THE ECONOMIC DISPATCH FORMULATION (Revisited)
We can write the ED problem as –
(the u vector appearing in the f (Pgen , u) now contains the parameters of the generator cost
functions) and is subject to –
8.3 THE OPTIMAL POWER FLOW CALCULATION COMBINING
ECONOMIC DISPATCH AND THE POWER FLOW
In the OPF calculation, we solve the following more complex problem:
❖ Objective function = total generation cost in $/h (same as ED)
❑ This introduces the voltage magnitude and phase angle of each bus, except for the
reference bus, as unknowns into the problem.
❑ This also adds 𝟐 𝑵𝒃𝒖𝒔 − 𝟏 new equality constraints into the problem representing the
𝑁𝑏𝑢𝑠 − 1 complex Y Matrix equations for all buses except the reference bus.
➢The power flow itself results in a set of generator outputs that equals
the load plus losses as required.
➢Do not have to explicitly calculate the losses or the generator incremental
losses as this is all incorporated in the AC power flow equations.
subject to
❑Where, the vector of parameters u now contains –
❑The great advantage to this formulation is the fact that in addition to a very accurate
calculation of losses inside the OPF, other transmission system constraints can be
added to the set inequality constraints.
❑For example,
❑For each transmission line or transformer,
1. MW flow or MVA flow is less than or equal to the branch’s MW flow or MVA flow
limit:
or,
The result is a dispatch of generation that does not overload the transmission line. In
addition, each bus voltage magnitude in the power system can be forced to be within
limits:
2. For each bus in the network,
8.4 OPTIMAL POWER FLOW USING THE DC POWER FLOW
❑Formulate the OPF with the transmission system constraints represented using a DC
power flow.
❑The DC power flow itself, it gives a good approximation to the AC power flow and is
much faster and easier to set up and solve.
▪ This formulation includes a term at the right-hand end that is there as an equality
constraint to force the reference-bus phase angle to 0 (without this
constraint the OPF will not solve properly) .
▪ The generator inequality constraints can then be added so that we obtain –
8.5 EXAMPLE 8A: SOLUTION OF THE DC POWER FLOW OPF
The expression for the Lagrangian with the Power Flow Equations written out becomes
✓ Note that normally we shall use an inequality constraint for line flow limits,
but in this introduction we will use the equality constraint.
✓ The added constraint is –
The set of linear equations is shown as follows –
The lambda values are
Because the line flow on line 1–2 is at its limit, the lambda values are different, the LMP
values for the buses are equal to these lambda values. Finally, the bus phase angles and power
flows are -
8.9 SOLUTION OF THE ACOPF
To solve the ACOPF, the bus power equations require a real and an
imaginary part to take care of the real power and reactive power.
3.3 Characteristic features of OPF
❖ The main features of an OPF is its ability to include the detailed
network configuration and bus-wise demand balance for both active
and reactive power, within the optimization framework which, thereby,
enables an exact representation of incremental losses.
❖ The OPF can include many operating constraints and model other issues
also. Specifically- limits on reactive power generation in addition to real
power generation, power flow limits (in either MW or MVA) on the
transmission lines and limits on the bus voltages ensure that the system
is operated in a secure manner.
3.3.1 OPF Applications
One of the main features of the OPF is that it is a flexible analytical tool, which allows
the use of different objective functions to solve different problems. The objective
functions commonly used for operations and planning studies are as follows –
❑ The operator needs to take decisions on how to commit or de-commit (i.e. keep
running or shut down) its available units over the week, or over the next day.
❑ The input to the operator is the demand forecast for the next week or next day, as
the case may be, aggregated for the whole system.
❑ In the same way, that the ELD problem is formulated, the operator seeks to
minimize its system costs over the planning horizon in a UC problem, while
meeting the forecast demand to decide upon the unit up/down status for every
hour.
4. UNIT COMMITMENT (UC)
❑Planning activity is essential as the system load varies over a day or even
over a weekly period and hence it is not economical to keep all the units
on-line for the entire duration.
❑A proper schedule for starting up, or shutting down the units can save
costs significantly.
❑UC problems are much more complex to solve, compared to the ELD
problem discussed earlier, due to the presence of binary decision variables
on unit status (on/off).
❑Depending upon the need of the system and computational facilities, the
utilities choose to use UC models that suit their requirements.
4.1.1 Economic Dispatch vs. Unit Commitment
❑ The essential difference between the UC and ED problem.
❑ This will permit finding the minimum operating cost for that subset, but it does not
establish which of the subsets is in fact the one that will give minimum cost over a
period of time.
If we are to supply a load of 550 MW, what unit or combination of units should be used to
supply this load most economically?
Example 4A
❑ To solve this problem, simply try all combinations of the three (03) units.
❑ Some combinations will be infeasible if the sum of all maximum MW for the units
committed is less than the load or if the sum of all minimum MW for the units
committed is greater than the load.
❑ For each feasible combination, the units will be dispatched using the techniques of ED.
The results are presented in Table 4.1.
Example 4A
❑Note that the least expensive way to supply the generation is not with all
three units running or even any combination involving two units.
❑If another unit is committed, both unit 1 and the other unit will be loaded
further from their best efficiency points such that the net cost is greater
than unit 1 alone.
Example 4B
❑ Suppose the load follows a simple “peak-valley” pattern as shown in Figure 4.1.
❑ If the operation of the system is to be optimized, units must be shut down as the load
goes down and then recommitted as it goes back up.
❑ We would like to know which units to drop and when. One approach to this solution is
demonstrated in Example 4B, where a simple priority-list scheme is developed.
Example 4B
Question: Suppose we wish to know which units to drop as a function of system load. Let
the units and fuel costs be the same as in Example 4A, with the load varying from a peak of
1200 MW to a valley of 500 MW.
Solution:
❖ To obtain a “shutdown rule,” simply use a brute-force technique wherein all
combinations of units will be tried (as in Example 4A) for each load value taken in steps
of 50 MW from 1200 to 500.
❖ The results of applying this brute-force technique are given in Table 4.2. Our shutdown
rule is quite simple.
4.1 DC: The Basic Mode
4.1 DC: The Basic Mode
▪ The operator's objective function, while solving the UC problem still remains the
same, i.e., to minimize the system costs.
▪ However, due to the longer time-scale of the problem, the total system cost will be
affected by the start-up and shut down decisions of generating units, effected within
the planning period. These are explained below –
1) Fuel Cost: There have been two different approaches to represent fuel
costs in UC models. The first and the most common approach has been
to use a cost characteristic derived from the heat-rate characteristics and
represented by a polynomial function, which is usually quadratic, and
can be written as follows,
The other approach has been to represent the generator cost as a constant, which
is derived from the generator's average full load cost.
2) Start Up Cost: This component appears in the UC objective function to take into
account the cost incurred during a generator start-up operation. This is often modeled as
a function of the time for which the unit was off-line.
3) Shut Down Cost: Usually this component of cost is not considered in UC models
since it is not very significant compared to other costs. However, a constant cost
representation has been used in, and is included when the unit undergoes a shut down.
The composite objective function for the UC problem can be constructed using the above
as follows:
❑ UST, USD and W are integer decision variables denoting the status of the unit at
hour K.
❑ W denotes the unit status (1 = running, 0 = off);
❑ UST denotes the unit start-up state (1 = start-up, 0 = no start-up) and
❑ USD denotes the unit shut down state (1 = shut down, 0 = no shut down).
4.1.2 Constraints in Unit Commitment
➢ This constraint ensures that the operator has scheduled enough capacity for a particular hour so that the
demand at that hour is met.
➢ This can also include any pre-decided import or export contracts with other utilities, and a certain amount
of reserve capacity. A typical demand-supply balance constraint is given as follows –
➢ The term RESV denotes the spinning reserve in the system, which is a reserve available to the
operator from among its spinning units, i.e. from the generators already running.
➢ Therefore, this reserve is available almost instantaneously to the operator in case of need.
➢ The operator has the very important responsibility of maintaining adequate spinning reserves
in the system, not only on a total-MW basis, but he also needs to take care of the location aspect
of this reserve, taking into account transmission capacities available in the system.
4.1.2 Constraints in Unit Commitment
➢ The operator generally uses his experience or certain rules for determining this reserve to
be maintained in his system.
➢ The RESV component could typically comprise a base component, a fraction of the load
requirement and a fraction of the high operating limit of the largest on-line unit.
✓ These constraints ensure the minimum number of hours a unit must be on, before it can
be shut down (minimum up-time) or,
✓ The minimum number of hours a unit must be off-line before it can be brought on-line
again (minimum down-time).
❑ MUT is the minimum time in hours the unit should be running before shut down;
❑ MDT is the minimum time in hours the unit should remain shut down before start-up,
4.2.1 Multi-Area UC
UC has been adapted in the context of multi-area systems where individual utilities are
interconnected by tie lines and the dispatch is carried out jointly.
❖ The fuel co-ordination problem has been considered over a time horizon of one-month, for
three types of units (a) oil-fired (b) fuel constrained LNG/LPG fired and (c) pumped
storage hydro units.
4.2 UC: Additional Issues
RUP and RON are the ramp-up and ramp-down constants of a unit.
✓ The two regions are separated by transmission tie lines that can together transfer a
maximum of 550 MW in either direction.
✓ What can we say about the allocation of spinning reserve in this system?
With the exception of unit 4, the loss of any unit on this system can be covered by the spinning reserve on
the remaining units. Unit 4 presents a problem, however. If unit 4 were to be lost and unit 5 were to be run
to its maximum of 600MW, the eastern region would still need 590MW to cover the load in that region.
The 590MW would have to be transmitted over the tie lines from the western region, which can easily
supply 590MW from its reserves. However, the tie capacity of only 550MW limits the transfer. Therefore,
the loss of unit 4 cannot be covered even though the entire system has ample reserves. The only solution
to this problem is to commit more units to operate in the eastern region.