Energy transaction method and device of energy consumption equipment, storage medium and program product
By constructing a utility model for energy consumption equipment and energy suppliers and adjusting energy trading strategies, the problem of information asymmetry in energy trading is solved, and the fairness and efficiency of transactions are improved.
Patent Information
- Application Number
- CN202411740295.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-28
AI Technical Summary
There is information asymmetry between energy consumption equipment and energy suppliers, which makes energy pricing unable to achieve fairness and transparency, reducing the willingness of energy consumption equipment to participate in energy transactions.
Build an energy consumption equipment utility model and energy supplier utility model, solve the energy trading strategy between energy consumption equipment and energy suppliers through optimization algorithms, adjust the energy transaction volume and transaction price to incentivize energy suppliers and avoid information asymmetry.
It has improved the willingness of energy consumption equipment to participate in energy transactions, ensured the feasibility and fairness of energy transactions, and at the same time, the efficiency, safety and reliability of transactions are improved through the reputation scoring system.
Smart Images

Figure CN119722310A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an energy trading method, device, storage medium and program product for energy consuming equipment. Background Art
[0002] Energy-consuming devices are closely related to energy suppliers. The former rely on the latter to provide stable energy, while the latter needs to adjust energy production and supply according to demand. Through technologies such as smart grids and microgrid controllers, the two can interact in real time and conduct energy transactions. With the popularization of smart grids, energy transactions have become particularly important in promoting efficient energy flow and ensuring stable supply.
[0003] However, the unit production cost of energy is private information of energy suppliers. Therefore, in the process of energy trading, there is information asymmetry between energy-consuming devices and energy suppliers. At the same time, due to the selfish nature of energy suppliers, energy pricing cannot be fair and transparent, resulting in a reduced willingness of energy-consuming devices to participate in energy trading. Summary of the invention
[0004] In view of this, embodiments of the present invention provide an energy trading method, apparatus, storage medium, and program product for energy consuming equipment to eliminate or improve one or more defects in the prior art.
[0005] One aspect of the present invention provides an energy trading method for an energy consuming device, the method comprising the following steps:
[0006] Obtain the pre-built energy consumption equipment utility model and energy supplier utility model; the energy consumption equipment utility model aims to maximize the utility of the energy consumption equipment, including the energy consumption equipment utility function; the constraint corresponding to the energy consumption equipment utility function is the energy supplier constraint obtained based on the energy supplier utility model; the energy consumption equipment utility function is expressed as:
[0007]
[0008] In the formula, represents the utility of energy consumption device j; N represents the number of energy suppliers in the energy supplier set; n represents the nth energy supplier in the set; λ n represents the energy supply ratio corresponding to the nth energy supplier; j,n represents the energy transaction volume between energy consumption device j and the nth energy supplier; ω 1 represents the weight coefficient; represents the credit score corresponding to the nth energy supplier; π j,nrepresents the energy transaction price between energy consumption device j and the nth energy supplier;
[0009] The energy supplier utility model includes the energy supplier utility function, which is expressed as:
[0010]
[0011] In the formula, represents the utility corresponding to the nth energy supplier; π j,n represents the energy purchase price between energy consuming device j and the nth energy supplier; j,n represents the amount of energy purchased by energy consuming device j from the nth energy supplier; θ n represents the energy production cost corresponding to the nth energy supplier;
[0012] The utility function of the energy-consuming device is solved by a preset optimization algorithm to obtain an energy trading strategy between the energy-consuming device and the nth energy supplier; the energy trading strategy is used to indicate the transaction price and the transaction energy amount.
[0013] In some embodiments of the present invention, before obtaining the pre-built energy consumption equipment utility model and energy supplier utility model, the method further includes:
[0014] Obtaining a pre-built energy supplier credibility model; the energy supplier credibility model is used to obtain a credibility score corresponding to the nth energy supplier based on the number of historical transactions between the energy consuming device and the nth energy supplier within a preset time window and the historical transaction score corresponding to each transaction;
[0015] Based on the energy supplier credibility model, the credit score corresponding to the nth energy supplier is obtained.
[0016] In some embodiments of the present invention, before obtaining the pre-built energy consumption equipment utility model and energy supplier utility model, the method further includes:
[0017] Obtain a pre-built energy supplier credibility model; the energy supplier credibility model includes a first sub-model and a second sub-model; the first sub-model is used to obtain a first credibility score corresponding to the nth energy supplier based on the number of historical transactions between the energy consuming device and the nth energy supplier within a first preset time window and the historical transaction score corresponding to each transaction; the second sub-model is used to obtain a credibility score corresponding to the nth energy supplier based on the first credibility score and the second credibility score; the second credibility score refers to the credibility score obtained by other energy consuming devices based on the first sub-model and the number of historical transactions with the nth energy supplier within a second preset time window and the historical transaction score corresponding to each transaction;
[0018] Based on the energy supplier credibility model, the credit score corresponding to the nth energy supplier is obtained.
[0019] In some embodiments of the present invention, the first reputation score and the second reputation score are pre-stored in a preset distributed storage system; before obtaining the reputation score corresponding to the nth energy supplier based on the energy supplier credibility model, the method further includes:
[0020] A first reputation score and a second reputation score are obtained from a preset distributed storage system.
[0021] In some embodiments of the present invention, the energy supplier constraints include the energy supplier's utility lower limit constraint, the energy supplier's utility balance constraint, and the energy supplier's supply capacity constraint.
[0022] In some embodiments of the present invention, the utility lower limit constraint means that the utility of the nth energy supplier is greater than or equal to 0; the utility balance constraint means that the utility of the nth energy supplier is greater than or equal to the utility of the kth energy supplier, where the kth energy supplier refers to any energy supplier other than the nth energy supplier among N energy suppliers; the supply capacity constraint means that the amount of energy traded between the energy-consuming equipment and the nth energy supplier is less than or equal to the amount of energy produced by the nth energy supplier.
[0023] In some embodiments of the present invention, the utility lower limit constraint means that the utility of the first energy supplier in the energy supplier set is equal to 0; the utility balance constraint means that the utility from the second energy supplier to the Nth energy supplier in the energy supplier set is equal to the utility of the previous energy supplier; the supply capacity constraint means that the amount of energy traded between the energy consuming equipment and the nth energy supplier is less than or equal to the amount of energy produced by the nth energy supplier.
[0024] Another aspect of the present invention provides an energy trading device for energy consuming equipment, comprising a processor, a memory and a computer program / instructions stored in the memory, wherein the processor is used to execute the computer program / instructions, and when the computer program / instructions are executed, the device implements the steps of the energy trading method for the aforementioned energy consuming equipment.
[0025] Another aspect of the present invention provides a computer-readable storage medium having a computer program / instruction stored thereon, which, when executed by a processor, implements the steps of the aforementioned energy trading method for energy consuming devices.
[0026] Another aspect of the present invention provides a computer program product, comprising a computer program / instruction, which implements the steps of the aforementioned energy trading method for energy consuming devices when executed by a processor.
[0027] The energy trading method and device for energy-consuming equipment of the present invention can solve the problem of reduced willingness of energy-consuming equipment to participate in energy trading; by constructing a utility model of energy-consuming equipment and a utility model of energy suppliers, the energy-consuming equipment adjusts the energy trading volume and trading price according to the production costs and energy produced by different energy suppliers, so as to generate different energy trading strategies to incentivize energy suppliers, avoid information asymmetry trading situations, and improve the willingness of energy-consuming equipment to participate in energy trading; at the same time, it can achieve maximization of the utility of energy-consuming equipment while ensuring the utility of energy suppliers, thereby ensuring the feasibility and fairness of energy trading.
[0028] In addition, during the energy trading process, the historical interactions between energy suppliers and energy consuming devices are scored to improve the exchange of transaction information between them. The historical interactions of energy suppliers are evaluated and classified as negative interactions or positive interactions. At the same time, a multi-party participation mechanism and cross-platform data sharing functions are realized in combination with a distributed storage system to realize the sharing of credit scores between energy consuming devices and other energy consuming devices, further improve the credit scoring system, and improve the efficiency, security and reliability of energy trading.
[0029] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.
[0030] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present application, and do not constitute a limitation of the present invention. In the drawings:
[0032] Figure 1 A flow chart of an energy trading method for energy consuming equipment provided in one embodiment of the present invention.
[0033] Figure 2 A schematic diagram of a transaction between an energy consuming device and an energy supplier provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0035] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0036] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.
[0037] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.
[0038] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.
[0039] Figure 1 The figure is a flow chart of an energy trading method for energy consuming equipment according to an embodiment of the present invention, wherein the energy trading method for energy consuming equipment is applied to energy consuming equipment.
[0040] In some embodiments of the present invention, energy-consuming devices refer to devices that conduct energy transactions with energy suppliers (ES) and obtain energy provided by energy suppliers, such as household appliances (such as televisions, refrigerators, etc.), or data centers and servers in computing power networks (CPNs) (such as generative artificial intelligence servers, etc.).
[0041] refer to Figure 2, taking the energy-consuming device as a generative artificial intelligence server as an example. At this stage, after the terminal computing device obtains the raw data, it performs semantic extraction on the raw data to obtain text prompts and sends them to the generative artificial intelligence server. The generative artificial intelligence server runs a generative artificial intelligence model, which consumes a lot of energy to process service requests and realize high-quality and fast content generation (including music, videos, and images, etc.) based on text prompts. For example, the BLOOM model consumes an average of 3.96Wh per request, while ChatGPT estimates the average power consumption to be 564MWh per day, or up to 2.9Wh per request. Based on this, the generative artificial intelligence server needs to purchase stable, distributed, and ubiquitous energy through the energy trading market formed with energy suppliers to support various artificial intelligence generated content services.
[0042] Energy supplier refers to the electricity energy supplier, see Figure 2 , energy suppliers include but are not limited to energy storage facilities, renewable energy suppliers, non-renewable energy suppliers or Internet of Things energy supply facilities.
[0043] In actual implementation, the energy trading method for energy-consuming devices can also be applied to electronic devices that are wired or wirelessly connected to the energy-consuming devices, including but not limited to mobile phones, tablet computers and other devices. This embodiment does not limit the device type of the electronic device.
[0044] The energy trading method for energy consuming equipment provided in the embodiment of the present application is explained in detail below. The energy trading method for energy consuming equipment may include the following steps S101 to S102:
[0045] Step S101, obtaining a pre-built energy consumption equipment utility model and an energy supplier utility model.
[0046] Among them, the energy consumption equipment utility model is a model used to describe the benefits or utilities obtained by energy consumption equipment through consuming energy; the energy supplier utility model is a model used to describe the utility or profit obtained by energy suppliers through supplying energy.
[0047] Since the unit production cost of energy is private information of energy suppliers, there is information asymmetry between energy consuming devices and energy suppliers during the energy trading process. At the same time, due to the selfish nature of energy suppliers, energy pricing cannot be fair and transparent, which leads to a decrease in the willingness of energy consuming devices to participate in energy trading.
[0048] In order to solve the above problems and overcome the information asymmetry, in some embodiments of the present invention, energy suppliers are divided into N discrete types according to unit production costs to construct a set of energy suppliers.
[0049] In the energy supplier set, energy suppliers with higher rankings have lower energy costs, that is, the ranking of energy suppliers in the energy supplier set is negatively correlated with energy costs. Energy consumption devices will provide different energy trading strategies according to the type of energy supplier, and different energy trading strategies correspond to different energy trading volumes and energy trading prices.
[0050] Since the energy supply capacity of an energy supplier is limited, energy consuming devices may need to purchase energy from multiple energy suppliers. In the energy consuming device utility model, an energy transaction scenario involving N energy suppliers and one energy consuming device is considered in one energy transaction.
[0051] In the energy trading process, energy consumption devices provide energy trading strategies, and energy suppliers automatically reveal their private information by selecting energy trading strategies. Energy consumption devices make payments based on the energy trading strategies selected by energy suppliers.
[0052] For example: take energy supplier A, energy supplier B and energy supplier C as examples; the production cost of energy supplier A is greater than the production cost of energy supplier B; the production cost of energy supplier B is greater than the production cost of energy supplier C; for energy supplier A, energy consumption equipment will provide a higher energy trading volume and a higher trading price to incentivize it; for energy supplier B, energy consumption equipment will provide a medium energy trading volume and a medium trading price; for energy supplier C, energy consumption equipment will provide a lower energy trading volume and a lower trading price to incentivize it to cope with its excessively high costs.
[0053] refer to Figure 2 , taking the energy consumption device as a generative AI server as an example. The generative AI server designs the contract project and publishes it (i.e., the energy trading strategy). After the energy supplier selects the contract, the generative AI server pays the remuneration according to the contract.
[0054] In order to optimize the utility or benefit obtained by energy consuming devices in transactions with energy suppliers, in some embodiments of the present invention, the utility of the energy consuming devices is maximized by constructing utility models corresponding to the energy consuming devices and utility models corresponding to the energy suppliers.
[0055] According to the different production costs of energy suppliers, the energy consumption equipment utility model and the energy supplier utility model can help energy consumption equipment choose the appropriate energy supplier. Energy consumption equipment can adjust the energy transaction volume and transaction price according to the production costs and energy produced by different energy suppliers to generate different energy transaction strategies to motivate energy suppliers. While maximizing the utility of energy consumption equipment, it can also ensure the utility of energy suppliers, thereby ensuring the feasibility and fairness of transactions.
[0056] In some embodiments of the present invention, the energy consumption equipment utility model includes an energy consumption equipment utility function. The solution of the energy consumption equipment utility function is the energy transaction volume and the energy transaction price. Without losing generality, the energy consumption equipment utility function can be expressed in the form of ln(1+x). Specifically, the energy consumption equipment utility function is expressed as:
[0057]
[0058] In the formula, represents the utility of energy consumption device j; N represents the number of energy suppliers in the energy supplier set; n represents the nth energy supplier in the set; λ n represents the energy supply ratio corresponding to the nth energy supplier; j,n represents the energy transaction volume between energy consumption device j and the nth energy supplier; ω 1 and ω 2 represents the weight coefficient; π j,n represents the energy transaction price between energy consumption device j and the nth energy supplier; Represents the credit score corresponding to the nth energy supplier.
[0059] In the process of energy trading between energy consuming devices and energy suppliers, in addition to the energy trading volume and energy trading price, the reputation score of the energy supplier will also affect the energy trading strategy provided by the energy consuming device. Energy suppliers with low reputation scores will be regarded as malicious nodes and filtered out. Specifically, different energy consuming devices are set with different or the same reputation score tolerance values, and energy suppliers with reputation scores lower than the reputation score tolerance value will not be selected for trading.
[0060] In some embodiments of the present invention, the credibility of energy suppliers is quantified by a pre-constructed energy supplier credibility model. The energy supplier credibility model is used to evaluate and quantify the credibility of energy suppliers by analyzing the historical transaction data between energy consuming devices and energy suppliers within a preset time window (including the number of historical transactions and the historical transaction score corresponding to each transaction), which serves as an important basis for optimizing energy trading strategies. The preset time window refers to a preset duration, including 1 hour, 1 day or 1 week, etc. This embodiment does not limit the length of the preset time window.
[0061] In some embodiments of the present invention, the energy consuming device obtains a reputation score for the energy supplier according to the energy supplier credibility model, including the following two situations:
[0062] The first is that the energy consumption device directly obtains the credit score of the energy supplier according to the energy supplier credibility model. In this case, the energy supplier credibility model is expressed as follows:
[0063]
[0064] In the formula, represents the credit score of energy consumption device j to the nth energy supplier; μ j,n represents the number of historical transactions between energy consumption device j and the nth energy supplier within the preset time window; v j,n,x represents the freshness weight coefficient corresponding to the xth interaction; ∈ j,n,x Used to indicate the historical transaction score corresponding to the xth interaction, including negative evaluation score or positive evaluation score; e j,n,x Indicates the xth transaction; The weight factor corresponding to the transaction price of the xth transaction is negatively correlated with the transaction price.
[0065] Among them, ∈ j,n,x For the xth transaction between energy consumption device j and the nth energy supplier, energy consumption device j gives a transaction score ∈ j,n,x , represents the evaluation score of the service provided by energy supplier n. j,n,x If it is greater than or equal to the preset score value, it is a positive evaluation score. j,n,x If it is less than the preset score, it is a negative evaluation score. j,n ∈[0,1], in ∈ j,n,x ≥0.5,∈ j,n,x represents a positive evaluation score, otherwise it represents a negative evaluation score.
[0066] In some embodiments of the present invention, in order to prevent energy suppliers from providing poor energy services or malicious behavior, the freshness weight coefficient v j,n,x The reputation scores of energy suppliers are adjusted to reflect the greater impact of newer transactions on the reputation score. At the same time, in recent transactions between energy consumer j and the nth energy supplier, negative comments will reduce the reputation score, and negative comments will reduce the reputation score more than positive comments will increase it.
[0067] Specifically, the freshness weight coefficient v j,n,x It is expressed by the following formula:
[0068]
[0069] In the formula, μ j,n represents the total number of transactions between energy consumption device j and the nth energy supplier within the preset time window; e j,n,x Indicates the xth transaction.
[0070] Specifically, before obtaining the pre-built energy consumption device utility model and the energy supplier utility model, it also includes: obtaining a pre-built energy supplier credibility model; the energy supplier credibility model is used to obtain the credibility score corresponding to the nth energy supplier based on the historical number of transactions between the energy consumption device and the nth energy supplier within a preset time window and the historical interaction score corresponding to each transaction; and obtaining the credibility score corresponding to the nth energy supplier based on the energy supplier credibility model.
[0071] The second type is that the energy consumption device obtains a credit score for the energy supplier based on the energy supplier credibility model and in combination with the credit scores of the energy supplier by other energy consumption devices. In this case, the pre-built energy supplier credibility model includes a first sub-model, a second sub-model and a third sub-model.
[0072] The first sub-model is used to obtain a first credit score corresponding to the nth energy supplier based on the number of historical transactions between the energy consuming device and the nth energy supplier within a first preset time window and the historical transaction score corresponding to each transaction.
[0073] Specifically, the first sub-model is expressed by the following formula:
[0074]
[0075] In the formula, represents the credit score of energy consumption device j to the nth energy supplier; μ j,n represents the number of historical transactions between energy consumption device j and the nth energy supplier within the preset time window; v j,n,x represents the freshness weight coefficient corresponding to the xth transaction; ∈j,n,x Used to indicate the historical transaction score corresponding to the xth transaction, including a negative evaluation score or a positive evaluation score; Indicates the weight coefficient corresponding to the transaction price; e j,n,x Indicates the xth transaction.
[0076] The second sub-model is used to calculate a third reputation score based on the first reputation score, the second reputation scores corresponding to other energy consuming devices, and the similarity between the energy consuming device and the other energy consuming devices.
[0077] The device type of the other energy consuming devices is the same as the device type of the energy consuming devices. The second reputation score refers to the reputation score of the other energy consuming devices based on the first sub-model and the number of historical transactions with the nth energy supplier within the second preset time window and the historical transaction score corresponding to each transaction.
[0078] In some embodiments of the present invention, in order to improve the accuracy of the reputation score of the energy supplier, a second reputation score of the energy supplier is formed by combining other energy-consuming devices to reflect the actual performance of the energy supplier in different environments and equipment, which helps to eliminate the deviation that may be caused by a single scoring source.
[0079] At the same time, in order to ensure the credibility of the reputation scores of other energy consuming devices on the energy supplier, in some embodiments of the present invention, the similarity between the energy consuming device and other energy consuming devices is calculated by a modified cosine function.
[0080] Specifically, the second sub-model is expressed by the following formula:
[0081]
[0082] In the formula, represents the third reputation score; Sim(j,j′) represents the similarity between energy consuming device j and other energy consuming devices j′; J represents the corresponding set of energy consuming devices of the same type; Indicates the second reputation score.
[0083] The third sub-model is used to obtain the final credit score corresponding to the nth energy supplier based on the first credit score and the third credit score. Specifically, the third sub-model is represented by the following formula:
[0084]
[0085] In the formula, represents the final credit score corresponding to the nth energy supplier; ζ j,n Represents the weight coefficient corresponding to the first reputation score; Indicates the third reputation score.
[0086] Specifically, before obtaining the pre-built energy consumption device utility model and the energy supplier utility model, it also includes: obtaining a pre-built energy supplier credibility model; the energy supplier credibility model includes a first sub-model, a second sub-model and a third sub-model; the first sub-model is used to obtain a first credibility score corresponding to the nth energy supplier based on the number of historical transactions between the energy consumption device and the nth energy supplier within a first preset time window and the historical transaction score corresponding to each transaction; the second sub-model is used to calculate the third credibility score based on the first credibility score, the second credibility scores corresponding to other energy consumption devices and the similarity between the energy consumption device and other energy consumption devices; the third sub-model is used to obtain the credibility score corresponding to the nth energy supplier based on the first credibility score and the third credibility score.
[0087] In some embodiments of the present invention, in order to further enhance the reliability and transparency of the reputation score and prevent tampering, after the energy consuming device obtains the reputation score, it is digitally signed and uploaded to the preset distributed system for storage and made public to other energy consuming devices. Before obtaining the pre-built energy consuming device utility model and energy supplier utility model, it also includes: obtaining the reputation score from the preset distributed storage system.
[0088] In addition, when evaluating energy suppliers during energy service and calculating reputation scores, energy consuming devices download reputation scores uploaded by other energy suppliers from the preset distributed storage system. If the reputation scores corresponding to other energy suppliers are obtained based on negative evaluation scores, then the reputation scores will not be used.
[0089] In some embodiments of the present invention, the preset distributed system includes a blockchain or a cloud server. Figure 2 Taking the blockchain as an example, the introduction of blockchain technology to record the credit scores of energy suppliers can effectively prevent data tampering while enhancing the transparency, fairness and security of the scores. The immutability and decentralization provided by blockchain make the entire scoring process more credible. At the same time, through smart contracts and automated operations, efficiency can be improved and management costs can be reduced. In addition, the multi-party participation mechanism and cross-platform data sharing function of blockchain can realize the sharing of credit scores between energy-consuming devices and other energy-consuming devices, further improving the credit scoring system.
[0090] In some embodiments of the present invention, after the credibility score is calculated through the energy supplier credibility model, the calculated credibility score is used as a parameter of the utility function of the energy consuming device; or, after the credibility score is calculated through the energy supplier credibility model, the average credibility score is calculated in combination with the historical credibility score as a parameter of the utility function of the energy consuming device.
[0091] In some embodiments of the present invention, the energy supplier utility model includes an energy supplier utility function. The energy supplier utility function is expressed as:
[0092]
[0093] In the formula, represents the utility corresponding to the nth energy supplier; π j,n represents the energy purchase price between energy consuming device j and the nth energy supplier; x j,n represents the amount of energy purchased by energy consuming device j from the nth energy supplier; θ n Represents the energy production cost corresponding to the nth energy supplier.
[0094] In some embodiments of the present invention, energy production cost refers to the unit electricity production cost, including fixed costs and variable costs. Among them, fixed costs include but are limited to the energy supplier's production equipment investment costs, power generation system reliability guarantee costs, and power transmission loss costs; variable costs include but are not limited to fuel costs, power generation marginal costs, and energy supplier's operating costs.
[0095] In some embodiments of the present invention, the constraint corresponding to the utility function of the energy consuming device is an energy supplier constraint constructed based on the energy supplier utility model, wherein the energy supplier constraint includes the energy supplier's utility lower limit constraint, the energy supplier's utility balance constraint and the energy supplier's supply capacity constraint.
[0096] In some embodiments of the present invention, the utility lower limit constraint means that the utility of the nth energy supplier is greater than or equal to 0, which can be expressed by the following formula:
[0097]
[0098] In the formula, π j,n represents the energy purchase price between energy consuming device j and the nth energy supplier; x j,n represents the amount of energy purchased by energy consuming device j from the nth energy supplier; θ n Represents the energy production cost corresponding to the nth energy supplier.
[0099] The utility balance constraint means that the utility of the nth energy supplier is greater than or equal to the utility of the kth energy supplier, where the kth energy supplier refers to any energy supplier other than the nth energy supplier among the N energy suppliers. Specifically, the utility balance constraint can be expressed by the following formula:
[0100]
[0101] In the formula, π j,n represents the energy purchase price between energy consuming device j and the nth energy supplier; x j,n represents the amount of energy purchased by energy consuming device j from the nth energy supplier; π j,k represents the energy purchase price between energy consuming device j and the kth energy supplier; x j,k represents the amount of energy purchased by energy consuming device j from the kth energy supplier; θ n Represents the energy production cost corresponding to the nth energy supplier.
[0102] The supply capacity constraint means that the amount of energy traded between the energy consuming device and the nth energy supplier is less than or equal to the amount of energy produced by the nth energy supplier. Specifically, the supply capacity constraint can be expressed as follows:
[0103]
[0104] In the formula, x j,n represents the amount of energy purchased by energy consuming device j from the nth energy supplier; Q n Represents the amount of energy produced by the nth energy supplier.
[0105] Accordingly, based on the energy consumption equipment utility model and the energy supplier utility model, the energy consumption equipment utility function and the corresponding energy supplier constraint conditions are obtained, which are expressed as:
[0106]
[0107] In the formula, represents the utility of energy consumption device j; N represents the number of energy suppliers in the energy supplier set; n represents the nth energy supplier in the set; λ n represents the energy supply ratio corresponding to the nth energy supplier; j,n represents the amount of energy purchased by energy consuming device j from the nth energy supplier; ω 1 and ω 2 represents the weight coefficient; π j,n represents the energy purchase price between energy consuming device j and the nth energy supplier; represents the credit score corresponding to the nth energy supplier; πj,k represents the energy purchase price between energy consuming device j and the kth energy supplier; x j,k represents the amount of energy purchased by energy consuming device j from the kth energy supplier; θ n Represents the energy production cost corresponding to the nth energy supplier.
[0108] In some embodiments of the present invention, energy suppliers of the same type supply the same amount of energy. Problem P1 actually contains N+N(N-1)N=N 2 +N constraints. In order to reduce the constraints, problem P1 is simplified according to the definitions of individual rationality and individual compatibility.
[0109] Among them, individual rationality means that the utility obtained by energy suppliers from participating in energy transactions should be at least the same as that obtained from not participating in energy transactions, that is, participating in energy transactions will not make their utility worse, so as to ensure the willingness of energy suppliers to participate in transactions. Individual compatibility means that during the energy transaction process, the participants in the transaction will not deviate from the energy transaction strategy, ensuring that energy suppliers will honestly choose the energy transaction strategy that matches their type.
[0110] According to the definition of individual rationality and individual compatibility, the constraints of problem P1 are simplified. At this time, the lower limit constraint means that the utility of the first energy supplier in the energy supplier set is equal to 0, which is expressed by the following formula:
[0111]
[0112] In the formula, π j,1 represents the energy purchase price between energy consuming device j and the first energy supplier in the energy supplier set; x j,1 represents the energy transaction volume between energy consuming device j and the first energy supplier in the energy supplier set; θ 1 Represents the energy production cost corresponding to the first energy supplier in the energy supplier set.
[0113] The utility balance constraint means that the utility from the second energy supplier to the Nth energy supplier in the energy supplier set is equal to the utility of the previous energy supplier; specifically, the utility balance constraint is expressed by the following formula:
[0114]
[0115] In the formula, π j,n represents the energy purchase price between energy consuming device j and the nth energy supplier; x j,n represents the amount of energy purchased by energy consuming device j from the nth energy supplier; π j,n-1represents the energy purchase price between energy consuming device j and the n-1th energy supplier; x j,n-1 represents the amount of energy purchased by energy consuming device j from the n-1th energy supplier; θ n-1 Represents the energy production cost corresponding to the n-1th energy supplier.
[0116] Accordingly, based on the energy consumption equipment utility model and the energy supplier utility model, the energy consumption equipment utility function and the corresponding energy supplier constraint conditions are obtained, which are expressed as:
[0117]
[0118] In the formula, represents the utility of energy consumption device j; N represents the number of energy suppliers in the energy supplier set; n represents the nth energy supplier in the set; λ n represents the energy supply ratio corresponding to the nth energy supplier; j,n represents the amount of energy purchased by energy consuming device j from the nth energy supplier; ω 1 and ω 2 represents the weight coefficient; π j,n represents the energy purchase price between energy consuming device j and the nth energy supplier; represents the credit score corresponding to the nth energy supplier; π j,n-1 represents the energy purchase price between energy consuming device j and the n-1th energy supplier; x j,n-1 represents the amount of energy purchased by energy consuming device j from the n-1th energy supplier; θ n represents the energy production cost corresponding to the nth energy supplier; θ n-1 Represents the energy production cost corresponding to the n-1th energy supplier.
[0119] Based on individual rationality and individual compatibility constraints, the utility balance constraint is iterated using the iterative method to obtain the reward π j,n The general form of .
[0120] First, transform the utility balance constraint C2 into: After that, the iteration yields:
[0121] Substituting all equations into the utility balance constraint C2, we can get the reward π j,n The general form of the expression is:
[0122] By dividing π j,nThe expression can be substituted into problem P2 to transform problem P2 into problem P3. Specifically, problem P3 can be expressed by the following formula:
[0123]
[0124] In the formula, represents the utility of energy consumption device j; N represents the number of energy suppliers in the energy supplier set; n represents the nth energy supplier in the set; λ n represents the energy supply ratio corresponding to the nth energy supplier; x j,n represents the energy transaction volume between energy consumption device j and the nth energy supplier; x j,1 represents the energy transaction volume between energy consumption device j and the first energy supplier; θ 1 and ω 2 represents the weight coefficient; represents the credit score of the nth energy supplier; x j,i-1 represents the energy transaction volume between energy consumption device j and the i-1th energy supplier; θ 1 represents the energy production cost corresponding to the first energy supplier; θ i-1 Represents the energy production cost corresponding to the i-1th energy supplier.
[0125] Step S102, solving the utility function of the energy consuming device through a preset optimization algorithm, and obtaining an energy trading strategy between the energy consuming device and the nth energy supplier, wherein the energy trading strategy is used to indicate the transaction price and the energy transaction volume of the transaction.
[0126] The preset optimization algorithm refers to a preset convex optimization algorithm, which includes but is not limited to a gradient descent method (GD), an interior-point method (IPM) or a sequential quadratic programming (SQP) algorithm.
[0127] In some embodiments of the present invention, the energy consumption device obtains the energy trading strategy by solving the energy consumption device utility function. in, Indicates the energy trading volume indicated by the energy trading strategy; Represents the transaction price indicated by the energy trading strategy. Energy suppliers select the corresponding energy trading strategy according to their types and disclose private information. When the types of energy suppliers meet the uniform distribution, monotonicity can be automatically met.
[0128] For example: take energy supplier A, energy supplier B and energy supplier C as examples; the energy consuming equipment designs energy trading strategy a for energy supplier A, designs energy trading strategy b for energy supplier B, and designs energy trading strategy c for energy supplier C; energy supplier A selects energy trading strategy a for trading among energy trading strategy a, energy trading strategy b and energy trading strategy c; energy supplier B selects energy trading strategy b for trading among energy trading strategy a, energy trading strategy b and energy trading strategy c; energy supplier C selects energy trading strategy c for trading among energy trading strategy a, energy trading strategy b and energy trading strategy c.
[0129] In summary, the energy trading method for energy-consuming equipment provided by the present invention obtains a pre-constructed energy-consuming equipment utility model and an energy supplier utility model; the energy-consuming equipment utility model aims to maximize the utility of the energy-consuming equipment, including an energy-consuming equipment utility function; the constraint conditions corresponding to the energy-consuming equipment utility function are energy supplier constraints obtained based on the energy supplier utility model; the energy-consuming equipment utility function is solved by a preset optimization algorithm to obtain an energy trading strategy between the energy-consuming equipment and the nth energy supplier; the energy trading strategy is used to indicate the transaction price and the transaction energy amount; it can solve the problem of reduced willingness of energy-consuming equipment to participate in energy trading; by constructing the energy-consuming equipment utility model and the energy supplier utility model, the energy-consuming equipment adjusts the energy trading volume and transaction price according to the production cost and the energy produced by different energy suppliers, so as to generate different energy trading strategies to incentivize energy suppliers, avoid information asymmetry trading situations, and improve the willingness of energy-consuming equipment to participate in energy trading; at the same time, it can achieve maximization of the utility of energy-consuming equipment while ensuring the utility of energy suppliers, thereby ensuring the feasibility and fairness of energy trading.
[0130] In addition, during the energy trading process, the historical interactions between energy suppliers and energy consuming devices are scored to improve the exchange of transaction information between them. The historical interactions of energy suppliers are evaluated and classified as negative interactions or positive interactions. At the same time, a multi-party participation mechanism and cross-platform data sharing functions are realized in combination with a distributed storage system to realize the sharing of credit scores between energy consuming devices and other energy consuming devices, further improve the credit scoring system, and improve the efficiency, security and reliability of energy trading.
[0131] Corresponding to the above method, the present invention also provides an energy trading device for energy-consuming equipment, which includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the energy trading method for energy-consuming equipment as described above.
[0132] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the energy trading method of the aforementioned energy consuming device are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0133] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the aforementioned energy trading method for energy consuming devices when executed by a processor.
[0134] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.
[0135] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0136] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.
[0137] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An energy trading method for energy consuming equipment, characterized in that: The method comprises: Obtain a pre-built energy consumption equipment utility model and an energy supplier utility model; the energy consumption equipment utility model aims to maximize the utility of the energy consumption equipment, and includes an energy consumption equipment utility function; the constraint condition corresponding to the energy consumption equipment utility function is the energy supplier constraint obtained based on the energy supplier utility model; the energy consumption equipment utility function is expressed as: In the formula, represents the utility of energy consumption device j; N represents the number of energy suppliers in the energy supplier set; n represents the nth energy supplier in the set; λ n represents the energy supply ratio corresponding to the nth energy supplier; j,n represents the energy transaction volume between the energy consumption device j and the nth energy supplier; ω1 represents the weight coefficient; represents the credit score corresponding to the nth energy supplier; j,n represents the energy transaction price between the energy consumption device j and the nth energy supplier; The energy supplier utility model includes an energy supplier utility function, which is expressed as: In the formula, represents the utility corresponding to the nth energy supplier; j,n represents the energy purchase price between the energy consumption device j and the nth energy supplier; j,n represents the amount of energy purchased by the energy consuming device j from the nth energy supplier; the θ n represents the energy production cost corresponding to the n-th energy supplier; The utility function of the energy consuming device is solved by a preset optimization algorithm to obtain an energy trading strategy between the energy consuming device and the nth energy supplier; the energy trading strategy is used to indicate the transaction price and the transaction energy amount.
2. The energy trading method for energy consuming equipment according to claim 1, characterized in that: Before obtaining the pre-built energy consumption equipment utility model and energy supplier utility model, the method further includes: Obtaining a pre-built energy supplier credibility model; the energy supplier credibility model is used to obtain a credibility score corresponding to the nth energy supplier based on the number of historical transactions between the energy consuming device and the nth energy supplier within a preset time window and the historical transaction score corresponding to each transaction; A credit score corresponding to the nth energy supplier is obtained based on the energy supplier credibility model.
3. The energy trading method for energy consuming equipment according to claim 1, characterized in that: Before obtaining the pre-built energy consumption equipment utility model and energy supplier utility model, the method further includes: Obtain a pre-built energy supplier credibility model; the energy supplier credibility model includes a first sub-model, a second sub-model and a third sub-model; the first sub-model is used to obtain a first credibility score corresponding to the nth energy supplier based on the number of historical transactions between the energy consuming device and the nth energy supplier within a first preset time window and the historical transaction score corresponding to each transaction; the second sub-model is used to calculate a third credibility score based on the first credibility score, the second credibility scores corresponding to other energy consuming devices and the degree of similarity between the energy consuming device and the other energy consuming devices; the third sub-model is used to obtain a credibility score corresponding to the nth energy supplier based on the first credibility score and the second credibility score; A credit score corresponding to the nth energy supplier is obtained based on the energy supplier credibility model.
4. The energy trading method for energy consuming equipment according to claim 1, characterized in that: The reputation score is pre-stored in a preset distributed storage system; before obtaining the pre-built energy consumption equipment utility model and energy supplier utility model, it also includes: obtaining the reputation score from the preset distributed storage system.
5. The energy trading method for energy consuming equipment according to claim 1, characterized in that: The energy supplier constraints include the energy supplier's utility lower limit constraint, the energy supplier's utility balance constraint and the energy supplier's supply capacity constraint.
6. The method according to claim 5, characterized in that The utility lower limit constraint means that the utility of the nth energy supplier is greater than or equal to 0; the utility balance constraint means that the utility of the nth energy supplier is greater than or equal to the utility of the kth energy supplier, wherein the kth energy supplier refers to any energy supplier other than the nth energy supplier among the N energy suppliers; the supply capacity constraint means that the amount of energy traded between the energy consuming equipment and the nth energy supplier is less than or equal to the amount of energy produced by the nth energy supplier.
7. The energy trading method for energy consuming equipment according to claim 5, characterized in that: The utility lower limit constraint means that the utility of the first energy supplier in the energy supplier set is equal to 0; the utility balance constraint means that the utility from the second energy supplier to the Nth energy supplier in the energy supplier set is equal to the utility of the previous energy supplier; the supply capacity constraint means that the amount of energy traded between the energy consuming equipment and the nth energy supplier is less than or equal to the amount of energy produced by the nth energy supplier.
8. An energy trading device for energy consuming equipment, comprising a processor, a memory and a computer program / instruction stored in the memory, characterized in that: The processor is used to execute the computer program / instructions. When the computer program / instructions are executed, the device implements the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method as claimed in any one of claims 1 to 7 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.