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

Power supply method, device, electronic equipment 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
power
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)
  • Economics (AREA)
  • Biophysics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Molecular Biology (AREA)
  • Biomedical Technology (AREA)
  • Tourism & Hospitality (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Marketing (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Biology (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • General Business, Economics & Management (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Genetics & Genomics (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Physiology (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Power Engineering (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • Primary Health Care (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 equipment and storage medium
Technical Field
The present invention relates to the field of power supply technologies, and in particular, to a power supply method and apparatus, an electronic device, and a storage medium.
Background
In modern society, electric power energy has gradually penetrated into people's daily life. In order to promote the development and progress of society, the demand of electric energy is increasingly huge, however, the pollution level of the environment becomes more and more serious. With the rapid development of society, the contradiction between the environment and the electric power energy is gradually intensified and cannot be ignored. In order to protect the global environment and reduce the discharge of pollution wastes, the development of comprehensive electric energy is imperative.
In the conventional power supply method, electronic equipment allocates corresponding power generation methods to a plurality of power generation regions and a plurality of power generation methods by using a heuristic algorithm, and controls the plurality of power generation regions to supply power. However, the heuristic algorithm is an algorithm constructed based on intuition or experience, is complex, and solves the combined optimization problem corresponding to a plurality of power generation areas and a plurality of power generation modes in limited time and space to obtain a feasible solution corresponding to each power generation area, and the deviation degree of the feasible solution and the optimal solution cannot be predicted generally. Therefore, it is easy to cause that the electronic device cannot obtain the optimal solution of combination optimization corresponding to the plurality of power generation regions and the plurality of power generation modes, that is, the electronic device cannot effectively allocate the corresponding power generation modes to the plurality of power generation regions, thereby causing the efficiency of power supply to be low.
Disclosure of Invention
The invention provides a power supply method, a device, electronic equipment and a storage medium, which are used for solving the defect that in the existing power supply method, due to the fact that a heuristic algorithm is complex and has certain limitation, the electronic equipment cannot effectively distribute corresponding power generation modes to a plurality of power generation areas, and therefore the power supply efficiency is low.
The invention provides a power supply method, comprising 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 the 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 region to supply power according to the target power generation scheme.
According to an aspect of the present invention, there is provided a power supply method for determining a target power generation plan based on a spider monkey algorithm from power costs and carbon emissions corresponding to each of a plurality of power generation regions, the method including: obtaining a plurality of spider monkeys, wherein each spider monkey in the plurality of spider monkeys respectively corresponds to an initial power generation scheme which comprises a power generation mode respectively 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 area; determining a first global leader and a first local leader corresponding to the plurality of spider monkeys according to the fitness value; a target power generation scheme is determined based on the first global leader and the first local leader.
According to a power supply method provided by the invention, the determining of a first global leader and a first local leader corresponding to the plurality of spider monkeys from the fitness values comprises: determining a first maximum fitness value of the fitness values, and determining a spider monkey corresponding to the first maximum fitness value as a first global leader corresponding to the plurality of spider monkeys; grouping the plurality of spider monkeys, resulting in at least one spider monkey collection, each spider monkey collection of the at least one spider monkey collection comprising at least one spider monkey; obtaining an adaptability value corresponding to each spider monkey in a target spider monkey set and determining a second maximum adaptability value in the adaptability 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 local leader corresponding to the target spider monkey set.
According to an electric power supply method provided by the present invention, the determining a target power generation scheme based on the first global leader and the first local leader includes: 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.
According to an electric power supply method provided by the present invention, the updating of the plurality of spider monkeys according to the first global leader and the first local leader to obtain updated spider monkeys includes: 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; according to the fitness value that each spider monkey corresponds respectively among these a plurality of spider monkeys, confirm the fitness probability that this each spider monkey corresponds respectively to according to this fitness probability and this first global leader, update every spider monkey among these a plurality of spider monkeys, obtain the second spider monkey after the update.
According to an electric power supply method provided by the present invention, the determining a second global leader and a second local leader based on the updated total electric power cost corresponding to spider monkeys includes: 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.
According to an electric power supply method provided by the present invention, the 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 greater than a preset number threshold value, dividing the spider monkey collections to obtain a plurality of spider monkey subgroups, and if the number is less 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 times of the first global leader reach a preset time threshold value, determining the global leader obtained at the last time as a target power generation scheme.
The present invention also provides a power supply device including:
the invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the power supply method as described in any one of the above when executing the program.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a power supply method as described in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a method of supplying electrical power as described in any one of the above.
The invention provides a power supply method, a device, electronic equipment and a storage medium, which are characterized in that a plurality of power generation areas and a plurality of power generation modes are obtained; 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. Because the parameter in the spider monkey algorithm is less and convergence rate is very fast, this spider monkey algorithm's complexity is lower and the limitation is less promptly, and electronic equipment can effectively improve the electricity generation mode distribution process based on this spider monkey algorithm, and can effectively reduce the power supply cost to effectively promote the sustainable development of comprehensive energy.
Drawings
In order to more clearly illustrate the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic flow chart of a power supply method provided by the present invention;
FIG. 2a is a schematic diagram comparing power cost curves corresponding to different power supply methods provided by the present invention;
FIG. 2b is a schematic diagram comparing power cost curves corresponding to different power supply methods provided by the present invention;
FIG. 2c is a schematic diagram comparing the carbon emissions curves corresponding to different power supply methods provided by the present invention;
FIG. 3 is a schematic structural diagram of a power supply apparatus provided in the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, the electronic device according to the embodiment of the present invention may be referred to as an integrated energy distribution center, and the electronic device may include: computers, mobile terminals, wearable devices, and the like.
The execution main body according to the embodiment of the present invention may be a power supply device or an electronic device, and the electronic device is described below as an example.
As shown in fig. 1, which is a schematic flow chart of the power supply method provided by the present invention, the method may include:
101. a plurality of power generation areas and a plurality of power generation modes are obtained.
Wherein, the power generation area refers to an area which can provide power transmission, and the number of the power generation areas is at least two;
the power generation manner refers to a manner of converting other energy into electric energy, and the number of the power generation manners is at least two.
Optionally, the power generation means may include, but is not limited to, the following: thermal power generation (thermal power), wind power generation (wind power), gas power generation, solar photovoltaic power generation (photovoltaic power), hydroelectric power generation (hydroelectric power), nuclear power generation and the like.
The thermal power generation means that water in a water pipe of a boiler is heated to form high-temperature and high-pressure steam by using heat energy generated by burning fuel such as coal, petroleum, liquefied natural gas and the like, and then a steam turbine is pushed to rotate by using the steam to drive a generator to generate electricity, namely, the heat energy is converted into electric energy;
wind power means that wind power is used for driving a windmill to rotate so as to drive a generator to generate electricity;
the gas power generation refers to that the combustion heat energy of natural gas is utilized to drive a steam turbine to rotate so as to drive a generator to generate power;
photovoltaic power generation refers to the process of manufacturing a silicon material with a photoelectric effect into a solar panel and converting solar light energy received by the solar panel into electric energy;
hydroelectric refers to the fact that potential energy generated when water at a high position flows to a low position is converted into kinetic energy through damming, a water turbine arranged at the low position of a water channel is connected with a generator, and the water turbine is easy to be pushed by water flow to rotate, so that the generator is driven to generate electricity;
the nuclear power generation utilizes nuclear energy to heat water in a reactor to generate steam, and a steam turbine drives a generator to rotate to generate electric energy under the pushing of the steam.
For example, the electronic device may obtain 11 power generation regions and 5 power generation modes, where the 5 power generation modes are: thermal power, wind power, gas power, photovoltaic power and hydropower.
102. And determining the corresponding power cost and carbon emission when the target power generation area supplies power according to each power generation mode in the multiple power generation modes.
Wherein the target power generation region is any one of a plurality of power generation regions.
The power supply refers to the process of generating and transmitting power in a power generation area;
the power cost refers to the overhead generated by the power generation area when power is supplied, that is, the power cost refers to the overhead generated by the power generation area during power generation and the overhead generated during power transmission;
the carbon emission amount refers to an average greenhouse gas emission amount emitted when power is supplied in a power generation area.
Alternatively, the cost of electricity may include the cost of electricity generation and the cost of electricity transmission.
Alternatively, the cost of power generation may include, but is not limited to: investment cost of the gas turbine, investment cost of the photovoltaic, investment cost of the fan, investment cost of the storage battery for energy storage and the like; the transmission cost may include, but is not limited to, the cost of electricity purchase, the cost of electricity sale, the cost of gas purchase, the cost of depreciation of the storage battery, and the like.
Optionally, the unit of the power cost is hundred million yuan; the carbon emission is given in units of ten thousand tons.
The electronic equipment can count corresponding power cost and carbon emission in the process of controlling the target power generation area to supply power according to a first power generation mode in multiple power generation modes; the electronic equipment can count corresponding power cost and carbon emission in the process of controlling the target power generation area to supply power according to the second power generation mode in the multiple power generation modes, and by analogy, the electronic equipment can obtain the power cost and the carbon emission respectively corresponding to the target power generation area to supply power according to each power generation mode in the multiple power generation modes.
Based on the above process, after acquiring a plurality of power generation regions and a plurality of power generation manners, the electronic device may acquire the power cost and the carbon emission amount respectively corresponding to each of the plurality of power generation regions when each of the plurality of power generation regions supplies power in each of the plurality of power generation manners.
Optionally, the corresponding power costs of the same power generation region when power is supplied according to different power generation modes may be the same or different; the corresponding carbon emission amount when the same power generation region supplies power according to different power generation modes can be the same or different; the corresponding power cost when different power generation areas supply power according to the same power generation mode can be the same or different; the carbon emissions corresponding to different power generation regions supplied with power in the same power generation manner may be the same or different, and are not particularly limited herein.
For example, assume that the electronic device acquires 2 power generation regions and 2 power generation modes. The 2 power generation areas are respectively a first power generation area and a second power generation area, and the 2 power generation modes are thermal power and wind power respectively.
The electronic equipment can count the corresponding power cost and carbon emission when the first power generation area supplies power according to thermal power, and the power cost and the carbon emission are respectively 2.6 million yuan and 5.2 ten thousand tons;
the electronic equipment can calculate the corresponding power cost and carbon emission when the first power generation area supplies power according to wind power, and the power cost and the carbon emission are respectively 2.3 million yuan and 4.8 ten thousand tons;
the electronic equipment can count the corresponding power cost and carbon emission when the second power generation area supplies power according to the thermal power, and the power cost and the carbon emission are respectively 1.8 million yuan and 3.3 ten thousand tons;
the electronic equipment can count the corresponding electric power cost and carbon emission when the second power generation area supplies power according to the wind power, and the electric power cost and the carbon emission are respectively 1.9 million yuan and 4.2 ten thousand tons.
The timing of the statistical process is not limited, so that the electronic device can determine the power cost and the carbon emission respectively corresponding to each of the 2 power generation regions when each of the 2 power generation methods supplies power.
103. And 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.
The target power generation scheme may include a target power generation mode corresponding to each power generation region.
The target power generation system is a power generation system corresponding to each power generation area when the power cost is low and the carbon emission is low.
The spider monkey algorithm is an algorithm based on group intelligence and can be used for solving the problem of combination optimization corresponding to multiple power generation areas and multiple power generation modes.
Optionally, before step 103, the method may further include: the electronic device initializes the setting parameters in the spider monkey algorithm. Specifically, the electronic device may first sequence and number the obtained multiple power generation regions and multiple power generation modes, and then set the algorithm parameters corresponding to the spider monkey algorithm, where 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 number (Max Group, MG), and disturbance Rate (PR), etc.
Wherein the Local leader Limit LLL can Count on a Local leader associated counter (LLC) and the Global leader Limit GLL can Count on a Global leader associated counter (GLC).
Illustratively, after acquiring 11 power generation regions and 5 power generation modes, the electronic device may number the 11 power generation regions, which are respectively denoted by a1, a2, … and a11, and respectively represent a first power generation region, …, an ith power generation region, … and an eleventh power generation region; the 5 power generation modes are respectively a first power generation mode, …, a jth power generation mode, … and an eleventh power generation mode, and the electronic device numbers the 5 power generation modes and can be respectively represented by b1, b2, … and b 5; the electronic device may 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 region by the electronic device and the number of the power generation method by the electronic device is not limited.
In some embodiments, the electronic device determines the target power generation scheme according to the power cost and the carbon emission corresponding to each of the plurality of power generation regions based on a spider monkey algorithm, which may include: the electronic device obtains a plurality of spider monkeys; the electronic equipment determines 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 area; the electronic equipment determines a first global leader and a first local leader corresponding to a plurality of spider monkeys according to the fitness value; the electronic device determines a target power generation scheme based on the first global leader and the first local leader.
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 plurality of power generation areas.
After acquiring a plurality of spider monkeys, the electronic device can obtain spider monkey population information, which is an encoding matrix.
Exemplarily, the electronic device selects a first group of power generation modes for a plurality of power generation areas to obtain a first spider monkey; the electronic device selects a second group of power generation modes for the plurality of power generation areas to obtain a second spider monkey, and so on, the electronic device can select an Nth group of power generation modes for the plurality of power generation areas to obtain an Nth spider monkey. Thus, the electronic equipment can obtain N spider monkeys, namely N initial power generation schemes, wherein N is larger than or equal to 2. Wherein N spider monkeys can be represented by an assignment state matrix g,
Figure 299005DEST_PATH_IMAGE001
Figure 180373DEST_PATH_IMAGE002
represents the ith spider monkey of N spider monkeys,
Figure 801848DEST_PATH_IMAGE003
the power generation system may include each power generation region and a power generation mode corresponding to each power generation region, for example:
Figure 311326DEST_PATH_IMAGE004
in a
Figure 235420DEST_PATH_IMAGE005
In (1), the first position represents a first power generation region among the 11 power generation regions
Figure 463139DEST_PATH_IMAGE006
The number at the first position represents the first power generation area
Figure 498091DEST_PATH_IMAGE006
Corresponding to the third power generation mode
Figure 393235DEST_PATH_IMAGE007
(ii) a Second power generation area
Figure 222651DEST_PATH_IMAGE008
Corresponding to the fifth power generation mode
Figure 203245DEST_PATH_IMAGE009
By analogy, the electronic device can determine the eleventh power generation region
Figure 41888DEST_PATH_IMAGE010
Corresponding to the third power generation mode
Figure 263309DEST_PATH_IMAGE011
Alternatively, each of the N spider monkeys is different, and some spider monkeys may be present, and are not particularly limited herein.
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 disturbance ratio PR = 0.5472.
Optionally, the electronic device determines, according to the electric power cost and the carbon emission amount respectively corresponding to each power generation region, an adaptability value corresponding to each spider monkey based on a spider monkey algorithm, which may include: the electronic equipment determines the corresponding electric power cost of each spider monkey based on a cost formula in a spider monkey algorithm; the electronic equipment determines the fitness value corresponding to each spider monkey according to the fitness value formula in the spider monkey-based algorithm.
Wherein the cost formula is
Figure 529206DEST_PATH_IMAGE012
The fitness value is formulated as
Figure 731517DEST_PATH_IMAGE013
Figure 373851DEST_PATH_IMAGE014
Representing the corresponding electric power cost of the ith spider monkey in each spider monkey, and is an intermediate parameter; a represents a first weight corresponding to the power cost;
Figure 978007DEST_PATH_IMAGE015
represents the power generation cost corresponding to the ith spider monkey;
Figure 414805DEST_PATH_IMAGE016
representing the power transmission cost corresponding to the ith spider monkey; b represents a second weight corresponding to the amount of carbon emission, a + b = 1;
Figure 838833DEST_PATH_IMAGE017
represents the carbon emission corresponding to the ith spider monkey; d represents a constant;
Figure 284858DEST_PATH_IMAGE018
the fitness value for the ith spider monkey is shown.
Optionally, the first weight, the second weight, and the constant may be set before the electronic device leaves a factory, or may be obtained by a user according to a large amount of experimental simulation data, which is not specifically limited herein.
For example, assuming a is 0.25, b is 0.75, and d is 2, the cost formula is
Figure 477942DEST_PATH_IMAGE019
(ii) a The fitness value is formulated as
Figure 210275DEST_PATH_IMAGE020
The electronic equipment can accurately obtain the adaptability value corresponding to each spider monkey based on the cost formula and the adaptability value formula in the spider monkey algorithm, and further obtain the accurate target power generation schemes corresponding to the first global leader, the first local leader and the plurality of power generation areas.
In some embodiments, the electronic device determining, from the fitness values, a first global leader and a first local leader corresponding to the plurality of spider monkeys may include: the electronic equipment determines a first maximum adaptability value in the adaptability values, and determines spider monkeys corresponding to the first maximum adaptability value as first global leaders corresponding to a plurality of spider monkeys; the electronic equipment groups a plurality of spider monkeys to obtain at least one spider monkey set, wherein each spider monkey set in the at least one spider monkey set can comprise at least one spider monkey; the electronic equipment acquires an adaptability value corresponding to each spider monkey in a target spider monkey set and determines a second maximum adaptability value in the adaptability values corresponding to each spider monkey, wherein the target spider monkey set is any spider monkey set in a plurality of 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 set of target spider monkeys.
Optionally, the electronic device determines a first maximum fitness value of the fitness values, and may include: the electronic equipment sorts the fitness values from small to large to obtain a first sequence, and obtains the last fitness value in the first sequence, wherein the last fitness value is the first maximum fitness value; or the electronic equipment sorts the fitness values from large to small to obtain a second sequence, and obtains a first fitness value in the second sequence, wherein the first fitness value is the first maximum fitness value.
Whether the electronic device obtains the first sequence or the second sequence, the electronic device can accurately obtain the largest fitness value in the fitness values, so that the first global leader is accurately determined.
Exemplarily, it is assumed that the electronic device acquires 20 spider monkeys, which correspond to fitness values of 0.75, 0.82, 0.52, …, 0.34, 0.25, respectively; the electronic device obtains the largest fitness value from the 20 fitness values, and takes the spider monkey corresponding to the largest fitness value as the first global leader.
Optionally, the electronic device may group a plurality of spider monkeys to obtain at least one spider monkey set, and the method may include: the electronic equipment groups a plurality of spider monkeys based on the maximum group number MG set in the spider monkey algorithm to obtain the MG spider monkey set.
After acquiring a plurality of spider monkeys, the electronic device may acquire the number of spider monkeys, and then may randomly divide the spider monkeys based on the maximum group number MG, or may average the spider monkeys to obtain the maximum group number MG spider monkey set.
Exemplarily, assume that the electronic device acquires 20 spider monkeys, MG = 2. The electronic equipment can equally divide the 20 spider monkeys to obtain two spider monkey sets, wherein the number of the spider monkeys in each spider monkey set is 10; alternatively, 8 spider monkeys may be randomly obtained from the 20 spider monkeys to obtain a single spider monkey pool, and the remaining 12 spider monkeys of the 20 spider monkeys may be determined as another spider monkey pool.
After acquiring two sets of spider monkeys, the two sets of spider monkeys are respectively a first set of spider monkeys and a second set of spider monkeys, the electronic device acquires first fitness values corresponding to each spider monkey in the first set of spider monkeys respectively, and takes the spider monkey corresponding to the largest fitness value of the first fitness values as a first local leader corresponding to the first set of spider monkeys; the electronic equipment acquires second fitness values corresponding to each spider monkey in a second spider monkey set respectively, and takes the spider monkey corresponding to the largest fitness value in the second fitness values as a first local leader corresponding to the second spider monkey set.
Optionally, the timing sequence of the electronic device acquiring the first local leaders respectively corresponding to different spider monkey sets is not limited.
In some embodiments, the electronic device, based on the first global leader and the first local leader, determines a target power generation scheme, which may include: the electronic equipment updates the plurality of spider monkeys based on the first global leader and the first local leader to obtain updated spider monkeys; the electronic equipment determines a second global leader and a second local leader according to the updated total power cost corresponding to the spider monkeys; the electronic device determines a target power generation scheme based on the first global leader, the first local leader, the second global leader, and the second local leader.
Since the spider monkey algorithm may include six stages, which are a local leader stage, a global leader learning stage, a local leader decision stage, and a global leader decision stage, respectively, in the local leader stage and the global leader stage, the electronic device may update the plurality of spider monkeys based on the first global leader and the first local leader to obtain updated spider monkeys; in the global leader learning stage and the local leader learning stage, the electronic device may determine a second global leader and a second local leader according to the updated total power cost corresponding to the spider monkeys; in the local leader decision phase and the global leader decision phase, 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 updating the plurality of spider monkeys according to the first global leader and the first local leader to obtain updated spider monkeys may include: the electronic equipment updates each spider monkey in the target spider monkey set according to the first local leader based on a greedy algorithm to obtain an updated first spider monkey; the electronic equipment 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 updates 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.
Wherein a greedy algorithm means that when solving a problem, the choice that seems to be the best at present is always made. That is, rather than considering the global optimum, the greedy algorithm only makes a locally optimal solution in some sense.
In the stage of local leader, the electronic equipment can accurately obtain the updated first spider monkey; the electronic equipment can accurately obtain the updated second spider monkey in the global leader stage.
Optionally, the updating, by the electronic device, each spider monkey in the target spider monkey set according to the first local leader based on a greedy algorithm to obtain an updated first spider monkey, which may include: and the electronic equipment updates the formula according to the local position to obtain an updated first spider monkey.
Wherein the local position update formula is
Figure 262544DEST_PATH_IMAGE021
t represents the number of update iterations of the local leader;
Figure 105735DEST_PATH_IMAGE022
represents a power generation mode corresponding to the jth power generation area in the ith spider monkey of a plurality of spider monkeys;
Figure 559850DEST_PATH_IMAGE023
representing a power generation mode corresponding to a jth power generation area in a tth generation local leader corresponding to a kth target spider monkey set;
Figure 463084DEST_PATH_IMAGE024
representing a power generation mode corresponding to a jth power generation area in a randomly selected spider monkey in an r-th target spider monkey set, wherein r is not equal to j; u (0, 1) is a random number uniformly distributed in the range of U (-1, 1). At this time, t takes a value of 1.
The electronic equipment can accurately obtain the updated first spider monkey corresponding to each spider monkey in the target spider monkey set according to the local position updating formula.
Optionally, the electronic device determines, according to the fitness value corresponding to each spider monkey in the multiple spider monkeys, the fitness probability corresponding to each spider monkey, and updates, according to the fitness probability and the first global leader, each spider monkey in the multiple spider monkeys to obtain an updated second spider monkey, which may include: and the electronic equipment 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 to obtain an updated second spider monkey.
Wherein the probability formula of the fitness value is
Figure 2650DEST_PATH_IMAGE025
The global position update is formulated as
Figure 386883DEST_PATH_IMAGE026
Figure 695504DEST_PATH_IMAGE027
Representing the fitness probability corresponding to the ith spider monkey in the plurality of spider monkeys; n represents the number of spider monkeys;
Figure 769639DEST_PATH_IMAGE028
represents the jth power generation region pair in the tth generation global leaderThe power generation method.
And the electronic equipment can accurately obtain the updated second spider monkey according to the fitness value probability formula and the global position updating formula.
For example, assuming that the electronic device obtains 20 spider monkeys and the electronic device obtains the fitness values corresponding to the 20 spider monkeys, the fitness values can be fixed = [0.78, 0.83, 0.58, …, 0.32, 0.21 = [ ]]Represents; then, the electronic device obtains the fitness probabilities corresponding to the 20 spider monkeys according to a fitness probability formula, 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 that
Figure 530922DEST_PATH_IMAGE029
(ii) a Then, the electronic equipment randomly generates a number randk within a range of (0, 1), and selects the No. r spider monkey of the 20 spider monkeys to carry out global position updating; and finally, the electronic equipment updates a formula according to the global position to obtain an updated second spider monkey. Wherein the condition that the r-th spider monkey needs to satisfy is
Figure 981495DEST_PATH_IMAGE030
In some embodiments, the electronic device determining the second global leader and the second local leader according to the updated total power cost corresponding to spider monkeys may include: the electronic equipment determines a first minimum total power cost in the first total power costs corresponding to the updated first spider monkeys, and determines the first spider monkeys corresponding to the first minimum total power costs as second local leaders; the electronic device determines a second minimum total power cost of the second total power costs corresponding to the updated second spider monkeys, and determines the second spider monkeys corresponding to the second minimum total power costs as a second global leader.
The electronic equipment can accurately determine a second local leader in the local leader learning phase; the electronic device can accurately determine the second global leader during the global leader learning phase.
In some embodiments, the electronic device determining, from the first global leader, the first local leader, the second global leader, and the second local leader, a target power generation scheme can include: under the condition that the second local leader is determined to be the same as the first local leader, the electronic equipment updates 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 sets is larger than a preset number threshold, the spider monkey sets are divided to obtain a plurality of spider monkey groups, and if the number of the spider monkey sets is smaller than or equal to the preset number threshold, the spider monkey sets are combined to obtain a spider monkey large group; and the electronic equipment determines the global leader obtained at the last time as a target power generation scheme under the condition that the update iteration number of the first global leader reaches a preset number threshold.
Optionally, the preset number threshold and the preset number threshold may be set before the electronic device leaves a factory, or may be customized by a user according to actual needs, and are not specifically limited herein.
The electronic device, in the local leader learning phase, can compare the second local leader to the first local leader; the electronic device may compare the second global leader to the first global leader in a global leader learning phase.
In the decision-making stage of the local leader, the electronic equipment can accurately obtain an updated third spider monkey; the electronic device may determine whether to divide or merge multiple spider monkey collections in a global leader decision phase for subsequent accurate determination of a target power generation scheme.
The electronic equipment obtains a second local leader after the first local leader performs the first updating iteration; at this time, the electronic device also updates and iterates the first global leader to obtain a second global leader; and then, the electronic equipment judges whether the updating iteration frequency reaches a preset frequency threshold value, if so, the second global leader is determined as a target power generation scheme, if not, the second local leader and the second global leader are subjected to second updating iteration, and so on until the updating iteration frequency reaches the preset frequency threshold value, and the finally obtained global leader is determined as the target power generation scheme.
Optionally, after determining that the second local leader is the same as the first local leader, the method may further include: the electronic equipment increases the frequency of the local leader associated with the counter LLC by m to obtain a local limit count, wherein m is an integer greater than or equal to 1, and compares the local limit count with the local leader limit LLL; if it is determined that the second local leader is not the same as the first local leader, the electronic device sets the number of times on the local leader association counter LLC to 0.
Illustratively, m has a value of 1.
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 equipment increases the times of the global leader associated counter GLL by n to obtain a global limit count, wherein 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 sets the number of times on the global leader associated counter GLL to 0 if it is determined that the second global leader is not the same as the first global leader.
Illustratively, n has a value of 1.
Optionally, when it is determined 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 to obtain an updated third spider monkey, which may include: and under the condition that the second local leader is determined to be the same as the first local leader, the electronic equipment obtains an updated third spider monkey according to the position updating formula.
Wherein the location update formula is
Figure 144623DEST_PATH_IMAGE031
Figure 389660DEST_PATH_IMAGE032
And the power generation mode corresponding to the kth power generation region in the tth generation local leader corresponding to the kth target spider monkey set is shown.
Thus, when the first local leader is exhausted, that is, when the iteration local leader limits LLL generation, and the local leader is not updated, the electronic device may update the power generation scheme corresponding to each spider monkey in the target spider monkey set corresponding to the local leader with a probability of being attracted to the global leader.
Optionally, the method may further include: and under the condition that the update iteration number of the first global leader does not reach the preset number threshold, the electronic equipment continues to execute a local leader stage, a global leader learning stage, a local leader decision stage and a global leader decision stage, wherein the six stages respectively correspond to the steps until the update iteration number reaches the preset number threshold, and a target power generation scheme is determined.
104. And controlling each power generation area to supply power according to the target power generation scheme.
The electronic equipment determines a target power generation mode corresponding to each power generation area according to the power generation scheme; and then, controlling the corresponding power generation areas to supply power based on each target power generation mode, wherein the total power generation cost corresponding to all the power generation modes in the target power generation scheme is low, and the total carbon emission is low, so that the power supply efficiency corresponding to each power generation area can be effectively improved in the process of supplying power to each power generation area.
Optionally, before step 104, the method may further include: the electronic device outputs the target power generation scheme.
Optionally, the electronic device outputs the target power generation scheme, which may include but is not limited to at least one of the following implementation manners:
implementation mode 1: the electronic equipment displays the target power generation scheme on a display screen in a text form and/or a picture form.
Optionally, the font in the text form may be set before the electronic device leaves the factory, or may be manually entered by the user, which is not specifically limited herein.
Implementation mode 2: the electronic equipment broadcasts the target power generation scheme by using the loudspeaker device.
Optionally, the language form corresponding to the broadcast target power generation scheme may be set before the electronic device leaves a factory, or may be input by a user in a customized manner, which is not specifically limited herein.
Implementation mode 3: the electronic device transmits the target power generation scheme to the associated device to cause the associated device to output the target power generation scheme.
No matter the electronic equipment outputs the target power generation scheme in the implementation manner 1-3, the user can timely know each power generation area and the target power generation manner corresponding to each power generation area respectively.
It should be noted that the existing power supply method may include power supply using a genetic algorithm. The genetic algorithm refers to a search heuristic for solving the optimization of the power supply process.
Exemplarily, as shown in fig. 2a, a schematic diagram comparing power cost curves corresponding to different power supply methods provided by the present invention is shown. Fig. 2a includes a power cost curve corresponding to a conventional power supply method and a power cost curve corresponding to a power supply method provided by the present invention. As can be seen from fig. 2a, as the number of update iterations of spider monkeys increases, the power supply method provided by the present invention has an improvement in power generation value of 7% to 12% over the existing power supply methods.
Fig. 2b is a schematic diagram comparing power cost curves corresponding to different power supply methods provided by the present invention. Fig. 2b includes a power cost curve corresponding to the conventional power supply method and a power cost curve corresponding to the power supply method provided by the present invention. As can be seen from fig. 2b, as the number of update iterations of spider monkeys increases, the power supply method provided by the present invention has an improvement in power cost value of 5% to 10% over the existing power supply methods.
Fig. 2c is a schematic diagram showing a 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 a conventional power supply method and a carbon emission curve corresponding to a power supply method according to the present invention. As can be seen from fig. 2c, as the number of update iterations of spider monkeys increases, 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.
In summary, 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, so that the electronic device can maximize the power supply benefit during the process of controlling the power supply in the power generation area by using the comprehensive energy, i.e. by using different power generation methods, thereby effectively promoting the sustainable development of the comprehensive energy.
It should be noted that, in the process of determining the corresponding target power generation modes for a plurality of power generation areas, the electronic device is based on a spider monkey algorithm, so that the whole determination process is clear, and the implementation is simple. Because the parameters in the spider monkey algorithm are fewer and the convergence speed is higher, namely the complexity of the spider monkey algorithm is lower, the comprehensive energy configuration process can be effectively improved, namely the power generation mode distribution process can be effectively improved, and the power supply cost can be effectively reduced. In addition, the electronic equipment can also quickly determine the target power generation modes respectively corresponding to the multiple power generation areas based on the spider monkey algorithm, so that a better power generation mode distribution scheme is obtained, and the calculation retention state can not occur in the whole process, so that the stability and the robustness of the electronic equipment are improved.
In the embodiment of the invention, a plurality of power generation areas and a plurality of power generation modes are obtained; 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 region to supply power according to the target power generation scheme. Because parameters in the spider monkey algorithm are fewer and the convergence rate is higher, namely the spider monkey algorithm is lower in complexity and smaller in limitation, the electronic equipment based on the spider monkey algorithm can effectively improve the distribution process of the power generation mode and effectively reduce the power supply cost, and therefore the sustainable development of comprehensive energy is effectively promoted.
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 may be referred to correspondingly to each other.
As shown in fig. 3, the schematic structural diagram of the power supply device provided by the present invention may include:
an obtaining module 301, configured to obtain multiple power generation areas and multiple power generation modes;
a determining module 302, 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 manners, 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 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;
a control module 303, configured to control each power generation area to supply power according to the target power generation scheme.
Optionally, the obtaining module 301 is specifically configured to obtain multiple spider monkeys, where each spider monkey of the multiple spider monkeys corresponds to an initial power generation scheme, and the initial power generation scheme includes a power generation manner corresponding to each power generation area of the multiple power generation areas;
a determining module 302, configured to determine, based on a spider monkey algorithm, a fitness value corresponding to each spider monkey according to the power cost and the carbon emission corresponding to each power generation area; determining a first global leader and a first local leader corresponding to the plurality of spider monkeys according to the fitness values; a target power generation scheme is determined based on the first global leader and the first local leader.
Optionally, the determining module 302 is specifically configured to determine a first maximum fitness value of the fitness values, and determine a spider monkey corresponding to the first maximum fitness value as a first global leader corresponding to the plurality of spider monkeys; grouping the plurality of spider monkeys, resulting in at least one spider monkey collection, each spider monkey collection of the at least one spider monkey collection comprising at least one spider monkey;
an obtaining module 301, specifically configured to obtain a fitness value corresponding to each spider monkey in a target spider monkey set;
an obtaining module 301, specifically configured to determine a second largest fitness value among the fitness values corresponding to each spider monkey, where 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 local leader corresponding to the target spider monkey set.
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; 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.
Optionally, the determining module 302 is specifically configured to update, according to the first local leader, each spider monkey in the target spider monkey set based on a greedy algorithm to obtain an updated first spider monkey; and according to the fitness value corresponding to each spider monkey in the plurality of spider monkeys, determining the fitness probability corresponding to each spider monkey, 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.
Optionally, the determining module 302 is specifically configured to determine a first minimum total power cost of the first total power costs corresponding to the updated first spider monkey, and determine 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 monkey, and determining the second spider monkey corresponding to the second minimum total power cost as a second global leader.
Optionally, the determining module 302 is specifically configured to, when it is determined that the second local leader is the same as the first local leader, update 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 greater than a preset number threshold value, dividing the spider monkey collections to obtain a plurality of spider monkey subgroups, and if the number is less 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.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor) 410, a communication Interface 420, a memory (memory) 430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may invoke logic instructions in the memory 430 to perform a power supply method comprising: 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 the 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 region to supply power according to the target power generation scheme.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In another aspect, the present invention also provides a computer program product comprising a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of executing the power supply method provided by the above methods, the method 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 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 region to supply power according to the target power generation scheme.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a power supply method provided by performing the above methods, the method including: 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 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 above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding 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 石河子大学 Comprehensive energy low-carbon scheduling 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 石河子大学 Comprehensive energy low-carbon scheduling 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
Maleki et al. Optimal sizing of autonomous hybrid photovoltaic/wind/battery power system with LPSP technology by using evolutionary algorithms
CN108173283B (en) Operation method of combined heat and power system containing wind and light renewable energy
US11443252B2 (en) Multi-objective operation control method for micro energy grid
CN109787227B (en) Multi-time scale optimization scheduling method for multi-energy complementary system
CN113361715B (en) Genetic algorithm-based daily operation strategy optimization method for wind-storage hybrid power station
CN104993524A (en) Wind power-containing electric system dynamic dispatching method based on improved discrete particle swarm optimization
CN105932722A (en) Pumped storage-wind power joint scheduling method of considering wind power output uncertainty
CN110889581A (en) Electric vehicle-participated transformer area optimal scheduling method and system
CN114519459A (en) Scene analysis and hybrid energy storage based optimal scheduling method for thermoelectric combined system
Gaojun et al. Multi-objective capacity optimization configuration of independent wind-photovoltaic-hydrogen-battery system based on improved MOSSA algorithm
Wei et al. Optimal sizing of energy storage in generation expansion planning of new power system with high penetration of renewable energies
CN107769266A (en) A kind of Multiple Time Scales generate electricity and standby combined optimization method
CN112886036B (en) PEMFC air supply system control strategy based on improved wolf optimization
Qu et al. A hybrid static economic dispatch optimization model with wind energy: Improved pathfinder optimization model
CN115102238B (en) Power supply method, device, electronic equipment and storage medium
CN112564160B (en) Wind power uncertainty-based random configuration method for energy storage system, terminal and storage medium
CN111967646A (en) Renewable energy source optimal configuration method for virtual power plant
CN113962419A (en) Load optimization distribution method for cogeneration unit based on improved multi-target cuckoo search algorithm
CN112528445B (en) Collaborative planning method and system for electricity-gas interconnection comprehensive energy system
CN115907106A (en) Micro-grid scheduling method, device, equipment and storage medium based on edge calculation
Banerjee et al. Chaotic simplex moth swarm algorithm for optimization of alternative energy integrated power grid including static synchronous series compensator
Li et al. The expansion planning of wind-thermal co-generation system based on harmony search algorithm under smart grid
CN115173394A (en) Fault state load shedding optimal control method and system considering source load fluctuation
Wang et al. A Two-stage coordinated line loss reduction model based on elephant herding optimization and second-order cone programming
CN112418561B (en) Power grid planning method suitable for full clean energy power system

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