Energy internet demand response scheduling method based on multi-agent reinforcement learning

By constructing intelligent agent systems on both the source and load sides and using multi-agent reinforcement learning algorithms to optimize the flexible load scheduling of the energy internet, the problem of the failure to effectively consider the demand response of flexible loads in existing technologies is solved, and the system achieves economic optimization and efficient resource utilization.

CN115986754BActive Publication Date: 2026-11-27STATE GRID SHANGHAI MUNICIPAL ELECTRIC POWER CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211309409.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-25
Publication Date
2026-11-27
Estimated Expiration
2042-10-25

AI Technical Summary

Technical Problem

Existing technologies, when using multi-agent reinforcement learning for energy internet optimization scheduling, fail to effectively consider the demand response of flexible loads, resulting in insufficient overall system operating efficiency and economy.

Method used

Design a demand response optimization scheduling method for the energy internet based on multi-agent reinforcement learning. Construct an intelligent agent system on both the source and load sides, including conventional units, wind turbines, loads that can be reduced, loads that can be shifted, and energy storage. The scheduling is carried out through a multi-agent reinforcement learning algorithm, taking into account the demand response of flexible loads, and optimizing system operation.

Benefits of technology

This improved the overall system benefits and resource utilization, achieving optimal economic operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115986754B_ABST
    Figure CN115986754B_ABST
Patent Text Reader

Abstract

The application discloses an energy internet demand response scheduling method based on multi-agent reinforcement learning, and has the characteristics that the method comprises the following steps: S1, an energy internet scheduling center acquires energy internet operation data and power market data; S2, the energy internet scheduling center establishes an energy internet optimal scheduling model; S3, the energy internet scheduling center constructs an agent system on the source and load sides and trains the agent system; S4, the energy internet scheduling center controls the agent to perform actions according to the environment; and S5, the energy internet scheduling center controls the power output of internal members according to the actual environment and the calculation result, so that the optimal scheduling and the economic optimal operation of the system as a whole are realized. On the basis of the prior art, the flexible load scheduling in the energy internet is considered, the multi-agent reinforcement learning algorithm is utilized for scheduling, the overall benefit of the system is higher, and the resource utilization rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates primarily to the field of reinforcement learning, and more particularly to a demand response scheduling method for the energy internet based on multi-agent reinforcement learning. Background Technology

[0002] With the depletion of fossil fuels and the continuous deterioration of the environment, the supply of conventional fossil fuels can no longer meet the sustained growth in energy demand, and the Second Industrial Revolution, supported by fossil fuels, is gradually coming to an end. The coordinated utilization of multiple energy sources has attracted worldwide attention. The Energy Internet, by coordinating the operational characteristics of different energy systems, can fully leverage the advantages of each energy system, reduce the uncertainty of energy supply, and enhance the absorption capacity of renewable energy.

[0003] The optimal scheduling problem of the energy internet involves numerous control variables, strong stochasticity in operating states, and high coupling of various state variables, often making it a complex nonlinear and nonconvex optimization problem that is difficult to solve. Therefore, traditional optimization algorithms based on mechanistic models can no longer meet the optimal scheduling requirements of the energy internet. Artificial intelligence-based optimization algorithms are receiving increasing attention, with reinforcement learning being an important direction. Reinforcement learning, a field within machine learning, emphasizes how to act based on the environment to maximize expected benefits. It is inspired by behaviorist theory in psychology, which describes how organisms, under the stimulation of rewards or punishments from the environment, gradually form expectations of stimuli and develop habitual behaviors that maximize benefits.

[0004] However, in the existing optimization scheduling of the energy internet through multi-agent reinforcement learning, demand response scenarios are not considered, and the scheduling of controllable loads such as loads that can be reduced and loads that can be shifted is ignored.

[0005] Therefore, those skilled in the art are dedicated to developing a demand response optimization scheduling method for the energy internet based on multi-agent reinforcement learning. This method involves building intelligent agent systems on both the source and load sides, taking into account the demand response of flexible loads, and achieving overall economic optimization of the system's operation. Summary of the Invention

[0006] In view of the above-mentioned deficiencies of the prior art, the technical problem to be solved by the present invention includes:

[0007] (1) Design an energy internet demand response optimization scheduling method based on multi-agent reinforcement learning, build an agent system on both the source and load sides, and take into account the demand response of flexible loads.

[0008] To achieve the above objectives, this invention provides a demand response scheduling method for the energy internet based on multi-agent reinforcement learning, comprising the following steps:

[0009] S1, the Energy Internet Dispatch Center obtains energy internet operation data and electricity market data;

[0010] S2, the Energy Internet Dispatch Center establishes an optimized dispatch model for the Energy Internet;

[0011] S3, the Energy Internet Dispatch Center constructs and trains intelligent agent systems on both the source and load sides;

[0012] S4, the Energy Internet Dispatch Center controls intelligent agents to perform actions based on the environment;

[0013] S5, the energy internet dispatch center controls the power output of its internal members based on the actual environment and calculation results, to achieve overall system optimization and economic optimization operation.

[0014] Furthermore, the energy internet includes conventional generating units, wind turbines, load shedding, load shifting, and energy storage.

[0015] Furthermore, the energy internet optimization scheduling model includes conventional unit operating costs, demand response costs, wind curtailment costs, and electricity trading costs.

[0016] The operating cost of the conventional unit is

[0017]

[0018] In the formula, Let α be the power output of the i-th conventional generating unit during time period t; i ,β i ,γ i Let N be the power generation cost coefficient of the i-th conventional generating unit; G This is the number of conventional generating units;

[0019] The demand response cost is:

[0020] f2(t)=f IL (t)+f PY

[0021] In the formula: f IL (t) represents the subsidy cost for load reduction; f PY (t) represents the subsidy cost for the transferable load;

[0022] Both can be represented as:

[0023]

[0024] f PY =λ PY ΔP PY

[0025] In the formula: λ IL and λ PY The unit compensation cost for load reduction and load shifting; ΔP t IL This represents the load reduction amount during time period t. ΔP is a Boolean variable indicating whether the load can be reduced. PY This represents the load shift amount;

[0026] The cost of wind curtailment is

[0027]

[0028] In the formula: k is the wind curtailment penalty coefficient; This represents the maximum power generation of the wind turbine during time period t. N represents the power output of the i-th wind turbine during time period t; w This refers to the number of wind turbine generator sets.

[0029] The electricity transaction cost is

[0030] f4(t)=λ t Grid P t Grid

[0031] In the formula: λ t Grid P represents the grid electricity price for time period t; t Grid The value represents the amount of electricity purchased from the grid during time period t; a negative value indicates the sale of electricity.

[0032] Furthermore, the energy internet optimization scheduling model also includes: power balance constraints, conventional unit constraints, wind power constraints, flexible load constraints, and energy storage constraints;

[0033] The power balance constraint is

[0034]

[0035] In the formula: P t L P represents the rigid load power during time period t. t ES The energy storage charging power for time period t;

[0036] The constraints on conventional generating units include power constraints and ramp rate constraints.

[0037] The power constraint is:

[0038]

[0039] In the formula: and These represent the maximum and minimum output of conventional generating units, respectively.

[0040] The slope rate constraint is:

[0041]

[0042] Where: ΔP G This is the ramp rate for conventional generating units;

[0043] The wind power constraint is

[0044]

[0045] In the formula: This represents the maximum value for the wind turbine unit.

[0046] The flexible load constraints include load reduction constraints and load shifting constraints.

[0047] The load reduction constraint is:

[0048]

[0049]

[0050]

[0051] In the formula: R is the maximum load that can be reduced. IL For a response rate that can reduce the load; This represents the maximum number of load shedding events within a single cycle.

[0052] The transferable load constraint is:

[0053]

[0054] In the formula: This represents the maximum value of the transferable load.

[0055] The energy storage constraint is

[0056]

[0057]

[0058]

[0059]

[0060] In the formula: The state of charge of energy storage; η c and η dE represents the energy storage charge / discharge efficiency; E represents the energy storage capacity; Δt represents the time interval. and These represent the maximum and minimum values ​​of the energy storage state of charge. This represents the energy storage state of charge at the end of the scheduling cycle. The energy storage capacity at the beginning of the scheduling cycle; This represents the maximum power for energy storage charging and discharging.

[0061] Furthermore, the load shifting constraint is based on a signed contract, with shifting occurring within a fixed time period during the day to reduce the constraint of system peak-to-valley differences. For example, if shifting from time period t to time period k, then...

[0062]

[0063] Furthermore, the energy internet optimization scheduling model also includes an objective function, which is used to minimize the overall objective of energy internet operating cost and new energy consumption.

[0064]

[0065] In the formula: f1 is the operating cost of conventional generating units; f2 is the demand response cost; f3 is the cost of wind curtailment; f4 is the electricity trading cost; and T is the dispatch cycle.

[0066] Furthermore, the intelligent agents are supply-side intelligent agents and demand-side intelligent agents, wherein the supply-side intelligent agents include traditional generator sets and wind turbine sets, and the demand-side intelligent agents include load reduction, load shifting, and energy storage.

[0067] Furthermore, in S3, the training agent system specifically involves the agent perceiving states (s) from the environment. The state set is input into the policy network, and the agent's policy is calculated by the neural network, outputting all actions of the agent in a specific state (a). Then, the agent acts on the environment to obtain the reward signal under the current state and policy, and feeds it back to the agent. After that, the environment will enter the next state. Each agent evaluates the policy based on the reward signal it receives. This process is repeated, so the final result is a policy that maximizes long-term rewards.

[0068] Furthermore, an intelligent agent system includes a state space, an action space, and a reward function;

[0069] The state space includes the state space of the supply-side agent and the state space of the demand-side agent;

[0070] The state space of the supply-side agent is:

[0071]

[0072] The state space of the demand-side agent is:

[0073]

[0074] The energy internet environment provides information to various intelligent agents to power traditional generating units. Wind turbine output

[0075] State of charge of energy storage and load power P t L ;

[0076] The action space includes the action space of the supply-side agent and the action space of the demand-side agent.

[0077] The action space of the supply-side agent is

[0078]

[0079] Among them, the change in output of traditional units wind curtailment

[0080] The action space of the demand-side agent is:

[0081] A L =[ΔP t IL ,ΔP PY ,P t ES ]

[0082] The selected value is the load reduction amount ΔP. t IL Load shift ΔP PY Energy storage charging power P t ES ;

[0083] The reward function is divided into two parts: one part is the negative of the cost function when the constraint is satisfied, and the other part is the penalty generated when the constraint is violated.

[0084] The reward function for the supply-side agent is:

[0085] r G =-(f1+f3+f4+ψ) G )

[0086] In the formula: ψ G The penalty item established for violating the corresponding supply-side constraints is a relatively large positive value;

[0087] The reward function for the demand-side agent is:

[0088] rL =-(f2+f4+ψ) L )

[0089] In the formula: ψ L The penalty for violating the demand-side constraints of the response is a relatively large positive value.

[0090] Furthermore, each agent evaluates the strategy based on the reward signal it receives, and this process is repeated cyclically, so the final strategy obtained is one that maximizes long-term rewards, specifically:

[0091] First, the policy parameters of the n+1 agents are represented by θ = [θ1, θ2, ..., θ...]. n+1 The gradient update process of a single agent's policy network is as follows:

[0092]

[0093] In the formula: To estimate the network's state-action function, represents the potential reward for taking that action in a given state, used to calculate the loss function; D is a set of empirical data retrieved from the experience pool;

[0094] The formula for calculating the loss function is as follows:

[0095]

[0096]

[0097] In the formula: y i For the corresponding target Q value, Let γ be the state-action function of the real network, and γ be the reward decay coefficient.

[0098] Each agent's action network acquires only local state data and learns based on the judgments of the value network. The action network modifies the probability of each action being selected based on the value network's judgments and selects the action accordingly. The action reality network within the action network extracts historical data from the experience pool, selects the next state as input, and chooses the corresponding optimal action as output. Both the action reality network and the state reality network use the following soft update method for parameter iteration.

[0099] θ μ′ ←τθ μ +(1-τ)θ μ′

[0100] θ Q′ ←τθ Q +(1-τ)θ Q′ .

[0101] Compared with existing technical solutions, the technical advantages of this invention are as follows: Based on existing technologies, this invention incorporates flexible load scheduling in the energy internet and uses a multi-agent reinforcement learning algorithm for scheduling, resulting in higher overall system benefits and improved resource utilization.

[0102] The following will further explain the concept, specific structure, and technical effects of the present invention in conjunction with the accompanying drawings, so as to fully understand the purpose, features, and effects of the present invention. Attached Figure Description

[0103] Figure 1 This is a flowchart of an energy internet optimization scheduling process according to an embodiment of the present invention;

[0104] Figure 2 This is a diagram of an agent reinforcement learning framework according to an embodiment of the present invention. Detailed Implementation

[0105] The following description, with reference to the accompanying drawings, illustrates several preferred embodiments of the present invention to make its technical content clearer and easier to understand. The present invention can be embodied in many different forms, and the scope of protection of the present invention is not limited to the embodiments mentioned herein.

[0106] In the accompanying drawings, components with the same structure are indicated by the same numerical designation, and components with similar structures or functions are indicated by similar numerical designations. The dimensions and thicknesses of each component shown in the drawings are arbitrary, and the present invention does not limit the dimensions and thicknesses of each component. To make the illustrations clearer, the thickness of some components has been appropriately exaggerated in the drawings.

[0107] A demand response scheduling method for the energy internet based on multi-agent reinforcement learning is proposed. The energy internet dispatch center acquires demand response data and electricity price data from the electricity market and obtains the operating status of its internal members through measurement equipment. Then, an energy internet optimal scheduling model is established, constructing an intelligent agent system on both the source and load sides, including supply-side and demand-side agents, taking into account the demand response of flexible loads, and training it through multi-agent reinforcement learning. Finally, in actual operation, the power output of internal members is controlled according to the actual environment and calculation results to achieve overall system optimal scheduling and economically optimal operation.

[0108] like Figure 1 As shown, the steps include:

[0109] S1, the Energy Internet Dispatch Center obtains energy internet operation data and electricity market data;

[0110] S2, the Energy Internet Dispatch Center establishes an optimized dispatch model for the Energy Internet;

[0111] S3, the Energy Internet Dispatch Center constructs and trains intelligent agent systems on both the source and load sides;

[0112] S4, the Energy Internet Dispatch Center controls intelligent agents to perform actions based on the environment;

[0113] S5, the energy internet dispatch center controls the power output of its internal members based on the actual environment and calculation results, to achieve overall system optimization and economic optimization operation.

[0114] The energy internet includes conventional generating units, wind turbines, load shedding, load shifting, and energy storage.

[0115] The energy internet optimization scheduling model includes conventional unit operating costs, demand response costs, wind curtailment costs, and electricity trading costs.

[0116] The operating cost of the conventional unit is

[0117]

[0118] In the formula, Let α be the power output of the i-th conventional generating unit during time period t; i ,β i ,γ i Let N be the power generation cost coefficient of the i-th conventional generating unit; G This is the number of conventional generating units;

[0119] The demand response cost is:

[0120] f2(t)=f IL (t)+f PY

[0121] In the formula: f IL (t) represents the subsidy cost for load reduction; f PY (t) represents the subsidy cost for the transferable load;

[0122] Both can be represented as:

[0123]

[0124] f PY =λ PY ΔP PY

[0125] In the formula: λ IL and λ PY The unit compensation cost for load reduction and load shifting; ΔP t IL This represents the load reduction amount during time period t. ΔP is a Boolean variable indicating whether the load can be reduced.PY This represents the load shift amount;

[0126] The cost of wind curtailment is

[0127]

[0128] In the formula: k is the wind curtailment penalty coefficient; This represents the maximum power generation of the wind turbine during time period t. N represents the power output of the i-th wind turbine during time period t; w This refers to the number of wind turbine generator sets.

[0129] The electricity transaction cost is

[0130] f4(t)=λ t Grid P t Grid

[0131] In the formula: λ t Grid P represents the grid electricity price for time period t; t Grid The value represents the amount of electricity purchased from the grid during time period t; a negative value indicates the sale of electricity.

[0132] Furthermore, the energy internet optimization scheduling model also includes: power balance constraints, conventional unit constraints, wind power constraints, flexible load constraints, and energy storage constraints;

[0133] The power balance constraint is

[0134]

[0135] In the formula: P t L P represents the rigid load power during time period t; t ES The energy storage charging power for time period t;

[0136] The constraints on conventional generating units include power constraints and ramp rate constraints.

[0137] The power constraint is:

[0138]

[0139] In the formula: and These represent the maximum and minimum output of conventional generating units, respectively.

[0140] The slope rate constraint is:

[0141]

[0142] Where: ΔP G This is the ramp rate for conventional generating units;

[0143] The wind power constraint is

[0144]

[0145] In the formula: This represents the maximum value for the wind turbine unit.

[0146] The flexible load constraints include load reduction constraints and load shifting constraints.

[0147] The load reduction constraint is:

[0148]

[0149]

[0150]

[0151] In the formula: R is the maximum load that can be reduced. IL For a response rate that can reduce the load; This represents the maximum number of load shedding events within a single cycle.

[0152] The transferable load constraint is:

[0153]

[0154] In the formula: This represents the maximum value of the transferable load.

[0155] The energy storage constraint is

[0156]

[0157]

[0158]

[0159]

[0160] In the formula: The state of charge of the stored energy; η c and η d E represents the energy storage charge / discharge efficiency; E represents the energy storage capacity; Δt represents the time interval. and These represent the maximum and minimum values ​​of the energy storage state of charge. This represents the energy storage state of charge at the end of the scheduling cycle. The energy storage capacity at the beginning of the scheduling cycle; This represents the maximum power for energy storage charging and discharging.

[0161] The shiftable load constraint is a contracted shifting operation within a fixed time period of the day to reduce the system's peak-to-valley difference. For example, if the load is shifted from time period t to time period k, then...

[0162]

[0163] The energy internet optimization scheduling model also includes an objective function, which is used to minimize the overall target of energy internet operating cost and new energy consumption.

[0164]

[0165] In the formula: f1 is the operating cost of conventional generating units; f2 is the demand response cost; f3 is the cost of wind curtailment; f4 is the electricity trading cost; and T is the dispatch cycle.

[0166] like Figure 2 As shown, reinforcement learning includes basic elements such as agents, environment, actions, states, and rewards. Multi-agent reinforcement learning means that the number of agents is not limited to one. Utilizing a framework of centralized training and distributed execution, each agent receives information from other agents during training, including their states and actions. During the execution phase, actions are performed using only local information.

[0167] The intelligent agents are supply-side intelligent agents and demand-side intelligent agents. The supply-side intelligent agents include traditional generator sets and wind turbine sets, while the demand-side intelligent agents include load reduction, load shifting, and energy storage.

[0168] The training of the agent system in S3 specifically involves the agent perceiving states (s) from the environment. The state set is input into the policy network, and the agent's policy is calculated by the neural network. The output shows all actions of the agent in a specific state (a). Then, the agent acts on the environment to obtain the reward signal under the current state and policy, and feeds it back to the agent. After that, the environment will enter the next state. Each agent evaluates the policy based on the reward signal it receives. This process is repeated, so the final result is a policy that maximizes long-term rewards.

[0169] An intelligent agent system includes a state space, an action space, and a reward function;

[0170] The state space includes the state space of the supply-side agent and the state space of the demand-side agent;

[0171] The state space of the supply-side agent is:

[0172]

[0173] The state space of the demand-side agent is:

[0174]

[0175] The energy internet environment provides information to various intelligent agents to power traditional generating units. Wind turbine output

[0176] State of charge S of energy storage t ES and load power P t L ;

[0177] The action space includes the action space of the supply-side agent and the action space of the demand-side agent.

[0178] The action space of the supply-side agent is

[0179]

[0180] Among them, the change in output of traditional units wind curtailment

[0181] The action space of the demand-side agent is:

[0182] A L =[ΔP t IL ,ΔP PY ,P t ES ]

[0183] The selected value is the load reduction amount ΔP. t IL Load shift ΔP PY Energy storage charging power P t ES ;

[0184] The reward function is divided into two parts: one part is the negative of the cost function when the constraint is satisfied, and the other part is the penalty generated when the constraint is violated.

[0185] The reward function for the supply-side agent is:

[0186] r G =-(f1+f3+f4+ψ) G )

[0187] In the formula: ψ G The penalty item established for violating the corresponding supply-side constraints is a relatively large positive value;

[0188] The reward function for the demand-side agent is:

[0189] r L =-(f2+f4+ψ) L )

[0190] In the formula: ψ L The penalty for violating the demand-side constraints of the response is a relatively large positive value.

[0191] Furthermore, each agent evaluates the strategy based on the reward signal it receives, and this process is repeated cyclically, so the final strategy obtained is one that maximizes long-term rewards, specifically:

[0192] First, the policy parameters of the n+1 agents are represented by θ = [θ1, θ2, ..., θ...]. n+1 The gradient update process of a single agent's policy network is as follows:

[0193]

[0194] In the formula: To estimate the network's state-action function, represents the potential reward for taking that action in a given state, used to calculate the loss function; D is a set of empirical data retrieved from the experience pool;

[0195] The formula for calculating the loss function is as follows:

[0196]

[0197]

[0198] In the formula: y i For the corresponding target Q value, Let γ be the state-action function of the real network, and γ be the reward decay coefficient.

[0199] Each agent's action network acquires only local state data and learns based on the judgments of the value network. The action network modifies the probability of each action being selected based on the value network's judgments and selects the action accordingly. The action reality network within the action network extracts historical data from the experience pool, selects the next state as input, and chooses the corresponding optimal action as output. Both the action reality network and the state reality network use the following soft update method for parameter iteration.

[0200] θ μ′ ←τθ μ +(1-τ)θ μ′

[0201] θ Q′ ←τθ Q +(1-τ)θ Q′ .

[0202] The preferred embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make numerous modifications and variations based on the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning, or limited experimentation on the basis of existing technology should be within the scope of protection defined by the claims.

Claims

1. A demand response scheduling method for the energy internet based on multi-agent reinforcement learning, characterized in that, Including the following steps: S1, the Energy Internet Dispatch Center obtains energy internet operation data and electricity market data; S2, the Energy Internet Dispatch Center establishes an optimized dispatch model for the Energy Internet; S3, the Energy Internet Dispatch Center constructs and trains intelligent agent systems on both the source and load sides. The training process is as follows: the intelligent agent perceives the state (s) from the environment, the state set is input into the policy network, the policy of the intelligent agent is calculated by the neural network, and the output is all actions of the intelligent agent in a specific state (a); then it acts on the environment to obtain the reward signal under the current state and policy, and feeds it back to the intelligent agent, after which the environment will enter the next state; each intelligent agent evaluates the policy according to the reward signal it receives, and the process is repeated until the policy that maximizes long-term reward is finally obtained; S4, the Energy Internet Dispatch Center controls intelligent agents to perform actions based on the environment; S5, the energy internet dispatch center controls the power output of its internal members based on the actual environment and calculation results, to achieve overall system optimization dispatch and economic optimization operation; The energy internet includes conventional generating units, wind turbines, load-reducing and load-shifting devices, and energy storage. The energy internet optimization scheduling model includes conventional unit operating costs, demand response costs, wind curtailment costs, and electricity trading costs. The operating cost of the conventional unit is: In the formula, For the time period , No. Power generation capacity of conventional generating units; , , For the first Cost coefficient of power generation for conventional generating units; This is the number of conventional generating units; The demand response cost is: In the formula, The cost of subsidies to reduce load; The cost of subsidies for relocatable loads; Both can be represented as: In the formula, and For the unit compensation cost of load reduction and load shifting; For the time period The amount of load reduction; This is a Boolean variable indicating whether the load can be reduced. This represents the load shift amount; The cost of wind curtailment is: In the formula, This is the wind curtailment penalty coefficient; For time period Maximum power generation of wind turbine; For time period No. The power generation capacity of typhoon turbines; This refers to the number of wind turbine generator sets. The electricity transaction cost is: In the formula, For time period Electricity price; For time period Electricity purchased from the grid; negative values ​​indicate electricity sold. The energy internet optimization scheduling model also includes an objective function, which is used to minimize the overall target of energy internet operating cost and new energy consumption. In the formula: This refers to the operating cost of conventional generating units; Cost of responding to demand; Cost of wind curtailment; For electricity transaction costs; The scheduling period; The energy internet optimization scheduling model also includes: power balance constraints, conventional unit constraints, wind power constraints, flexible load constraints, and energy storage constraints; The power balance constraint is: In the formula, For time period Rigid load power; For time period Energy storage charging power; The constraints on conventional generating units include power constraints and ramp rate constraints. The power constraint is: In the formula, and These represent the maximum and minimum output of conventional generating units, respectively. The slope rate constraint is: In the formula, This is the ramp rate for conventional generating units; The wind power constraint is: In the formula, This represents the maximum value for the wind turbine unit. The flexible load constraints include load reduction constraints and load shifting constraints. The load reduction constraint is: In the formula, This represents the maximum load that can be reduced. For a response rate that can reduce the load; This represents the maximum number of load shedding events within a single cycle. The transferable load constraint is: In the formula, This represents the maximum value of the transferable load. Furthermore, the load shifting constraint is based on signed contracts and shifts within fixed time periods during the day to reduce the constraint of system peak-to-valley differences. If determined by time periods... Shift to time period ,but: The energy storage constraint is: In the formula, The state of charge of energy storage; and To improve the charging and discharging efficiency of energy storage; For energy storage capacity; For time intervals; and These represent the maximum and minimum values ​​of the energy storage state of charge. This represents the energy storage state of charge at the end of the scheduling cycle. The energy storage capacity at the beginning of the scheduling cycle; This represents the maximum charging and discharging power of the energy storage system. The intelligent agents are supply-side intelligent agents and demand-side intelligent agents. The supply-side intelligent agents include traditional generator sets and wind turbine sets, while the demand-side intelligent agents include load reduction, load shifting, and energy storage. An intelligent agent system includes a state space, an action space, and a reward function; The state space includes the state space of the supply-side agent and the state space of the demand-side agent; The state space of the supply-side agent is: The state space of the demand-side agent is: ; Among them, the information provided by the energy internet environment to various intelligent agents enables traditional generating units to output power. Wind turbine output State of charge of energy storage and load power ; The action space includes the action space of the supply-side agent and the action space of the demand-side agent. The action space of the supply-side intelligent agent is: Among them, the change in output of traditional units wind curtailment , The action space of the demand-side agent is: Among them, the load reduction amount is selected. Load shift amount Energy storage charging power ; The reward function is divided into two parts: one part is the negative of the cost function when the constraint is satisfied, and the other part is the penalty generated when the constraint is violated. The reward function for the supply-side agent is: In the formula, The penalty item established for violating the corresponding supply-side constraints is a relatively large positive value; The reward function for the demand-side agent is: In the formula, The penalty for violating the demand-side constraints of the response is a relatively large positive value; Each agent evaluates the policy based on the reward signal it receives, and this process is repeated over and over again, so the final policy obtained is the one that maximizes long-term rewards, specifically: First, the policy parameters of the n+1 agents are used... The gradient update process of a single agent's policy network can be represented as follows: In the formula, To estimate the network's state-action function, which represents the potential reward for taking an action in a given state, and is used to calculate the loss function; This refers to a set of experience data retrieved from the experience pool. The formula for calculating the loss function is as follows: In the formula, For the corresponding target Q value, For the state-action function of a real-world network, This is the reward decay coefficient; Each agent's action network acquires only local state data and learns based on the judgments of the value network. The action network modifies the probability of each action being selected based on the judgments given by the value network and selects an action according to that probability. The action reality network within the action network extracts historical data from the experience pool, selects the next state as input, and selects the corresponding optimal action as output. Both the action reality network and the state reality network use the following soft update method for parameter iteration: 。