# A Comparative Study of Three Different Mathematical Methods for Solving the Unit Commitment

Authors: Mehmet Kurban; Ümmühan Başaran Filik
Journal: Mathematical Problems in Engineering
 (2009)

---

## Abstract

The unit commitment (UC) problem which is an important subject in power system engineering is solved by using Lagragian relaxation (LR), penalty function (PF), and augmented Lagrangian penalty function (ALPF) methods due to their higher solution quality and faster computational time than metaheuristic approaches. This problem is considered to be a nonlinear programming-(NP-) hard problem because it is nonlinear, mixed-integer, and nonconvex. These three methods used for solving the problem are based on dual optimization techniques. ALPF method which combines the algorithmic aspects of both LR and PF methods is firstly used for solving the UC problem. These methods are compared to each other based on feasible schedule for each stage, feasible cost, dual cost, duality gap, duration time, and number of iterations. The numerical results show that the ALPF method gives the best duality gap, feasible and dual cost instead of worse duration time and the number of iterations. The four-unit Tuncbilek thermal plant which is located in Kutahya region in Turkey is chosen as a test system in this study. The programs used for all the analyses are coded and implemented using general algebraic modeling system (GAMS).


---

## Body

## 1. Introduction

The UC problem  decides to which electricity generation units should be running in each stage to satisfy a predictably varying demand for electricity. The solution of the UC problem is a complex optimization problem, and UC problem can be considered as two linked optimization problems: the first is a combinatorial optimization problem, and the second is a nonlinear programming problem. Due to important startup and shutdown costs, the problem is in general very hard to solve, as it is not possible to perform a separate optimization for each time interval. The exact solution of the UC can be obtained by a complete enumeration of all feasible combination of generating units, which could be very huge number [1, 2].The problem is structured binary variables making it clearly nonconvex. The binary variables cause a great deal of trouble and reason for the difficulty in solving the UC. Load balance constraint and spinning reserve constraint are coupling constraints across the unit so that one unit affects what will happen on other units if the coupling constraints are met. There have been various methods which are based on mathematical programming and metaheuristic-based for solving the thermal and hydrothermal UC problem in literature. They are based on mathematical programming and metaheuristic based approaches. These major methods are priority list [3–5], dynamic programming (DP) [6], mixed-integer programming [7–9], heuristic unit  [10], simulated annealing [11–13], tabu search [14, 15], evolutionary programming [16, 17], constraint logic programming [18], genetic algorithms [19–23], LR [24–32], interior point method [33], memetic algorithm [34], and neural network [35–37].The LR which is one of the most successful approaches for UC is dual optimization technique. This method obtains an appropriate condition to generate feasible solution for UC. One of the most obvious advantages of the LR method is its quantitative measure of the solution quality since the cost of the dual function is a lower bound on the cost of the primal problem [29]. It is seen that LR methods give better solutions than the metaheuristic approaches mentioned above due to both duration time and feasible solution [24–32].The LR, PF, and ALPF methods which present the solving approach based on dual optimization technique are used for solving the UC problem known as an important and hard-solving problem in power system engineering, and the results from the programs coded and implemented using GAMS for these methods are compared to each other. The UC problem for the four-unit Tuncbilek thermal plant is considered for this analysis. A 24-hours day is subdivided into eight discrete stages, and the predicted load of the system can be considered constant over each interval. In this case, the UC problem is an economic combinatorial problem of which solution will yield the minimum operating cost for the scheduling of startup and shutdown of units for each stage in a day.The remaining sections are outlined as follows. Section2 provides a description of the UC problem formulation. This section includes an objective function and the constraints of the problem. In Section 3, three methods based on dual optimization techniques are described. In Section 4, the solving algorithm of LR method for the UC problem is explained as a sample. In Section 5, applications and numerical results are presented and discussed. Finally the conclusion is given.


## 2. UC Problem Formulation

UC has been used to plan over a given time horizon the most economical schedule of committing and dispatching generating units to meet forecasted demand levels and spinning reserve requirements while all generating unit constraints are satisfied. The  objective function of the UC problem can be formulated as(2.1)F(Pit,Uit)=∑t=1T∑i=1N[Fi(Pit)+SCit(1-Uit-1)]Uit+∑t=1T∑i=1NSDitx(1-Uit-1)Uit-1,
where Fi(Pit)=a(Pit)2+bPit+c is the polynomial function [38].The minimization of the objective function is provided to the following constraints.System Constraints
Power balance constraints. For satisfying the load balance in each stage, the forecasted load demand should be equal to the total power of the generated power for feasible combination:
(2.2)∑i=1NUitPit=Pdt.Spinning reserve constraints. In order to meet any abnormal operating conditions, the spinning reserve must be considered:
(2.3)Pdt+Prt-∑i=1NPi,maxUit≤0.Unit Constraints
Generation limits. Each unit must satisfy the generation range:
(2.4)Pi,minUit≤Pit≤Pi,maxUit,i=1,2,…,N.Minimum up-time. Once the unit is started up, it should not be shut down before a minimum up-time period is met as follows:
(2.5)(Tion(t-1)-Ti,upt)(Uit-1-Uit)≥0.Minimum down-time. Once the unit is shut down, there is a minimum down time before it can be started up again:
(2.6)(Tioff(t-1)-Ti,downt)(Uit-Uit-1)≥0.


## 3. Methods Based on Dual Optimization Technique

In this paper, three different methods based on dual optimization techniques, LR, PF, and ALPF are used for solving the UC problem. Duality is particularly important in optimization theory.  The convergence of the dual optimization methods can be measured by the relative size of the duality gap between the primal and dual solutions. As illustrated in Figure1, duality gap is obtained by the difference between solutions of primal and dual subproblems. However, primal cost and dual cost functions in reality are not as smooth as the ones in Figure 1 because they are nondifferentiable and nonconvex [39].Figure 1
A simplified graphic representation of dual optimization [39].General constrained minimization  problem is as follows:(3.1)PrimalProblem(P):→Dual  Problem:(P*),Minimizef(x)→maxθ(u)Subjecttog(x)≤0→u>0,h(x)=0→u>0.The dual procedure attempts to reach the constrained optimum by maximizing the Lagrangian with respect to Lagragian multipliers, while minimizing with respect to the other variables in the problem.LR Method
LR method can eliminate the dimensionality problem. The LR method is based on the dual optimization theory. The solution of the LR method greatly depends on the Lagragian multipliers. Therefore, setting the initial Lagragian multipliers and updating them are significant to the optimality of the solution. Inappropriate method of updating the Lagrangain multipliers may cause the solution adjustment to oscillate around the global optimum [39].
The Lagrangian equation is(3.2)L(x,λ,μ)=f(x)+∑λigi(x)+∑μihi(x).
Dual function is(3.3)q*(λ)=maxq(λ),
where
(3.4)q(λ)=minL(x,λ,μ).
The algorithm of LR method is
Choose startingλ,μ values.Step 1.
Find a value for eachλ andμ which moves q(λ) toward a larger value.Step 2.
Assuming that theλ and μ found in Step 1 are now fixed, find the minimum of the L.PF Method
PF method is one of the widely used methods for obtaining optimal solutions nonconvex problems. It is motivated by the desire to use unconstrained optimization techniques to solve constrained problems.  It uses a mathematical function that will increase the objective for any given constrained violation. General transformation of constrained problem into an unconstrained problem [39]
(3.5)L(x,k,M)=f0(x)+k∑i=1n[maks{0,gi(x)}]2+M∑j=1m|hj(x)|,f0(x)+ϕ1(g(x),k)+ϕ2(h(x),M).
The algorithm of PF method is
Chooseε>0 and  β>1. Choose initial value x1.
Choose penalty factorM1.Step 3.
Find the following values:(3.6)Min{f0(x)+M1[maks{0,g(x)}]},Min{f0(x)+Mkαx}=f0(xk)+Mkαxk.Step 4.
IfMkαxk<ε=0,  then stop. Otherwise,    Mk+1=βMk,k=k+1. Then go to Step 1.ALPF Method
The ALPF method is an approach for solving nonlinear programming problems by using the ALPF in a manner that combines the algorithmic aspects of both LR and PF methods [39].
Lagragian equation is(3.7)L(x,c,v,M)=f0(x)+∑i=1mvigi(x)+∑i=1qvjhj(x)+Mi[∑i=1mgi(x)]2+Mj[∑i=1qhj(x)2].The algorithm of ALPF method is as follows.Initialization
Select some initial Lagrangian multipliers. Lagrangian multipliers arevm  and  Mm. These are can be written as follows:
(3.8)vm=(v11,v21,…,vm1),Mm=(M11,M21,…,Mm1),
where vm  is positive values, and Mm  is for the penalty parameters.
Letx0 be a null vector and denote
(3.9)VIOL(x0)=+∞,
for any x∈En.
Measure the level of the violation by using (3.7)
(3.10)VIOL(x)=max1≤i≤m{|fi(x)|}.
Choosek=1;ε>0 is a measure of  constraint violations. Put k=1, and proceed to the “inner loop’’ of the algorithm.Inner Loop
Solve minimum of the  Lagrangian subject tox∈En, and let xk  be the optimal solution obtained. If VIOL(xk)=0 or VIOL(xk)<ε, then stop.   Otherwise, if VIOL(xk)<(1/4)VIOL(xk-1), then go to outer loop. If VIOL(xk)>VIOL(xk-1), then, for each constraint i=1,…,l for which ∥fi(xk)∥>(1/4)VIOL(xk-1), replace the corresponding penalty parameter Mi by 10 Mi and repeat this inner loop step.Outer Loop
Replacev by vnew, where
(3.11)vik+1=vik+2Mikfi(xk).
Increment k by 1, and return to the inner loop.


## 4. Solving Algorithm for UC

The LR method solves the UC problem by relaxing or temporarily ignoring the coupling constraints. This is done through the dual optimization procedure attempting to reach the constrained optimum by maximizing the Lagrangian. In this section, the solving algorithm of LR method for the UC problem is explained as a sample.  The Lagrangian equation can be written as follows [40]:
(4.1)L(P,U,λ)=∑t=1T∑i=1NF(Pit,Uit)+SCit(1-Uit-1)Uit+∑t=1T∑i=1NSDitx(1-Uit-1)+∑t=1Tλt(Ploadt-∑i=1NPitUit)+∑t=1Tμt(Ploadt+Pr(t)-∑i=1NPi,maxUit).q*(λ,μ) is a dual function, and it can be shown as follows:(4.2)q*(λ,μ)=maxλt,μtq(λ,μ),
where
(4.3)q(λ,μ)=minPit,Ui,tL(P,U,λ,μ),L=∑t=1T∑i=1N[F(Pit,Uit)+SCit(1-Uit-1)Uit]+∑t=1T∑i=1NSDitx(1-Uit-1)+∑t=1TλtPloadt+μt(Ploadt+Pr(t))-∑i=1NλtPitUit-μtPi,maxUit,
where λtPloadt, and μt(Ploadt+Pr(t)) are constant and can be dropped.Goal of separating the units from one another has   been achieved. The term inside the outer brackets(4.4)∑t=1T{[F(Pit,Uit)+SCit(1-Uit-1)Uit+∑t=1T∑i=1NSDitx(1-Uit-1)]}-λtPitUit-1-μtPi,maxUi,t.Equation (4.4) can be solved separately for each generating unit, without regard for what is happening on the other generating units. The minimum of the Lagrangian is found by solving for the minimum for each generating unit over all time periods(4.5)minq(λ)=∑i=1Nmin∑t=1T{[F(Pit,Uit)+SCit(1-Uit-1)Uit+∑t=1T∑i=1NSDitx(1-Uit-1)]}-λtPitUit-μtPi,maxUit-1.This is solved as a one-variable DP problem. This can be visualized in Figure2, which shows the only two possible states for unit i.Figure 2
Only two possible states for uniti (Uit=0 or Uit=1), where Si is the startup cost for unit i.At theUi,t=0 state, the value of the function to be minimized is trivial. At the state Ui,t=1, the function to be minimized is.(4.6)min[FiPit-λtPit-μtPi,max].The minimum of this function is(4.7)ddPit[FiPit-λtPit-μtPi,max]=0.The solution to this equation is(4.8)dFi(Pit,opt)dPit=λt,Pit,opt=λt-bi2ci.There are three   cases in this situation.(1)
IfPit,opt<P,i,minthenPit=Pi,min.(2)
IfPi,min<Pit,opt<Pi,max,thenPit=Pit,opt.(3)
IfPit,opt>P,i,maxthenPit=P.i,maxDP is used to determine the optimal schedule of each unit over the scheduled time period. To minimizeF(Pit)-λtPit<0 at each stage and that when Uit=0, this value goes to zero, then the only way to get a value lower is to have [40](4.9)F(Pit)-λtPit<0.In the LR method, the value obtained by (2.1) and problem constraints is called the primal value (J*) of the problem. The value in (3.3) represents the dual value. Whether the problem converges to its solution is decided by looking at the relative duality gap value. This value is calculated using (4.10)
(4.10)Relativedualitygap=J*-q*q*.


## 5. Applications and Numerical Results

The LR, PF, and ALPF methods are applied for solving the UC problem for four-unit Tuncbilek thermal plant separately, and the numerical results are given in tables. These methods are compared to each other based on feasible schedule for each stage, feasible cost, dual cost, duality gap, duration time, and number of iterations using the table in the comparative results part. The spinning reserve demand is set as 10% of the system demand. All these methods are coded in GAMS which is a high-level modeling system for mathematical programming problems [41] and run on Pentium 4—3 GHz personal computer. CONOPT is used as a GAMS solver. The data used in the analysis is taken from Turkish Electric Power Company and Electricity Generation Company. The unit characteristics for four-unit Tuncbilek thermal plant are given in Table 1.Table 1
Unit characteristics for four-unit Tuncbilek thermal plant.
UnitPmin  (MW)Pmax (MW)SC  ($)a  ($/h)b ($/MWh)c ($/MW2h)SD ($)Tup  (h)Tdown(h)1832600.51510.86149.912011217652400.2278.341284.6480223351505500.0829.9441495.81100334301505500.07412.44388.9110033In this study, a 24-hours day is subdivided into 8 discrete stages. The load demands for the stages are given in Table2.Table 2
Load data (MW).
StageLoadStageLoad11685313215063473260730842758231For LR Method
LR method is applied to UC problem. The feasible unit combination for the LR method is given in Table3. The initial of the λ and μ values is chosen as zero.Table 3
Feasible unit combination for LR method.
StageUnit combination10 0 1 120 0 1 130 1 1 141 1 1 151 1 1 161 1 1 171 1 1 180 1 1 1For PF Method
PF method is applied to UC problem. The feasible unit combination for the PF method is given in Table4. The initial of the k and M values are 320 and 970, respectively.Table 4
Feasible unit combination for PF method.
StageUnit combination10 0 1 120 0 1 130 1 1 140 1 1 151 1 1 161 1 1 170 1 1 180 1 1 1For ALPF Method
ALPF method is applied to UC problem.  The feasible unit combination for the ALPF method is given in Table5.  The initial of the v and M values is 25 and 100, respectively.Table 5
Feasible unit combination for ALPF method.
StageUnit combination10 0 1 120 0 1 130 1 1 140 1 1 150 1 1 161 1 1 170 1 1 180 1 1 1Comparative Results
Feasible cost, dual cost and duality gap values, duration time, and number of iterations are found for each method. These numerical results are given in Table6.Table 6
The numerical results for LR, PF, and ALPF methods.
Compared itemsLRPFALPFFeasible cost ($)56381.93155801.47755233.897Dual cost ($)55428.01455305.33254894.266Duality gap (%)1.17210.89710.6187Number of iterations193667Duration time (s)5.323.5614.63It can be seen from Table6 that LR has the highest duality gap value, and ALPF performs much better than LR and PF for duality gap value. It is noticed that ALPF method yields the minimum duality gap value with minimum cost. On the other hand, LR method reaches the solution with the minimum number of iterations. In addition to this, PF method yields the fastest solution.


## 6. Conclusion

Three different dual approach-based methods, LR, PF and ALPF methods, are used for solving the UC problem known as an important and hard-solving problem in power system engineering, and the results from the programs coded and implemented using GAMS for these methods are compared to each other according to feasible cost, dual cost, duality gap, duration time, and number of iterations. The numerical results show that the ALPF method which is firstly used for solving the UC problem in literature gives the best duality gap, feasible and dual cost values instead of worse duration time and the number of iterations. It is seen that ALPF method yields the minimum duality gap value with minimum cost. On the other hand, LR method reaches the solution with the minimum number of iterations. In addition to this, PF method yields the fastest solution. Since the most important factor in the solution of UC problems is feasible cost value, it can be said that ALPF is the most suitable method among others.



---

*Source: 368024-2009-06-02.xml*