《计算机应用》唯一官方网站 ›› 2024, Vol. 44 ›› Issue (10): 3240-3245.DOI: 10.11772/j.issn.1001-9081.2023101433
颜超英, 张紫仪, 曲映楠, 李秋禹, 郑地翔, 孙丽珺()
收稿日期:
2023-10-23
修回日期:
2024-01-02
接受日期:
2024-01-04
发布日期:
2024-10-15
出版日期:
2024-10-10
通讯作者:
孙丽珺
作者简介:
颜超英(1998—),男,陕西宝鸡人,硕士研究生,CCF会员,主要研究方向:区块链、智能合约、共识算法基金资助:
Chaoying YAN, Ziyi ZHANG, Yingnan QU, Qiuyu LI, Dixiang ZHENG, Lijun SUN()
Received:
2023-10-23
Revised:
2024-01-02
Accepted:
2024-01-04
Online:
2024-10-15
Published:
2024-10-10
Contact:
Lijun SUN
About author:
YAN Chaoying, born in 1998, M. S. candidate. His research interests include blockchain, smart contract, consensus algorithm.Supported by:
摘要:
碳交易是降低温室气体排放、发展低碳经济的重要方式。在传统碳交易过程中主要存在主体分布广、数据互通性差和效率低等问题,而通过带有准入机制的联盟链作为碳交易的基础设施,可确保交易数据的安全性与可溯源性。因此,提出一种基于联盟链的双向拍卖交易算法。所提算法考虑用户满意度,分2个阶段执行。在第1阶段,所有节点提出报价范围,符合条件的节点将在该阶段立刻达成交易;剩余交易节点进入第2阶段,计算交易量匹配度,以用户整体满意度为优化目标进行匹配,从而输出最大整体满意度的结果。所提算法与匈牙利算法、GS(Gale-Shapley)算法的对比实验结果表明,所提算法提高了用户满意度,且让平均匹配时间分别降低了26.2%和36.0%。所提算法利用HLF(HyperLedger Fabric)部署双向拍卖算法智能合约,自动计算和处理用户交易请求,并把交易的结果经过共识记录在联盟链的通道账本,在不同的区块大小和交易请求数下实现了稳定的交易吞吐量。
中图分类号:
颜超英, 张紫仪, 曲映楠, 李秋禹, 郑地翔, 孙丽珺. 基于联盟链的双向拍卖碳交易[J]. 计算机应用, 2024, 44(10): 3240-3245.
Chaoying YAN, Ziyi ZHANG, Yingnan QU, Qiuyu LI, Dixiang ZHENG, Lijun SUN. Double auction carbon trading based on consortium blockchain[J]. Journal of Computer Applications, 2024, 44(10): 3240-3245.
符号 | 含义 | 符号 | 含义 |
---|---|---|---|
z | 理想 | D | 交易整体满意度 |
h | 最高 | fij | 判断节点i与j能否匹配 |
l | 最低 | m | 购买节点数 |
p | 购买方 | n | 出售节点数 |
w | 出售方 | qij | 节点i与节点j交易的价格 |
pzj | 购买节点j的理想价 | sij | 节点i与节点j交易数 |
phj | 购买节点j的最高价 | Pz | 全部购买节点理想价集合 |
wzi | 出售节点i的理想价 | Ph | 全部购买节点最高价集合 |
wli | 出售节点i的最低价 | Wz | 全部出售节点理想价集合 |
spj | 购买节点j的购买量 | Wl | 全部出售节点最低价集合 |
swi | 出售节点i的出售量 | Sp | 购买节点购买量的集合 |
βij | 节点i与j的双方交易量 匹配度 | Sw | 出售节点出售量的集合 |
dij | 出售节点i对购买节点j的 满意度 | eij | 购买节点j对出售节点i的 满意度 |
表1 符号及其含义
Tab. 1 Symbols and their meanings
符号 | 含义 | 符号 | 含义 |
---|---|---|---|
z | 理想 | D | 交易整体满意度 |
h | 最高 | fij | 判断节点i与j能否匹配 |
l | 最低 | m | 购买节点数 |
p | 购买方 | n | 出售节点数 |
w | 出售方 | qij | 节点i与节点j交易的价格 |
pzj | 购买节点j的理想价 | sij | 节点i与节点j交易数 |
phj | 购买节点j的最高价 | Pz | 全部购买节点理想价集合 |
wzi | 出售节点i的理想价 | Ph | 全部购买节点最高价集合 |
wli | 出售节点i的最低价 | Wz | 全部出售节点理想价集合 |
spj | 购买节点j的购买量 | Wl | 全部出售节点最低价集合 |
swi | 出售节点i的出售量 | Sp | 购买节点购买量的集合 |
βij | 节点i与j的双方交易量 匹配度 | Sw | 出售节点出售量的集合 |
dij | 出售节点i对购买节点j的 满意度 | eij | 购买节点j对出售节点i的 满意度 |
类型 | 平均匹配时间 |
---|---|
双向拍卖算法 | 0.881 |
匈牙利算法 | 1.191 |
GS算法 | 1.378 |
表2 3种交易算法的平均匹配时间 (s)
Tab. 2 Average matching time of three transaction algorithms
类型 | 平均匹配时间 |
---|---|
双向拍卖算法 | 0.881 |
匈牙利算法 | 1.191 |
GS算法 | 1.378 |
1 | 佴澎,宋磊. 多元化绿色金融体系下的碳交易平台构建研究[J]. 光华法学, 2016(1):207-237. |
ER P, SONG L. Research on the construction of carbon trading platform under diversified green financial system[J]. Guanghua Law Review, 2016(1): 207-237. | |
2 | 程炜博. 中国碳交易服务平台现存问题及应对策略[J]. 社会科学战线, 2014(6):58-60. |
CHENG W B. Existing problems and response strategies of China’s carbon trading service platform[J]. Social Science Front, 2014(6): 58-60. | |
3 | 袁勇,王飞跃. 区块链技术发展现状与展望[J]. 自动化学报, 2016, 42(4):481-494. |
YUAN Y, WANG F Y. Blockchain: the state of the art and future trends[J]. Acta Automatica Sinica, 2016, 42(4): 481-494. | |
4 | 周业军,邓若翰. 区块链应用于碳交易:应用优势、潜在挑战与制度应对[J]. 西南金融, 2023(3):3-15. |
ZHOU Y J, DENG R H. Blockchain application to carbon trading: application advantages, potential challenges and institutional responses[J]. Southwest Finance, 2023(3): 3-15. | |
5 | 黄步添,蔡亮. 区块链解密:构建基于信用的下一代互联网[M]. 北京:清华大学出版社, 2016:43. |
HUANG B T, CAI L. Blockchain Decryption: Building a Credit-Based Next-Generation Internet[M]. Beijing: Tsinghua University Press, 2016: 43. | |
6 | ANDROULAKI E, BARGER A, BORTNIKOV V, et al. Hyperledger Fabric: a distributed operating system for permissioned blockchains[C]// Proceedings of the 13th EuroSys Conference. New York: ACM, 2018: No.30. |
7 | 刘翔. 基于双碳目标的碳交易市场机制优化研究[D]. 南昌:江西财经大学, 2022:25-33. |
LIU X. Optimization of carbon trading market mechanism based on carbon peaking and carbon neutrality goals[D]. Nanchang: Jiangxi University of Finance and Economics, 2022: 25-33. | |
8 | NEWTON-FENNER A, TYSON-CARR J, ROBERTS H, et al. Bid outcome processing in Vickrey auctions: an ERP study[J]. Psychophysiology, 2022, 59(12): No.e14125. |
9 | LIU W, WU H, MENG T, et al. AucSwap: a Vickrey auction modeled decentralized cross-blockchain asset transfer protocol[J]. Journal of Systems Architecture, 2021, 117: No.102102. |
10 | ROSATO A, TYMULA A A. Loss aversion and competition in Vickrey auctions: money ain’t no good[J]. Games and Economic Behavior, 2019, 115: 188-208. |
11 | 刘忠途,张志龙,陈鹏,等. 基于区块链和混合连续双向拍卖的分布式电力交易机制[J]. 科学技术与工程, 2023, 23(16):6931-6936. |
LIU Z T, ZHANG Z L, CHEN P, et al. Distributed power trading mechanism based on blockchain and mixed continuous double auction[J]. Science Technology and Engineering, 2023, 23(16): 6931-6936. | |
12 | 黄家晖,李超,黄微,等. 基于区块链的园区级多边用电权交易机制及实现方法[J]. 电力自动化设备, 2022, 42(1):93-100. |
HUANG J H, LI C, HUANG W, et al. Park-level multilateral power usage quota trading mechanism and implementation method based on blockchain[J]. Electric Power Automation Equipment, 2022, 42(1):93-100. | |
13 | 王健,周念成,王强钢,等. 基于区块链和连续双向拍卖机制的微电网直接交易模式及策略[J]. 中国电机工程学报, 2018, 38(17):5072-5084, 5304. |
WANG J, ZHOU N C, WANG Q G, et al. Electricity direct transaction mode and strategy in microgrid based on blockchain and continuous double auction mechanism[J]. Proceedings of the CSEE, 2018, 38(17):5072-5084, 5304. | |
14 | 孙俨,熊翱,蒋承伶,等. 基于区块链的计算与无线通信资源联合管理双向拍卖模型[J]. 通信学报, 2022, 43(11):14-25. |
SUN J, XIONG A, JIANG C L, et al. Blockchain-based computing and wireless communication resource joint management double auction model[J]. Journal on Communications, 2022, 43(11):14-25. | |
15 | 张海涛,高鑫,张仙,等. 基于匹配博弈双向选择高校自动排课策略的构建[J]. 中国管理信息化, 2014, 17(20):101-103. |
ZHANG H T, GAO X, ZHANG X, et al. Construction of automatic scheduling strategy of colleges and universities based on two-way selection of matching game[J]. China Management Informationization, 2014, 17(20): 101-103. | |
16 | 邬春学,贺欣欣. 基于改进匈牙利算法对多人人体关键点匹配的研究[J]. 信息技术与网络安全, 2022, 41(5):45-50, 58. |
WU C X, HE X X. Research of matching key points of multi-person human body based on improved Hungarian algorithm[J]. Information Technology and Network Security, 2022, 41(5): 45-50, 58. | |
17 | 牛焕娜,李宗晟,窦伟,等. 考虑交易和谐度的虚拟电厂参与调峰市场交易匹配方法[J]. 电力自动化设备, 2023, 43(5):70-76. |
NIU H N, LI Z S, DOU W, et al. Transaction matching method of virtual power plant participating in peak regulation market considering transaction harmony degree[J]. Electric Power Automation Equipment, 2023, 43(5): 70-76. | |
18 | 吉斌,刘妍,朱丽叶,等. 基于联盟区块链的电力碳权交易机制设计[J]. 华电技术, 2020, 42(8):32-40. |
JI B, LIU Y, ZHU L Y, et al. Design of carbon emission permit trading mechanism in power industry based on consortium blockchain[J]. Huadian Technology, 2020, 42(8): 32-40. | |
19 | 曹萱. 基于区块链技术的分布式能源交易平台架构设计与实现[D].北京:北京邮电大学, 2021:25-30. |
CAO X. Design and implementation of distributed energy trading platform architecture based on blockchain technology[D]. Beijing: Beijing University of Posts and Telecommunications, 2021: 25-30. | |
20 | 李幸芝,韩蓓,李国杰,等. 分布式绿色能源碳交易机制及碳数据管理的挑战[J]. 上海交通大学学报, 2022, 56(8):977-993. |
LI X Z, HAN B, LI G J, et al. Challenges of distributed green energy carbon trading mechanism and carbon data management[J]. Journal of Shanghai Jiao Tong University, 2022, 56(8): 977-993. | |
21 | 杨雪,金孝俊,王海洋,等. 基于区块链的绿证和碳交易市场联合激励机制[J]. 电力建设, 2022, 43(6):24-33. |
YANG X, JIN X J, WANG H Y, et al. Blockchain-based joint incentive mechanism for tradable green certificate and carbon trading market[J]. Electric Power Construction, 2022, 43(6): 24-33. | |
22 | 袁莉莉,李东格. 基于区块链技术的碳排放机制设计[J]. 网络空间安全, 2020, 11(2):111-117. |
YUAN L L, LI D G. Carbon emission mechanism design based on blockchain technology[J]. Cyberspace Security, 2020, 11(2): 111-117. | |
23 | 冯昌森,谢方锐,文福拴,等. 基于智能合约的绿证和碳联合交易市场的设计与实现[J]. 电力系统自动化, 2021, 45(23):1-11. |
FENG C S, XIE F R, WEN F S, et al. Design and implementation of joint trading market for green power certificate and carbon based on smart contracts[J]. Automation of Electric Power Systems, 2021, 45(23): 1-11. | |
24 | YUAN L, DONG J, WANG N, et al. Blockchain-based carbon allowance trading market construction[C]// Proceedings of the 2021 IEEE Sustainable Power and Energy Conference. Piscataway: IEEE, 2021: 245-248. |
25 | WANG D, LI D, MA J, et al. Blockchain-based distributed reputation for a cap-and-trade carbon emission system[C]// Proceedings of the 2021 IEEE International Conference on Energy Internet. Piscataway: IEEE, 2021: 197-204. |
26 | EFFAH D, BAI C, APPIAH F, et al. Carbon emission monitoring and credit trading: the blockchain and IoT approach[C]// Proceedings of the 18th International Computer Conference on Wavelet Active Media Technology and Information Processing. Piscataway: IEEE, 2021: 106-109. |
27 | GOLDING O, YU G, LU Q, et al. Carboncoin: blockchain tokenization of carbon emissions with ESG-based reputation[C]// Proceedings of the 2022 IEEE International Conference on Blockchain and Cryptocurrency. Piscataway: IEEE, 2022: 1-5. |
28 | BAI Y, SONG Y, YANG Y, et al. Construction of carbon trading platform using sovereignty blockchain[C]// Proceedings of the 2020 International Conference on Computer Engineering and Intelligent Control. Piscataway: IEEE, 2020: 149-152. |
29 | LUO Z, LIAO K, ZHANG X, et al. Blockchain application in methodology for CCER[C]// Proceedings of the 2022 IEEE PES Innovative Smart Grid Technologies — Asia. Piscataway: IEEE, 2020: 766-769. |
30 | SADAWI A A, NDIAYE M. Blockchain-based carbon trading mechanism to elevate governance and smartness[C]// Proceedings of the 14th International Conference on Theory and Practice of Electronic Governance. New York: ACM, 2021: 34-43. |
[1] | 黄河, 金瑜. 基于投票和以太坊智能合约的云数据审计方案[J]. 《计算机应用》唯一官方网站, 2024, 44(7): 2093-2101. |
[2] | 宋宝燕, 丁俊翔, 王俊陆, 张浩林. 基于变色龙哈希和可验证秘密共享的联盟链修改方法[J]. 《计算机应用》唯一官方网站, 2024, 44(7): 2087-2092. |
[3] | 方鹏, 赵凡, 王保全, 王轶, 蒋同海. 区块链3.0的发展、技术与应用[J]. 《计算机应用》唯一官方网站, 2024, 44(12): 3647-3657. |
[4] | 陈璐瑀, 马小峰, 何敬, 龚生智, 高建. 基于TrustZone的区块链智能合约隐私授权方法[J]. 《计算机应用》唯一官方网站, 2023, 43(6): 1969-1978. |
[5] | 曹萌, 余孙婕, 曾辉, 史红周. 基于区块链的医疗数据分级访问控制与共享系统[J]. 《计算机应用》唯一官方网站, 2023, 43(5): 1518-1526. |
[6] | 王亦涵, 唐晨, 张兰. 大宗商品防欺诈抗篡改线上交易机制[J]. 《计算机应用》唯一官方网站, 2023, 43(4): 1309-1317. |
[7] | 童俊成, 赵波. 区块链智能合约漏洞检测与自动化修复综述[J]. 《计算机应用》唯一官方网站, 2023, 43(3): 785-793. |
[8] | 邵怡敏, 赵凡, 王轶, 王保全. 基于区块链技术及应用的可视化研究综述[J]. 《计算机应用》唯一官方网站, 2023, 43(10): 3038-3046. |
[9] | 许蕴韬, 朱俊武, 孙彬文, 孙茂圣, 陈四海. 选举供应链:基于区块链的供应链自治框架[J]. 《计算机应用》唯一官方网站, 2022, 42(6): 1770-1775. |
[10] | 李杨, 徐龙, 李研强, 李绍鹏. 基于智能合约的物联网访问控制架构与验证[J]. 《计算机应用》唯一官方网站, 2022, 42(6): 1922-1931. |
[11] | 任秀丽, 张雷. 基于实用拜占庭容错的改进的多主节点共识机制[J]. 《计算机应用》唯一官方网站, 2022, 42(5): 1500-1507. |
[12] | 谢家贵, 李志平, 金键. 基于星火区块链的跨链机制[J]. 《计算机应用》唯一官方网站, 2022, 42(2): 519-527. |
[13] | 赵乐, 张恩, 秦磊勇, 李功丽. 基于区块链的多方隐私保护k-means聚类方案[J]. 《计算机应用》唯一官方网站, 2022, 42(12): 3801-3812. |
[14] | 郑建辉, 林飞龙, 陈中育, 胡兆龙, 唐长兵. 基于联盟自治的区块链跨链机制[J]. 《计算机应用》唯一官方网站, 2022, 42(11): 3444-3457. |
[15] | 龚胜佳, 张琳琳, 赵楷, 刘军涛, 杨涵. 基于区块链技术的虚假新闻检测方法[J]. 《计算机应用》唯一官方网站, 2022, 42(11): 3458-3464. |
阅读次数 | ||||||
全文 |
|
|||||
摘要 |
|
|||||