一种求解机组组合问题的分支定界方法
A Branch and Bound Method for Solving Unit Commitment Problem
DOI: 10.12677/jee.2025.131002, PDF, HTML, XML,    科研立项经费支持
作者: 张志强, 全 然:河南工业大学数学与统计学院,河南 郑州
关键词: 机组组合分支定界热率透视割平面Unit Commitment Branch and Bound Heat Rate Perspective Cutting Plane
摘要: 文章提出一种求解机组组合问题的分支定界方法。利用热率和透视割平面将机组组合模型做近似线性化处理,将混合整数二次规划转化为混合整数线性规划进行求解。为提高分支定界的计算效率,进行上层变量固定并优先搜索机组启停状态最接近0.5的节点。数值结果表明,此法与直接求解混合整数二次规划的发电费用相当,但计算时间占优,适合求解大规模机组组合问题。
Abstract: This paper presents a branch and bound method for solving the unit commitment (UC) problem. The UC model is approximated to linear models by using the heat rate and perspective cutting plane, and the mixed integer quadratic programming model is transformed into mixed integer linear programming. In order to improve the computing efficiency of the branch and bound, the upper-level variables are fixed and the node closest to the value of 0.5 is searched first. Numerical results show that the generation costs by the proposed method are almost equivalent to the ones by directly solving the mixed integer quadratic programming of UC. However, the proposed method has an advantage in terms of computation time and is suitable for solving large-scale UC problems.
文章引用:张志强, 全然. 一种求解机组组合问题的分支定界方法[J]. 电气工程, 2025, 13(1): 10-17. https://doi.org/10.12677/jee.2025.131002

1. 引言

机组组合(Unit commitment, UC)是电力系统规划和运行中的一类重要问题,其目标为在满足电力系统要求和机组技术限制的情况下,最小化系统总运行成本。该问题为复杂的大规模混合整数二次规划(Mixed integer quadratic programming, MIQP) [1]

几十年来,研究人员针对UC问题已提出诸多求解方法,这些方法大致可分为人工智能算法和数学优化算法。人工智能算法主要包括粒子群优化算法[2]、遗传算法[3]、模拟退火算法[4]、进化算法[5]和人工神经网络算法[6]等。人工智能算法属于随机搜索方法,容易陷入局部最优解,计算效率不能得到稳定的保障。数学优化算法主要包括分支定界法(Branch and bound, BB) [7] [8]、优先顺序(Priority list, PL) [9] [10]、动态规划法(Dynamic programming, DP) [11]、拉格朗日松弛算法(Lagrangian relaxation, LR) [12] [13]、Benders分解法(Benders decomposition, BD) [14]、外逼近法(Outer approximation, OA) [15]、内外逼近法(Outer-inner approximation, OIA) [16]、交替方向乘子法(Alternating direction method of multipliers, ADMM) [17]和混合整数线性规划法(Mixed integer linear programming, MILP) [18]-[20]。数学优化算法作为求解UC问题的经典算法,多年来在求解UC问题上已得到广泛应用。其中,PL法是优先投入最经济的机组来满足UC问题的约束条件,收敛速度快。DP法通过搜索机组启停状态形成的解空间来寻求UC问题的最优解,可得到中等规模UC问题的全局最优解。LR法将UC问题分解为若干单机组子问题进行求解,避免了决策变量过多造成的困难,可获得质量较好的次优解。BD法将所求解问题分解为主问题和子问题进行交替求解,并在求解过程中加入可行割平面或最优割平面,以加快问题的求解速度。OA法和OIA法与BD法类似,都是将原问题分解为相对容易求解的主问题和子问题,从而得到UC问题高质量的可行解。MILP法致力于将UC问题近似为MILP模型,可在合理时间内获得UC问题的高质量次优解。由于混合整数规划求解器求解能力的飞速提高,MILP法成为目前求解UC问题的主流方法。

BB法通过求解一系列由原问题剖分形成的子问题来获得所求问题的全局最优解。它最初由Land和Doig在文献[21]中提出,该方法是通过松弛、分支、定界和剪枝进行求解。但BB法本质上是一种枚举法,其计算时间随问题规模呈指数式变化。为提高BB法的计算效率,人们围绕确定上下界策略进行了深入研究,包括割平面、预处理和启发式等[22] [23]。文[8]提出一种求解UC问题的BB法,不考虑机组的优先顺序,可直接处理和时段相关联的启动费用,并且能处理随机备用约束。文[24]考虑了机组备用和电力交易合同问题,并采用BB法求解。

本文利用热率和透视割平面将机组组合模型做近似线性化处理,将混合整数二次规划转化为混合整数线性规划进行求解。为提高BB法的计算效率,进行上层变量固定并优先搜索机组启停状态最接近0.5的节点。数值结果表明,此法与直接求解混合整数二次规划的发电费用相当,但从时间方面来看优势明显,适合求解大规模机组组合问题。

2. UC问题的数学模型

UC问题的目标函数为:

minF= t=1 T i=1 N [ f i ( u i,t , P i,t )+ C i,t ] (1)

其中,T为研究时段数;N为研究机组数;0~1变量 u i,t 为机组it时段的运行状态,值为1时为运行状态,值为0时为停机状态; f i ( u i,t , P i,t )= α i u i,t + β i P i,t + γ i ( P i,t ) 2 为机组it时段的煤耗成本, α i β i γ i 为煤耗系数; P i,t 为机组it时段的出力; C i,t 为机组it时段的启动费用。

UC问题的约束条件如下:

1) 出力的约束条件

u i,t P _ i P i,t u i,t P ¯ i ,  i,t (2)

其中 P _ i P ¯ i 为机组i出力的上下限。

2) 功率平衡的约束条件

i=1 N P i,t P D,t =0,  t (3)

其中 P D,t 为时段t系统的总负荷。

3) 旋转备用的约束条件

i=1 N u i,t P ¯ i P D,t + R t ,  t (4)

其中 R t 为时段t系统的旋转备用。

4) 最小启停时间的约束条件

{ s=t T _ on,i +1 t v i,s u i,t 0,  i,t[ T _ on,i ,T ] s=t T _ off,i +1 t w i,s + u i,t 1,  i,t[ T _ off,i ,T ] v i,t w i,t = u i,t u i.t1 ,  i,t 0 v i,t 1,  0 w i,t 1,  i,t (5)

其中 v i,t 为机组it时段的启动状态,如果机组it时段启动,则 v i,t =1 ,否则 v i,t =0 w i,t 为机组it时段的停机状态,如果机组it时段关闭,则 w i,t =1 ,否则 w i,t =0 T _ on,i 为机组i的最小运行时间; T _ off,i 为机组i的最小停机时间。

5) 启动费用的约束条件

{ C i,t C hot,i v i,t ,  i,t C i,t C cold,i [ v i,t s=t T _ off,i T cold,i t w i,s ],  i,t (6)

其中 C hot,i , C cold,i , T cold,i 分别为机组i的热启动费用、冷启动费用和冷启动时间。

综上所述,UC问题的数学模型为如下MIQP:

minF= t=1 T i=1 N [ f i ( u i,t , P i,t )+ C i,t ] s.t.  ( 2 )-( 6 ) (7)

3. UC问题的线性化模型

由于前述UC问题的数学模型(7)为大规模的MIQP,用BB法直接求解计算量过大。为了减少计算量,本文基于透视割平面[10] [18],将(7)近似为一个MILP进行求解。

根据文献[18]中的透视割平面,可将式(7)中二次函数 f i ( u i,t , P i,t )= α i u i,t + β i P i,t + γ i ( P i,t ) 2 近似为线性形式 P i,t ( 2 γ i ξ i + β i )+ u i,t ( α i γ i ξ i ) ,这里 ξ i [ P _ i , P ¯ i ] 上的一个断点,从而可得到UC问题一个近似的MILP模型,称之为透视割平面模型(Perspective cut formulation, PCF),其形式如下:

min t=1 T i=1 N [ P i,t ( 2 γ i ξ i + β i )+ u i,t ( α i γ i ξ i )+ C i,t ] s.t( 2 )-( 6 ) (8)

为了改进BB方法中的上界,加快其收敛速度,本文采用文[10]中改进优先顺序的MILP形式,称之为改进优先顺序(Improved priority list, IPL),具体如下:

min t=1 T i=1 N σ i u i,t s.t.  ( 4 ),( 5 ) (9)

其中, σ i = f i ( 1, P ¯ i )/ P ¯ i ,称为机组的热率。

4. 算法研究

4.1. 分层固定策略

为解决传统分支定界(BB)算法中分支过多的问题,本文提出一种分层固定策略。BB算法在求解前先基于一定策略固定部分变量的取值,固定部分的变量称为上层变量,本文采用如下策略:

u i,t ={ 0,    u i,t θ 1,    u i,t 1θ

其中 θ 为取整阈值,本文 θ 取值为0.001。

4.2. 节点搜索策略

BB法结构严谨,是一种确定性的全局优化方法,其本质是枚举法。BB法通过不断的分支、定界和剪支并最终获得最优解,不同的节点搜索策略将导致不同的算法执行效率。本文的搜索策略为优先处理机组启停状态最接近0.5的节点。

4.3. 松弛策略

为优化得到的初始解,现提出一种松弛策略,即松弛相邻时段机组启停状态发生改变的变量取值,即 u i,t =0, u i,t+1 =1 (开启机组)或 u i,t =1, u i,t+1 =0 (关闭机组)。在计算过程中发现,松弛关闭机组对初始解的优化相较于松弛开启机组的效果更好,并且用时更短。

4.4. BB算法

步骤1:输入问题R,设置上界 c =+

步骤2:构建BB列表L,并将R存入其中。

步骤3:若 L=ϕ ,停止运算,输出最优解 x * = x 和目标值 c * = c ;若R无解,目标值 c * =+

步骤4:选择问题 QL ,令 L=L/{ Q }

步骤5:求解Q的连续松弛问题 Q relax ,若 Q relax 不可行,令 c =+ ;否则,令 x Q relax 的最优解, c Q relax 的目标值。

步骤6:若 c c ,转入步骤3。

步骤7:若 x R的可行解。令 x = x , c = c ,转入步骤3。

步骤8:将Q划分为一系列子问题 Q 1 ,, Q k 。令 L=L{ Q 1 ,, Q k } ,转入步骤4。

4.5. BBM算法

BBM算法是在BB算法的基础上加入松弛、固定求解的一种算法。BBM算法先求解IPL模型的松弛问题,得到可行解,根据可行解的情况通过松弛、固定再求解的过程将可行解进行优化,得到原问题质量较高的次优解,具体算法步骤如下。

步骤1:求解IPLrelax,记其解为 u=( u i,t ) 。若 u i,t { 0,1 } ,令 u i,t * = u i,t ,转入步骤4。

步骤2:若 u i,t 1θ ,令 u i,t =1 ;若 u i,t θ ,令 u i,t =0 。若对于 i,t u i,t { 0,1 } ,令 u i,t * = u i,t ,转入步骤4。

步骤3:将步骤2中 u i,t 取值为0、1的变量固定在相应取值处,运用3.4节的BB算法求解IPL,记其解为 u * =( u i,t * )

步骤4:利用 u i,t * 产生 N×T 的矩阵U,其第i行的元素依次为 u i,1 * , u i,2 * ,, u i,T *

步骤5:将最小启停时间相同的机组归为一类,记为 i 1 , i 2 ,, i n 。令 W=1

步骤6:松弛 i W 中的开启机组和 i 1 , i 2 ,, i n 中的关闭机组。

步骤7:将松弛之后的可行解代入PCF,求解PCFrelax,记其解为 u * =( u i,t * )

步骤8: W=W+1 。若 Wn ,转入步骤6。

步骤9:若 u i,t * 1θ, u i,t * =1 ;若 u i,t * θ, u i,t * =0 。若对于 i,t u i,t * { 0,1 } ,令 u = u i,t * ,转入步骤11。

步骤10:运用BB求解PCF,记其解为 u =( u i,t )

步骤11:利用机组的启停状态 u 进行经济调度。

需要说明的是,BBM算法的步骤1到步骤4是为了产生一个可行解,步骤5到步骤8是将所有开启机组松弛一遍来获得更高质量的可行解。

5. 结果分析

本文机组系统数据选自文献[9],基于Matlab R2018b,调用CPLEX 12.5求解MIQP问题和线性规划问题,CPLEX求解MIQP时精度设置为0.1%。计算机配置为Intel Core i7-10750 CPU@2.6GHz 8GB DDR4。

表1给出所提BBM算法的运算结果。由表1可知,对于所有系统,所提算法均在4秒内运行完毕,说明所提算法收敛速度快。这主要得益于两个方面的原因:第一个方面的原因是所给UC问题的数学模型是一种比较紧的描述,逼近问题的凸包;第二个方面的原因是,本文所提的启发式方法有效,加快了算法的收敛速度。

Table 1. Results of the proposed algorithm BBM

1. 本文所提BBM算法的计算结果

机组数

10

20

40

60

80

100

运行时间/s

0.14

0.49

1.16

1.34

2.80

3.62

运行成本/$

563,977

1,124,410

2,242,749

3,361,944

4,480,861

5,600,465

表2给出所提方法与其他7种方法的计算结果比较,表中粗体部分表示对应各个机组系统的最小发电总费用。由表2可知,对于大部分机组系统,所提BBM方法获得的发电总费用最小,说明所提方法有效。需要说明的是,文[15][20]中的方法为MILP方法,均只给出部分机组系统的计算结果。

Table 2. Comparison of the different methods

2. 不同方法的计算结果比较

机组数

10

20

40

60

80

100

LBB [7]

564,310

1,128,550

2,257,226

3,382,440

4,507,675

5,635,451

EPL [9]

563,977

1,124,369

2,246,508

3,366,210

4,489,322

5,608,440

IPL [10]

563,977

1,124,458

2,243,080

3,362,815

4,481,664

5,600,988

LR [13]

566,107

1,128,362

2,250,223

3,374,994

4,496,729

5,620,305

DPLR [12]

565,508

1,126,720

2,249,792

3,371,188

4,494,487

5,615,893

MILP [20]

-

-

-

-

-

5,602,253

PCF [15]

-

-

2,243,252

3,360,939

4,482,548

5,600,763

BBM

563,977

1,124,410

2,242,749

3,361,944

4,480,861

5,600,465

表3给出与直接求解UC问题MIQP模型的计算结果比较。表中相对误差为:运算结果与直接求解MIQP模型的运行结果的差再除以运算结果。从发电总费用上看,对于10机组、20机组和100机组系统,BBM法所求的计算结果稍逊于MIQP方法;对于40机组、60机组和80机组系统,BBM法所求的计算结果略优于MIQP方法。但对于所有机组系统,两种方法的计算结果相当,差别不大。从运行时间上看,对于所有系统,所提BBM方法的计算时间占优,特别是大规模的60和100机组系统。综合发电总费用和计算时间可见,所提方法具有良好的收敛性,这主要得益于UC问题数学模型的紧性和所提启发式方法的有效性。

Table 3. Comparison of two algorithms

3. 两种计算方法的计算结果比较

机组数

总费用($)

计算时间(s)

BBM

MIQP

相对误差

BBM

MIQP

相对误差

10

563,977

563,938

0.0069%

0.14

0.37

−164%

20

1,124,410

1,123,297

0.0999%

0.49

0.89

−82%

40

2,242,749

2,242,873

−0.0055%

1.16

2.74

−136%

60

3,361,944

3,362,085

−0.0042%

1.34

35.35

−2538%

80

4,480,861

4,481,939

−0.0240%

2.80

5.1

−83%

100

5,600,465

5,600,323

0.0025%

3.62

31.24

−763%

6. 结论

本文在传统分支定界方法的基础上,提出了一些改进策略,提高了UC问题的求解效率。首先,依据机组的热率构建改进的优先顺序模型,优先开启热率较高的机组,获得UC问题质量较高的可行解,改善了BB法的上界。然后,利用透视割平面,将MIQP问题转化为MILP问题,进一步减小了问题求解的复杂度。为加速BB方法的收敛速度,对上层变量进行固定,并优先搜索机组启停状态最接近0.5的节点。数值结果表明,所提方法能在合理的计算时间内获得UC问题高质量的次优解,具有良好的收敛性,适合求解大规模UC问题。

基金项目

2021年度河南工业大学自科创新基金支持计划项目(2020ZKCJ08)。

参考文献

[1] Padhy, N.P. (2004) Unit Commitment—A Bibliographical Survey. IEEE Transactions on Power Systems, 19, 1196-1205.
https://doi.org/10.1109/tpwrs.2003.821611
[2] Zhai, Y., Liao, X., Mu, N. and Le, J. (2019) A Two-Layer Algorithm Based on PSO for Solving Unit Commitment Problem. Soft Computing, 24, 9161-9178.
https://doi.org/10.1007/s00500-019-04445-x
[3] Ponciroli, R., Stauff, N.E., Ramsey, J., Ganda, F. and Vilim, R.B. (2020) An Improved Genetic Algorithm Approach to the Unit Commitment/Economic Dispatch Problem. IEEE Transactions on Power Systems, 35, 4005-4013.
https://doi.org/10.1109/tpwrs.2020.2986710
[4] Simopoulos, D.N., Kavatza, S.D. and Vournas, C.D. (2006) Unit Commitment by an Enhanced Simulated Annealing Algorithm. IEEE Transactions on Power Systems, 21, 68-76.
https://doi.org/10.1109/tpwrs.2005.860922
[5] Singh, A., Khamparia, A. and Al-Turjman, F. (2024) A Hybrid Evolutionary Approach for Multi-Objective Unit Commitment Problem in Power Systems. Energy Reports, 11, 2439-2449.
https://doi.org/10.1016/j.egyr.2024.02.004
[6] Yin, L. and Ding, W. (2024) Deep Neural Network Accelerated-Group African Vulture Optimization Algorithm for Unit Commitment Considering Uncertain Wind Power. Applied Soft Computing, 162, Article ID: 111845.
https://doi.org/10.1016/j.asoc.2024.111845
[7] 谢国辉, 张粒子, 舒隽, 等. 基于分层分枝定界算法的机组组合[J]. 电力自动化设备, 2009, 29(12): 29-32.
[8] Cohen, A. and Yoshimura, M. (1983) A Branch-and-Bound Algorithm for Unit Commitment. IEEE Transactions on Power Apparatus and Systems, 102, 444-451.
https://doi.org/10.1109/tpas.1983.317714
[9] Senjyu, T., Shimabukuro, K., Uezato, K. and Funabashi, T. (2003) A Fast Technique for Unit Commitment Problem by Extended Priority List. IEEE Transactions on Power Systems, 18, 882-888.
https://doi.org/10.1109/tpwrs.2003.811000
[10] Quan, R., Jian, J. and Yang, L. (2015) An Improved Priority List and Neighborhood Search Method for Unit Commitment. International Journal of Electrical Power & Energy Systems, 67, 278-285.
https://doi.org/10.1016/j.ijepes.2014.11.025
[11] Hou, J., Zhai, Q., Zhou, Y. and Guan, X. (2024) A Fast Solution Method for Large-Scale Unit Commitment Based on Lagrangian Relaxation and Dynamic Programming. IEEE Transactions on Power Systems, 39, 3130-3140.
https://doi.org/10.1109/tpwrs.2023.3287199
[12] Ongsakul, W. and Petcharaks, N. (2004) Unit Commitment by Enhanced Adaptive Lagrangian Relaxation. IEEE Transactions on Power Systems, 19, 620-628.
https://doi.org/10.1109/tpwrs.2003.820707
[13] Balci, H. and Valenzuela, J. (2004) Scheduling Electric Power Generators Using Particle Swam Optimization Combined with the Lagrangian Relaxation Method. International Journal of Applied Mathematics and Computer Sciences, 14, 411-421.
[14] Geoffrion, A.M. (1972) Generalized Benders Decomposition. Journal of Optimization Theory and Applications, 10, 237-260.
https://doi.org/10.1007/bf00934810
[15] 全然, 简金宝, 郑海艳. 基于外逼近方法的中期机组组合问题[J]. 电力系统自动化, 2009, 33(11): 24-28.
[16] Han, D., Jian, J. and Yang, L. (2014) Outer Approximation and Outer-Inner Approximation Approaches for Unit Commitment Problem. IEEE Transactions on Power Systems, 29, 505-513.
https://doi.org/10.1109/tpwrs.2013.2253136
[17] Jian, J., Zhang, C., Yang, L. and Meng, K. (2019) A Hierarchical Alternating Direction Method of Multipliers for Fully Distributed Unit Commitment. International Journal of Electrical Power & Energy Systems, 108, 204-217.
https://doi.org/10.1016/j.ijepes.2018.12.043
[18] Frangioni, A., Gentile, C. and Lacalandra, F. (2009) Tighter Approximated MILP Formulations for Unit Commitment Problems. IEEE Transactions on Power Systems, 24, 105-113.
https://doi.org/10.1109/tpwrs.2008.2004744
[19] Knueven, B., Ostrowski, J. and Watson, J. (2020) On Mixed-Integer Programming Formulations for the Unit Commitment Problem. INFORMS Journal on Computing, 32, 857-876.
https://doi.org/10.1287/ijoc.2019.0944
[20] Carrion, M. and Arroyo, J.M. (2006) A Computationally Efficient Mixed-Integer Linear Formulation for the Thermal Unit Commitment Problem. IEEE Transactions on Power Systems, 21, 1371-1378.
https://doi.org/10.1109/tpwrs.2006.876672
[21] Land, A.H. and Doig, A.G. (1960) An Automatic Method of Solving Discrete Programming Problems. Econometrica, 28, 497-520.
https://doi.org/10.2307/1910129
[22] Atamtürk, A. and Savelsbergh, M.W.P. (2005) Integer-Programming Software Systems. Annals of Operations Research, 140, 67-124.
https://doi.org/10.1007/s10479-005-3968-2
[23] Nannicini, G. and Belotti, P. (2011) Rounding-based Heuristics for Nonconvex MINLPs. Mathematical Programming Computation, 4, 1-31.
https://doi.org/10.1007/s12532-011-0032-x
[24] Dillon, T.S., Edwin, K.W., Kochs, H. and Taud, R.J. (1978) Integer Programming Approach to the Problem of Optimal Unit Commitment with Probabilistic Reserve Determination. IEEE Transactions on Power Apparatus and Systems, 97, 2154-2166.
https://doi.org/10.1109/tpas.1978.354719

Baidu
map