scieee AI-readable full text Open interactive document viewer

A Biased Random Key Genetic Algorithm Approach for Unit Commitment Problem

Luís A.C. Roque,Dalila B.M.M. Fontes,Fernando A.C.C. Fontes

Abstract

A Biased Random Key Genetic Algorithm (BRKGA) is proposed to find solutions for the unit commitment problem. In this problem, one wishes to schedule energy production on a given set of thermal generation units in order to meet energy demands at minimum cost, while satisfying a set of technological and spinning reserve constraints. In the BRKGA, solutions are encoded by using random keys, which are represented as vectors of real numbers in the interval [0, 1]. The GA proposed is a variant of the random key genetic algorithm, since bias is introduced in the parent selection procedure, as well as in the crossover strategy. Tests have been performed on benchmark large-scale power systems of up to 100 units for a 24 hours period. The results obtained have shown the proposed methodology to be an effective and efficient tool for finding solutions to large-scale unit commitment problems. Furthermore, from the comparisons made it can be concluded that the results produced improve upon some of the best known solutions.

Full text

A Biased Random Key Genetic Algorithm approach for Unit Commitment Problem Lu´ıs A.C. Roque Dalila B.M.M. Fontes Fernando A.C.C. Fontes ISEP-DEMA/GECAD, Instituto Superior de Engenharia do Porto, Portugal FEP/LIAAD-INESC Porto L.A., Universidade do Porto ,Portugal FEUP/ISR-Porto,Universidade do Porto,Portugal {[email protected]p.pt , [email protected]p.pt , [email protected]} Abstract. A Biased Random Key Genetic Algorithm (BRKGA) is proposed to find solutions for the unit commitment problem. In this problem, one wishes to schedule energy production on a given set of thermal generation units in order to meet energy demands at minimum cost, while satisfying a set of technological and spinning reserve constraints. In the BRKGA, solutions are encoded by using random keys, which are represented as vectors of real numbers in the interval [0,1]. The GA proposed is a variant of the random key genetic algorithm, since bias is introduced in the parent selection procedure, as well as in the crossover strategy. Tests have been performed on benchmark large-scale power systems of up to 100 units for a 24 hours period. The results obtained have shown the proposed methodology to be an effective and efficient tool for finding solutions to large-scale unit commitment problems. Furthermore, from the comparisons made it can be concluded that the results produced improve upon some of the best known solutions. Keywords: Unit Commitment, Genetic Algorithm,Optimization, Electrical Power Generation. 1 INTRODUCTION The Unit Commitment (UC) is a complex optimization problem well known in the power industry and adequate solutions for it have potential large economic benefits that could result from the improvement in unit scheduling. Therefore, the UC problem plays a key role in planning and operating power systems. The thermal UC problem involves scheduling the turn-on and turn-off of the thermal generating units, as well as the dispatch for each on-line unit that minimizes the operating cost for a specific time generation horizon. In addition, there are multiple technological constraints, as well as system demand and spinning reserve constraints that must be satisfied. Due to its combinatorial nature, multi-period characteristics, and nonlinearities, this problem is highly computational demanding and, thus, it is a hard optimization task solving the UC problem, specially for real-sized systems. 2 BRKGA approach for Unit Commitment The methodologyproposedto find solutions for this problem is a Genetic Algorithm where the solutions are encoded using random keys. A Biased Random Key Genetic Algorithm (BRKGA) is proposed to find the on/off state of the generating units for every time period as well as the amount of production of each unit at each time period. In the past, several traditional heuristic approaches based on exact methods have been used such as dynamic programming, mixed-integer programming and benders decomposition, see e.g. [15,6,16]. However, more recently most of the developed methods are metaheuristics,evolutionary algorithms, and hybridsof the them, see e.g. [2,27, 11,7,23,4,28,1]. These latter types have, in general lead to better results than the ones obtained with the traditional heuristics. The most used metaheuristic methods are simulated annealing (SA) [20,23], evolutionary programming (EP) [12,19], memetic algorithm (MA)[27], particle swarm optimization (PSO) [24,30] and genetic algorithms (GA), see e.g. [14,25]. Comprehensive and detailed surveys can be found in [17,21, 18].In this paper we focus on applying Genetic Algorithms (GAs) to find good quality solutions for the UC problem. The majority of the reported GA implementations to address the UC problem are based on the binary encoding. However, studies have shown that other encoding schemes such as real valued random keys [3] can be efficient when accompanied with suitable GA operators, specially for problems where the relative order of tasks is important. In the proposed algorithm a solution is encoded as a vector of Nreal random keys in the interval [0,1], where Nis the number of generation units. The Biased Random Key Genetic Algorithm (BRKGA) proposed in this paper is based on the framework provided by Resende and Gonc¸alves in [9]. BRKGAs are a variation of the Random key Genetic Algorithms (RKGAs), first introduced by Bean [3]. The bias is introduced at two different stages of the GA. On the one hand, when parents are selected we get a higher change of good solutions being chosen, since one of the parents is always taken from a subset including the best solutions. On the other hand, the crossover strategy is more likely to choose alleles from the best parent to be inherited by offspring. The work [9] provides a tutorial on the implementation and use of biased random key genetic algorithms for solving combinatorial optimization problems and many successful applications are reported in the references therein. This paper is organized as follows. In Section 2, the UC problem is described and formulated, while in Section 3 the solution methodology proposed is explained. Section 4 describes the set of benchmark systems used in the computational experiments and reports on the results obtained. Finally, in Section 5 some conclusions are drawn. 2 UC PROBLEM FORMULATION In the UC problem one needs to determine at each time period the turn-on and turn-off times of the power generation units, as well as the generation output subject to operational constraints, while satisfying load demands at minimum cost. Therefore, we have two types of decision variables. The binary variables, which indicate the status of each unit at each time period and the real variables, which provide the information on the amount of energy produced by each unit at each time period. The choices made must satisfy two sets of constraints: the demand constraints (regarding the load requirements BRKGA approach for Unit Commitment 3 and the spinning reserve requirements) and the technical constraints (regarding generation unit constraints). The costs are made up two components: the fuel costs, i.e. production costs, and the start-up costs. Let us now introduce the parameters and variables notation. Decision Variables: Yt,j: Thermal generation of unit jat time period t, in [MW]; ut,j: Status of unit jat time period t(1 if the unit is on; 0 otherwise); Auxiliary Variables: Ton/off j(t): Time periods for which unit jhas been continuously on-line/off-line until time period t, in [hours]; Parameters: T: Number of time periods (hours) of the scheduling time horizon; t: Time period index; N: Number of generation units; j: Generation unit index; Rt: System spinning reserve requirements at time period t, in [MW];Dt: Load demand at time period t, in [MW]; Yminj: Minimum generation limit of unit j, in [MW];Ymaxj: Maximum generation limit of unit j, in [MW]; Nb: Number of the base units; Ton/off min,j: Minimum uptime/downtime of unit j, in [hours]; Tc,j: Cold start time of unit j, in [hours];SH/C,j: Hot/Cold start-up cost of unit j, in [$]; ∆dn/up j: Maximum allowed output level decrease/increase in consecutive periods for unit j, in [MW]; 2.1 Objective Function As already said, there are two cost components: generation costs and start-up costs. The generation costs, i.e. the fuel costs, are conventionally given by a quadratic cost function as in equation (1), while the start-up costs, that depend on the number of time periods during which the unit has been off, are given as in equation (2). Fj(Yt,j) = aj·(Yt,j)2+bj·Yt,j+cj,(1) where aj,bj,cjare the cost coefficients of unit j. St,j=(SH,j if Tof f min,j≤Tof f j(t)≤Tof f min,j+Tc,j SC,j if Tof f j(t)>Tof f min,j+Tc,j,(2) where SH,jand SC,jare the hot and cold start-up costs of unit j, respectively. Therefore,the cost incurred with an optimalscheduling is givenby the minimization of the total costs for the whole planning period, as in equation (3). Minimize T ∑ t=1 N ∑ j=1Fj(Yt,j)·ut,j+St,j·(1−ut−1,j)·ut,j!.(3) 2.2 Constraints The constraints can be divided into two sets: the demand constraints and the technical constraints. Regarding the first set of constraints it can be further divided into load requirements and spinning reserve requirements, which can be written as follows: 1) Power Balance Constraints The total power generated must meet the load demand, for each time period. N ∑ j=1 Yt,j·ut,j≥Dt,t∈ {1,2,...,T}.(4) 4 BRKGA approach for Unit Commitment 2) Spinning Reserve Constraints The spinning reserve is the total amount of real power generation available from on-line units net of their current production level. N ∑ j=1Ymaxj·ut,j≥Rt+Dt,t∈ {1,2,...,T}.(5) The second set of constrains includes unit output range, minimum number of time periods that the unit must be in each status (on-line and off-line), and the maximum output variation allowed for each unit. 3) Unit Output Range Constraints Each unit has a maximum and minimum production capacity. Yminj·ut,j≤Yt,j≤Ymaxj·ut,j,for t∈ {1,2,...,T}and j∈ {1,2,...,N}.(6) 4) Ramp rate Constraints Due to the thermal stress limitations and mechanicalcharacteristics the output variation, levels of each online unit in two consecutive periods are restricted by ramp rate limits. −∆dn j≤Yt,j−Yt−1,j≤∆up j,for t∈ {1,2,...,T}and j∈ {1,2,...,N}.(7) 5) Minimum Uptime/Downtime Constraints The unit cannot be turned on or off instantaneously once it is committed or uncommitted. The minimum uptime/downtime constraints indicate that there will be a minimum time before it is shut-down or started-up, respectively. Ton j(t)≥Ton min,jand Tof f j(t)≥Tof f min,j,for t∈ {1,2,...,T}and j∈ {1,2,...,N}.(8) 3 METHODOLOGY Genetic Algorithms are a global optimization technique based on natural genetics and evolution mechanisms such as survival of the fittest law, genetic recombination and selection [10,8]. GAs provide great modeling flexibility and can easily be implemented to search for solutions of combinatorial optimization problems. Several GAs have been proposed for the unit commitment problem, see e.g. [14,5,26,2,29,7,1], the main differences being the representation scheme, the decoding procedure, and the solution evaluation procedure (i.e. fitness function). Many GA operators have been used; the most common being copy, crossover, and mutation. Copy consists of simply copying the best solutions from the previous generation into the next one, with the intention of preserving the chromosomes corresponding to best solutions in the population. Crossover produces one or more offspring by combining the genes of solutions chosen to act as their parents. The mutation operator randomly changes one or more genes of a given chromosome in order to introduce some extra variability into the population and thus, prevent premature convergence. The GA proposedhere, i.e. the BRKGA, uses the frameworkproposedby Gonc¸alves and Resende in [9]. The algorithm evolves a population of chromosomes that are used BRKGA approach for Unit Commitment 5 to assign priorities to the generation units. These chromosomes are vectors, of size N (number of units), of real numbers in the interval [0,1](called random keys). A new population is obtained by joining three subsets of solutions as follows: the first subset is obtained by copying the best solutions of the current population; the second subset is obtained by using a (biased) parameterized uniform crossover; the remaining solutions, termed mutants, are randomly generated as was the case for the initial population. The BRKGA framework is illustrated in Figure 1, which has been adapted from [9]. Entry Generation of random key vectors Decoding: Random keys vectors in terms of the generation scheduling All generations? Exit y Sort chromosomes by fitness value Classify chromosomes as elite or non-elite Copy elite chromosomes Generate mutants Combine elite and nonelite to produce offspring Compute fitness value n Fig.1: The BRKGA framework. Entry Repair the minimum uptime/downtime constraints violation Minimum up down time Compute output level matrix for each unit and period based to random key value For each chromosome Production Adjust output levels to satisfy the output range constraints Adjust output levels to satisfy output variation limits in consecutive periods Capacity Ramp rate Adjust output levels to satisfy demand requirements Adjust output levels to satisfy spinning reserve requirements Repair Load Spinning reserve Exit Compute total production cost Fig.2: Flow chart of the decoder. Specific to our problem are the decoding procedure, as well as the fitness computation. The decoding procedure, that is how solutions are constructed once a population of chromosomes is given, is performed in two main steps, as it can be seen in Figure 2. Firstly, a solution satisfying the load demand, for each period is obtained. In this solution, the units production is proportional to their priority, which is given by the random key value. Then, these solutions are checked for constraints satisfaction. 3.1 Decoding Procedure Given a vector of numbers in the interval [0,1],say RK = (r1,r2,...,rN),percent vectors V0=v0 1,v0 2,...,v0 Nb,V= (v1,v2,...,vN)and rank vector O= (o1,o2,...,oN)are computed. Each element vjis computed as vj=rj ∑N iri,j=1,2,...,Nand v0jis given 6 BRKGA approach for Unit Commitment by v0j=rj ∑Nb iri,j=1,2,...,Nb, where Nbis the number of base units, while each oiis defined taking into account the descending order of the RK value. Then an output generation matrix Yis obtained, where each element Yt,jgives the production level of unit j=oi,i=1,...,Nfor time period tand is computed as the product of the percentage vectors V0or Vby the periods demand Dt, as illustrated in the following pseudocode: Algorithm 1 Initial matrix generation output i=1 d=Dt while i≤Nand d>0do j=oi if j≤Nbthen if Dt+Rt≤∑Nb k=1Ymaxkthen Yt,j=v0j.Dt d=d−Yt,j else {Dt+Rt>∑Nb k=1Ymaxk} Yt,j=Ymaxj d=d−Yt,j end if else {j>Nb} if Dt+Rt≤∑Nb k=1Ymaxkthen Yt,j=0 else {Dt+Rt>∑Nb k=1Ymaxk} if d>Ymaxjthen Yt,j=vj.Dt d=d−Yt,j else {d<Ymaxj} Yt,j=d d=0 end if end if end if Next i end while The production level of unit jfor each time period thowever, may not be admissible and therefore, the solution obtained may be unfeasible. Hence, the decoding procedure also incorporates a repair mechanism. This mechanism forces constraints satisfaction. The repair mechanism starts by forcing the output level of each unit to be in its output range, as given in equation (9). Yt,j=         Ymaxjif Yt,j>Ymaxj Yt,jif Yminj≤Yt,j≤Ymaxj Yminjif χ·Yminj≤Yt,j<Yminj 0 otherwise, (9) BRKGA approach for Unit Commitment 7 where χ∈[0,1]is a scaling factor. At the same time that the ramp constrains are ensured for a specific time period t, new output limits (Ymax t,jandYmin t,jupperand lowerlimits, respectively)must be imposed, for the following periodt+1, since their value depends on the output level of the current period t. Equations (10) and (11) show how this is done. Yt,j=         Ymax t,jif Yt,j≥Ymax t,j Yt,jif Ymin t,j<Yt,j<Ymax t,j Ymin t,jif µ·Ymin t,j≤Yt,j≤Ymin t,j 0 otherwise (10) where Ymax 1,j=Ymaxj,Ymin 1,j=Yminjand Ymax t,j=minnYmaxj,Yt−1,j+∆up jo,Ymin t,j=maxnYminj,Yt−1,j−∆dn jo.(11) After ensuring the unit output range constraints and the ramp rate constraints, it is still needed to guarantee that minimum up/down time constraints are satisfied. The adjustment of the unit status can be obtained using the repair mechanism illustrated in Figure 3. As it can be seen, for two consecutive periods the unit status can only be changed if the Ton/of f min is already satisfied, for a previously turned on or off unit, respectively. Entry n y n y n y n y y n Exit y n i=1 ut,i=0 ut−1,i=1 Ton i(t−1)< Ton min,i ut,i=1 ut,i=0 ut,i=0 ut−1,i=0 Tof f i(t−1)< Tof f min,i ut,i=0 ut,i=1 ut,i=1 i>N i=i+1 Fig.3: Minimum up down time repair machanism. Entry Sort the units in descending order of the random key value Exit n y n y y n y n k=k+1 k>t i=1 ∑N i=1Ymaxi ut,i=0 ut,i=1 Tof f i(t)>Tof f min,i Ton i(t) = Ton i(t−1)+ 1 Tof f i(t) = 0 k=t−Tof f i(t)+ 1 ut,k=1 Ton k(t) = Ton k(t−1)+ 1 Tof f k(t) = 0 i=i+1 <Dt+Rt Fig.4: Handling spinning reserve constraint. 8 BRKGA approach for Unit Commitment For each period, it may happen that the spinning reserve requirement is not satisfied. If the number of on-line units is not enough, some off-line units will be turned on, one at the time, until the cumulative capacity matches or is larger than Dt+Rtas shown in Figure 4. In doing so, units are considered in descending order of priority, i.e. random keyvalue. After ensuring the spinning reservesatisfaction, it may happen that we end up with excessive spinning reserve. Since this is not desirable due to additional operational costs involved, we tried to decommit some units. Then units are considered for turning off-line, in ascending order of priority until their cumulative capacity reaches, Dt+Rt. At the end of this procedure we have found the uand Ymatrices specifying which units are being operated at each time period and how much its one is producing. However, it may happen that the production matches, is larger than, or lesser than the demand. In order to compute the total cost of the current solution we first must find how much each unit is producing. If there is excessive production, the on-line units production is decreased to its minimum allowed value, one at the time, until either all are set to the minimum production or the production reaches the load demand value. In doing so, units are considered in descending order of priority, i.e. random key value. It should be notice that by reducing production at time period tthe production limits at time period t+1 change, and the new values must be respected. Therefore, the minimum allowed production is given by maxnYmin t,j,Yt+1,j−∆up jo. This is repeated no more than Ntimes. If there is lack of production, the on-line units production is increased to its maximum allowed value, one at the time, until either all are set to the maximum production or the production reaches the load demand value. In doing so, units are considered in ascending order of priority, i.e. random key value. It should be noticed that by increasing production at time period tthe production limits at time period t+1 change, and the new values must be respected. Therefore, the maximum allowed production is given by minnYmax t,j,Yt+1,j+∆dn jo. Again, this is repeated no more than Ntimes. Once these repairing stages have been performed, the solutions obtained are feasible and the respective total cost is computed. 3.2 GA Configuration The current population of solutions is evolved by the GA operators onto a new population as follows: –20% of the best solutions (elite set) of the current population are copied; –20% of the new population is obtained by introducing mutants, that is by randomly generating new sequences of random keys, which are then decoded to obtain mutant solutions. Since they are generated using the same distribution as the original population, no genetic material of the current population is brought in; –Finally, the remaining 60% of the population is obtained by biased reproduction, which is accomplished by having both a biased selection and a biased crossover. The selection is biased since, one of the parents is randomly selected from the elite set of solutions (of the current population), while the other is randomly selected from the remainder solutions. This way, elite solutions are given a higher chance of mating, BRKGA approach for Unit Commitment 9 and therefore of passing on their characteristics to future populations. Genes are chosen by using a biased uniform crossover, that is, for each gene a biased coin is tossed to decide on which parent the gene is taken from. This way, the offspring inherits the genes from the elite parent with higher probability (0.7 in our case). 4 NUMERICAL RESULTS A set of benchmark systems has been used for the evaluation of the proposed algorithm. Each of the problems in the set considers a scheduling period of 24 hours. The set of systems comprises six systems with 10 up to 100 units. A base case with 10 units was initially defined, and the others have been obtained by considering copies of these units. The base 10 units system and corresponding24 hoursload demand are given in [14]. To generate the 20 units problem, the 10 original units have been duplicated and the load demand doubled. An analogous procedurewas used to obtain the problemswith 40, 60, 80, and 100 units. In all cases, the spinning reserve requirements were set to 10% of the load demand. Several computational experimentswere made in order to choose the parameter values. The BRKGA was implemented with biased crossover probability as main control parameter. The parameter ranges used in our experiments were 0.5≤Pc≤0.8 with step size 0.1 which gives 4 possible values for biased crossover probability. The results obtained have shown no major differences. Nevertheless, the results reported here refer to the best obtained ones, for which the number of generations was set to 10N, the population size was set to min{2N,60}, the biased crossover probability was set to 0.7, and the scaling factor χ=0.4. Due to the stochastic nature of the BRKGA, each problem was solved 20 times. We compare the results obtained with the best results reported in literature. In tables 1, 2, and 3, we compare the best, average, and worst results obtained, for each of the six problems, with the best of each available in literature. As it can be seen, for two out of the six problems solved our best results improve upon the best known results, while for the other four it is within 0.02% and 0.18% of the best known solutions. Moreover when our algorithm is not the best, it is the second best. Table 1: Comparison between best results obtained by the BRKGA and the best ones reported in literature. Size GA SA LRGA EP IPSO BRKGA Ratio BRKGA rank 10 563977 565828 564800 564551 563954 563977 100 2nd 20 1125516 1126251 1122622 1125494 1125279 1124470 100.16 2nd 40 2249715 2250063 2242178 2249093 2248163 2246287 100.18 2nd 60 3375065 – 3371079 3371611 3370979 3368542 99.93 1st 80 4505614 4498076 4501844 4498479 4495032 4493658 99.97 1st 100 5626514 5617876 5613127 5623885 5619284 5614522 100.02 2nd For each type of solution presented (best, average, and worst) we compare each single result with the best respective one (given in bold) that we were able to find in the literature. The results used have been taken from a number of works as follows: SA [23], LRGA [5], SM[27], GA [22], EP[13] and IPSO[30].