中国电力 ›› 2024, Vol. 57 ›› Issue (1): 255-262.DOI: 10.11930/j.issn.1004-9649.202308062

• 电网 • 上一篇    

基于哈希和编辑距离算法的SCD双层向量化与变更校验技术

叶远波1(), 王吉文1, 汪伟1, 毛玉荣2(), 王志华2   

  1. 1. 国网安徽省电力有限公司,安徽 合肥 230022
    2. 武汉凯默电气有限公司,湖北 武汉 430223
  • 收稿日期:2023-08-15 出版日期:2024-01-28 发布日期:2024-01-23
  • 作者简介:叶远波(1973—),男,通信作者, 硕士,高级工程师(教授级),从事电力系统继电保护研究,E-mail:21330683@qq.com
    毛玉荣(1989—),女,硕士,从事电力系统继电保护研究,E-mail:1332858204@qq.com
  • 基金资助:
    国家自然科学基金联合基金项目(U2166205);国家电网有限公司科技项目(5212002000AR)。

SCD Two-Layer Vectorization and Change Verification Technology Based on Hash and Edit Distance Algorithm

Yuanbo YE1(), Jiwen WANG1, Wei WANG1, Yurong MAO2(), Zhihua WANG2   

  1. 1. State Grid Anhui Electric Power Co., Ltd., Hefei 230022, China
    2. Wuhan Kemov Electric Co., Ltd., Wuhan 430223, China
  • Received:2023-08-15 Online:2024-01-28 Published:2024-01-23
  • Supported by:
    This work is supported by National Natural Science Foundation of China (No.U2166205) and Science and Technology Project of SGCC (Research on Key Technology of Relay Automatic Debugging in Module Substation, No.5212002000AR).

摘要:

针对智能变电站配置描述(substation configuration description,SCD)文件变更、智能变电站二次设备配置不清晰导致运维工作量剧增的问题,提出基于哈希和编辑距离算法的SCD双层向量化与变更校验技术。首先,考虑文件变更的启动与校验,应用节点元素、校验码与元素属性构建面向SCD文件解析的双层向量模型;其次,利用哈希算法将构建的文本向量模型转化为哈希字符串向量模型;然后,引入编辑距离算法分别计算原始文件与变更文件的双层向量模型相似度,基于第一层相似度比较构成第二层校验启动判据,基于第二层相似度结合回溯路径方法实现变更校验;最后,通过算例分析验证了所提算法的有效性。

关键词: 智能变电站, SCD文件校验, 向量模型, 哈希算法, 编辑距离, 相似度计算

Abstract:

In view of the sharp increase in operation and maintenance workloads caused by changes in substation configuration description (SCD) file and unclear configuration of secondary equipment in intelligent substations, a two-layer vectorization and change verification technology based on hash and edit distance algorithm for SCD is proposed. Firstly, considering the initiation and verification of file changes, a two-layer vector model for SCD file parsing is constructed using node elements, verification codes and element attributes. Secondly, the hash algorithm is used to transform the constructed text vector model into a hash string vector model. Then, the edit distance algorithm is introduced to calculate the two-layer vector model similarity between the original file and the changed file. Based on the comparison of the first layer similarities, the second layer verification initiation criterion is formed, and the change verification is achieved based on the second layer similarity in combination with the backtracking path method. Finally, the effectiveness of the proposed algorithm was verified through numerical analysis.

Key words: intelligent substation, SCD file verification, vector model, hash algorithm, edit distance, similarity calculation