CN113971504A - Power line repair resource allocation method, device and equipment based on intelligent contract - Google Patents
Power line repair resource allocation method, device and equipment based on intelligent contract Download PDFInfo
- Publication number
- CN113971504A CN113971504A CN202111082040.1A CN202111082040A CN113971504A CN 113971504 A CN113971504 A CN 113971504A CN 202111082040 A CN202111082040 A CN 202111082040A CN 113971504 A CN113971504 A CN 113971504A
- Authority
- CN
- China
- Prior art keywords
- resource
- repair
- rush
- repair resource
- supply end
- 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
Links
- 230000008439 repair process Effects 0.000 title claims abstract description 374
- 238000000034 method Methods 0.000 title claims abstract description 72
- 238000013468 resource allocation Methods 0.000 title claims abstract description 34
- 239000000463 material Substances 0.000 claims abstract description 117
- 230000002159 abnormal effect Effects 0.000 claims abstract description 105
- 238000012545 processing Methods 0.000 claims abstract description 34
- 238000012546 transfer Methods 0.000 claims description 184
- 230000032683 aging Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 15
- 238000007781 pre-processing Methods 0.000 claims description 11
- 230000004044 response Effects 0.000 claims description 9
- 238000004140 cleaning Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 11
- 230000008901 benefit Effects 0.000 description 5
- 238000010219 correlation analysis Methods 0.000 description 2
- 230000003628 erosive effect Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000005284 excitation Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000013598 vector Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06315—Needs-based resource requirements planning or analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06312—Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/20—Administration of product repair or maintenance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- Health & Medical Sciences (AREA)
- Educational Administration (AREA)
- Game Theory and Decision Science (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- Primary Health Care (AREA)
- General Health & Medical Sciences (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application relates to a power line repair resource allocation method, device and equipment based on an intelligent contract. The method comprises the following steps: responding to an emergency repair resource acquisition request aiming at the power supply abnormal node, and determining emergency repair resource demand information of the power supply abnormal node; reading rush-repair resource supply information pre-uploaded by each rush-repair resource supply end from a target block chain, and determining rush-repair resources to be matched for power supply abnormal nodes according to the rush-repair resource supply information and the rush-repair resource demand information; according to the material matching weight of each emergency repair resource supply end, performing resource matching processing on emergency repair resources to be matched to obtain a resource matching result; updating the material matching weight of each first-aid repair resource supply end according to the resource matching result; and returning to the step of performing resource matching processing on the emergency repair resources to be matched according to the material matching weight of each emergency repair resource supply end to obtain a resource matching result until a target resource matching result is obtained. By adopting the method, the allocation efficiency of the first-aid repair resources can be improved.
Description
Technical Field
The application relates to the technical field of power line repair, in particular to a power line repair resource allocation method and device based on an intelligent contract, computer equipment and a storage medium.
Background
The power industry is involved in the life of national economy, and the fundamental industry is regarded as the basis of which the national development industry pays attention. In the power industry, the floating of the mind is a safe two-character. The power supply is an important ring in the power industry and has a great connection with the national people.
Due to power accidents caused by natural disasters, external force damage, manual misoperation or equipment overload operation and the like, regional or regional power failure behaviors can be caused, power is an important component of daily life of people, and after the accidents occur, related personnel are organized to rush repair, and corresponding materials and materials need to be in place at the same time.
The existing power distribution network post-disaster emergency repair resource allocation work still stays in a simpler state depending on manual scheduling, and the emergency repair resource allocation efficiency is lower.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a power first-aid repair resource allocation method, device, computer equipment, and storage medium based on an intelligent contract, which can improve the efficiency of allocating resources for first-aid repair after a disaster.
A power line repair resource allocation method based on intelligent contracts comprises the following steps:
responding to an emergency repair resource acquisition request aiming at a power supply abnormal node, and determining emergency repair resource demand information of the power supply abnormal node;
reading rush-repair resource supply information pre-uploaded by each rush-repair resource supply end from a target block chain, and determining rush-repair resources to be matched for the power supply abnormal nodes according to the rush-repair resource supply information and the rush-repair resource demand information; wherein, each first-aid repair resource supply end has a material supply weight corresponding to the resource supply attribute; the resource supply attribute comprises resource consumption quantity, resource transfer distance and resource transfer aging corresponding to the execution of the resource transfer operation;
according to the material matching weight of each emergency repair resource supply end, performing resource matching processing on the emergency repair resources to be matched to obtain a resource matching result; the resource matching result comprises the rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node;
updating the material matching weight of each emergency repair resource supply end according to the resource matching result;
returning to the step of performing resource matching processing on the rush-repair resources to be matched according to the material matching weight of each rush-repair resource supply end to obtain a resource matching result until a target resource matching result is obtained; and the resource consumption quantity, the resource transfer distance and the resource transfer timeliness of the resource transfer operation corresponding to the target resource matching result meet preset conditions.
In one embodiment, the method further comprises:
determining the target rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node according to the target resource matching result;
sending emergency repair resource transfer instructions to each emergency repair resource supply end according to the target emergency repair resource transfer amount corresponding to each emergency repair resource supply end; and the first-aid repair resource transfer instruction is used for indicating each first-aid repair resource supply end to transfer the first-aid repair resources to the power supply abnormal node according to the corresponding target first-aid repair resource transfer amount.
In one embodiment, if the first-aid repair resource supply end is a resource provider end, after the step of sending the first-aid repair resource transfer instruction to each first-aid repair resource supply end according to the target first-aid repair resource transfer amount corresponding to each first-aid repair resource supply end, the method further includes:
determining the virtual resource transfer amount of the power supply abnormal node to the emergency repair resource supply end according to the target emergency repair resource transfer amount of the emergency repair resource supply end to the power supply abnormal node;
and transferring the virtual resources to a virtual resource account corresponding to the emergency repair resource supply end according to the virtual resource transfer amount, and deducting the virtual resources in the virtual resource account corresponding to the power supply abnormal node according to the virtual resource transfer amount.
In one embodiment, if the first-aid repair resource supply end is a resource repository end, after the step of sending the first-aid repair resource transfer instruction to each first-aid repair resource supply end according to the target first-aid repair resource transfer amount corresponding to each first-aid repair resource supply end, the method further includes:
acquiring the resource transfer contribution of each first-aid repair resource supply end in the target resource matching result; the resource transfer contribution value is used for representing the resource transfer degree of each first-aid repair resource supply end in the target resource matching result;
generating virtual resource reward amount for each first-aid repair resource supply end according to the resource transfer contribution degree of each first-aid repair resource supply end;
and transferring the virtual resources to a virtual resource account corresponding to the rush-repair resource supply end according to the virtual resource reward amount.
In one embodiment, the obtaining the resource transfer contribution value of each emergency repair resource supply end in the target resource matching result includes:
acquiring a correlation coefficient between the virtual resource transferred to the power supply abnormal node by the emergency repair resource supply end and the emergency repair resource to be matched;
and determining the resource transfer contribution of each first-aid repair resource supply end in the target resource matching result according to the correlation coefficient of each first-aid repair resource supply end.
In one embodiment, before the step of determining emergency repair resource demand information of the power supply abnormal node in response to an emergency repair resource acquisition request for the power supply abnormal node, the method further includes:
receiving initial first-aid repair resource supply data sent by each first-aid repair resource supply end;
performing data preprocessing on the initial rush-repair resource supply data to obtain rush-repair resource supply information; the data format of the first-aid repair resource supply information meets a preset condition;
and uploading the first-aid repair resource supply information corresponding to each first-aid repair resource supply end to the target block chain.
In one embodiment, the performing data preprocessing on the initial rush-repair resource supply data to obtain the rush-repair resource supply information includes:
performing data cleaning processing on the initial first-aid repair resource supply information to obtain cleaned data; the clear sequence data has a preset data format;
carrying out data classification processing on the cleaned data to obtain classified data; the classified data comprises data obtained by classifying the cleaned data according to different emergency repair resource types;
and performing data complementation treatment on the missing data in the classified data to obtain complemented data serving as the emergency repair resource supply information.
An electrical power rush-repair resource allocation device based on intelligent contracts, the device comprising:
the response module is used for responding to an emergency repair resource acquisition request aiming at a power supply abnormal node and determining emergency repair resource demand information of the power supply abnormal node;
the determining module is used for reading rush-repair resource supply information pre-uploaded by each rush-repair resource supply end from a target block chain, and determining rush-repair resources to be matched for the power supply abnormal nodes according to the rush-repair resource supply information and the rush-repair resource demand information; wherein, each first-aid repair resource supply end has a material supply weight corresponding to the resource supply attribute; the resource supply attribute comprises resource consumption quantity, resource transfer distance and resource transfer aging corresponding to the execution of the resource transfer operation;
the matching module is used for performing resource matching processing on the rush-repair resources to be matched according to the material matching weight of each rush-repair resource supply end to obtain a resource matching result; the resource matching result comprises the rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node;
the updating module is used for updating the material matching weight of each emergency repair resource supply end according to the resource matching result;
the return module is used for returning to the matching module until a target resource matching result is obtained; and the resource consumption quantity, the resource transfer distance and the resource transfer timeliness of the resource transfer operation corresponding to the target resource matching result meet preset conditions.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the power first-aid repair resource allocation method and device based on the intelligent contract, the computer equipment and the storage medium, the first-aid repair resource demand information of the power supply abnormal node is determined by responding to the first-aid repair resource acquisition request aiming at the power supply abnormal node; reading rush-repair resource supply information pre-uploaded by each rush-repair resource supply end from a target block chain, and determining rush-repair resources to be matched for power supply abnormal nodes according to the rush-repair resource supply information and the rush-repair resource demand information; wherein, each first-aid repair resource supply end has a material supply weight corresponding to the resource supply attribute; the resource supply attribute comprises resource consumption quantity, resource transfer distance and resource transfer aging corresponding to the execution of the resource transfer operation; according to the material matching weight of each emergency repair resource supply end, performing resource matching processing on emergency repair resources to be matched to obtain a resource matching result; the resource matching result comprises the first-aid repair resource transfer amount of each first-aid repair resource supply end to the power supply abnormal node; updating the material matching weight of each first-aid repair resource supply end according to the resource matching result; returning to the step of performing resource matching processing on the emergency repair resources to be matched according to the material matching weight of each emergency repair resource supply end to obtain a resource matching result until a target resource matching result is obtained; the resource consumption quantity, the resource transfer distance and the resource transfer timeliness of the resource transfer operation corresponding to the target resource matching result meet preset conditions; therefore, the material matching weight corresponding to each emergency repair resource supply end is dynamically adjusted by utilizing the resource matching result until the target resource matching result that the resource consumption quantity, the resource transfer distance and the resource transfer timeliness meet the preset conditions is obtained, so that the aim of accurately completing the on-demand matching of emergency repair resources is achieved, and the efficiency of electric power emergency material supply is improved.
Drawings
Fig. 1 is an application environment diagram of a power line repair resource allocation method based on an intelligent contract in an embodiment;
fig. 2 is a schematic flow chart of a power line repair resource allocation method based on an intelligent contract in an embodiment;
fig. 3 is an application scenario diagram of a power line repair resource allocation method based on an intelligent contract in an embodiment;
FIG. 4 is a diagram of uplink of a rush-repair resource in an embodiment;
FIG. 5 is a system framework diagram of a method for allocating electrical power rush-repair resources based on intelligent contracts in one embodiment;
fig. 6 is a schematic flow chart of a method for allocating power line repair resources based on intelligent contracts in another embodiment;
fig. 7 is a block diagram of a power line repair resource allocation apparatus based on an intelligent contract in an embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The power line repair resource allocation method based on the intelligent contract can be applied to the application environment shown in fig. 1. The power supply abnormal node 102 and each emergency repair resource supply terminal 104 are in communication with the server 106 through the network. The server 106 responds to an emergency repair resource acquisition request for the power supply abnormal node 102, and determines emergency repair resource demand information of the power supply abnormal node 102; the server 106 reads the first-aid repair resource supply information pre-uploaded by each first-aid repair resource supply terminal 104 from the target block chain, and determines the first-aid repair resources to be matched for the power supply abnormal node 102 according to the first-aid repair resource supply information and the first-aid repair resource demand information; wherein, each first-aid repair resource supply end 104 has a material supply weight corresponding to the resource supply attribute; the resource supply attribute comprises resource consumption quantity, resource transfer distance and resource transfer aging corresponding to the execution of the resource transfer operation; the server 106 performs resource matching processing on the emergency repair resources to be matched according to the material matching weight of each emergency repair resource supply end 104 to obtain a resource matching result; the resource matching result comprises the first-aid repair resource transfer amount of each first-aid repair resource supply end 104 to the power supply abnormal node 102; the server 106 updates the material matching weight of each first-aid repair resource supply end 104 according to the resource matching result; the server 106 returns the material matching weight according to each emergency repair resource supply end 104, and performs resource matching processing on emergency repair resources to be matched to obtain a resource matching result until a target resource matching result is obtained; and the resource consumption quantity, the resource transfer distance and the resource transfer timeliness of the resource transfer operation corresponding to the target resource matching result meet preset conditions.
In practical applications, the power supply abnormal node 102 and each emergency repair resource supply terminal 104 may be, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 106 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, there is provided a power line repair resource allocation method based on intelligent contracts, which is illustrated by taking the method as an example applied to the server 106 in fig. 1, and includes the following steps:
step S210, in response to the emergency repair resource acquisition request aiming at the power supply abnormal node, determining emergency repair resource demand information of the power supply abnormal node.
The emergency repair resources can be materials for repairing the power supply abnormal node.
The power supply abnormal node may be a node to which power cannot be supplied due to natural disasters (ice disasters, fires, tornadoes, and the like), human factors, and other reasons (line aging, equipment aging, natural erosion, and the like). For example, the power supply abnormal node may be a substation. In practical application, the power supply abnormal node can also be named as a disaster accident point.
In specific implementation, when power cannot be supplied to a power supply abnormal node due to natural disasters, human factors and other reasons, in order to repair the power supply abnormal node, the power supply abnormal node needs to request to acquire rush repair resources for repairing the power supply abnormal node. For example, after an emergency repair event occurs, the power supply abnormal node performs statistics first, and then calculates how much power materials are needed, what kind of power materials are needed, and after the statistics is completed, the emergency demand (i.e., repair resource demand information) of the power materials is issued to the block chain through the server. In practical application, the power supply abnormal node can send an emergency repair resource acquisition request to the server according to the emergency repair resource requirement. And after receiving the emergency repair resource acquisition request, the server responds to the emergency repair resource acquisition request and determines emergency repair resource demand information submitted by the power supply abnormal node.
Step S220, reading rush-repair resource supply information pre-uploaded by each rush-repair resource supply end from a target block chain, and determining rush-repair resources to be matched for power supply abnormal nodes according to the rush-repair resource supply information and the rush-repair resource demand information; wherein, each first-aid repair resource supply end has a material supply weight corresponding to the resource supply attribute; the resource supply attribute comprises resource consumption quantity, resource transfer distance and resource transfer aging corresponding to the execution of the resource transfer operation.
The first-aid repair resource supply end can refer to a terminal where a user account for supplying first-aid repair resources is located. In practical applications, the first-aid repair resource supply end may include a terminal where a user account of the repository is located (i.e., a resource repository end), and may also include a terminal where a user account of the provider is located (i.e., a resource provider end).
Wherein, each first-aid repair resource supply end has a material supply weight corresponding to the resource supply attribute. The resource provisioning properties may include a resource consumption amount, a resource transfer distance, and a resource transfer age corresponding to performing the resource transfer operation. For example, in the matching process of first-aid repair resources, the quantity, distance, aging and the like of emergency materials of a supplier (a supplier and a warehouse) are all attributes to be considered, but the specific gravity of the material attributes is different, the quantity of the materials can be hard requirements, and the aging of the materials can also be hard requirements, as shown in formula (1), for a demand side (a disaster accident point), the benefit is maximized, and therefore, the weight is set for each material attribute.
B:max[α1Num(bi)+α2D(bi)+...+αmT(bi)] (1)
Wherein alpha is a weight coefficient, and different material attributes have different weights; biShows the material of supplier i, then Num (b)i) An attribute representing the quantity of material of supplier i, D (b)i) Distance attribute, T (b), representing seller i suppliesi) The time-efficient attributes, expressed as vendor i supplies, are all attributes that need to be considered in the power emergency supply.
In specific implementation, the server can also read the pre-uploaded emergency repair resource supply information of each emergency repair resource supply end from the target block chain, and determine the emergency repair resources to be matched for the power supply abnormal nodes (namely, the emergency repair resources which can be supplied by each emergency repair resource supply end and meet the emergency repair resource requirements of the power supply abnormal nodes) according to the emergency repair resource supply information and the emergency repair resource demand information.
Step S230, performing resource matching processing on the emergency repair resources to be matched according to the material matching weight of each emergency repair resource supply end to obtain a resource matching result; the resource matching result comprises the first-aid repair resource transfer amount of each first-aid repair resource supply end to the power supply abnormal node.
In the concrete implementation, the server performs resource matching processing on the emergency repair resources to be matched according to the material matching weight of each emergency repair resource supply end to obtain a resource matching result; the resource matching result comprises the first-aid repair resource transfer amount of each first-aid repair resource supply end to the power supply abnormal node.
For example, the server may perform resource matching processing on the emergency repair resources to be matched by using the material matching weights of the emergency repair resource supply terminals according to a preset power emergency material matching algorithm to obtain a resource matching result; the resource matching result comprises the first-aid repair resource transfer amount of each first-aid repair resource supply end to the power supply abnormal node.
And step S240, updating the material matching weight of each first-aid repair resource supply end according to the resource matching result.
Step S250, returning to the step of performing resource matching processing on the emergency repair resources to be matched according to the material matching weight of each emergency repair resource supply end to obtain a resource matching result until a target resource matching result is obtained; and the resource consumption quantity, the resource transfer distance and the resource transfer timeliness of the resource transfer operation corresponding to the target resource matching result meet preset conditions.
In the concrete implementation, because in the process of matching emergency materials, perfect matching of power materials can be hardly completed directly, the perfect matching can mean that only one warehouse or one supplier can meet the requirements on quantity, distance and timeliness.
Therefore, the server needs to execute a matching algorithm for many times, and after the server completes matching once, the server can update the material matching weight of each first-aid repair resource supply end according to the resource matching result. For example, if the server determines that some attributes are not considered, the weight of each asset attribute is reset, e.g., an electric emergency asset can be sent in a specified time, but not in sufficient quantity, the next asset can be sent at a later time, and the weight of the aging attribute is reduced. The server only adjusts the weight after each matching for the disaster accident point, and the matching process is completed by the block chain system. After matching is completed through the accurate matching intelligent contract each time, calling a matching result chaining intelligent contract, and chaining the matching result and storing the result on a block chain until a target resource matching result is obtained; namely, the resource consumption quantity, the resource transfer distance and the resource transfer timeliness after the resource transfer operation corresponding to the target resource matching result is executed meet the preset conditions. For example, each emergency repair resource provider may transfer a predetermined number of emergency repair resources to the power supply abnormal node within a predetermined time.
In order to facilitate understanding of those skilled in the art, fig. 3 provides an application scenario diagram of a power line repair resource allocation method based on an intelligent contract. As shown in fig. 3, when the emergency power supply is performed, the emergency power supply is affected by many attributes, such as distance, quantity of materials, price, and the like, and therefore a fast, efficient, and reasonable matching method is required when the emergency power supply is performed, so that the emergency power supply can be sufficiently supplied. Wherein, supplier and warehouse will link the emergent material data of the electric power that intelligent contract oneself owned through emergent material data and upload to the block chain. After the electric power emergency repair event happens, the electric power accident ground firstly carries out statistics, how many electric power materials are needed, what kinds of the electric power materials are needed and the like are counted, and then the block chain is issued to the electric power material emergency demands. At the moment, the system operates an electric power emergency material accurate matching algorithm to accurately match electric power materials. After the matching of the electric power emergency supplies is completed, a fee needs to be paid to the supplier, and the fee is settled after the electric power emergency repair process is finished, and the intelligent contract is settled through transaction. After the power emergency process is finished, analyzing the contribution degree of each warehouse by using a grey correlation analysis method, and calling a contribution degree clearing intelligent contract to finish rewarding the warehouse.
In the power first-aid repair resource allocation method based on the intelligent contract, first-aid repair resource demand information of the power supply abnormal node is determined by responding to a first-aid repair resource acquisition request aiming at the power supply abnormal node; reading rush-repair resource supply information pre-uploaded by each rush-repair resource supply end from a target block chain, and determining rush-repair resources to be matched for power supply abnormal nodes according to the rush-repair resource supply information and the rush-repair resource demand information; wherein, each first-aid repair resource supply end has a material supply weight corresponding to the resource supply attribute; the resource supply attribute comprises resource consumption quantity, resource transfer distance and resource transfer aging corresponding to the execution of the resource transfer operation; according to the material matching weight of each emergency repair resource supply end, performing resource matching processing on emergency repair resources to be matched to obtain a resource matching result; the resource matching result comprises the first-aid repair resource transfer amount of each first-aid repair resource supply end to the power supply abnormal node; updating the material matching weight of each first-aid repair resource supply end according to the resource matching result; returning to the step of performing resource matching processing on the emergency repair resources to be matched according to the material matching weight of each emergency repair resource supply end to obtain a resource matching result until a target resource matching result is obtained; the resource consumption quantity, the resource transfer distance and the resource transfer timeliness of the resource transfer operation corresponding to the target resource matching result meet preset conditions; therefore, the material matching weight corresponding to each emergency repair resource supply end is dynamically adjusted by utilizing the resource matching result until the target resource matching result that the resource consumption quantity, the resource transfer distance and the resource transfer timeliness meet the preset conditions is obtained, so that the aim of accurately completing the on-demand matching of emergency repair resources is achieved, and the efficiency of electric power emergency material supply is improved.
In another embodiment, the method further comprises: determining the target rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node according to the target resource matching result; sending emergency repair resource transfer instructions to each emergency repair resource supply end according to the target emergency repair resource transfer amount corresponding to each emergency repair resource supply end; and the first-aid repair resource transfer instruction is used for indicating each first-aid repair resource supply end to transfer the first-aid repair resources to the power supply abnormal node according to the corresponding target first-aid repair resource transfer amount.
In specific implementation, the server can determine the target rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node according to the target resource matching result. And then, the server sends emergency repair resource transfer instructions to the emergency repair resource supply terminals according to the target emergency repair resource transfer amount corresponding to the emergency repair resource supply terminals so as to instruct the emergency repair resource supply terminals to transfer the emergency repair resources to the power supply abnormal node according to the corresponding target emergency repair resource transfer amount.
According to the technical scheme of the embodiment, the target first-aid repair resource transfer amount of each first-aid repair resource supply end to the power supply abnormal node is determined according to the target resource matching result, and the first-aid repair resource transfer instruction is sent to each first-aid repair resource supply end according to the target first-aid repair resource transfer amount corresponding to each first-aid repair resource supply end, so that the first-aid repair resources are accurately instructed to be transferred to the power supply abnormal node by each first-aid repair resource supply end according to the corresponding target first-aid repair resource transfer amount.
In another embodiment, if the first-aid repair resource supply end is a resource provider end, after the step of sending the first-aid repair resource transfer instruction to each first-aid repair resource supply end according to the target first-aid repair resource transfer amount corresponding to each first-aid repair resource supply end, the method further includes: determining the virtual resource transfer amount of the power supply abnormal node to the emergency repair resource supply end according to the target emergency repair resource transfer amount of the emergency repair resource supply end to the power supply abnormal node; and transferring the virtual resources to a virtual resource account corresponding to the emergency repair resource supply end according to the virtual resource transfer amount, and deducting the virtual resources in the virtual resource account corresponding to the power supply abnormal node according to the virtual resource transfer amount.
After the matching of the electric power emergency supplies is completed, a fee needs to be paid to the supplier, and the fee is settled after the electric power emergency repair process is finished, and the intelligent contract is settled through transaction. Specifically, if the emergency repair resource supply end is a resource provider end, after the server sends emergency repair resource transfer instructions to each emergency repair resource supply end according to the target emergency repair resource transfer amount corresponding to each emergency repair resource supply end, the server can also determine the virtual resource transfer amount of the power supply abnormal node to the emergency repair resource supply end according to the target emergency repair resource transfer amount of the emergency repair resource supply end to the power supply abnormal node; and transferring the virtual resources to a virtual resource account corresponding to the emergency repair resource supply end according to the virtual resource transfer amount, and deducting the virtual resources in the virtual resource account corresponding to the power supply abnormal node according to the virtual resource transfer amount.
According to the technical scheme of the embodiment, the virtual resource transfer amount of the power supply abnormal node to the emergency repair resource supply end is determined according to the target emergency repair resource transfer amount of the emergency repair resource supply end to the power supply abnormal node, the virtual resource is transferred to the virtual resource account corresponding to the emergency repair resource supply end according to the virtual resource transfer amount, the virtual resource in the virtual resource account corresponding to the power supply abnormal node is deducted according to the virtual resource transfer amount, and therefore the utilization rate of the virtual resource is improved.
In another embodiment, if the first-aid repair resource supply end is a resource repository end, after the step of sending the first-aid repair resource transfer instruction to each first-aid repair resource supply end according to the target first-aid repair resource transfer amount corresponding to each first-aid repair resource supply end, the method further includes: acquiring the resource transfer contribution of each first-aid repair resource supply end in the target resource matching result; the resource transfer contribution value is used for representing the resource transfer degree of each first-aid repair resource supply end in the target resource matching result; generating virtual resource reward amount for each first-aid repair resource supply end according to the resource transfer contribution degree of each first-aid repair resource supply end; and transferring the virtual resources to a virtual resource account corresponding to the first-aid repair resource supply end according to the virtual resource reward amount.
Acquiring a correlation coefficient between a virtual resource transferred to a power supply abnormal node by an emergency repair resource supply end and an emergency repair resource to be matched; and determining the resource transfer contribution of each first-aid repair resource supply end in the target resource matching result according to the correlation coefficient of each first-aid repair resource supply end.
In specific implementation, the server downloads matching result data stored in the intelligent contract calling chain through the matching result, and for each supplier, a plurality of electric power emergency supplies are provided and represented by vectors such as Xi=(xi,1,xi,2...,xi,n) Identify the ith supplier, x insidei,mThe mth goods representing the ith supplier, which we refer to as index in this application, are combined to obtain an index matrix (x)i,j)n×mAs follows:
the first substep: determining a reference index sequence, wherein the reference index sequence is a comparison standard, and the contribution degree of a warehouse can be measured through the reference index sequence so as to issue rewards, and the scheme of the application selects the lowest value of each index to form the reference sequence and records the lowest value as:
X'0=(x'0(1),x'0(2),...,x'0(j),...,x'0(m))(3)
wherein x'0(j) Is the minimum value of the index j.
And a second substep: since the physical meaning of each index is different for different storage banks, the data is inconvenient to compare, or it is difficult to obtain correct conclusion in comparison. Therefore, when performing the gray correlation analysis, data normalization processing is generally performed. And calculating the absolute difference value of the corresponding element of each evaluated warehouse index sequence and the reference sequence one by one.
Namely: i Xi-X0′|(i=1,2,…,n)(4)
And a third substep: calculating the maximum value by the following two formulas
And a fourth substep: calculating a correlation coefficient
Calculating the association coefficient of each warehouse index sequence and the corresponding element of the reference sequence respectively through formula (7)
Where ρ is the resolution coefficient 0< ρ < 1. If rho is smaller, the difference between the correlation coefficients is larger, the distinguishing capability is stronger, and rho is 0.5 in the scheme of the application.
And a fifth substep: calculating contribution relevance of each warehouse
And n is the total number of the warehouse libraries which participate in the matching of the power emergency material supply and are successfully matched.
And a sixth substep: calculating contribution degree of each warehouse and respectively available income
And respectively calculating the contribution degree of each warehouse according to a formula (9):
the rewards obtained by each warehouse are as follows:
wherein, BenefitiA reward indicating a bin i; bonustotalExpressed as a total prize.
Through the steps, the association degree of the contribution degrees between all the indexes and all the warehouse banks is comprehensively considered, the contribution degree of the warehouse banks can be calculated fairly, and reasonable reward distribution is carried out.
In another embodiment, before the step of determining emergency repair resource requirement information of the power supply abnormal node in response to the emergency repair resource acquisition request for the power supply abnormal node, the method further includes: receiving initial first-aid repair resource supply data sent by each first-aid repair resource supply end; performing data preprocessing on the initial first-aid repair resource supply data to obtain first-aid repair resource supply information; the data format of the first-aid repair resource supply information meets the preset condition; and uploading the first-aid repair resource supply information corresponding to each first-aid repair resource supply end to the target block chain.
To facilitate understanding by those skilled in the art, fig. 4 provides an uplink diagram of emergency repair resources. As shown in fig. 4, after determining the emergency repair resource demand information of the power supply abnormal node in response to the emergency repair resource acquisition request for the power supply abnormal node, the server may further receive initial emergency repair resource supply data sent by each emergency repair resource supply terminal; then, the server performs data preprocessing on the initial emergency repair resource supply data so that the data format of the obtained emergency repair resource supply information meets a preset condition; and finally, uploading the emergency repair resource supply information corresponding to each emergency repair resource supply end to the target block chain by the server through the intelligent contract for the emergency material data chaining.
According to the technical scheme, data preprocessing before the first-aid repair resource supply data are linked is achieved, further standardized processing of the first-aid repair resource supply data is achieved, the follow-up processing efficiency of the server on the first-aid repair resource supply data is improved, and the allocation efficiency of first-aid repair resources is improved.
In another embodiment, the data preprocessing is performed on the initial rush-repair resource supply data to obtain rush-repair resource supply information, and the method includes: carrying out data cleaning processing on the initial first-aid repair resource supply information to obtain cleaned data; the clear sequence data has a preset data format; carrying out data classification processing on the cleaned data to obtain classified data; the classified data comprises data obtained by classifying the cleaned data according to different emergency repair resource types; and performing data complementation treatment on the missing data in the classified data to obtain complemented data serving as emergency repair resource supply information.
In the concrete implementation, suppliers and warehouse stores upload the own electric power emergency material data of intelligent contracts through emergency material data chaining to a block chain. In the process of data upload, in the block chain is directly uploaded with data from the local database of warehouse or supplier, the directly uploaded data can be relatively complicated, and the data format is not uniform, in the process of power material supply, if the data format of the power material is not uniform and disordered, in the process of accurate matching, the long time is spent for matching, even the matching failure is possibly caused, the power material supply is slow, and the rush repair of power can not be completed in time. When emergent material data cochain of electric power, at first handle data, its purpose is unified data format, to material classification etc. can accomplish the matching fast when subsequently carrying out the accurate matching of material, and its data includes material quantity, material price (the supplier will upload the price, the material does not have the price in the warehouse storehouse), material storage place and material ageing etc..
According to the technical scheme of the embodiment, data cleaning processing is carried out on the initial rush-repair resource supply information to obtain cleaned data; the clear sequence data has a preset data format; carrying out data classification processing on the cleaned data to obtain classified data; the classified data comprises data obtained by classifying the cleaned data according to different emergency repair resource types; and performing data complementation treatment on missing data in the classified data to obtain complemented data serving as emergency repair resource supply information, so that standardized treatment on the emergency repair resource supply data is realized, the subsequent treatment efficiency of the server on the emergency repair resource supply data is improved, and the allocation efficiency of emergency repair resources is improved.
To facilitate understanding by those skilled in the art, fig. 5 provides a system framework diagram of a power line repair resource allocation method based on intelligent contracts. As shown in fig. 5, the application layer, the block chain layer, the data layer, and the related body are described as follows:
the related main bodies are all the main bodies related in the power emergency material supply process, and comprise a warehouse, a supplier and a disaster accident point. The warehouse is an electric power emergency material warehouse, which stores electric power emergency materials, and when an electric power accident occurs, the materials can be called from the warehouse, so that the supply of the electric power emergency materials is ensured, and the problem of slow electric power rush repair caused by insufficient material supply is solved; the supplier is an electric power emergency material supplier, and when the electric power materials in the warehouse are insufficient or the required electric power emergency material warehouse is not available, the supplier needs to purchase the electric power emergency materials in time to meet the supply of the electric power emergency materials; the disaster accident point is a place where electric power cannot be supplied due to natural disasters (ice disasters, fires, tornadoes, and the like), human factors, and other reasons (line aging, equipment aging, natural erosion, and the like), such as a substation.
The data layer is responsible for data arrangement functions including data cleaning, data classification, and data complementation. The data cleaning is for the unification of data formats, and when suppliers and warehouse libraries upload own material data, the matching costs a lot of time in the subsequent power material supply due to the non-uniform data formats; the data classification is to classify the data according to different materials, different warehouse banks and suppliers have different emergency materials, the materials need to be classified, and the data classification of the materials is further to be performed; the data complement is also aimed at the problem that the data formats of the suppliers and the warehouse are not uniform, and the missing parts of the data need to be complemented, so that the consistency of the data is ensured.
The block chain layer provides block chain service support for power emergency material supply, and comprises an intelligent contract, a distributed storage system and an excitation system. The application relates to a plurality of intelligent contracts, such as emergency material data chaining intelligent contracts, accurate matching intelligent contracts, matching result chaining intelligent contracts, transaction settlement intelligent contracts, contribution clearing intelligent contracts and the like, the efficiency of electric power emergency material supply is improved through the intelligent contracts, electric power marking material supply is accelerated, and accidents can be rush-repaired more quickly; the incentive system is prepared for the warehouse, and when the electric power emergency material supply chain is completed, the power grid enterprise rewards the warehouse and completes the reward through the incentive system;
the business layer is used for completing the business related to the power emergency material supply and comprises an accurate matching module, benefit clearing and process tracing. The accurate matching module is used for ensuring the supply of materials when a power accident occurs and a disaster accident point needs to purchase the materials from a supplier or call the materials from a warehouse; the benefit clearing module is used for paying the goods and materials payment to the supplier after the power emergency goods and materials supply is completed, and the benefit clearing module is used for completing payment; the process source tracing module is used for completing the whole process of storing evidence and tracing the source of the power emergency material supply.
In another embodiment, as shown in fig. 6, there is provided a power line repair resource allocation method based on intelligent contracts, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step S610, responding to a rush-repair resource acquisition request aiming at a power supply abnormal node, and determining rush-repair resource demand information of the power supply abnormal node.
Step S620, reading rush-repair resource supply information pre-uploaded by each rush-repair resource supply end from a target block chain, and determining rush-repair resources to be matched for the power supply abnormal node according to the rush-repair resource supply information and the rush-repair resource demand information; wherein, each first-aid repair resource supply end has a material supply weight corresponding to the resource supply attribute; the resource supply attribute comprises resource consumption quantity, resource transfer distance and resource transfer aging corresponding to the execution of the resource transfer operation.
Step S630, according to the material matching weight of each emergency repair resource supply end, performing resource matching processing on the emergency repair resources to be matched to obtain a resource matching result; and the resource matching result comprises the rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node.
And step S640, updating the material matching weight of each emergency repair resource supply end according to the resource matching result.
Step S650, returning to the step of performing resource matching processing on the rush-repair resources to be matched according to the material matching weight of each rush-repair resource supply end to obtain a resource matching result until a target resource matching result is obtained; and the resource consumption quantity, the resource transfer distance and the resource transfer timeliness of the resource transfer operation corresponding to the target resource matching result meet preset conditions.
And step S660, determining the target rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node according to the target resource matching result.
Step S670, sending emergency repair resource transfer instructions to each emergency repair resource supply end according to the target emergency repair resource transfer amount corresponding to each emergency repair resource supply end; and the first-aid repair resource transfer instruction is used for indicating each first-aid repair resource supply end to transfer the first-aid repair resources to the power supply abnormal node according to the corresponding target first-aid repair resource transfer amount.
It should be noted that, the specific limitations of the above steps may refer to the above specific limitations of a power line repair resource allocation method based on an intelligent contract.
It should be understood that although the steps in the flowcharts of fig. 2 and 6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 7, there is provided a power line repair resource allocation apparatus based on a smart contract, including:
the response module 710 is configured to determine, in response to an emergency repair resource acquisition request for a power supply abnormal node, emergency repair resource demand information of the power supply abnormal node;
a determining module 720, configured to read, from a target block chain, repair resource supply information pre-uploaded by each repair resource supply end, and determine, according to the repair resource supply information and the repair resource demand information, a repair resource to be matched for the power supply abnormal node; wherein, each first-aid repair resource supply end has a material supply weight corresponding to the resource supply attribute; the resource supply attribute comprises resource consumption quantity, resource transfer distance and resource transfer aging corresponding to the execution of the resource transfer operation;
the matching module 730 is used for performing resource matching processing on the rush-repair resources to be matched according to the material matching weight of each rush-repair resource supply end to obtain a resource matching result; the resource matching result comprises the rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node;
an updating module 740, configured to update the material matching weight of each emergency repair resource supply end according to the resource matching result;
a returning module 750, configured to return the matching module until a target resource matching result is obtained; and the resource consumption quantity, the resource transfer distance and the resource transfer timeliness of the resource transfer operation corresponding to the target resource matching result meet preset conditions.
In one embodiment, the apparatus further comprises: the emergency repair resource determining module is used for determining the target emergency repair resource transfer amount of each emergency repair resource supply end to the power supply abnormal node according to the target resource matching result; the system comprises a sending module, a first-aid repair resource supply end and a second-aid repair resource supply end, wherein the sending module is used for sending first-aid repair resource transfer instructions to the first-aid repair resource supply ends according to target first-aid repair resource transfer amounts corresponding to the first-aid repair resource supply ends; and the first-aid repair resource transfer instruction is used for indicating each first-aid repair resource supply end to transfer the first-aid repair resources to the power supply abnormal node according to the corresponding target first-aid repair resource transfer amount.
In one embodiment, if the first-aid repair resource provider is a resource provider, the apparatus further includes: the virtual resource determining module is used for determining the virtual resource transfer amount of the power supply abnormal node to the emergency repair resource supply end according to the target emergency repair resource transfer amount of the emergency repair resource supply end to the power supply abnormal node; and the first transfer module is used for transferring the virtual resources to a virtual resource account corresponding to the rush-repair resource supply end according to the virtual resource transfer amount, and deducting the virtual resources in the virtual resource account corresponding to the power supply abnormal node according to the virtual resource transfer amount.
In one embodiment, if the first-aid repair resource supply end is the resource storage end, the apparatus further includes: the contribution degree determining module is used for acquiring the resource transfer contribution degree of each first-aid repair resource supply end in the target resource matching result; the resource transfer contribution value is used for representing the resource transfer degree of each first-aid repair resource supply end in the target resource matching result; the generating module is used for generating virtual resource reward amount of each emergency repair resource supply end according to the resource transfer contribution degree of each emergency repair resource supply end; and the second transfer module is used for transferring the virtual resources to the virtual resource account corresponding to the rush-repair resource supply end according to the virtual resource reward amount.
In one embodiment, the contribution determining module is specifically configured to obtain a correlation coefficient between a virtual resource transferred to the power supply abnormal node by the emergency repair resource supply end and the emergency repair resource to be matched; and determining the resource transfer contribution of each first-aid repair resource supply end in the target resource matching result according to the correlation coefficient of each first-aid repair resource supply end.
In one embodiment, the apparatus further comprises: the receiving module is used for receiving initial emergency repair resource supply data sent by each emergency repair resource supply end; the preprocessing module is used for preprocessing the data of the initial emergency repair resource supply data to obtain emergency repair resource supply information; the data format of the first-aid repair resource supply information meets a preset condition; and the uploading module is used for uploading the rush-repair resource supply information corresponding to each rush-repair resource supply end to the target block chain.
In one embodiment, the preprocessing module is further configured to perform data cleaning processing on the initial first-aid repair resource supply information to obtain cleaned data; the clear sequence data has a preset data format; carrying out data classification processing on the cleaned data to obtain classified data; the classified data comprises data obtained by classifying the cleaned data according to different emergency repair resource types; and performing data complementation treatment on the missing data in the classified data to obtain complemented data serving as the emergency repair resource supply information.
For specific limitations of the power emergency repair resource allocation device based on the intelligent contract, reference may be made to the above limitations of the power emergency repair resource allocation method based on the intelligent contract, and details are not described here. The modules in the power emergency repair resource distribution device based on the intelligent contract can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data for executing the power emergency repair resource allocation method based on the intelligent contract. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a power first-aid repair resource allocation method based on intelligent contracts.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory and a processor, the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the power emergency repair resource allocation method based on the intelligent contract. Here, the steps of the power emergency repair resource allocation method based on the intelligent contract may be steps in the power emergency repair resource allocation method based on the intelligent contract in the above embodiments.
In one embodiment, a computer readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the computer program causes the processor to execute the steps of the power emergency repair resource allocation method based on the intelligent contract. Here, the steps of the power emergency repair resource allocation method based on the intelligent contract may be steps in the power emergency repair resource allocation method based on the intelligent contract in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A power line repair resource allocation method based on intelligent contracts is characterized by comprising the following steps:
responding to an emergency repair resource acquisition request aiming at a power supply abnormal node, and determining emergency repair resource demand information of the power supply abnormal node;
reading rush-repair resource supply information pre-uploaded by each rush-repair resource supply end from a target block chain, and determining rush-repair resources to be matched for the power supply abnormal nodes according to the rush-repair resource supply information and the rush-repair resource demand information; wherein, each first-aid repair resource supply end has a material supply weight corresponding to the resource supply attribute; the resource supply attribute comprises resource consumption quantity, resource transfer distance and resource transfer aging corresponding to the execution of the resource transfer operation;
according to the material matching weight of each emergency repair resource supply end, performing resource matching processing on the emergency repair resources to be matched to obtain a resource matching result; the resource matching result comprises the rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node;
updating the material matching weight of each emergency repair resource supply end according to the resource matching result;
returning to the step of performing resource matching processing on the rush-repair resources to be matched according to the material matching weight of each rush-repair resource supply end to obtain a resource matching result until a target resource matching result is obtained; and the resource consumption quantity, the resource transfer distance and the resource transfer timeliness of the resource transfer operation corresponding to the target resource matching result meet preset conditions.
2. The method of claim 1, further comprising:
determining the target rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node according to the target resource matching result;
sending emergency repair resource transfer instructions to each emergency repair resource supply end according to the target emergency repair resource transfer amount corresponding to each emergency repair resource supply end; and the first-aid repair resource transfer instruction is used for indicating each first-aid repair resource supply end to transfer the first-aid repair resources to the power supply abnormal node according to the corresponding target first-aid repair resource transfer amount.
3. The method of claim 2, wherein if the rush-repair resource supply end is a resource provider end, after the step of sending a rush-repair resource transfer instruction to each rush-repair resource supply end according to the target rush-repair resource transfer amount corresponding to each rush-repair resource supply end, the method further comprises:
determining the virtual resource transfer amount of the power supply abnormal node to the emergency repair resource supply end according to the target emergency repair resource transfer amount of the emergency repair resource supply end to the power supply abnormal node;
and transferring the virtual resources to a virtual resource account corresponding to the emergency repair resource supply end according to the virtual resource transfer amount, and deducting the virtual resources in the virtual resource account corresponding to the power supply abnormal node according to the virtual resource transfer amount.
4. The method of claim 2, wherein if the first-aid repair resource supply end is a resource repository end, after the step of sending a first-aid repair resource transfer instruction to each first-aid repair resource supply end according to the target first-aid repair resource transfer amount corresponding to each first-aid repair resource supply end, the method further comprises:
acquiring the resource transfer contribution of each first-aid repair resource supply end in the target resource matching result; the resource transfer contribution value is used for representing the resource transfer degree of each first-aid repair resource supply end in the target resource matching result;
generating virtual resource reward amount for each first-aid repair resource supply end according to the resource transfer contribution degree of each first-aid repair resource supply end;
and transferring the virtual resources to a virtual resource account corresponding to the rush-repair resource supply end according to the virtual resource reward amount.
5. The method of claim 4, wherein the obtaining the resource transfer contribution value of each of the rush-repair resource supply terminals in the target resource matching result comprises:
acquiring a correlation coefficient between the virtual resource transferred to the power supply abnormal node by the emergency repair resource supply end and the emergency repair resource to be matched;
and determining the resource transfer contribution of each first-aid repair resource supply end in the target resource matching result according to the correlation coefficient of each first-aid repair resource supply end.
6. The method according to claim 1, wherein before the step of determining rush-repair resource requirement information of a power supply abnormal node in response to a rush-repair resource acquisition request for the power supply abnormal node, the method further comprises:
receiving initial first-aid repair resource supply data sent by each first-aid repair resource supply end;
performing data preprocessing on the initial rush-repair resource supply data to obtain rush-repair resource supply information; the data format of the first-aid repair resource supply information meets a preset condition;
and uploading the first-aid repair resource supply information corresponding to each first-aid repair resource supply end to the target block chain.
7. The method of claim 6, wherein the performing data preprocessing on the initial rush-repair resource supply data to obtain the rush-repair resource supply information comprises:
performing data cleaning processing on the initial first-aid repair resource supply information to obtain cleaned data; the clear sequence data has a preset data format;
carrying out data classification processing on the cleaned data to obtain classified data; the classified data comprises data obtained by classifying the cleaned data according to different emergency repair resource types;
and performing data complementation treatment on the missing data in the classified data to obtain complemented data serving as the emergency repair resource supply information.
8. An electrical power rush-repair resource allocation device based on intelligent contracts, characterized in that the device comprises:
the response module is used for responding to an emergency repair resource acquisition request aiming at a power supply abnormal node and determining emergency repair resource demand information of the power supply abnormal node;
the determining module is used for reading rush-repair resource supply information pre-uploaded by each rush-repair resource supply end from a target block chain, and determining rush-repair resources to be matched for the power supply abnormal nodes according to the rush-repair resource supply information and the rush-repair resource demand information; wherein, each first-aid repair resource supply end has a material supply weight corresponding to the resource supply attribute; the resource supply attribute comprises resource consumption quantity, resource transfer distance and resource transfer aging corresponding to the execution of the resource transfer operation;
the matching module is used for performing resource matching processing on the rush-repair resources to be matched according to the material matching weight of each rush-repair resource supply end to obtain a resource matching result; the resource matching result comprises the rush-repair resource transfer amount of each rush-repair resource supply end to the power supply abnormal node;
the updating module is used for updating the material matching weight of each emergency repair resource supply end according to the resource matching result;
the return module is used for returning to the matching module until a target resource matching result is obtained; and the resource consumption quantity, the resource transfer distance and the resource transfer timeliness of the resource transfer operation corresponding to the target resource matching result meet preset conditions.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111082040.1A CN113971504B (en) | 2021-09-15 | 2021-09-15 | Intelligent contract-based power rush-repair resource allocation method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111082040.1A CN113971504B (en) | 2021-09-15 | 2021-09-15 | Intelligent contract-based power rush-repair resource allocation method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113971504A true CN113971504A (en) | 2022-01-25 |
CN113971504B CN113971504B (en) | 2024-10-15 |
Family
ID=79586518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111082040.1A Active CN113971504B (en) | 2021-09-15 | 2021-09-15 | Intelligent contract-based power rush-repair resource allocation method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113971504B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116388112A (en) * | 2023-05-26 | 2023-07-04 | 北京国电通网络技术有限公司 | Abnormal supply end power-off method, device, electronic equipment and computer readable medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109754095A (en) * | 2018-12-24 | 2019-05-14 | 广州供电局有限公司 | Deployment information generation method, device, computer equipment and storage medium |
US20200177519A1 (en) * | 2019-07-15 | 2020-06-04 | Alibaba Group Holding Limited | Allocating virtual resource based on block chain |
CN112396327A (en) * | 2020-11-20 | 2021-02-23 | 城云科技(中国)有限公司 | Block chain-based flood prevention and control station command and scheduling method, system and server |
CN112580911A (en) * | 2019-09-29 | 2021-03-30 | 北京国双科技有限公司 | Resource management method, resource management device, computer equipment and storage medium |
-
2021
- 2021-09-15 CN CN202111082040.1A patent/CN113971504B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109754095A (en) * | 2018-12-24 | 2019-05-14 | 广州供电局有限公司 | Deployment information generation method, device, computer equipment and storage medium |
US20200177519A1 (en) * | 2019-07-15 | 2020-06-04 | Alibaba Group Holding Limited | Allocating virtual resource based on block chain |
CN112580911A (en) * | 2019-09-29 | 2021-03-30 | 北京国双科技有限公司 | Resource management method, resource management device, computer equipment and storage medium |
CN112396327A (en) * | 2020-11-20 | 2021-02-23 | 城云科技(中国)有限公司 | Block chain-based flood prevention and control station command and scheduling method, system and server |
Non-Patent Citations (1)
Title |
---|
黄燕金;: "加强应急物资管理", 中国电力企业管理, no. 11, 1 June 2008 (2008-06-01) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116388112A (en) * | 2023-05-26 | 2023-07-04 | 北京国电通网络技术有限公司 | Abnormal supply end power-off method, device, electronic equipment and computer readable medium |
CN116388112B (en) * | 2023-05-26 | 2023-09-12 | 北京国电通网络技术有限公司 | Abnormal supply end power-off method, device, electronic equipment and computer readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN113971504B (en) | 2024-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109858740B (en) | Enterprise risk assessment method and device, computer equipment and storage medium | |
US10936947B1 (en) | Recurrent neural network-based artificial intelligence system for time series predictions | |
US8244559B2 (en) | Cloud computing resource broker | |
CN109035028B (en) | Intelligent consultation strategy generation method and device, electronic equipment and storage medium | |
US20180114272A1 (en) | Inter-arrival times triggered, probabilistic risk-transfer system and a corresponding method thereof | |
CN113159972B (en) | Combination determination method, device, electronic equipment and computer readable storage medium | |
CN109711866B (en) | Bank advertisement putting method, device and system | |
CN112163770B (en) | Resource transfer method and device in equipment leasing scene | |
CN109978421B (en) | Information output method and device | |
CN111932314A (en) | Method, device and equipment for pushing recommended content and readable storage medium | |
CN113971504A (en) | Power line repair resource allocation method, device and equipment based on intelligent contract | |
CN114663015A (en) | Replenishment method and device | |
CN114140252A (en) | Resource allocation method of target object and related device | |
CN112215473B (en) | Distribution pressure data obtaining method and device and electronic equipment | |
JP6507734B2 (en) | Power trading volume determination system, power trading volume determining method and program | |
CN111144634A (en) | Method and device for predicting power price | |
CN114282881A (en) | Depreciation measuring and calculating method and device, storage medium and computer equipment | |
Gruzenkin et al. | Compensation model of multi-attribute decision making and its application to N-version software choice | |
CN116228316A (en) | Method and device for determining delivery address, electronic equipment and readable storage medium | |
CN111105274A (en) | Data processing method, device, medium and electronic equipment | |
CN115660691B (en) | Equipment screening method, device, terminal and storage medium | |
CN116188178A (en) | Resource information processing method, device, equipment, storage medium and product | |
CN118195386A (en) | Information processing method, device, equipment and storage medium | |
CN111639300A (en) | Method and device for determining power load declaration data | |
CN117876007A (en) | Flexible resource user portrait analysis method and device based on demand response |
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 | ||
CB03 | Change of inventor or designer information |
Inventor after: Lin Junchang Inventor after: Deng Xinghua Inventor after: Li Ranran Inventor after: Zhou Shaodan Inventor before: Zhou Shaodan Inventor before: Deng Xinghua Inventor before: Li Ranran |
|
CB03 | Change of inventor or designer information | ||
GR01 | Patent grant |