CN115102238A - Power supply method, device, electronic device, and storage medium - Google Patents

Power supply method, device, electronic device, and storage medium Download PDF

Info

Publication number
CN115102238A
CN115102238A CN202211037601.0A CN202211037601A CN115102238A CN 115102238 A CN115102238 A CN 115102238A CN 202211037601 A CN202211037601 A CN 202211037601A CN 115102238 A CN115102238 A CN 115102238A
Authority
CN
China
Prior art keywords
power generation
spider
leader
monkey
spider monkey
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211037601.0A
Other languages
Chinese (zh)
Other versions
CN115102238B (en
Inventor
周杰
俎云霄
刘妍
卢毅
张瑶
李志刚
黎劲松
陈文斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xinjiang Tianfu Energy Co ltd
Xidian University
Beijing University of Posts and Telecommunications
Shihezi University
Original Assignee
Xinjiang Tianfu Energy Co ltd
Xidian University
Beijing University of Posts and Telecommunications
Shihezi University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinjiang Tianfu Energy Co ltd, Xidian University, Beijing University of Posts and Telecommunications, Shihezi University filed Critical Xinjiang Tianfu Energy Co ltd
Priority to CN202211037601.0A priority Critical patent/CN115102238B/en
Publication of CN115102238A publication Critical patent/CN115102238A/en
Application granted granted Critical
Publication of CN115102238B publication Critical patent/CN115102238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J3/00Circuit arrangements for AC mains or AC distribution networks
    • H02J3/38Arrangements for parallely feeding a single network by two or more generators, converters or transformers
    • H02J3/46Controlling of the sharing of output between the generators, converters, or transformers
    • H02J3/466Scheduling the operation of the generators, e.g. connecting or disconnecting generators to meet a given demand
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2203/00Indexing scheme relating to details of circuit arrangements for AC mains or AC distribution networks
    • H02J2203/20Simulating, e g planning, reliability check, modelling or computer assisted design [CAD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Biophysics (AREA)
  • Economics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Marketing (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Water Supply & Treatment (AREA)
  • Development Economics (AREA)
  • Power Engineering (AREA)
  • Game Theory and Decision Science (AREA)
  • Primary Health Care (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Public Health (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Physiology (AREA)
  • Genetics & Genomics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention provides a power supply method, a device, electronic equipment and a storage medium, which relate to the technical field of power supply, and the method comprises the following steps: acquiring a plurality of power generation areas and a plurality of power generation modes; determining the corresponding power cost and carbon emission when a target power generation area supplies power according to each power generation mode in a plurality of power generation modes, wherein the target power generation area is any one of the plurality of power generation areas; determining a target power generation scheme based on a spider monkey algorithm according to the power cost and the carbon emission corresponding to each power generation area in the plurality of power generation areas, wherein the target power generation scheme comprises a target power generation mode corresponding to each power generation area; and controlling each power generation area to supply power according to the target power generation scheme. The method can overcome the defect of low power supply efficiency in the existing power supply method, and realizes the distribution of target power generation modes to a plurality of power generation areas based on a spider monkey algorithm with low complexity and low limitation, thereby improving the power supply efficiency.

Description

电力供应方法、装置、电子设备及存储介质Power supply method, device, electronic device, and storage medium

技术领域technical field

本发明涉及电力供应技术领域,尤其涉及一种电力供应方法、装置、电子设备及存储介质。The present invention relates to the technical field of power supply, and in particular, to a power supply method, device, electronic device and storage medium.

背景技术Background technique

当今社会,电力能源已逐渐渗入至人们的日常生活中。为了促进社会的发展和进步,人们对于电力能源的需求量愈加庞大,然而,就导致环境的污染程度变得越来越严重。随着社会的快速发展,环境与电力能源之间的矛盾逐渐加剧,无法忽视。为了保护全球环境,降低污染废物的排放量,发展综合电力能源势在必行。In today's society, electric energy has gradually penetrated into people's daily life. In order to promote the development and progress of society, people's demand for electric energy is increasing, however, the degree of environmental pollution has become more and more serious. With the rapid development of society, the contradiction between the environment and electric energy has gradually intensified, which cannot be ignored. In order to protect the global environment and reduce the emission of polluting wastes, it is imperative to develop integrated electric energy.

现有的电力供应方法中,电子设备针对多个发电地区及多种发电方式,利用启发式算法,为这多个发电地区分配相应的发电方式,并控制这多个发电地区进行电力供应。然而,该启发式算法是一个基于直观或经验而构造的算法,该启发式算法较为复杂,且在具有局限性的时间和空间下对多个发电地区与多种发电方式对应的组合优化问题进行求解,得到每个发电地区对应的可行解,而该可行解与最优解的偏离程度一般不能被预计。因此,易导致电子设备无法得到多个发电地区与多种发电方式对应的组合优化最优解,即易导致该电子设备无法有效对多个发电地区分配相应的发电方式,从而导致电力供应的效率较低。In the existing power supply method, the electronic device uses a heuristic algorithm for multiple power generation areas and multiple power generation methods to assign corresponding power generation methods to the multiple power generation areas, and controls the multiple power generation areas to supply power. However, this heuristic algorithm is an algorithm constructed based on intuition or experience. The heuristic algorithm is relatively complex, and the combined optimization problem corresponding to multiple power generation areas and multiple power generation methods is carried out under limited time and space. The feasible solution corresponding to each power generation area is obtained, and the degree of deviation of the feasible solution from the optimal solution cannot generally be predicted. Therefore, it is easy to cause the electronic device to fail to obtain the optimal solution of the combination optimization corresponding to the multiple power generation areas and the multiple power generation methods, that is, it is easy to cause the electronic device to be unable to effectively allocate the corresponding power generation methods to the multiple power generation areas, resulting in the efficiency of power supply. lower.

发明内容SUMMARY OF THE INVENTION

本发明提供一种电力供应方法、装置、电子设备及存储介质,用以解决现有的电力供应方法中,由于启发式算法较为复杂且具有一定的局限性,导致电子设备无法有效对多个发电地区分配相应的发电方式,从而导致电力供应的效率较低的缺陷,电子设备可以基于蜘蛛猴算法,该蜘蛛猴算法复杂度较低且局限性较小,实现对多个发电地区分配目标发电方式,从而提高电力供应的效率。The present invention provides a power supply method, device, electronic device and storage medium, which are used to solve the problem that in the existing power supply method, due to the complicated heuristic algorithm and certain limitations, the electronic device cannot effectively generate electricity for multiple Regions allocate corresponding power generation methods, which leads to the defect of low power supply efficiency. Electronic devices can be based on the spider monkey algorithm, which has low complexity and limited limitations, and realizes the distribution of target power generation methods to multiple power generation regions. , thereby improving the efficiency of power supply.

本发明提供一种电力供应方法,包括:The present invention provides a power supply method, comprising:

获取多个发电地区及多种发电方式;Obtain multiple power generation regions and multiple power generation methods;

确定目标发电地区按照该多种发电方式中每种发电方式进行电力供应时对应的电力成本及碳排放量,该目标发电地区为该多个发电地区中的任一发电地区;Determine the electricity cost and carbon emission corresponding to the target power generation area when supplying electricity according to each of the multiple power generation methods, and the target power generation area is any power generation area in the multiple power generation areas;

根据该多个发电地区中每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定目标发电方案,该目标发电方案包括该每个发电地区分别对应的目标发电方式;According to the electricity costs and carbon emissions corresponding to each power generation area in the multiple power generation areas, and based on the spider monkey algorithm, determine a target power generation scheme, where the target power generation scheme includes the target power generation mode corresponding to each power generation area;

根据该目标发电方案,控制该每个发电地区进行电力供应。According to the target power generation plan, each power generation area is controlled to supply power.

根据本发明提供的一种电力供应方法,该根据该多个发电地区中每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定目标发电方案,包括:获取多个蜘蛛猴,该多个蜘蛛猴中每个蜘蛛猴分别对应一种初始发电方案,该初始发电方案包括该多个发电地区中每个发电地区分别对应的一种发电方式;根据该每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定该每个蜘蛛猴对应的适应度值;根据该适应度值,确定该多个蜘蛛猴对应的第一全局领导者和第一局部领导者;根据该第一全局领导者和该第一局部领导者,确定目标发电方案。According to a power supply method provided by the present invention, the target power generation scheme is determined based on the spider monkey algorithm according to the power cost and carbon emissions corresponding to each power generation area in the multiple power generation areas, including: acquiring a plurality of spider monkeys , each spider monkey in the plurality of spider monkeys corresponds to an initial power generation scheme, and the initial power generation scheme includes a power generation mode corresponding to each power generation area in the multiple power generation areas; Based on the spider monkey algorithm, determine the fitness value corresponding to each spider monkey; according to the fitness value, determine the first global leader and the first local leader corresponding to the multiple spider monkeys ; According to the first global leader and the first local leader, determine the target power generation scheme.

根据本发明提供的一种电力供应方法,该根据该适应度值,确定该多个蜘蛛猴对应的第一全局领导者和第一局部领导者,包括:确定该适应度值中的第一最大适应度值,并将该第一最大适应度值对应的蜘蛛猴确定为该多个蜘蛛猴对应的第一全局领导者;将该多个蜘蛛猴进行分组,得到至少一个蜘蛛猴集合,该至少一个蜘蛛猴集合中每个蜘蛛猴集合包括至少一个蜘蛛猴;获取目标蜘蛛猴集合中每个蜘蛛猴对应的适应度值并确定该每个蜘蛛猴对应的适应度值中的第二最大适应度值,该目标蜘蛛猴集合为该多个蜘蛛猴集合中的任一蜘蛛猴集合;将该第二最大适应度值所对应的蜘蛛猴确定为该目标蜘蛛猴集合对应的第一局部领导者。According to a power supply method provided by the present invention, determining the first global leader and the first local leader corresponding to the plurality of spider monkeys according to the fitness value includes: determining the first largest among the fitness values fitness value, and determine the spider monkey corresponding to the first maximum fitness value as the first global leader corresponding to the plurality of spider monkeys; group the plurality of spider monkeys to obtain at least one spider monkey set, the at least one spider monkey set. Each spider monkey set in a spider monkey set includes at least one spider monkey; acquiring the fitness value corresponding to each spider monkey in the target spider monkey set and determining the second largest fitness among the fitness values corresponding to each spider monkey value, the target spider monkey set is any spider monkey set in the multiple spider monkey sets; the spider monkey corresponding to the second maximum fitness value is determined as the first local leader corresponding to the target spider monkey set.

根据本发明提供的一种电力供应方法,该基于该第一全局领导者和该第一局部领导者,确定目标发电方案,包括:基于该第一全局领导者和该第一局部领导者,对该多个蜘蛛猴进行更新,得到更新后的蜘蛛猴;根据该更新后的蜘蛛猴所对应的总电力成本,确定第二全局领导者和第二局部领导者;根据该第一全局领导者、该第一局部领导者、该第二全局领导者和该第二局部领导者,确定目标发电方案。According to a power supply method provided by the present invention, determining a target power generation scheme based on the first global leader and the first local leader includes: based on the first global leader and the first local leader, determining The plurality of spider monkeys are updated to obtain updated spider monkeys; the second global leader and the second local leader are determined according to the total power cost corresponding to the updated spider monkeys; according to the first global leader, The first local leader, the second global leader, and the second local leader determine a target power generation scheme.

根据本发明提供的一种电力供应方法,该根据该第一全局领导者和该第一局部领导者,对该多个蜘蛛猴进行更新,得到更新后的蜘蛛猴,包括:根据该第一局部领导者,基于贪婪算法,对该目标蜘蛛猴集合中每个蜘蛛猴进行更新,得到更新后的第一蜘蛛猴;根据该多个蜘蛛猴中每个蜘蛛猴分别对应的适应度值,确定该每个蜘蛛猴分别对应的适应度概率,并根据该适应度概率及该第一全局领导者,对该多个蜘蛛猴中每个蜘蛛猴进行更新,得到更新后的第二蜘蛛猴。According to a power supply method provided by the present invention, updating the plurality of spider monkeys according to the first global leader and the first local leader to obtain updated spider monkeys, comprising: according to the first local leader The leader, based on the greedy algorithm, updates each spider monkey in the target spider monkey set, and obtains the updated first spider monkey; according to the corresponding fitness value of each spider monkey in the plurality of spider monkeys, determine the The fitness probability corresponding to each spider monkey, and according to the fitness probability and the first global leader, each spider monkey in the plurality of spider monkeys is updated to obtain an updated second spider monkey.

根据本发明提供的一种电力供应方法,该根据该更新后的蜘蛛猴所对应的总电力成本,确定第二全局领导者和第二局部领导者,包括:确定该更新后的第一蜘蛛猴所对应的第一总电力成本中的第一最小总电力成本,并将该第一最小总电力成本对应的第一蜘蛛猴确定为第二局部领导者;确定该更新后的第二蜘蛛猴所对应的第二总电力成本中的第二最小总电力成本,并将该第二最小总电力成本对应的第二蜘蛛猴确定为第二全局领导者。According to a power supply method provided by the present invention, determining the second global leader and the second local leader according to the total power cost corresponding to the updated spider monkey includes: determining the updated first spider monkey The first minimum total power cost in the corresponding first total power costs, and the first spider monkey corresponding to the first minimum total power cost is determined as the second local leader; the updated second spider monkey is determined. The second smallest total power cost in the corresponding second total power costs, and the second spider monkey corresponding to the second smallest total power cost is determined as the second global leader.

根据本发明提供的一种电力供应方法,该根据该第一全局领导者、该第一局部领导者、该第二全局领导者和该第二局部领导者,确定目标发电方案,包括:在确定该第二局部领导者与该第一局部领导者相同的情况下,根据该第二全局领导者及该第二局部领导者,对该更新后的第二蜘蛛猴进行更新,得到更新后的第三蜘蛛猴;在确定该第二全局领导者与该第一全局领导者相同的情况下,若该蜘蛛猴集合的数量大于预设数量阈值,则将该蜘蛛猴集合进行划分,得到多个蜘蛛猴小组,若该数量小于等于该预设数量阈值,则将该蜘蛛猴集合进行合并,得到蜘蛛猴大组;在该第一全局领导者的更新迭代次数达到预设次数阈值的情况下,将最后一次得到的全局领导者确定为目标发电方案。According to a power supply method provided by the present invention, determining a target power generation scheme according to the first global leader, the first local leader, the second global leader and the second local leader includes: When the second local leader is the same as the first local leader, the updated second spider monkey is updated according to the second global leader and the second local leader to obtain the updated first Three spider monkeys; when it is determined that the second global leader is the same as the first global leader, if the number of the spider monkey set is greater than the preset number threshold, divide the spider monkey set to obtain multiple spider monkeys In the monkey group, if the number is less than or equal to the preset number threshold, the spider monkey set is merged to obtain a large spider monkey group; when the number of update iterations of the first global leader reaches the preset number threshold, the The last time the global leader is obtained is determined as the target power generation scheme.

本发明还提供一种电力供应装置,包括:The present invention also provides a power supply device, comprising:

本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述电力供应方法。The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, when the processor executes the program, the power supply method as described above is implemented. .

本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述电力供应方法。The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements any one of the above-mentioned power supply methods.

本发明还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述电力供应方法。The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any one of the above-mentioned power supply methods.

本发明提供的电力供应方法、装置、电子设备及存储介质,通过获取多个发电地区及多种发电方式;确定目标发电地区按照所述多种发电方式中每种发电方式进行电力供应时对应的电力成本及碳排放量,所述目标发电地区为所述多个发电地区中的任一发电地区;根据所述多个发电地区中每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定目标发电方案,所述目标发电方案包括所述每个发电地区分别对应的目标发电方式;根据所述目标发电方案,控制所述每个发电地区进行电力供应。由于蜘蛛猴算法中的参数较少且收敛速度较快,即该蜘蛛猴算法的复杂程度较低且局限性较小,电子设备基于该蜘蛛猴算法,可有效提高发电方式分配过程,且可有效降低电力供应成本,从而有效促进综合能源的可持续发展。The power supply method, device, electronic device and storage medium provided by the present invention, by acquiring multiple power generation areas and multiple power generation methods; Electricity cost and carbon emissions, the target power generation area is any one of the multiple power generation areas; according to the electricity cost and carbon emissions corresponding to each power generation area in the multiple power generation areas, based on spider The monkey algorithm is used to determine a target power generation scheme, and the target power generation scheme includes a target power generation mode corresponding to each power generation area respectively; according to the target power generation scheme, each power generation area is controlled to supply power. Since the spider monkey algorithm has fewer parameters and a faster convergence speed, that is, the spider monkey algorithm is less complex and less limited, the electronic device based on the spider monkey algorithm can effectively improve the power generation mode distribution process, and can effectively Reduce the cost of electricity supply, thereby effectively promoting the sustainable development of integrated energy.

附图说明Description of drawings

为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are the For some embodiments of the invention, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1是本发明提供的电力供应方法的流程示意图;1 is a schematic flowchart of a power supply method provided by the present invention;

图2a是本发明提供的不同的电力供应方法分别对应的电力代价曲线对比示意图;2a is a schematic diagram showing the comparison of power cost curves corresponding to different power supply methods provided by the present invention;

图2b是本发明提供的不同的电力供应方法分别对应的电力成本曲线对比示意图;Fig. 2b is a schematic diagram showing the comparison of power cost curves corresponding to different power supply methods provided by the present invention;

图2c是本发明提供的不同的电力供应方法分别对应的碳排放量曲线对比示意图;Fig. 2c is a schematic diagram showing the comparison of carbon emission curves corresponding to different power supply methods provided by the present invention;

图3是本发明提供的电力供应装置的结构示意图;3 is a schematic structural diagram of a power supply device provided by the present invention;

图4是本发明提供的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention. , not all examples. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明实施例涉及的电子设备可称为综合能源配置中心,该电子设备可以包括:计算机、移动终端及可穿戴设备等。It should be noted that the electronic device involved in the embodiment of the present invention may be referred to as a comprehensive energy configuration center, and the electronic device may include: a computer, a mobile terminal, a wearable device, and the like.

需要说明的是,本发明实施例涉及的执行主体可以是电力供应装置,也可以是电子设备,下面以电子设备为例进行进一步地说明。It should be noted that the execution subject involved in the embodiment of the present invention may be a power supply device or an electronic device, and the electronic device is used as an example for further description below.

如图1所示,是本发明提供的电力供应方法的流程示意图,可以可以包括:As shown in FIG. 1, it is a schematic flowchart of the power supply method provided by the present invention, which may include:

101、获取多个发电地区及多种发电方式。101. Obtain multiple power generation regions and multiple power generation methods.

其中,发电地区指的是可以提供电力传输的地区,该发电地区的数量为至少两个;Among them, the power generation area refers to the area that can provide power transmission, and the number of the power generation area is at least two;

发电方式指的是将其它能量转换成电能的方式,该发电方式的数量为至少两个。The power generation method refers to a method of converting other energy into electrical energy, and the number of the power generation methods is at least two.

可选的,发电方式可以包括但不限于以下:火力发电(简称:火电)、风力发电(简称:风电)、燃气发电、太阳能光伏发电(简称:光伏发电)、水力发电(简称:水电)及核能发电等。Optionally, the power generation methods may include but are not limited to the following: thermal power generation (abbreviation: thermal power), wind power (abbreviation: wind power), gas power generation, solar photovoltaic power generation (abbreviation: photovoltaic power generation), hydropower (abbreviation: hydropower) and Nuclear power generation, etc.

其中,火电指的是利用燃烧煤炭、石油、液化天然气等燃料产生的热能,使锅炉水管中的水受热成为高温高压的蒸汽,然后,利用该蒸汽推动汽轮机转动,以带动发电机发电,即将热能转化为电能;Among them, thermal power refers to the use of thermal energy generated by burning coal, petroleum, liquefied natural gas and other fuels to heat the water in the boiler water pipe into high-temperature and high-pressure steam, and then use the steam to drive the steam turbine to rotate to drive the generator to generate electricity. converted into electrical energy;

风电指的是利用风力推动风车转动,以带动发电机发电;Wind power refers to the use of wind power to drive windmills to rotate to drive generators to generate electricity;

燃气发电指的是利用天然气的燃烧热能推动汽轮机转动,以带动发电机发电;Gas-fired power generation refers to the use of the combustion heat energy of natural gas to drive the steam turbine to rotate to drive the generator to generate electricity;

光伏发电指的是将具有光电效应的硅材料制成太阳能电池板,将通过该太阳能电池板接受的太阳光能转化为电能;Photovoltaic power generation refers to making solar panels made of silicon materials with photoelectric effect, and converting the sunlight energy received by the solar panels into electrical energy;

水电指的是通过筑坝将位于高处的水向低处流动时的位能转换为动能,设在水道低处的水轮机与发电机相连接,该水轮机易受到水流的推动而转动,从而带动发电机发电;Hydropower refers to converting the potential energy of water at a high place to a lower place by building a dam into kinetic energy. The turbine located at the lower part of the waterway is connected to the generator. The turbine is easily driven by the water flow to rotate, thereby driving generator to generate electricity;

核能发电利用核能将反应堆中的水加热产生蒸汽,在蒸汽的推动下,汽轮机带动发电机转动产生电能。Nuclear power generation uses nuclear energy to heat the water in the reactor to generate steam. Under the impetus of the steam, the steam turbine drives the generator to rotate to generate electricity.

示例性的,电子设备可以获取11个发电地区及5种发电方式,该5种发电方式分别为:火电、风电、燃气发电、光伏发电及水电。Exemplarily, the electronic device may acquire 11 power generation areas and 5 power generation modes, and the 5 power generation modes are: thermal power, wind power, gas power generation, photovoltaic power generation, and hydropower.

102、确定目标发电地区按照多种发电方式中每种发电方式进行电力供应时对应的电力成本及碳排放量。102. Determine the corresponding power cost and carbon emissions when the target power generation area supplies power according to each of the multiple power generation methods.

其中,目标发电地区为多个发电地区中的任一发电地区。Wherein, the target power generation area is any power generation area among a plurality of power generation areas.

电力供应指的是发电地区进行发电和输电的过程;Electricity supply refers to the process of generating and transmitting electricity in a generating area;

电力成本指的是发电地区在进行电力供应时产生的开销,也即,该电力成本指的是发电地区在发电过程中产生的开销及在输电过程中产生的开销;Electricity cost refers to the overhead incurred in the electricity supply in the power generation area, that is, the electricity cost refers to the overhead generated in the power generation area during the power generation process and the overhead generated during the power transmission process;

碳排放量指的是发电地区在进行电力供应时排放的平均温室气体排放量。Carbon emissions refer to the average amount of greenhouse gas emissions emitted when electricity is supplied in power-generating regions.

可选的,电力成本可以包括发电成本和输电成本。Optionally, the cost of electricity may include the cost of generating electricity and the cost of transmitting electricity.

可选的,发电成本可以包括但不限于:燃气轮机的投资成本、光伏的投资成本、风机的投资成本和蓄电池储能的投资成本等;输电成本可以包括但不限于购电成本、售电成本、购气成本及蓄电池的折损成本等。Optionally, the cost of power generation may include, but is not limited to, the investment cost of gas turbines, the investment cost of photovoltaics, the investment cost of wind turbines, and the investment cost of battery energy storage, etc.; Gas purchase cost and battery damage cost, etc.

可选的,电力成本的单位为亿元;碳排放量的单位为万吨。Optionally, the unit of electricity cost is 100 million yuan; the unit of carbon emission is 10,000 tons.

电子设备在控制目标发电地区按照多种发电方式中第一种发电方式进行电力供应的过程中,可以统计对应的电力成本及碳排放量;该电子设备在控制该目标发电地区按照该多种发电方式中第二种发电方式进行电力供应的过程中,可以统计对应的电力成本及碳排放量,以此类推,该电子设备可以获取该目标发电地区按照该多种发电方式中每种发电方式进行电力供应时分别对应的电力成本及碳排放量。In the process of controlling the target power generation area to supply power according to the first power generation method among the multiple power generation methods, the electronic equipment can count the corresponding power cost and carbon emissions; the electronic equipment controls the target power generation area according to the multiple power generation methods. In the process of supplying power with the second power generation method, the corresponding power costs and carbon emissions can be counted, and so on, the electronic device can obtain the target power generation area and perform power generation according to each of the multiple power generation methods. The corresponding electricity costs and carbon emissions when electricity is supplied.

基于上述过程,电子设备在获取多个发电地区及多种发电方式之后,可以获取这多个发电地区中每个发电地区按照这多种发电方式中每种发电方式进行电力供应时分别对应的电力成本及碳排放量。Based on the above process, after acquiring multiple power generation areas and multiple power generation methods, the electronic device can obtain the power corresponding to each power generation area in the multiple power generation areas when supplying power according to each power generation method in the multiple power generation methods. cost and carbon footprint.

可选的,同一发电地区按照不同发电方式进行电力供应时对应的电力成本可以是相同的,也可以是不同的;同一发电地区按照不同发电方式进行电力供应时对应的碳排放量可以是相同的,也可以是不同的;不同发电地区按照同一发电方式进行电力供应时对应的电力成本可以是相同的,也可以是不同的;不同发电地区按照同一发电方式进行电力供应时对应的碳排放量可以是相同的,也可以是不同的,此处不作具体限定。Optionally, when the same power generation area supplies electricity according to different power generation methods, the corresponding electricity costs may be the same or different; when the same power generation area supplies electricity according to different power generation methods, the corresponding carbon emissions may be the same. , it can be different; the corresponding electricity costs can be the same or different when different power generation regions supply electricity according to the same power generation method; the corresponding carbon emissions when different power generation regions supply electricity according to the same power generation method can be are the same or may be different, which are not specifically limited here.

示例性的,假设电子设备获取2个发电地区和2种发电方式。这2个发电地区分别为第一发电地区和第二发电地区,这2种发电方式分别为火电和风电。Exemplarily, it is assumed that the electronic device acquires 2 power generation regions and 2 power generation modes. The two power generation areas are the first power generation area and the second power generation area, and the two power generation methods are thermal power and wind power respectively.

电子设备可以统计第一发电地区按照火电进行电力供应时对应的电力成本及碳排放量,分别为2.6亿元和5.2万吨;The electronic equipment can count the electricity cost and carbon emissions corresponding to the first power generation area’s electricity supply according to thermal power, which are 260 million yuan and 52,000 tons respectively;

该电子设备可以统计该第一发电地区按照风电进行电力供应时对应的电力成本及碳排放量,分别为2.3亿元和4.8万吨;The electronic device can count the electricity cost and carbon emissions corresponding to the first power generation area when the electricity is supplied by wind power, which are 230 million yuan and 48,000 tons respectively;

该电子设备可以统计第二发电地区按照该火电进行电力供应时对应的电力成本及碳排放量,分别为1.8亿元和3.3万吨;The electronic device can count the electricity cost and carbon emissions corresponding to the thermal power supply in the second power generation area, which are 180 million yuan and 33,000 tons respectively;

该电子设备可以统计该第二发电地区按照该风电进行电力供应时对应的电力成本及碳排放量,分别为1.9亿元和4.2万吨。The electronic device can calculate the electricity cost and carbon emissions corresponding to the second power generation area when the wind power supplies electricity, which are 190 million yuan and 42,000 tons, respectively.

上述统计过程的时序不限,这样一来,该电子设备就可以确定这2个发电地区中每个发电地区按照这2种发电方式中每种发电方式进行电力供应时分别对应的电力成本及碳排放量。The timing of the above statistical process is not limited, so that the electronic device can determine the electricity costs and carbon emissions corresponding to each of the two power generation areas when supplying electricity according to each of the two power generation methods. emissions.

103、根据多个发电地区中每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定目标发电方案。103. Determine a target power generation scheme based on the spider monkey algorithm according to the electricity cost and carbon emissions corresponding to each power generation area in the multiple power generation areas.

其中,目标发电方案可以包括每个发电地区分别对应的目标发电方式。The target power generation scheme may include target power generation modes corresponding to each power generation area.

目标发电方式指的是每个发电地区在电力成本较小且碳排放量较小的情况下分别对应的发电方式。The target power generation method refers to the corresponding power generation method for each power generation area under the condition of low electricity cost and low carbon emission.

蜘蛛猴算法是一种基于群体智能的算法,可用于解决多个发电地区与多种发电方式对应的组合优化问题。The spider monkey algorithm is an algorithm based on swarm intelligence, which can be used to solve the combinatorial optimization problem corresponding to multiple power generation areas and multiple power generation methods.

可选的,步骤103之前,该方法还可以包括:电子设备初始化该蜘蛛猴算法中的设置参数。具体的,电子设备可以先对获取的多个发电地区及多种发电方式分别进行排序编号,然后,该电子设备再设置该蜘蛛猴算法对应的算法参数,该算法参数可以包括但不限于:最大迭代次数(MaxGen)、局部领导者限制(Local Leader Limit,LLL)、全局领导者限制(Global Leader Limit,GLL)、最大组数(Max Group,MG)和扰动率(Perturbance Rate,PR)等。Optionally, before step 103, the method may further include: initializing the setting parameters in the spider monkey algorithm by the electronic device. Specifically, the electronic device can firstly sequence and number the acquired multiple power generation areas and multiple power generation methods, and then set the algorithm parameters corresponding to the spider monkey algorithm to the electronic device. The algorithm parameters may include but are not limited to: maximum Number of iterations (MaxGen), Local Leader Limit (LLL), Global Leader Limit (GLL), Max Group (MG), Perturbance Rate (PR), etc.

其中,局部领导者限制LLL可在局部领导者关联计数器(Local Limit Count,LLC)上进行计数,全局领导者限制GLL可在全局领导者关联计数器(Global Limit Count,GLC)上进行计数。Among them, the local leader limit LLL can be counted on the local leader association counter (Local Limit Count, LLC), and the global leader limit GLL can be counted on the global leader association counter (Global Limit Count, GLC).

示例性的,电子设备在获取11个发电地区及5种发电方式之后,这11个发电地区分别为第一发电地区、…、第i发电地区、…、第十一发电地区,该电子设备可以对这11个发电地区进行编号,分别可用a1、a2,…、a11表示;这5种发电方式分别为第一发电方式、…、第j发电方式、…、第十一发电方式,该电子设备对这5种发电方式进行编号,分别可用b1、b2、…、b5表示;该电子设备可以设置MaxGen=100,LLL=40,GLL=30,MG=2,PR=0.7,设更新迭代次数gen=1。Exemplarily, after the electronic device acquires 11 power generation regions and 5 power generation modes, the 11 power generation regions are the first power generation region, ..., the i-th power generation region, ..., and the eleventh power generation region, respectively. The electronic device may Number these 11 power generation areas, which can be represented by a1, a2, ..., a11 respectively; these five power generation modes are the first power generation mode, ..., jth power generation mode, ..., eleventh power generation mode, the electronic equipment Number these five power generation methods, which can be represented by b1, b2, ..., b5 respectively; the electronic device can set MaxGen=100, LLL=40, GLL=30, MG=2, PR=0.7, and set the number of update iterations gen =1.

可选的,电子设备对发电地区的编号与该电子设备对发电方式的编号的时序不限。Optionally, the sequence of the number of the power generation area by the electronic device and the number of the power generation mode by the electronic device is not limited.

在一些实施例中,电子设备根据多个发电地区中每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定目标发电方案,可以包括:电子设备获取多个蜘蛛猴;该电子设备根据每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定每个蜘蛛猴对应的适应度值;该电子设备根据适应度值,确定多个蜘蛛猴对应的第一全局领导者和第一局部领导者;该电子设备根据第一全局领导者和第一局部领导者,确定目标发电方案。In some embodiments, the electronic device determines the target power generation scheme based on the spider monkey algorithm according to the electricity cost and carbon emissions corresponding to each of the multiple power generation regions, which may include: the electronic device obtains a plurality of spider monkeys; the The electronic device determines the corresponding fitness value of each spider monkey based on the spider monkey algorithm according to the electricity cost and carbon emission corresponding to each power generation area; the electronic device determines the first corresponding to the plurality of spider monkeys according to the fitness value. A global leader and a first local leader; the electronic device determines a target power generation scheme according to the first global leader and the first local leader.

其中,多个蜘蛛猴中每个蜘蛛猴分别对应一种初始发电方案,初始发电方案可以包括多个发电地区中每个发电地区分别对应的一种发电方式。Wherein, each spider monkey in the plurality of spider monkeys corresponds to an initial power generation scheme, and the initial power generation scheme may include a power generation mode corresponding to each power generation area in the multiple power generation areas.

电子设备在获取多个蜘蛛猴之后,可以得到一个蜘蛛猴种群信息,该蜘蛛猴种群信息是一个编码矩阵。After acquiring a plurality of spider monkeys, the electronic device can obtain a spider monkey population information, and the spider monkey population information is an encoding matrix.

示例性的,电子设备为多个发电地区选择第一组发电方式,得到第一个蜘蛛猴;该 电子设备再为这多个发电地区选择第二组发电方式,得到第二个蜘蛛猴,以此类推,该电子 设备可以为这多个发电地区选择第N组发电方式,得到第N个蜘蛛猴。这样一来,该电子设备 就可以获取N个蜘蛛猴,即获取N个初始发电方案,N≥2。其中,N个蜘蛛猴可用分配状态矩阵 g表示,

Figure 299005DEST_PATH_IMAGE001
Figure 180373DEST_PATH_IMAGE002
表示N个蜘蛛猴中第i个蜘蛛猴,
Figure 801848DEST_PATH_IMAGE003
可以包括每个发 电地区及该每个发电地区分别对应的发电方式,例如:
Figure 311326DEST_PATH_IMAGE004
,在
Figure 235420DEST_PATH_IMAGE005
中,第一个位置表示11个发电地区中的 第一发电地区
Figure 463139DEST_PATH_IMAGE006
,该第一个位置上的数字表示该第一发电地区
Figure 498091DEST_PATH_IMAGE006
对应第三发电方式
Figure 393235DEST_PATH_IMAGE007
;第 二发电地区
Figure 222651DEST_PATH_IMAGE008
对应第五发电方式
Figure 203245DEST_PATH_IMAGE009
,以此类推,该电子设备可以确定第十一发电地区
Figure 41888DEST_PATH_IMAGE010
对应第三发电方式
Figure 263309DEST_PATH_IMAGE011
。 Exemplarily, the electronic device selects a first group of power generation modes for multiple power generation regions to obtain a first spider monkey; the electronic device then selects a second group of power generation modes for the multiple power generation regions to obtain a second spider monkey to obtain a second spider monkey. By analogy, the electronic device can select the Nth group of power generation methods for the multiple power generation regions, and obtain the Nth spider monkey. In this way, the electronic device can acquire N spider monkeys, that is, acquire N initial power generation schemes, N≥2. Among them, N spider monkeys can be represented by the distribution state matrix g,
Figure 299005DEST_PATH_IMAGE001
;
Figure 180373DEST_PATH_IMAGE002
represents the ith spider monkey among the N spider monkeys,
Figure 801848DEST_PATH_IMAGE003
It can include each power generation area and the corresponding power generation method for each power generation area, for example:
Figure 311326DEST_PATH_IMAGE004
,exist
Figure 235420DEST_PATH_IMAGE005
, the first position represents the first power generation area out of 11 power generation areas
Figure 463139DEST_PATH_IMAGE006
, the number on the first position indicates the first power generation area
Figure 498091DEST_PATH_IMAGE006
Corresponding to the third power generation method
Figure 393235DEST_PATH_IMAGE007
;Second power generation area
Figure 222651DEST_PATH_IMAGE008
Corresponding to the fifth power generation method
Figure 203245DEST_PATH_IMAGE009
, and so on, the electronic device can determine the eleventh power generation area
Figure 41888DEST_PATH_IMAGE010
Corresponding to the third power generation method
Figure 263309DEST_PATH_IMAGE011
.

可选的,N个蜘蛛猴中的每个蜘蛛猴都是不同的,也可存在部分相同的蜘蛛猴,此处不作具体限定。Optionally, each of the N spider monkeys is different, and some of the same spider monkeys may also exist, which is not specifically limited here.

示例性的,假设蜘蛛猴的数量N=50,蜘蛛猴算法的最大迭代次数MaxGen=200,局部领导者限制LLL=10,全局领导者限制GLL=20、最大组数MG=5和扰动率PR=0.5472。Exemplarily, it is assumed that the number of spider monkeys N=50, the maximum number of iterations of the spider monkey algorithm MaxGen=200, the local leader limit LLL=10, the global leader limit GLL=20, the maximum number of groups MG=5 and the perturbation rate PR =0.5472.

可选的,电子设备根据每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定每个蜘蛛猴对应的适应度值,可以包括:电子设备基于蜘蛛猴算法中的代价公式,确定每个蜘蛛猴对应的电力代价;该电子设备根据该基于蜘蛛猴算法中的适应度值公式,确定该每个蜘蛛猴对应的适应度值。Optionally, the electronic device determines the fitness value corresponding to each spider monkey based on the spider monkey algorithm according to the electricity cost and carbon emissions corresponding to each power generation area, which may include: the electronic device is based on the cost formula in the spider monkey algorithm. , determine the power cost corresponding to each spider monkey; the electronic device determines the fitness value corresponding to each spider monkey according to the fitness value formula in the spider monkey-based algorithm.

其中,代价公式为

Figure 529206DEST_PATH_IMAGE012
; Among them, the cost formula is
Figure 529206DEST_PATH_IMAGE012
;

适应度值公式为

Figure 731517DEST_PATH_IMAGE013
; The fitness value formula is
Figure 731517DEST_PATH_IMAGE013
;

Figure 373851DEST_PATH_IMAGE014
表示每个蜘蛛猴中第i个蜘蛛猴对应的电力代价,是一个中间参数;a表示 电力成本对应的第一权重;
Figure 978007DEST_PATH_IMAGE015
表示该第i个蜘蛛猴对应的发电成本;
Figure 414805DEST_PATH_IMAGE016
表示该第i 个蜘蛛猴对应的输电成本;b表示碳排放量对应的第二权重,a+b=1;
Figure 838833DEST_PATH_IMAGE017
表示该第i个蜘蛛猴 对应的碳排放量;d表示常数;
Figure 284858DEST_PATH_IMAGE018
表示该第i个蜘蛛猴对应的适应度值。
Figure 373851DEST_PATH_IMAGE014
Represents the power cost corresponding to the i-th spider monkey in each spider monkey, which is an intermediate parameter; a represents the first weight corresponding to the power cost;
Figure 978007DEST_PATH_IMAGE015
represents the power generation cost corresponding to the i-th spider monkey;
Figure 414805DEST_PATH_IMAGE016
represents the transmission cost corresponding to the i-th spider monkey; b represents the second weight corresponding to carbon emissions, a+b=1;
Figure 838833DEST_PATH_IMAGE017
represents the carbon emission corresponding to the i-th spider monkey; d represents a constant;
Figure 284858DEST_PATH_IMAGE018
Indicates the fitness value corresponding to the i-th spider monkey.

可选的,第一权重、第二权重及常数可以是电子设备出厂前设置的,也可以是用户根据大量实验仿真数据得到的,此处不作具体限定。Optionally, the first weight, the second weight and the constant may be set by the electronic device before leaving the factory, or may be obtained by a user according to a large amount of experimental simulation data, which are not specifically limited here.

示例性的,假设a的取值为0.25,b的取值为0.75,d的取值为2,此时,代价公式为

Figure 477942DEST_PATH_IMAGE019
;适应度值公式为
Figure 210275DEST_PATH_IMAGE020
。 Exemplarily, it is assumed that the value of a is 0.25, the value of b is 0.75, and the value of d is 2. At this time, the cost formula is
Figure 477942DEST_PATH_IMAGE019
; The fitness value formula is
Figure 210275DEST_PATH_IMAGE020
.

电子设备基于蜘蛛猴算法中的代价公式及适应度值公式,可准确得到每个蜘蛛猴分别对应的适应度值,进而获取较为准确的第一全局领导者、第一局部领导者及上述多个发电地区对应的目标发电方案。Based on the cost formula and fitness value formula in the spider monkey algorithm, the electronic device can accurately obtain the corresponding fitness value of each spider monkey, and then obtain more accurate first global leader, first local leader and the above-mentioned multiple The target power generation plan corresponding to the power generation area.

在一些实施例中,电子设备根据适应度值,确定多个蜘蛛猴对应的第一全局领导者和第一局部领导者,可以包括:电子设备确定适应度值中的第一最大适应度值,并将第一最大适应度值对应的蜘蛛猴确定为多个蜘蛛猴对应的第一全局领导者;该电子设备将多个蜘蛛猴进行分组,得到至少一个蜘蛛猴集合,至少一个蜘蛛猴集合中每个蜘蛛猴集合可以包括至少一个蜘蛛猴;该电子设备获取目标蜘蛛猴集合中每个蜘蛛猴对应的适应度值并确定每个蜘蛛猴对应的适应度值中的第二最大适应度值,目标蜘蛛猴集合为多个蜘蛛猴集合中的任一蜘蛛猴集合;该电子设备将第二最大适应度值所对应的蜘蛛猴确定为目标蜘蛛猴集合对应的第一局部领导者。In some embodiments, the electronic device determining the first global leader and the first local leader corresponding to the plurality of spider monkeys according to the fitness value may include: the electronic device determining the first maximum fitness value among the fitness values, Determine the spider monkey corresponding to the first maximum fitness value as the first global leader corresponding to the multiple spider monkeys; the electronic device groups the multiple spider monkeys to obtain at least one spider monkey set, in which at least one spider monkey set is Each spider monkey set may include at least one spider monkey; the electronic device acquires the fitness value corresponding to each spider monkey in the target spider monkey set and determines the second largest fitness value among the fitness values corresponding to each spider monkey, The target spider monkey set is any spider monkey set among multiple spider monkey sets; the electronic device determines the spider monkey corresponding to the second maximum fitness value as the first local leader corresponding to the target spider monkey set.

可选的,电子设备确定适应度值中的第一最大适应度值,可以包括:电子设备将适应度值进行从小到大排序,得到第一序列,并获取该第一序列中的最后一个适应度值,该最后一个适应度值即为第一最大适应度值;或,该电子设备将该适应度值从大到小排序,得到第二序列,并获取该第二序列中的第一个适应度值,该第一个适应度值即为第一最大适应度值。Optionally, the electronic device determining the first maximum fitness value in the fitness values may include: the electronic device sorts the fitness values from small to large to obtain a first sequence, and obtains the last adaptation in the first sequence. The last fitness value is the first maximum fitness value; or, the electronic device sorts the fitness values from large to small to obtain a second sequence, and obtains the first one in the second sequence The fitness value, the first fitness value is the first maximum fitness value.

电子设备无论是得到第一序列,还是得到第二序列,都可准确得到适应度值中最大的那个适应度值,从而准确确定第一全局领导者。Whether the electronic device obtains the first sequence or the second sequence, it can accurately obtain the largest fitness value among the fitness values, thereby accurately determining the first global leader.

示例性的,假设电子设备获取20只蜘蛛猴,这20只蜘蛛猴对应的适应度值分别为0.75、0.82、0.52、…、0.34、0.25;电子设备从这20个适应度值中获取最大的适应度值,并将该最大的适应度值对应的蜘蛛猴作为第一全局领导者。Exemplarily, assuming that the electronic device acquires 20 spider monkeys, the corresponding fitness values of these 20 spider monkeys are 0.75, 0.82, 0.52, ..., 0.34, 0.25; fitness value, and the spider monkey corresponding to the maximum fitness value is used as the first global leader.

可选的,电子设备将多个蜘蛛猴进行分组,得到至少一个蜘蛛猴集合,可以包括:电子设备基于蜘蛛猴算法中设置的最大组数MG,对多个蜘蛛猴进行分组,得到该MG个蜘蛛猴集合。Optionally, the electronic device groups multiple spider monkeys to obtain at least one spider monkey set, which may include: the electronic device groups multiple spider monkeys based on the maximum number of groups MG set in the spider monkey algorithm, and obtains the MG set. Spider monkey collection.

电子设备在获取多个蜘蛛猴之后,可以获取这些蜘蛛猴的数量,然后,基于最大组数MG,可以对这些蜘蛛猴进行随机划分,也可以对这些蜘蛛猴进行平均划分,得到该最大组数MG蜘蛛猴集合。After acquiring multiple spider monkeys, the electronic device can acquire the number of these spider monkeys, and then, based on the maximum group number MG, the spider monkeys can be randomly divided, or the spider monkeys can be divided evenly to obtain the maximum group number MG spider monkey collection.

示例性的,假设电子设备获取20只蜘蛛猴,MG=2。电子设备可以将这20只蜘蛛猴均分,得到两个蜘蛛猴集合,每个蜘蛛猴集合中的蜘蛛猴数量都为10;也可以从这20只蜘蛛猴中随机获取8只蜘蛛猴,得到一个蜘蛛猴集合,并将这20只蜘蛛猴中剩余的12只蜘蛛猴确定为另一个蜘蛛猴集合。Exemplarily, it is assumed that the electronic device acquires 20 spider monkeys, MG=2. The electronic device can divide the 20 spider monkeys equally to obtain two spider monkey sets, and the number of spider monkeys in each spider monkey set is 10; it can also randomly obtain 8 spider monkeys from the 20 spider monkeys, and obtain One spider monkey ensemble, and the remaining 12 spider monkeys among these 20 spider monkeys were identified as another spider monkey ensemble.

电子设备在获取两个蜘蛛猴集合后,这两个蜘蛛猴集合分别为第一蜘蛛猴集和第二蜘蛛猴集合,该电子设备获取第一蜘蛛猴集合中每个蜘蛛猴分别对应的第一适应度值,并将这些第一适应度值中的最大适应度值对应的蜘蛛猴作为该第一蜘蛛猴集合对应的第一局部领导者;该电子设备获取第二蜘蛛猴集合中每个蜘蛛猴分别对应的第二适应度值,并将这些第二适应度值中的最大适应度值对应的蜘蛛猴作为该第二蜘蛛猴集合对应的第一局部领导者。After the electronic device acquires two spider monkey sets, the two spider monkey sets are the first spider monkey set and the second spider monkey set respectively, and the electronic device acquires the first spider monkey set corresponding to each spider monkey in the first spider monkey set. fitness value, and use the spider monkey corresponding to the largest fitness value in these first fitness values as the first local leader corresponding to the first spider monkey set; the electronic device obtains each spider in the second spider monkey set The second fitness values corresponding to the monkeys respectively, and the spider monkey corresponding to the largest fitness value among the second fitness values is used as the first local leader corresponding to the second spider monkey set.

可选的,电子设备获取不同蜘蛛猴集合分别对应的第一局部领导者的时序不限。Optionally, the time sequence for the electronic device to acquire the first local leaders corresponding to different spider monkey sets is not limited.

在一些实施例中,电子设备基于第一全局领导者和第一局部领导者,确定目标发电方案,可以包括:电子设备基于第一全局领导者和第一局部领导者,对多个蜘蛛猴进行更新,得到更新后的蜘蛛猴;该电子设备根据更新后的蜘蛛猴所对应的总电力成本,确定第二全局领导者和第二局部领导者;该电子设备根据第一全局领导者、第一局部领导者、第二全局领导者和第二局部领导者,确定目标发电方案。In some embodiments, the electronic device determines the target power generation scheme based on the first global leader and the first local leader, which may include: the electronic device, based on the first global leader and the first local leader, conducts power generation on the plurality of spider monkeys. update to obtain the updated spider monkey; the electronic device determines the second global leader and the second local leader according to the total power cost corresponding to the updated spider monkey; the electronic device determines the second global leader and the second local leader according to the total power cost corresponding to the updated spider monkey; The local leader, the second global leader, and the second local leader determine the target power generation scheme.

由于蜘蛛猴算法可以包括六个阶段,分别为局部领导者阶段、全局领导者阶段、全局领导者学习阶段、局部领导者学习阶段、局部领导者决策阶段及全局领导者决策阶段,所以,在局部领导者阶段和全局领导者阶段中,电子设备可以基于第一全局领导者和第一局部领导者,对多个蜘蛛猴进行更新,得到更新后的蜘蛛猴;在全局领导者学习阶段和局部领导者学习阶段中,该电子设备可以根据更新后的蜘蛛猴所对应的总电力成本,确定第二全局领导者和第二局部领导者;在局部领导者决策阶段及全局领导者决策阶段中,该电子设备根据第一全局领导者、第一局部领导者、第二全局领导者和第二局部领导者,确定目标发电方案。Since the spider monkey algorithm can include six stages, namely the local leader stage, the global leader stage, the global leader learning stage, the local leader learning stage, the local leader decision-making stage and the global leader decision-making stage, in the local In the leader stage and the global leader stage, the electronic device can update multiple spider monkeys based on the first global leader and the first local leader to obtain the updated spider monkeys; in the global leader learning stage and the local leader In the learning stage of the leader, the electronic device can determine the second global leader and the second local leader according to the total power cost corresponding to the updated spider monkey; in the local leader decision-making stage and the global leader decision-making stage, the The electronic device determines a target power generation scheme according to the first global leader, the first local leader, the second global leader, and the second local leader.

在一些实施例中,电子设备根据第一全局领导者和第一局部领导者,对多个蜘蛛猴进行更新,得到更新后的蜘蛛猴,可以包括:电子设备根据第一局部领导者,基于贪婪算法,对目标蜘蛛猴集合中每个蜘蛛猴进行更新,得到更新后的第一蜘蛛猴;该电子设备根据多个蜘蛛猴中每个蜘蛛猴分别对应的适应度值,确定每个蜘蛛猴分别对应的适应度概率,并根据适应度概率及第一全局领导者,对多个蜘蛛猴中每个蜘蛛猴进行更新,得到更新后的第二蜘蛛猴。In some embodiments, the electronic device updates a plurality of spider monkeys according to the first global leader and the first local leader to obtain the updated spider monkeys, which may include: the electronic device, according to the first local leader, based on greed Algorithm, update each spider monkey in the target spider monkey set to obtain the updated first spider monkey; the electronic device determines each spider monkey according to the corresponding fitness value of each spider monkey in the plurality of spider monkeys. The corresponding fitness probability, and according to the fitness probability and the first global leader, update each spider monkey in the plurality of spider monkeys to obtain the updated second spider monkey.

其中,贪婪算法指的是在对问题求解时,总是做出在当前看来是最好的选择。也就是说,不从整体最优上加以考虑,该贪婪算法所做出的仅是在某种意义上的局部最优解。Among them, the greedy algorithm means that when solving the problem, it always makes the best choice in the current view. That is to say, without considering the overall optimality, what the greedy algorithm makes is only a local optimal solution in a certain sense.

电子设备在局部领导者阶段中,可准确得到更新后的第一蜘蛛猴;该电子设备在全局领导者阶段中,可准确得到更新后的第二蜘蛛猴。In the local leader stage, the electronic device can accurately obtain the updated first spider monkey; in the global leader stage, the electronic device can accurately obtain the updated second spider monkey.

可选的,电子设备根据第一局部领导者,基于贪婪算法,对目标蜘蛛猴集合中每个蜘蛛猴进行更新,得到更新后的第一蜘蛛猴,可以包括:电子设备根据局部位置更新公式,得到更新后的第一蜘蛛猴。Optionally, the electronic device updates each spider monkey in the target spider monkey set based on the greedy algorithm according to the first local leader, and obtains the updated first spider monkey, which may include: the electronic device updates the formula according to the local position, Get the updated first spider monkey.

其中,局部位置更新公式为Among them, the local position update formula is

Figure 262544DEST_PATH_IMAGE021
Figure 262544DEST_PATH_IMAGE021
;

t表示局部领导者的更新迭代次数;

Figure 105735DEST_PATH_IMAGE022
表示多个蜘蛛猴中第i个蜘蛛猴中第j个 发电地区对应的发电方式;
Figure 559850DEST_PATH_IMAGE023
表示第k个目标蜘蛛猴集合对应的第t代局部领导者中第j 个发电地区所对应的发电方式;
Figure 463084DEST_PATH_IMAGE024
表示第r个目标蜘蛛猴集合中随机选择的一个蜘蛛猴 中第j个发电地区所对应的发电方式,r≠j;U(0,1)是U(-1,1)范围内均匀分布的随机数。此 时,t的取值为1。 t represents the number of update iterations of the local leader;
Figure 105735DEST_PATH_IMAGE022
Represents the power generation mode corresponding to the jth power generation area in the ith spider monkey among the multiple spider monkeys;
Figure 559850DEST_PATH_IMAGE023
represents the power generation mode corresponding to the jth power generation area in the tth generation local leader corresponding to the kth target spider monkey set;
Figure 463084DEST_PATH_IMAGE024
Represents the power generation mode corresponding to the jth power generation area in a spider monkey randomly selected from the rth target spider monkey set, r≠j; U(0,1) is uniformly distributed in the range of U(-1,1) random number. At this time, the value of t is 1.

电子设备根据局部位置更新公式,可准确得到目标蜘蛛猴集合中每个蜘蛛猴分别对应的更新后的第一蜘蛛猴。According to the local position update formula, the electronic device can accurately obtain the updated first spider monkey corresponding to each spider monkey in the target spider monkey set.

可选的,电子设备根据多个蜘蛛猴中每个蜘蛛猴分别对应的适应度值,确定每个蜘蛛猴分别对应的适应度概率,并根据适应度概率及第一全局领导者,对多个蜘蛛猴中每个蜘蛛猴进行更新,得到更新后的第二蜘蛛猴,可以包括:电子设备根据适应度值概率公式,确定每个蜘蛛猴分别对应的适应度概率,并根据全局位置更新公式,得到更新后的第二蜘蛛猴。Optionally, the electronic device determines the fitness probability corresponding to each spider monkey according to the fitness value corresponding to each spider monkey in the plurality of spider monkeys, and according to the fitness probability and the first global leader, determines the corresponding fitness probability for the plurality of spider monkeys. Updating each spider monkey in the spider monkeys to obtain the updated second spider monkey may include: the electronic device determines the fitness probability corresponding to each spider monkey according to the fitness value probability formula, and updates the formula according to the global position, Get the updated second spider monkey.

其中,适应度值概率公式为

Figure 2650DEST_PATH_IMAGE025
; Among them, the fitness value probability formula is
Figure 2650DEST_PATH_IMAGE025
;

全局位置更新公式为The global location update formula is

Figure 386883DEST_PATH_IMAGE026
Figure 386883DEST_PATH_IMAGE026
;

Figure 695504DEST_PATH_IMAGE027
表示多个蜘蛛猴中第i个蜘蛛猴对应的适应度概率;N表示蜘蛛猴的数量;
Figure 769639DEST_PATH_IMAGE028
表示第t代全局领导者中第j个发电地区对应的发电方式。
Figure 695504DEST_PATH_IMAGE027
Represents the fitness probability corresponding to the i-th spider monkey among multiple spider monkeys; N represents the number of spider monkeys;
Figure 769639DEST_PATH_IMAGE028
Represents the power generation mode corresponding to the jth power generation area in the tth generation global leader.

电子设备根据适应度值概率公式和全局位置更新公式,可准确得到更新后的第二蜘蛛猴。The electronic device can accurately obtain the updated second spider monkey according to the fitness value probability formula and the global position update formula.

示例性的,假设电子设备获取20只蜘蛛猴,电子设备获取这20只蜘蛛猴分别对应 的适应度值,可用fitness=[0.78,0.83,0.58,…,0.32,0.21]表示;然后,该电子设备根据 适应度概率公式,得到这20个蜘蛛猴分别对应的适应度概率,具体的:prob1=0.78/(0.78+ 0.83+0.58+…+0.32+0.21),prob2=0.83/(0.78+0.83+0.58+…+0.32+0.21),…,prob20= 0.21/(0.78+0.83+0.58+…+0.32+0.21),从中可以明显得出

Figure 530922DEST_PATH_IMAGE029
;接着,该电子设 备随机生成一个(0,1)范围内的数字randk,并选择这20只蜘蛛猴中的第r只蜘蛛猴进行全 局位置更新;最后,该电子设备根据全局位置更新公式,得到更新后的第二蜘蛛猴。其中,该 第r只蜘蛛猴需要满足的条件为
Figure 981495DEST_PATH_IMAGE030
。 Exemplarily, it is assumed that the electronic device acquires 20 spider monkeys, and the electronic device acquires the fitness values corresponding to the 20 spider monkeys, which can be expressed as fitness=[0.78, 0.83, 0.58, ..., 0.32, 0.21]; According to the fitness probability formula, the equipment obtains the fitness probability corresponding to the 20 spider monkeys, specifically: prob 1 =0.78/(0.78+ 0.83+0.58+…+0.32+0.21), prob 2 =0.83/(0.78+ 0.83+0.58+…+0.32+0.21),…,prob 20 = 0.21/(0.78+0.83+0.58+…+0.32+0.21), from which it is evident
Figure 530922DEST_PATH_IMAGE029
; Next, the electronic device randomly generates a number randk in the range of (0, 1), and selects the rth spider monkey among the 20 spider monkeys to update the global position; finally, the electronic device according to the global position update formula, Get the updated second spider monkey. Among them, the conditions that the rth spider monkey needs to meet are:
Figure 981495DEST_PATH_IMAGE030
.

在一些实施例中,电子设备根据更新后的蜘蛛猴所对应的总电力成本,确定第二全局领导者和第二局部领导者,可以包括:电子设备确定更新后的第一蜘蛛猴所对应的第一总电力成本中的第一最小总电力成本,并将第一最小总电力成本对应的第一蜘蛛猴确定为第二局部领导者;该电子设备确定更新后的第二蜘蛛猴所对应的第二总电力成本中的第二最小总电力成本,并将第二最小总电力成本对应的第二蜘蛛猴确定为第二全局领导者。In some embodiments, the electronic device determining the second global leader and the second local leader according to the total power cost corresponding to the updated spider monkey, may include: the electronic device determining the updated first spider monkey corresponding to the The first minimum total power cost in the first total power cost, and the first spider monkey corresponding to the first minimum total power cost is determined as the second local leader; the electronic device determines the updated second spider monkey corresponding to The second smallest total power cost in the second total power cost, and the second spider monkey corresponding to the second smallest total power cost is determined as the second global leader.

电子设备在局部领导者学习阶段中,可准确确定第二局部领导者;该电子设备在全局领导者学习阶段中,可准确确定第二全局领导者。The electronic device can accurately determine the second local leader in the local leader learning phase; the electronic device can accurately determine the second global leader in the global leader learning phase.

在一些实施例中,电子设备根据第一全局领导者、第一局部领导者、第二全局领导者和第二局部领导者,确定目标发电方案,可以包括:电子设备在确定第二局部领导者与第一局部领导者相同的情况下,根据第二全局领导者及第二局部领导者,对更新后的第二蜘蛛猴进行更新,得到更新后的第三蜘蛛猴;该电子设备在确定第二全局领导者与第一全局领导者相同的情况下,若蜘蛛猴集合的数量大于预设数量阈值,则将蜘蛛猴集合进行划分,得到多个蜘蛛猴小组,若数量小于等于预设数量阈值,则将蜘蛛猴集合进行合并,得到蜘蛛猴大组;该电子设备在第一全局领导者的更新迭代次数达到预设次数阈值的情况下,将最后一次得到的全局领导者确定为目标发电方案。In some embodiments, the electronic device determines the target power generation scheme according to the first global leader, the first local leader, the second global leader, and the second local leader, which may include: the electronic device determining the second local leader In the same situation as the first local leader, update the updated second spider monkey according to the second global leader and the second local leader to obtain the updated third spider monkey; the electronic device determines the first spider monkey. When the second global leader is the same as the first global leader, if the number of spider monkey sets is greater than the preset number threshold, the spider monkey set is divided to obtain multiple spider monkey groups, if the number is less than or equal to the preset number threshold , the spider monkey sets are merged to obtain a large group of spider monkeys; when the number of update iterations of the first global leader reaches the preset number of iterations, the electronic device determines the last obtained global leader as the target power generation scheme .

可选的,预设数量阈值和预设次数阈值可以是电子设备出厂前设置的,也可以是用户根据实际需求自定义的,此处不作具体限定。Optionally, the preset number threshold and the preset number of times threshold may be set before the electronic device leaves the factory, or may be customized by the user according to actual needs, which are not specifically limited here.

电子设备在局部领导者学习阶段中,可将第二局部领导者与第一局部领导者进行比较;该电子设备在全局领导者学习阶段中,可将第二全局领导者与第一全局领导者进行比较。The electronic device can compare the second local leader with the first local leader during the local leader learning phase; the electronic device can compare the second global leader with the first global leader during the global leader learning phase Compare.

电子设备在局部领导者决策阶段中,可准确得到更新后的第三蜘蛛猴;该电子设备在全局领导者决策阶段中,可确定将多个蜘蛛猴集合是进行划分还是合并,以便后续准确确定目标发电方案。In the decision-making stage of the local leader, the electronic device can accurately obtain the updated third spider monkey; in the decision-making stage of the global leader, the electronic device can determine whether to divide or merge multiple sets of spider monkeys, so as to accurately determine the subsequent target power generation scheme.

电子设备在第一局部领导者进行第一次更新迭代之后,得到第二局部领导者;此时,该电子设备也在更新迭代第一全局领导者,得到第二全局领导者;接着,电子设备判断更新迭代次数是否达到了预设次数阈值,若达到,则将该第二全局领导者确定为目标发电方案,若未达到,则将该第二局部领导者和该第二全局领导者进行第二次更新迭代,以此类推,直到更新迭代次数达到该预设次数阈值,并将最后一次得到的全局领导者确定为目标发电方案。After the first local leader performs the first update iteration, the electronic device obtains the second local leader; at this time, the electronic device is also updating the first global leader and obtains the second global leader; then, the electronic device It is judged whether the number of update iterations has reached the preset number of thresholds. If so, the second global leader is determined as the target power generation scheme. If not, the second local leader and the second global leader are executed for the first Two update iterations are performed, and so on, until the number of update iterations reaches the preset number threshold, and the last obtained global leader is determined as the target power generation scheme.

可选的,在电子设备在确定第二局部领导者与第一局部领导者相同的情况下之后,该方法还可以包括:电子设备将局部领导者关联计数器LLC上的次数增加m,得到局部限制计数,m为大于等于1的整数,并将该局部限制计数与局部领导者限制LLL进行比较;该电子设备在确定该第二局部领导者与该第一局部领导者不相同的情况下,将该局部领导者关联计数器LLC上的次数设为0。Optionally, after the electronic device determines that the second local leader is the same as the first local leader, the method may further include: the electronic device increases the number of times on the local leader association counter LLC by m to obtain the local limit. count, m is an integer greater than or equal to 1, and compares the local limit count with the local leader limit LLL; when the electronic device determines that the second local leader is not the same as the first local leader, it will The number of times on the local leader association counter LLC is set to zero.

示例性的,m的取值为1。Exemplarily, the value of m is 1.

可选的,在电子设备在确定第二全局领导者与第一全局领导者相同的情况下之后,该方法还可以包括:电子设备将全局领导者关联计数器GLL上的次数增加n,得到全局限制计数,n为大于等于1的整数,并将该全局限制计数与全局领导者限制GLL进行比较;该电子设备在确定该第二全局领导者与该第一全局领导者不相同的情况下,将该全局领导者关联计数器GLL上的次数设为0。Optionally, after the electronic device determines that the second global leader is the same as the first global leader, the method may further include: the electronic device increases the number of times on the global leader association counter GLL by n to obtain the global limit. Count, n is an integer greater than or equal to 1, and compares the global limit count with the global leader limit GLL; the electronic device determines that the second global leader is different from the first global leader. The number of times on the global leader association counter GLL is set to zero.

示例性的,n的取值为1。Exemplarily, the value of n is 1.

可选的,电子设备在确定第二局部领导者与第一局部领导者相同的情况下,根据第二全局领导者及第二局部领导者,对更新后的第二蜘蛛猴进行更新,得到更新后的第三蜘蛛猴,可以包括:电子设备在确定第二局部领导者与第一局部领导者相同的情况下,根据位置更新公式,得到更新后的第三蜘蛛猴。Optionally, in the case of determining that the second local leader is the same as the first local leader, the electronic device updates the updated second spider monkey according to the second global leader and the second local leader, and obtains an update. The latter third spider monkey may include: when the electronic device determines that the second local leader is the same as the first local leader, obtaining the updated third spider monkey according to the position update formula.

其中,位置更新公式为Among them, the position update formula is

Figure 144623DEST_PATH_IMAGE031
Figure 144623DEST_PATH_IMAGE031
.

Figure 389660DEST_PATH_IMAGE032
表示第k个目标蜘蛛猴集合对应的第t代局部领导者中第k个发电地区所对 应的发电方式。
Figure 389660DEST_PATH_IMAGE032
Represents the power generation mode corresponding to the kth power generation area in the tth generation local leader corresponding to the kth target spider monkey set.

这样一来,电子设备在第一局部领导者被耗尽的情况下,即在迭代局部领导者限制LLL代都没有更新过该局部领导者的情况下,则该局部领导者对应的目标蜘蛛猴集合中的蜘蛛猴有概率被全局领导者吸引,此时,电子设备可以向全局领导者的方向更新该目标蜘蛛猴集合中每个蜘蛛猴对应的发电方案。In this way, when the first local leader is exhausted, that is, when the local leader is not updated by the iteration local leader-limited LLL generation, the target spider monkey corresponding to the local leader The spider monkeys in the set have a probability of being attracted by the global leader. At this time, the electronic device can update the power generation scheme corresponding to each spider monkey in the target spider monkey set in the direction of the global leader.

可选的,该方法还可以包括:电子设备在第一全局领导者的更新迭代次数未达到预设次数阈值的情况下,则继续执行局部领导者阶段、全局领导者阶段、全局领导者学习阶段、局部领导者学习阶段、局部领导者决策阶段及全局领导者决策阶段,这六个阶段分别对应的步骤,直到更新迭代次数达到预设次数阈值,并确定目标发电方案。Optionally, the method may further include: when the number of update iterations of the first global leader does not reach the preset number of times threshold, the electronic device continues to execute the local leader stage, the global leader stage, and the global leader learning stage. , the local leader learning stage, the local leader decision-making stage and the global leader decision-making stage, the steps corresponding to these six stages respectively, until the number of update iterations reaches the preset number of thresholds, and the target power generation scheme is determined.

104、根据目标发电方案,控制每个发电地区进行电力供应。104. Control each power generation area to supply power according to the target power generation scheme.

电子设备根据发电方案,确定每个发电地区分别对应的目标发电方式;然后,基于每个目标发电方式,控制相应的发电地区进行电力供应,由于该目标发电方案中的所有发电方式对应的总发电成本较小且总碳排放量较小,所以,在每个发电地区进行电力供应的过程中,可有效提高该每个发电地区对应的供电效率。The electronic device determines the target power generation mode corresponding to each power generation area according to the power generation scheme; then, based on each target power generation mode, controls the corresponding power generation area to supply power, since the total power generation corresponding to all the power generation modes in the target power generation scheme The cost is small and the total carbon emission is small. Therefore, in the process of power supply in each power generation area, the power supply efficiency corresponding to each power generation area can be effectively improved.

可选的,步骤104之前,该方法还可以包括:电子设备输出目标发电方案。Optionally, before step 104, the method may further include: outputting the target power generation scheme by the electronic device.

可选的,电子设备输出目标发电方案,可以包括但不限于以下至少一种实现方式:Optionally, the electronic device outputs the target power generation scheme, which may include, but is not limited to, at least one of the following implementations:

实现方式1:电子设备在显示屏上以文字形式和/或图片形式显示目标发电方案。Implementation 1: The electronic device displays the target power generation scheme in the form of text and/or pictures on the display screen.

可选的,文字形式的字体可以是电子设备出厂前设置的,也可以是用户手动录入的,此处不作具体限定。Optionally, the font in the form of text may be set by the electronic device before leaving the factory, or may be manually entered by the user, which is not specifically limited here.

实现方式2:电子设备利用扬声装置,语言播报目标发电方案。Implementation 2: The electronic equipment uses the speaker device to broadcast the target power generation plan in language.

可选的,播报目标发电方案对应的语言形式可以是电子设备出厂前设置的,也可以是用户自定义录入的,此处不作具体限定。Optionally, the language form corresponding to the broadcast target power generation scheme may be set by the electronic device before leaving the factory, or may be entered by the user, which is not specifically limited here.

实现方式3:电子设备将目标发电方案向关联设备发送,以使该关联设备输出该目标发电方案。Implementation 3: The electronic device sends the target power generation scheme to the associated device, so that the associated device outputs the target power generation scheme.

无论电子设备是以实现方式1-3中的那种实现方式输出目标发电方案,都可使用户及时获知每个发电地区及该每个发电地区分别对应的目标发电方式。Regardless of whether the electronic device outputs the target power generation scheme in one of the implementation modes 1-3, the user can be informed of each power generation area and the target power generation mode corresponding to each power generation area in time.

需要说明的是,现有的电力供应方法可以包括利用遗传算法进行电力供应。该遗传算法指的是用于解决电力供应过程的最优化的一种搜索启发式算法。It should be noted that the existing power supply method may include the use of genetic algorithm for power supply. The genetic algorithm refers to a search heuristic algorithm for solving the optimization of the power supply process.

示例性的,如图2a所示,是本发明提供的不同的电力供应方法分别对应的电力代价曲线对比示意图。图2a包括现有的电力供应方法对应的电力代价曲线及本发明提供的电力供应方法对应的电力代价曲线。从图2a中可以看出,随着蜘蛛猴的更新迭代次数的增长,本发明提供的电力供应方法相比现有的电力供应方法,在电力代价值上有7%到12%的改善。Exemplarily, as shown in FIG. 2a , it is a schematic diagram showing the comparison of power cost curves corresponding to different power supply methods provided by the present invention. FIG. 2a includes a power cost curve corresponding to an existing power supply method and a power cost curve corresponding to the power supply method provided by the present invention. As can be seen from Figure 2a, with the increase of the number of update iterations of the spider monkey, the power supply method provided by the present invention has an improvement of 7% to 12% in the power cost value compared with the existing power supply method.

如图2b所示,是本发明提供的不同的电力供应方法分别对应的电力成本曲线对比示意图。图2b包括现有的电力供应方法对应的电力成本曲线及本发明提供的电力供应方法对应的电力成本曲线。从图2b中可以看出,随着蜘蛛猴的更新迭代次数的增长,本发明提供的电力供应方法相比现有的电力供应方法,在电力成本值上有5%到10%的改善。As shown in FIG. 2b , it is a schematic diagram showing the comparison of power cost curves corresponding to different power supply methods provided by the present invention. FIG. 2b includes the power cost curve corresponding to the existing power supply method and the power cost curve corresponding to the power supply method provided by the present invention. As can be seen from Figure 2b, with the increase of the number of update iterations of the spider monkey, the power supply method provided by the present invention has a 5% to 10% improvement in the power cost value compared with the existing power supply method.

如图2c所示,是本发明提供的不同的电力供应方法分别对应的碳排放量曲线对比示意图。图2c包括现有的电力供应方法对应的碳排放量曲线及本发明提供的电力供应方法对应的碳排放量曲线。从图2c中可以看出,随着蜘蛛猴的更新迭代次数的增长,本发明提供的电力供应方法对应的碳排放量明显低于现有的电力供应方法对应的碳排放量。As shown in FIG. 2c , it is a schematic diagram showing the comparison of carbon emission curves corresponding to different power supply methods provided by the present invention. FIG. 2c includes a carbon emission curve corresponding to the existing power supply method and a carbon emission curve corresponding to the power supply method provided by the present invention. As can be seen from Figure 2c, with the increase of the number of update iterations of the spider monkey, the carbon emission corresponding to the power supply method provided by the present invention is significantly lower than the carbon emission corresponding to the existing power supply method.

综上所述,本发明提供的电力供应方法对应的性能指标明显高于现有的电力供应方法对应的性能指标,这样一来,电子设备在利用综合能源,即利用不同的发电方式控制发电地区进行电力供应的过程中,可使得供电收益最高,从而有效促进综合能源的可持续发展。To sum up, the performance index corresponding to the power supply method provided by the present invention is significantly higher than the performance index corresponding to the existing power supply method. In this way, the electronic equipment is using comprehensive energy, that is, using different power generation methods to control the power generation area. In the process of power supply, the profit of power supply can be maximized, thereby effectively promoting the sustainable development of comprehensive energy.

需要说明的是,电子设备在为多个发电地区确定对应的目标发电方式的过程中,该电子设备基于蜘蛛猴算法,使得整个确定过程较为清晰,且实现起来较为简单。由于该蜘蛛猴算法中的参数较少且收敛速度较快,即该蜘蛛猴算法的复杂程度较低,所以,这样就可有效提高综合能源配置过程,即有效提高发电方式分配过程,且可有效降低电力供应成本。此外,该电子设备基于该蜘蛛猴算法,还可较快确定这多个发电地区分别对应的目标发电方式,即得到较优发电方式分配方案,且使得整个过程不会出现计算滞留状态,从而提高了电子设备的稳定性及鲁棒性。It should be noted that, in the process of determining the corresponding target power generation modes for multiple power generation regions, the electronic device is based on the spider monkey algorithm, which makes the entire determination process clearer and simpler to implement. Because the spider monkey algorithm has fewer parameters and faster convergence speed, that is, the complexity of the spider monkey algorithm is low, so this can effectively improve the comprehensive energy allocation process, that is, the power generation mode allocation process, and can effectively Reduce electricity supply costs. In addition, based on the spider monkey algorithm, the electronic device can also quickly determine the target power generation modes corresponding to the multiple power generation areas, that is, obtain an optimal power generation mode distribution plan, and prevent the calculation stagnation state in the whole process. The stability and robustness of electronic equipment are improved.

在本发明实施例中,获取多个发电地区及多种发电方式;确定目标发电地区按照多种发电方式中每种发电方式进行电力供应时对应的电力成本及碳排放量,目标发电地区为多个发电地区中的任一发电地区;根据多个发电地区中每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定目标发电方案,目标发电方案包括每个发电地区分别对应的目标发电方式;根据目标发电方案,控制每个发电地区进行电力供应。由于蜘蛛猴算法中的参数较少且收敛速度较快,即该蜘蛛猴算法的复杂程度较低且局限性较小,电子设备基于该蜘蛛猴算法,可有效提高发电方式分配过程,且可有效降低电力供应成本,从而有效促进综合能源的可持续发展。In the embodiment of the present invention, multiple power generation areas and multiple power generation modes are obtained; the electricity cost and carbon emission corresponding to the target power generation area when power is supplied according to each power generation mode among the multiple power generation modes are determined, and the target power generation area is multiple Any power generation area in each power generation area; according to the electricity cost and carbon emission corresponding to each power generation area in the multiple power generation areas, and based on the spider monkey algorithm, determine the target power generation plan, and the target power generation plan includes the corresponding power generation area for each power generation area. According to the target power generation plan, control each power generation area to supply power. Since the spider monkey algorithm has fewer parameters and a faster convergence speed, that is, the spider monkey algorithm is less complex and less limited, the electronic device based on the spider monkey algorithm can effectively improve the power generation mode distribution process, and can effectively Reduce the cost of electricity supply, thereby effectively promoting the sustainable development of integrated energy.

下面对本发明提供的电力供应装置进行描述,下文描述的电力供应装置与上文描述的电力供应方法可相互对应参照。The power supply device provided by the present invention is described below, and the power supply device described below and the power supply method described above can be referred to each other correspondingly.

如图3所示,是本发明提供的电力供应装置的结构示意图,可以包括:As shown in FIG. 3, it is a schematic structural diagram of the power supply device provided by the present invention, which may include:

获取模块301,用于获取多个发电地区及多种发电方式;an acquisition module 301, configured to acquire multiple power generation regions and multiple power generation methods;

确定模块302,用于确定目标发电地区按照该多种发电方式中每种发电方式进行电力供应时对应的电力成本及碳排放量,该目标发电地区为该多个发电地区中的任一发电地区;根据该多个发电地区中每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定目标发电方案,该目标发电方案包括该每个发电地区分别对应的目标发电方式;The determining module 302 is used to determine the electricity cost and carbon emission corresponding to the target power generation area when the target power generation area is supplied with electricity according to each of the multiple power generation methods, and the target power generation area is any one of the multiple power generation areas. ; According to the electricity costs and carbon emissions corresponding to each power generation area in the plurality of power generation areas, based on the spider monkey algorithm, determine a target power generation scheme, and the target power generation scheme includes the target power generation mode corresponding to each power generation area;

控制模块303,用于根据该目标发电方案,控制该每个发电地区进行电力供应。The control module 303 is configured to control each power generation area to supply power according to the target power generation scheme.

可选的,获取模块301,具体用于获取多个蜘蛛猴,该多个蜘蛛猴中每个蜘蛛猴分别对应一种初始发电方案,该初始发电方案包括该多个发电地区中每个发电地区分别对应的一种发电方式;Optionally, the acquisition module 301 is specifically configured to acquire multiple spider monkeys, each spider monkey in the multiple spider monkeys corresponds to an initial power generation scheme, and the initial power generation scheme includes each power generation area in the multiple power generation areas. A corresponding power generation method;

确定模块302,具体用于根据该每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定该每个蜘蛛猴对应的适应度值;根据该适应度值,确定该多个蜘蛛猴对应的第一全局领导者和第一局部领导者;根据该第一全局领导者和该第一局部领导者,确定目标发电方案。The determination module 302 is specifically configured to determine the fitness value corresponding to each spider monkey based on the spider monkey algorithm according to the electricity cost and carbon emission corresponding to each power generation area; determine the plurality of The first global leader and the first local leader corresponding to the spider monkey; according to the first global leader and the first local leader, the target power generation scheme is determined.

可选的,确定模块302,具体用于确定该适应度值中的第一最大适应度值,并将该第一最大适应度值对应的蜘蛛猴确定为该多个蜘蛛猴对应的第一全局领导者;将该多个蜘蛛猴进行分组,得到至少一个蜘蛛猴集合,该至少一个蜘蛛猴集合中每个蜘蛛猴集合包括至少一个蜘蛛猴;Optionally, the determining module 302 is specifically configured to determine the first maximum fitness value in the fitness value, and determine the spider monkey corresponding to the first maximum fitness value as the first global corresponding to the plurality of spider monkeys. a leader: grouping the plurality of spider monkeys to obtain at least one spider monkey set, where each spider monkey set in the at least one spider monkey set includes at least one spider monkey;

获取模块301,具体用于获取目标蜘蛛猴集合中每个蜘蛛猴对应的适应度值;The obtaining module 301 is specifically configured to obtain the fitness value corresponding to each spider monkey in the target spider monkey set;

获取模块301,具体用于确定该每个蜘蛛猴对应的适应度值中的第二最大适应度值,该目标蜘蛛猴集合为该多个蜘蛛猴集合中的任一蜘蛛猴集合;将该第二最大适应度值所对应的蜘蛛猴确定为该目标蜘蛛猴集合对应的第一局部领导者。The acquisition module 301 is specifically configured to determine the second largest fitness value in the fitness values corresponding to each spider monkey, and the target spider monkey set is any spider monkey set in the multiple spider monkey sets; The spider monkey corresponding to the two maximum fitness values is determined as the first local leader corresponding to the target spider monkey set.

可选的,确定模块302,具体用于基于该第一全局领导者和该第一局部领导者,对该多个蜘蛛猴进行更新,得到更新后的蜘蛛猴;根据该更新后的蜘蛛猴所对应的总电力成本,确定第二全局领导者和第二局部领导者;根据该第一全局领导者、该第一局部领导者、该第二全局领导者和该第二局部领导者,确定目标发电方案。Optionally, the determining module 302 is specifically configured to update the plurality of spider monkeys based on the first global leader and the first local leader to obtain updated spider monkeys; The corresponding total power cost, determine the second global leader and the second local leader; determine the target according to the first global leader, the first local leader, the second global leader and the second local leader power generation program.

可选的,确定模块302,具体用于根据该第一局部领导者,基于贪婪算法,对该目标蜘蛛猴集合中每个蜘蛛猴进行更新,得到更新后的第一蜘蛛猴;根据该多个蜘蛛猴中每个蜘蛛猴分别对应的适应度值,确定该每个蜘蛛猴分别对应的适应度概率,并根据该适应度概率及该第一全局领导者,对该多个蜘蛛猴中每个蜘蛛猴进行更新,得到更新后的第二蜘蛛猴。Optionally, the determining module 302 is specifically configured to update each spider monkey in the target spider monkey set based on the greedy algorithm according to the first local leader to obtain the updated first spider monkey; The fitness value corresponding to each spider monkey in the spider monkeys, determine the fitness probability corresponding to each spider monkey, and according to the fitness probability and the first global leader, for each of the plurality of spider monkeys The spider monkey is updated to get the updated second spider monkey.

可选的,确定模块302,具体用于确定该更新后的第一蜘蛛猴所对应的第一总电力成本中的第一最小总电力成本,并将该第一最小总电力成本对应的第一蜘蛛猴确定为第二局部领导者;确定该更新后的第二蜘蛛猴所对应的第二总电力成本中的第二最小总电力成本,并将该第二最小总电力成本对应的第二蜘蛛猴确定为第二全局领导者。Optionally, the determining module 302 is specifically configured to determine the first minimum total power cost among the first total power costs corresponding to the updated first spider monkey, and set the first minimum total power cost corresponding to the first minimum total power cost. The spider monkey is determined as the second local leader; the second minimum total power cost among the second total power costs corresponding to the updated second spider monkey is determined, and the second spider monkey corresponding to the second minimum total power cost is determined. Monkey is identified as the second global leader.

可选的,确定模块302,具体用于在确定该第二局部领导者与该第一局部领导者相同的情况下,根据该第二全局领导者及该第二局部领导者,对该更新后的第二蜘蛛猴进行更新,得到更新后的第三蜘蛛猴;在确定该第二全局领导者与该第一全局领导者相同的情况下,若该蜘蛛猴集合的数量大于预设数量阈值,则将该蜘蛛猴集合进行划分,得到多个蜘蛛猴小组,若该数量小于等于该预设数量阈值,则将该蜘蛛猴集合进行合并,得到蜘蛛猴大组;在该第一全局领导者的更新迭代次数达到预设次数阈值的情况下,将最后一次得到的全局领导者确定为目标发电方案。Optionally, the determining module 302 is specifically configured to, in the case of determining that the second local leader is the same as the first local leader, according to the second global leader and the second local leader, determine the updated The second spider monkey is updated to obtain the updated third spider monkey; under the condition that the second global leader is determined to be the same as the first global leader, if the number of the spider monkey set is greater than the preset number threshold, Then divide the spider monkey set to obtain multiple spider monkey groups, if the number is less than or equal to the preset number threshold, merge the spider monkey set to obtain a large spider monkey group; in the first global leader's When the number of update iterations reaches the preset number of thresholds, the last obtained global leader is determined as the target power generation scheme.

图4示例了一种电子设备的实体结构示意图,如图4所示,该电子设备可以包括:处理器(processor)410、通信接口(Communications Interface)420、存储器(memory)430和通信总线440,其中,处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信。处理器410可以调用存储器430中的逻辑指令,以执行电力供应方法,该方法包括:获取多个发电地区及多种发电方式;确定目标发电地区按照该多种发电方式中每种发电方式进行电力供应时对应的电力成本及碳排放量,该目标发电地区为该多个发电地区中的任一发电地区;根据该多个发电地区中每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定目标发电方案,该目标发电方案包括该每个发电地区分别对应的目标发电方式;根据该目标发电方案,控制该每个发电地区进行电力供应。FIG. 4 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 4 , the electronic device may include: a processor (processor) 410, a communication interface (Communications Interface) 420, a memory (memory) 430, and a communication bus 440, The processor 410 , the communication interface 420 , and the memory 430 communicate with each other through the communication bus 440 . The processor 410 can invoke the logic instructions in the memory 430 to execute the power supply method, the method includes: acquiring multiple power generation areas and multiple power generation modes; determining the target power generation area to generate electricity according to each power generation mode in the multiple power generation modes The corresponding electricity cost and carbon emissions at the time of supply, the target power generation area is any one of the multiple power generation areas; according to the electricity cost and carbon emissions corresponding to each power generation area in the multiple power generation areas, based on The spider monkey algorithm determines a target power generation scheme, and the target power generation scheme includes the target power generation mode corresponding to each power generation area; and controls each power generation area to supply power according to the target power generation scheme.

此外,上述的存储器430中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory 430 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的电力供应方法,该方法包括:获取多个发电地区及多种发电方式;确定目标发电地区按照该多种发电方式中每种发电方式进行电力供应时对应的电力成本及碳排放量,该目标发电地区为该多个发电地区中的任一发电地区;根据该多个发电地区中每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定目标发电方案,该目标发电方案包括该每个发电地区分别对应的目标发电方式;根据该目标发电方案,控制该每个发电地区进行电力供应。In another aspect, the present invention also provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can Execute the power supply method provided by the above methods, the method includes: acquiring multiple power generation areas and multiple power generation methods; Carbon emissions, the target power generation area is any power generation area in the multiple power generation areas; according to the electricity cost and carbon emissions corresponding to each power generation area in the multiple power generation areas, and based on the spider monkey algorithm, determine the target power generation area The target power generation scheme includes a target power generation mode corresponding to each power generation area respectively; according to the target power generation scheme, each power generation area is controlled to supply power.

又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的电力供应方法,该方法包括:获取多个发电地区及多种发电方式;确定目标发电地区按照该多种发电方式中每种发电方式进行电力供应时对应的电力成本及碳排放量,该目标发电地区为该多个发电地区中的任一发电地区;根据该多个发电地区中每个发电地区分别对应的电力成本及碳排放量,基于蜘蛛猴算法,确定目标发电方案,该目标发电方案包括该每个发电地区分别对应的目标发电方式;根据该目标发电方案,控制该每个发电地区进行电力供应。In another aspect, the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored, the computer program is implemented by a processor to execute the power supply method provided by the above methods, and the method includes: Obtain multiple power generation areas and multiple power generation methods; determine the corresponding electricity cost and carbon emissions when the target power generation area supplies power according to each of the multiple power generation methods, and the target power generation area is one of the multiple power generation areas. According to the electricity cost and carbon emissions corresponding to each power generation area in the multiple power generation areas, and based on the spider monkey algorithm, determine the target power generation plan, and the target power generation plan includes the corresponding power generation area. Target power generation mode; according to the target power generation plan, control each power generation area to supply power.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A power supply method, characterized by comprising:
acquiring a plurality of power generation areas and a plurality of power generation modes;
determining a power cost and a carbon emission amount corresponding to a target power generation region when power is supplied according to each of the plurality of power generation modes, wherein the target power generation region is any one of the plurality of power generation regions;
determining a target power generation scheme based on a spider monkey algorithm according to the power cost and the carbon emission corresponding to each power generation region in the plurality of power generation regions, wherein the target power generation scheme comprises a target power generation mode corresponding to each power generation region;
and controlling each power generation region to supply power according to the target power generation scheme.
2. The method of claim 1, wherein determining a target power generation scheme based on a spider monkey algorithm from the power cost and carbon emissions associated with each of the plurality of power generation regions comprises:
obtaining a plurality of spider monkeys, wherein each spider monkey in the plurality of spider monkeys corresponds to an initial power generation scheme, and the initial power generation scheme comprises a power generation mode corresponding to each power generation area in the plurality of power generation areas;
determining a fitness value corresponding to each spider monkey based on a spider monkey algorithm according to the electric power cost and the carbon emission corresponding to each power generation region;
determining a first global leader and a first local leader corresponding to the plurality of spider monkeys according to the fitness values;
determining a target power generation scheme based on the first global leader and the first local leader.
3. The method of claim 2, wherein said determining a first global leader and a first local leader corresponding to said plurality of spider monkeys from said fitness values comprises:
determining a first largest fitness value of the fitness values, and determining a spider monkey corresponding to the first largest fitness value as a first global leader corresponding to the plurality of spider monkeys;
grouping the plurality of spider monkeys to obtain at least one spider monkey collection, wherein each spider monkey collection in the at least one spider monkey collection comprises at least one spider monkey;
obtaining an adaptation value corresponding to each spider monkey in a target spider monkey set and determining a second maximum adaptation value in the adaptation values corresponding to each spider monkey, wherein the target spider monkey set is any spider monkey set in the plurality of spider monkey sets;
and determining the spider monkey corresponding to the second maximum fitness value as a first partial leader corresponding to the target spider monkey set.
4. The method of claim 2 or 3, wherein determining a target power generation scheme based on the first global leader and the first local leader comprises:
updating the plurality of spider monkeys based on the first global leader and the first local leader to obtain updated spider monkeys;
determining a second global leader and a second local leader according to the updated total power cost corresponding to the spider monkeys;
determining a target power generation scheme based on the first global leader, the first local leader, the second global leader, and the second local leader.
5. The method of claim 4, wherein said updating said plurality of spider monkeys according to said first global leader and said first local leader to obtain updated spider monkeys comprises:
updating each spider monkey in the target spider monkey set based on a greedy algorithm according to the first local leader to obtain an updated first spider monkey;
and determining the fitness probability corresponding to each spider monkey according to the fitness value corresponding to each spider monkey in the plurality of spider monkeys, and updating each spider monkey in the plurality of spider monkeys according to the fitness probability and the first global leader to obtain an updated second spider monkey.
6. The method of claim 5, wherein said determining a second global leader and a second local leader from the updated total power cost for spider monkeys comprises:
determining a first minimum total power cost of the first total power costs corresponding to the updated first spider monkey, and determining the first spider monkey corresponding to the first minimum total power cost as a second local leader;
and determining a second minimum total power cost in the second total power costs corresponding to the updated second spider monkeys, and determining the second spider monkeys corresponding to the second minimum total power costs as second global leaders.
7. The method of claim 5 or 6, wherein determining a target power generation scheme from the first global leader, the first local leader, the second global leader, and the second local leader comprises:
under the condition that the second local leader is determined to be the same as the first local leader, updating the updated second spider monkey according to the second global leader and the second local leader to obtain an updated third spider monkey;
under the condition that the second global leader is determined to be the same as the first global leader, if the number of the spider monkey collections is larger than a preset number threshold value, dividing the spider monkey collections to obtain a plurality of spider monkey subgroups, and if the number of the spider monkey collections is smaller than or equal to the preset number threshold value, merging the spider monkey collections to obtain a spider monkey subgroup;
and under the condition that the updating iteration number of the first global leader reaches a preset number threshold, determining the global leader obtained at the last time as a target power generation scheme.
8. An electric power supply device characterized by comprising:
the acquisition module is used for acquiring a plurality of power generation areas and a plurality of power generation modes;
a determining module, configured to determine a power cost and a carbon emission amount corresponding to a target power generation region when power is supplied according to each of the plurality of power generation modes, where the target power generation region is any one of the plurality of power generation regions; determining a target power generation scheme based on a spider monkey algorithm according to the power cost and the carbon emission corresponding to each power generation region in the plurality of power generation regions, wherein the target power generation scheme comprises a target power generation mode corresponding to each power generation region;
and the control module is used for controlling each power generation area to supply power according to the target power generation scheme.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the power supply method according to any one of claims 1 to 7 when executing the program.
10. A non-transitory computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the power supply method according to one of claims 1 to 7.
CN202211037601.0A 2022-08-29 2022-08-29 Power supply method, device, electronic equipment and storage medium Active CN115102238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211037601.0A CN115102238B (en) 2022-08-29 2022-08-29 Power supply method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211037601.0A CN115102238B (en) 2022-08-29 2022-08-29 Power supply method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115102238A true CN115102238A (en) 2022-09-23
CN115102238B CN115102238B (en) 2022-11-15

Family

ID=83300004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211037601.0A Active CN115102238B (en) 2022-08-29 2022-08-29 Power supply method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115102238B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114204553A (en) * 2021-12-09 2022-03-18 软通动力信息技术(集团)股份有限公司 Power generation proportioning method, device and equipment
CN114330940A (en) * 2020-09-28 2022-04-12 华中科技大学 Multi-target mixed spider monkey optimization method for PCB electroplating task sequencing problem
CN114565237A (en) * 2022-02-15 2022-05-31 石河子大学 Integrated energy low-carbon dispatch method and system for multi-energy combined power station
CN114565239A (en) * 2022-02-15 2022-05-31 石河子大学 Comprehensive low-carbon energy scheduling method and system for industrial park
CN114844124A (en) * 2022-06-20 2022-08-02 中国电力工程顾问集团中南电力设计院有限公司 Operation control method of comprehensive energy system based on target optimization
WO2022160705A1 (en) * 2021-01-26 2022-08-04 中国电力科学研究院有限公司 Method and apparatus for constructing dispatching model of integrated energy system, medium, and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114330940A (en) * 2020-09-28 2022-04-12 华中科技大学 Multi-target mixed spider monkey optimization method for PCB electroplating task sequencing problem
WO2022160705A1 (en) * 2021-01-26 2022-08-04 中国电力科学研究院有限公司 Method and apparatus for constructing dispatching model of integrated energy system, medium, and electronic device
CN114204553A (en) * 2021-12-09 2022-03-18 软通动力信息技术(集团)股份有限公司 Power generation proportioning method, device and equipment
CN114565237A (en) * 2022-02-15 2022-05-31 石河子大学 Integrated energy low-carbon dispatch method and system for multi-energy combined power station
CN114565239A (en) * 2022-02-15 2022-05-31 石河子大学 Comprehensive low-carbon energy scheduling method and system for industrial park
CN114844124A (en) * 2022-06-20 2022-08-02 中国电力工程顾问集团中南电力设计院有限公司 Operation control method of comprehensive energy system based on target optimization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王士兴: "基于高斯混合分布随机性模型的多风电场电力系统无功优化", 《万方数据知识服务平台》 *

Also Published As

Publication number Publication date
CN115102238B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
CN108258724A (en) A kind of wind power plant unit is laid out Multipurpose Optimal Method
CN106849097A (en) A kind of active distribution network tidal current computing method
CN105225022A (en) A kind of economy optimizing operation method of cogeneration of heat and power type micro-capacitance sensor
CN106485358A (en) Binding sequence computing and the independent micro-capacitance sensor Optimal Configuration Method of particle cluster algorithm
CN112491043B (en) A new energy enrichment grid power supply planning method and system
CN103414213A (en) Power supply optimal configuration method for sea island type micro-grid
CN110889581A (en) Electric vehicle-participated transformer area optimal scheduling method and system
CN110543966A (en) A day-ahead scheduling optimization method for micro-energy grids with cogeneration of electricity, heat and gas
CN109787221A (en) A kind of micro-capacitance sensor electric energy safe economic load dispatching method and system
CN116885795A (en) Microgrid power grid load storage collaborative dispatching method, device, equipment and storage medium
CN110543695B (en) A Feasible Region Calculation Method for Electric-Pneumatic Coupling Integrated Energy System
Gaojun et al. Multi-objective capacity optimization configuration of independent wind-photovoltaic-hydrogen-battery system based on improved MOSSA algorithm
CN113962113B (en) Optimized arrangement method and system for offshore wind farm fans
CN112886036B (en) PEMFC air supply system control strategy based on improved wolf optimization
CN114386236A (en) Planning method and system for reasonable utilization rate of new energy consumption
CN115102238B (en) Power supply method, device, electronic equipment and storage medium
CN112564160A (en) Energy storage system random configuration method considering wind power uncertainty, terminal and storage medium
CN113962419A (en) Optimal load allocation method for cogeneration units based on improved multi-objective cuckoo search algorithm
CN111967646A (en) Renewable energy source optimal configuration method for virtual power plant
CN117477659A (en) A method, device and medium for proportioning new energy and conventional power in a power system
CN116630090A (en) Method and device for determining minimum starting-up capacity of thermal power generating unit based on voltage stabilization
Yi et al. Optimal design of photovoltaic-wind hybrid renewable energy system using a discrete geometric selective harmony search
CN115907110A (en) A method for evaluating power system flexibility resources and a multi-dimensional dispatching method
CN110414185B (en) Energy storage equipment capacity optimization method for multi-renewable energy power generation system
CN114256861A (en) Energy storage capacity calculation method and system considering peak shaving and new energy consumption

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant