Power grid operation cost determination method, apparatus and device, and readable storage medium

By constructing the objective function and constraints of the target power grid, the target charging and discharge capacity and operating cost of the power grid under V2G technology is determined, which solves the problem of lack of uniformity in determining the operating cost of the power grid, and realizes the scientific and reasonable charges of electric vehicle service fees.

CN119026835APending Publication Date: 2024-11-26SHENZHEN POWER SUPPLY BUREAU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411032247.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

There is a lack of a unified method in the prior art to determine the operating costs of the power grid under the support of V2G technology, resulting in inconsistent charging standards for electric vehicle service fees.

Method used

By constructing the objective function of the target power grid, considering the constraints of the generator set operation parameters and vehicle power usage, the target charging and discharge capacity and operating cost are determined, and the target operating cost of the power grid within the preset period is calculated.

Benefits of technology

It has achieved the determination of the operating cost of the power grid in the V2G technology scenario, and provided scientific and reasonable electric vehicle service fee charging standards to ensure cost accuracy and rationality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026835A_ABST
    Figure CN119026835A_ABST
Patent Text Reader

Abstract

The invention relates to a power grid operation cost determination method and device, equipment and a readable storage medium. The method comprises the following steps: constructing a target function corresponding to a target power grid by taking the lowest operation cost of the target power grid in a preset time period as a target; determining a constraint condition corresponding to the target function; wherein the constraint condition is used for constraining the operation parameters of different generator sets in the target power grid and the electric quantity use condition of the vehicle connected to the target power grid; according to the target function and the constraint condition, determining the target charge and discharge quantity of the vehicle accessed to the target power grid; and determining the target operation cost of the target power grid in the preset time period according to the target charging and discharging quantity. By adopting the method, the operation cost generated by the power grid in the scene of supporting the V2G technology can be determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power grid technology, and in particular to a method, device, equipment and readable storage medium for determining power grid operation costs. Background Art

[0002] With the rapid development of electric vehicle technology, electric vehicles are taking up an increasingly larger share of the market. In order to balance the power consumption of electric vehicles and the power supply of the power grid, the vehicle-to-grid (V2G) smart charging technology has emerged, which enables electric vehicles to act as distributed energy storage units and participate in grid regulation in the form of bidirectional charging and discharging.

[0003] The application of V2G has led to different scenarios of electricity consumption, where the power grid charges electric vehicles or the power grid pays electric vehicles. However, since there is no unified method in the market to determine the operating costs of the power grid in the scenario of supporting V2G technology, there is currently no relatively unified charging standard for electric vehicle service fees in the market. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, equipment and readable storage medium for determining the operation cost of a power grid in response to the above technical problems, which can determine the operation cost of the power grid in a scenario supporting V2G technology.

[0005] In a first aspect, the present application provides a method for determining power grid operation costs, comprising:

[0006] Taking the lowest operating cost of the target power grid within a preset period as the goal, construct the objective function corresponding to the target power grid;

[0007] Determine the constraint conditions corresponding to the objective function; wherein the constraint conditions are used to constrain the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid;

[0008] According to the objective function and constraints, the target charge and discharge amount of the vehicle connected to the target power grid is determined;

[0009] According to the target charge and discharge amount, the target operating cost of the target power grid within the preset time period is determined.

[0010] In one of the embodiments, with the goal of minimizing the operating cost of the target power grid within a preset time period, an objective function corresponding to the target power grid is constructed, including: with the goal of minimizing the total cost of electricity production of the target power grid within the preset time period, a first decomposition function corresponding to the target power grid is constructed; with the goal of minimizing the charging and discharging cost of vehicles connected to the target power grid, a second decomposition function corresponding to the target power grid is constructed; with the goal of minimizing the power generation and standby cost of the target power grid within the preset time period, a third decomposition function corresponding to the target power grid is constructed; and the objective function corresponding to the target power grid is constructed based on the first decomposition function, the second decomposition function and the third decomposition function.

[0011] In one of the embodiments, with the goal of minimizing the total electricity production cost of the target power grid within a preset time period, a first decomposition function corresponding to the target power grid is constructed, including: for any moment within the preset time period, according to the target power grid's cleared electricity at the moment and the standard electricity production cost at the corresponding moment, determining the electricity production cost corresponding to the target power grid at the moment; with the goal of minimizing the sum of the electricity production costs corresponding to different moments in the preset time period of the target power grid, a first decomposition function corresponding to the target power grid is constructed.

[0012] In one of the embodiments, a second decomposition function corresponding to the target grid is constructed with the goal of minimizing the charging and discharging cost of vehicles connected to the target grid, including: for any moment within a preset time period, according to the discharge cost and charging cost of the vehicle connected to the target grid at the corresponding moment, determining the charging and discharging cost of the vehicle connected to the target grid at the corresponding moment; and constructing the second decomposition function corresponding to the target grid with the goal of minimizing the sum of the corresponding charging and discharging costs of the vehicles connected to the target grid at different moments within the preset time period.

[0013] In one of the embodiments, with the goal of minimizing the power generation reserve cost of the target power grid within a preset time period, a third decomposition function corresponding to the target power grid is constructed, including: for any moment within the preset time period, according to the first reserve clearing amount and the first reserve cost corresponding to the target power grid at the time, determining the first power generation reserve cost of the target power grid at the corresponding moment; according to the second reserve clearing amount and the second reserve cost corresponding to the target power grid at the time, determining the second power generation reserve cost of the target power grid at the corresponding moment; taking the sum of the first power generation reserve cost and the second power generation reserve cost as the power generation reserve cost corresponding to the target power grid at the time; with the goal of minimizing the sum of the power generation reserve costs corresponding to different moments of the target power grid within the preset time period, constructing the third decomposition function corresponding to the target power grid.

[0014] In one embodiment, the constraint conditions include a first constraint condition and a second constraint condition; the method further includes: taking the sum of the first decomposition function and the second decomposition function as an intermediate function corresponding to the target power grid; determining a first reference charge and discharge amount and a first operating cost of a vehicle connected to the target power grid according to the first constraint condition and the second decomposition function; and, determining a second reference charge and discharge amount and a second operating cost of a vehicle connected to the target power grid according to the first constraint condition and the intermediate function; and, determining a third reference charge and discharge amount and a third operating cost of a vehicle connected to the target power grid according to the second constraint condition and the intermediate function.

[0015] In one embodiment, the method further includes: determining the unit electricity balancing cost of the target power grid within a preset period of time by using the ratio of the first operating cost to the first reference charge and discharge amount; determining the vehicle-grid interaction cost of the target power grid within the preset period of time by using the difference between the third operating cost and the second operating cost and the ratio of the third reference charge and discharge amount; determining the standby cost of the target power grid within the preset period of time by using the difference between the target operating cost and the second operating cost and the ratio of the target charge and discharge amount.

[0016] In a second aspect, the present application also provides a device for determining a power grid operation cost, comprising:

[0017] A function construction module is used to construct an objective function corresponding to the target power grid with the goal of minimizing the operating cost of the target power grid within a preset period of time;

[0018] A constraint determination module is used to determine the constraint conditions corresponding to the objective function; wherein the constraint conditions are used to constrain the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid;

[0019] A charge and discharge amount determination module is used to determine the target charge and discharge amount of the vehicle connected to the target power grid according to the objective function and constraint conditions;

[0020] The operating cost determination module is used to determine the target operating cost of the target power grid within a preset time period according to the target charge and discharge amount.

[0021] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0022] Taking the lowest operating cost of the target power grid within a preset period as the goal, construct the objective function corresponding to the target power grid;

[0023] Determine the constraint conditions corresponding to the objective function; wherein the constraint conditions are used to constrain the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid;

[0024] According to the objective function and constraints, the target charge and discharge amount of the vehicle connected to the target power grid is determined;

[0025] According to the target charge and discharge amount, the target operating cost of the target power grid within the preset time period is determined.

[0026] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0027] Taking the lowest operating cost of the target power grid within a preset period as the goal, construct the objective function corresponding to the target power grid;

[0028] Determine the constraint conditions corresponding to the objective function; wherein the constraint conditions are used to constrain the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid;

[0029] According to the objective function and constraints, the target charge and discharge amount of the vehicle connected to the target power grid is determined;

[0030] According to the target charge and discharge amount, the target operating cost of the target power grid within the preset time period is determined.

[0031] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0032] Taking the lowest operating cost of the target power grid within a preset period as the goal, construct the objective function corresponding to the target power grid;

[0033] Determine the constraint conditions corresponding to the objective function; wherein the constraint conditions are used to constrain the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid;

[0034] According to the objective function and constraints, the target charge and discharge amount of the vehicle connected to the target power grid is determined;

[0035] According to the target charge and discharge amount, the target operating cost of the target power grid within the preset time period is determined.

[0036] The above-mentioned method, device, equipment and readable storage medium for determining the operation cost of the target power grid take the lowest operation cost of the target power grid within a preset period as the goal, construct an objective function corresponding to the target power grid, solve the objective function based on the constraints corresponding to the objective function, obtain the target charge and discharge amount of the vehicle connected to the target power grid, and determine the target operation cost of the target power grid within the preset period based on the target charge and discharge amount. In the above process, since the corresponding constraints are taken into account in the process of solving the objective function, the determined target charge and discharge amount can be made more reasonable, thereby making the target operation cost of the target power grid within the preset period more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A schematic diagram of a flow chart of a method for determining power grid operation cost in one embodiment;

[0039] Figure 2 A schematic diagram of a process for constructing an objective function in one embodiment;

[0040] Figure 3 is a schematic flow chart of the steps of constructing the first decomposition function in one embodiment;

[0041] Figure 4 is a flow chart of the steps of constructing the second decomposition function in one embodiment;

[0042] Figure 5 is a flow chart of the steps of constructing the third decomposition function in one embodiment;

[0043] Figure 6 A schematic diagram of a flow chart of a step of determining an operating cost in one embodiment;

[0044] Figure 7 A schematic flow chart of a step of determining a power grid cost in one embodiment;

[0045] Figure 8 is a structural block diagram of a device for determining power grid operation cost in one embodiment;

[0046] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] In one embodiment, Figure 1 As shown, a method for determining the operation cost of a power grid is provided. This embodiment uses the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0049] S110, constructing an objective function corresponding to the target power grid with the goal of minimizing the operating cost of the target power grid within a preset period of time.

[0050] The target power grid is a power grid that can support V2G technology. The preset period can be determined based on manual experience or through a large number of experiments, and there is no limitation on this. For example, the preset period can be one month or half a year.

[0051] The operating cost of the target power grid includes costs in multiple dimensions, illustratively including power generation costs, operating costs, and dispatching costs. In the context of the target power grid being able to support V2G technology, the operating cost of the target power grid also includes additional operating costs.

[0052] Exemplarily, in this embodiment, the sum of the costs of the target power grid in various dimensions within a preset period of time may be used as the operating cost of the target power grid within the preset period of time.

[0053] S120, determining the constraint conditions corresponding to the objective function.

[0054] Among them, the constraints are used to constrain the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid.

[0055] S130, determining target charge and discharge amounts of vehicles connected to the target power grid according to the objective function and constraint conditions.

[0056] Exemplarily, in this embodiment, the objective function can be solved. During the solution process, the constraint conditions are used as constraints to determine the solution result corresponding to the objective function, and the solution result corresponding to the objective function is used as the target charge amount and target discharge amount of the vehicle connected to the target power grid.

[0057] Optionally, in this embodiment, the objective function can be solved in a variety of ways, for example, the objective scheduling function can be solved based on a particle swarm algorithm or a bird flock algorithm. The objective function can also be solved using a commercial optimization solver, which is not limited.

[0058] S140, determining a target operating cost of the target power grid within a preset period of time according to the target charge and discharge amount.

[0059] Exemplarily, the target charge and discharge amount may be input into a pre-trained target operating cost determination model to obtain the target operating cost of the target power grid within a preset time period.

[0060] Exemplarily, the target charge and discharge amount may be input into the objective function to obtain the target operating cost of the target power grid within a preset period of time.

[0061] In the above-mentioned method for determining the operation cost of the power grid, the target function corresponding to the target power grid is constructed with the lowest operation cost of the target power grid in a preset period as the goal, and the target function is solved based on the constraint conditions corresponding to the target function to obtain the target charge and discharge amount of the vehicles connected to the target power grid, and the target operation cost of the target power grid in the preset period is determined based on the target charge and discharge amount. In the above process, since the corresponding constraint conditions are taken into account in the process of solving the objective function, the determined target charge and discharge amount can be made more reasonable, thereby making the target operation cost of the target power grid in the preset period more accurate.

[0062] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this embodiment, the process of constructing the objective function corresponding to the target power grid is refined.

[0063] See also Figure 2 The steps for constructing the objective function shown include:

[0064] S210, constructing a first decomposition function corresponding to the target power grid with the goal of minimizing the total cost of electricity production of the target power grid within a preset time period.

[0065] Exemplarily, in this embodiment, the product of the total electricity production of the target power grid in the preset period and the unit electricity generation cost can be used as the total electricity generation cost of the target power grid in the preset period.

[0066] S220, constructing a second decomposition function corresponding to the target power grid with the goal of minimizing the charging and discharging cost of vehicles connected to the target power grid.

[0067] Exemplarily, in this embodiment, the sum of the charging cost and the discharging cost of the vehicle connected to the target power grid may be used as the charging and discharging cost of the vehicle connected to the target power grid.

[0068] Exemplarily, in this embodiment, the difference between the charging cost and the discharging cost of the vehicle connected to the target power grid may also be used as the charging and discharging cost of the vehicle connected to the target power grid.

[0069] S230, constructing a third decomposition function corresponding to the target power grid with the goal of minimizing the power generation reserve cost of the target power grid within a preset period of time.

[0070] Exemplarily, in this embodiment, the sum of the standby costs corresponding to different standby dimensions of the target power grid within a preset period of time may be used as the power generation standby cost of the target power grid within the preset period of time.

[0071] S240: construct a target function corresponding to the target power grid according to the first decomposition function, the second decomposition function and the third decomposition function.

[0072] Exemplarily, in this embodiment, the sum of the first decomposition function, the second decomposition function and the third decomposition function may be used as the objective function.

[0073] In the above embodiment, a detailed process of constructing the objective function corresponding to the target power grid is given, so that the process of constructing the objective function is clearer. Further, by constructing different decomposition functions to determine the objective function, the objective function can introduce costs in multiple dimensions, that is, the objective function is more accurate.

[0074] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this embodiment, the process of constructing the first decomposition function corresponding to the target power grid is described in detail.

[0075] See also Figure 3 The steps for constructing the first decomposition function shown include:

[0076] S310, for any moment in a preset time period, according to the cleared power of the target power grid at that moment and the standard power production cost at the corresponding moment, determine the corresponding power production cost of the target power grid at that moment.

[0077] Among them, the standard electricity generation cost can represent the electricity quotation of each unit, which can be determined based on manual experience, through a large number of experiments, or through historical electricity quotation data, and there is no limitation on this.

[0078] Exemplarily, in this embodiment, the target power grid's cleared electricity at different times and the standard electricity production cost at the corresponding times can be pre-recorded in a preset database, and when the first decomposition function is constructed, the target power grid's cleared electricity at that time and the standard electricity production cost at that time are obtained from the corresponding preset database. Further, for any moment, the product of the cleared electricity at that moment and the standard electricity generation cost is used as the electricity production cost corresponding to the target power grid at that moment.

[0079] S320, constructing a first decomposition function corresponding to the target power grid with the goal of minimizing the sum of the electricity production costs corresponding to the target power grid at different times within a preset time period.

[0080] Exemplarily, in this embodiment, the first decomposition function corresponding to the target power grid may be as follows:

[0081] ;

[0082] In the formula, Represents the electricity quotation vector of the unit at time t; is the power clearing energy of the direct-controlled unit at time t; T is the length of the preset time period.

[0083] In the above embodiment, the process of constructing the first decomposition function corresponding to the target power grid is introduced in detail, so that the process of constructing the first decomposition function is clearer, and a foundation is laid for constructing the target function corresponding to the target power grid.

[0084] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this embodiment, the process of constructing the second decomposition function corresponding to the target power grid is described in detail.

[0085] See also Figure 4 The steps for constructing the second decomposition function shown include:

[0086] S410, for any moment in a preset time period, according to the discharge cost and the charging cost of the vehicle connected to the target power grid at the corresponding moment, determine the charging and discharging cost of the vehicle connected to the target power grid at the corresponding moment.

[0087] The discharge cost and charging cost of the vehicle connected to the target power grid at different times can be determined according to the unit charge and discharge quotation and the charge and discharge amount of the vehicle connected at that time. The unit charge and discharge quotation at different times is predetermined data, which is stored in a preset location. When the second decomposition function is constructed, the discharge cost and charging cost of the vehicle connected to the target power grid at that time are obtained from the corresponding preset location.

[0088] Exemplarily, in this embodiment, the difference between the product of the unit discharge quotation and the discharge amount and the product of the unit charging quotation and the charging amount at this moment can be used as the charging and discharging cost of the vehicle connected to the target power grid at this moment.

[0089] S420, constructing a second decomposition function corresponding to the target power grid with the goal of minimizing the sum of the charging and discharging costs corresponding to the vehicles connected to the target power grid at different times within a preset time period.

[0090] Exemplarily, in this embodiment, the second decomposition function corresponding to the target power grid may be as follows:

[0091] ;

[0092] In the formula, Represents the discharge / charge quote for electric vehicles; represents the electric vehicle discharge vector; represents the charging vector of the electric vehicle.

[0093] In the above embodiment, the process of constructing the second decomposition function corresponding to the target power grid is introduced in detail, so that the process of constructing the second decomposition function is clearer, and a foundation is laid for constructing the target function corresponding to the target power grid.

[0094] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this embodiment, the process of constructing the third decomposition function corresponding to the target power grid is described in detail.

[0095] See also Figure 5 The steps for constructing the third decomposition function shown include:

[0096] S510, for any moment in a preset time period, according to the first reserve clearing amount and the first reserve cost corresponding to the target power grid at the moment, determine the first power generation reserve cost of the target power grid at the corresponding moment.

[0097] Among them, the first standby clearing quantity is the increased standby clearing quantity of the generator set; the first standby cost is the unit increased standby cost of the generator set.

[0098] Exemplarily, in this embodiment, for any moment, the product of the first reserve clearing amount and the first reserve cost at that moment can be used as the first power generation reserve cost of the target power grid at that moment.

[0099] S520, determining a second power generation reserve cost of the target power grid at a corresponding moment according to a second reserve clearing amount and a second reserve cost corresponding to the target power grid at a moment.

[0100] Among them, the first standby clearance amount is the downward standby clearance amount of the generating set; the second standby cost is the unit downward standby cost of the generating set.

[0101] Exemplarily, in this embodiment, at any moment, the product of the second reserve clearing amount and the second reserve cost at that moment can be used as the second power generation reserve cost of the target power grid at that moment.

[0102] S530: Taking the sum of the first power generation reserve cost and the second power generation reserve cost as the power generation reserve cost corresponding to the target power grid at the time.

[0103] S540, constructing a third decomposition function corresponding to the target power grid with the goal of minimizing the sum of the power generation reserve costs corresponding to the target power grid at different times within a preset time period.

[0104] Exemplarily, in this embodiment, the third decomposition function corresponding to the target power grid may be as follows:

[0105] ;

[0106] In the formula, It represents the reserve quotation of the unit at time t, that is, the first reserve cost; It represents the upward reserve clearing amount of the unit at time t, that is, the first reserve clearing amount; represents the unit's reserve quotation at time t, i.e., the second reserve cost; It indicates the downward adjustment of the spare clearance amount of the unit at time t, that is, the second spare clearance amount.

[0107] In the above embodiment, the process of constructing the third decomposition function corresponding to the target power grid is introduced in detail, so that the process of constructing the third decomposition function is clearer, and a foundation is laid for constructing the target function corresponding to the target power grid.

[0108] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this embodiment, the target operating cost of the target power grid in a preset period includes multiple dimensions, and this embodiment introduces determining the operating costs of the target power grid in different dimensions corresponding to the preset period.

[0109] See also Figure 6 The steps for determining the operating cost shown include:

[0110] S610: Taking the sum of the first decomposition function and the second decomposition function as an intermediate function corresponding to the target power grid.

[0111] Exemplarily, in this embodiment, the intermediate function may be as follows:

[0112] ;

[0113] In the formula, Represents the electricity quotation vector of the unit at time t; is the power clearing energy of the direct-controlled unit at time t; T is the length of the preset time period; Represents the discharge / charge quote for electric vehicles; represents the electric vehicle discharge vector; represents the charging vector of the electric vehicle; Represents the electric vehicle’s state of charge (SOC) vector.

[0114] S620: Determine a first reference charge and discharge amount and a first operating cost of a vehicle connected to the target power grid according to the first constraint condition and the second decomposition function.

[0115] Among them, the first constraint condition can be a predetermined condition that constrains the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid. The first reference charge and discharge amount is the target charge and discharge amount of the vehicle connected to the target power grid determined based on the first constraint condition and the second decomposition function. The first operating cost is the operating cost of the target power grid within a preset time period determined based on the first reference charge and discharge amount and the second decomposition function. It can be understood that the first reference charge and discharge amount is different from the target charge and discharge amount, and the first operating cost is also different from the target operating cost.

[0116] Exemplarily, the first constraint may include:

[0117] (1) Considering the energy balance constraint of electric vehicles: At each node, the sum of the electric energy dispatched by the system from the direct-controlled units of the grid plus the net injection power of electric vehicles should be equal to the sum of the basic load of the grid, that is:

[0118]

[0119] In the formula, and are the discharging and charging power vectors of the electric vehicle at time t; is the power clearing energy of the direct-controlled unit at time t; is the basic load of the grid node at time t; T is the length of the preset period.

[0120] (2) System line transmission capacity constraint: The power flow of a branch should not exceed the maximum transmission capacity of the branch, that is:

[0121]

[0122] In the formula, and are the discharging and charging power vectors of the electric vehicle at time t; is the clearing power energy of the direct-controlled unit of the power grid at time t; is the basic load of the grid node at time t; T is the length of the preset period; is the generator-grid node association matrix.

[0123] (3) Capacity constraints and ramp rate constraints of the unit:

[0124] The amount of electricity cleared by the grid-controlled units cannot exceed the upper capacity limit of the units, that is:

[0125]

[0126] In the formula, is the clearing power energy of the direct-controlled unit of the power grid at time t; is the upper limit of the capacity of the power grid directly controlled unit; T is the length of the preset time period.

[0127] (4) Electric vehicle related constraints, including battery capacity constraints and SOC related constraints, are as follows:

[0128] Each electric vehicle cannot be in charging and discharging state at the same time:

[0129]

[0130] In the formula, and are the discharge and charging power vectors of the electric vehicle at time t; T is the length of the preset time period.

[0131] At each moment, the charging amount and power generation amount of electric vehicles cannot exceed the upper limit at that moment:

[0132]

[0133]

[0134] In the formula, and are the discharging and charging power vectors of the electric vehicle at time t; is the upper limit of power consumption at time t; T is the length of the preset time period.

[0135] In addition, in order to avoid overcharging or over-discharging of electric vehicles, the state of charge of electric vehicles The upper and lower limits must not be exceeded:

[0136]

[0137] In the formula, and Provide upper and lower limits of the state of charge (SOC) of the electric vehicle for each period; is the state of charge of the electric vehicle at time t.

[0138] At the same time, the state of charge and charge and discharge amount of the electric vehicle at adjacent moments are constrained by the SOC equation:

[0139]

[0140] In the formula, is the electric vehicle charging / discharging efficiency vector; is the state of charge of the electric vehicle at time t-1; and are the discharge and charging power vectors of each electric vehicle at time t; T is the length of the preset time period.

[0141] Based on the first constraint condition and the second decomposition function, a first reference charge capacity is determined. , the first reference discharge capacity and first operating cost .

[0142] S630: Determine a second reference charge and discharge amount and a second operating cost of the vehicle connected to the target power grid according to the first constraint condition and the intermediate function.

[0143] The second reference charge and discharge amount is the target charge and discharge amount of the vehicle connected to the target power grid determined based on the first constraint condition and the intermediate function. The second operating cost is the operating cost of the target power grid within a preset period determined based on the second reference charge and discharge amount and the intermediate function. It can be understood that the second reference charge and discharge amount is different from the target charge and discharge amount, and the second operating cost is also different from the target operating cost.

[0144] Exemplarily, the first constraint condition may also include:

[0145] (1) Energy balance constraint: At each node, the sum of the electric energy dispatched by the system from the direct-controlled units of the power grid should be equal to the sum of the basic load of the power grid, that is:

[0146]

[0147] In the formula, is the clearing power energy of the direct-controlled unit of the power grid at time t; is the basic load of the grid node at time t; T is the length of the preset period.

[0148] (2) System line transmission capacity constraint: The power flow of a branch should not exceed the maximum transmission capacity of the branch, that is:

[0149]

[0150] In the formula, is the generator-grid node association matrix; is the clearing power energy of the direct-controlled unit of the power grid at time t; is the basic load of the grid node at time t; T is the length of the preset period.

[0151] (3) Physical constraints of the unit itself, including capacity constraints and ramp rate constraints of the unit:

[0152] The amount of electricity cleared by the grid-controlled units cannot exceed the upper capacity limit of the units, that is:

[0153]

[0154] In the formula, is the clearing power energy of the direct-controlled unit of the power grid at time t; is the upper limit of the capacity of the power grid directly controlled unit; T is the length of the preset time period.

[0155] At the same time, the amount of electricity cleared by the unit at any adjacent time cannot exceed the unit's own climbing capacity, that is:

[0156]

[0157] is the lower limit of the climbing capability of the corresponding unit; is the upper limit of the climbing capacity of the corresponding unit; is the power clearing energy of the direct-controlled unit at time t; T is the length of the preset time period.

[0158] Based on the first constraint and the intermediate function, the second reference charge capacity is determined , the second reference discharge capacity and second operating costs .

[0159] S640: Determine a third reference charge / discharge amount and a third operating cost of the vehicle connected to the target power grid according to the second constraint condition and the intermediate function.

[0160] Among them, the second constraint condition can be a predetermined condition that constrains the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid. The second constraint condition is at least partially different from the first constraint condition. The third reference charge and discharge amount is the target charge and discharge amount of the vehicle connected to the target power grid determined based on the second constraint condition and the intermediate function. The third operating cost is the operating cost of the target power grid within a preset time period determined based on the third reference charge and discharge amount and the intermediate function. It can be understood that the third reference charge and discharge amount is different from the target charge and discharge amount, and the third operating cost is also different from the target operating cost.

[0161] Exemplarily, the second constraint may include:

[0162] (1) Determine the constraints of the model:

[0163] These include public constraints such as energy balance and transmission capacity constraints, and individual resource constraints such as grid-controlled unit capacity constraints and electric vehicle physical constraints, as follows:

[0164] Energy balance constraint considering grid loss: At each node, the sum of the electric energy dispatched by the system from the grid-controlled units plus the net injected power of electric vehicles should be equal to the sum of the grid base load, that is:

[0165] ;

[0166] ;

[0167] In the formula, represents the line transmission loss rate, When the electric vehicle is in the charging state, The power grid needs to reverse power. Due to line losses, more power generation from direct-controlled units needs to be dispatched. Meet the basic load of the power grid and the charging load requirements of electric vehicles. When the electric vehicle is in the discharge state, that is, At this time, the equivalent power generation considering the network loss is ; and are the discharge and charging power vectors of the electric vehicle at time t, respectively; T is the length of the preset time period; is the clearing power energy of the direct-controlled unit of the power grid at time t; is the basic load of the grid node at time t.

[0168] (2) Electric vehicle related constraints, including battery capacity constraints and SOC related constraints, as follows:

[0169] Each electric vehicle cannot be in charging and discharging state at the same time:

[0170]

[0171] In the formula, and are the discharge and charging power vectors of the electric vehicle at time t; T is the length of the preset time period.

[0172] At each moment, the charging amount and power generation amount of electric vehicles cannot exceed the upper limit at that moment:

[0173]

[0174]

[0175] In the formula, and are the discharging and charging power vectors of the electric vehicle at time t; is the upper limit of power consumption at time t; T is the length of the preset time period.

[0176] In addition, in order to avoid overcharging or over-discharging of electric vehicles, the state of charge of electric vehicles The upper and lower limits must not be exceeded:

[0177]

[0178] In the formula, and Provide upper and lower limits of the state of charge (SOC) of electric vehicles for each period; is the state of charge of the electric vehicle at time t.

[0179] At the same time, the state of charge and charge and discharge amount of the electric vehicle at adjacent moments are constrained by the SOC equation:

[0180]

[0181] In the formula, is the electric vehicle charging / discharging efficiency vector; is the state of charge of the electric vehicle at time t-1; and are the discharge and charging power vectors of each electric vehicle at time t; T is the length of the preset time period.

[0182] It should be noted that the second constraint condition may also include the first constraint condition shown in S630.

[0183] Based on the above second constraint condition and the intermediate function, determine the third reference charge capacity , the third reference discharge capacity and third operating costs .

[0184] In the above embodiment, based on different constraints and different functions, the reference charging amount, reference discharging amount and operating cost corresponding to the target power grid in different dimensions are solved, so that the cost-related data of the determined target power grid is richer.

[0185] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this embodiment, the process of determining the cost of the target power grid in different dimensions within a preset period is introduced. In the scenario where there is a determination of the power grid charging standard, the cost of the target power grid in different dimensions within the preset period can be used as the charging basis in the corresponding scenario.

[0186] See also Figure 7 The steps for determining the grid cost shown include:

[0187] S710: Determine a unit electricity balancing cost of a target power grid within a preset period of time by using a ratio of a first operating cost to a first reference charge and discharge amount.

[0188] Among them, the unit electricity balancing cost of the target power grid can be used as the basis for calculating the additional cost of the target power grid per kilowatt-hour.

[0189] Exemplarily, in this embodiment, the unit electricity balancing cost of the target power grid may be as follows:

[0190] ;

[0191] In the formula, The unit electricity balancing cost of the target power grid within a preset period; is the first operating cost of the target power grid within a preset period; is the first reference charge amount of the target power grid at time t; is the first reference discharge capacity of the target power grid at time t.

[0192] S720: Determine the vehicle-grid interaction cost of the target power grid within a preset period of time by taking the difference between the third operating cost and the second operating cost and the ratio of the third reference charge and discharge amount.

[0193] Among them, the vehicle-grid interaction cost of the target power grid can be used as the basis for charging the network loss cost of the target power grid.

[0194] Exemplarily, in this embodiment, the vehicle-grid interaction cost of the target power grid may be as follows:

[0195] ;

[0196] In the formula, is the vehicle-grid interaction cost of the target power grid within the preset period; is the third operating cost of the target power grid within the preset period; is the second operating cost of the target power grid within the preset period; is the second reference charging amount of the target power grid at time t; is the second reference discharge capacity of the target power grid at time t.

[0197] S730: Determine the backup cost of the target power grid within a preset period of time by taking the difference between the target operating cost and the second operating cost and the ratio of the target charge and discharge amount.

[0198] Among them, the reserve cost of the target power grid can be used as the basis for charging the reserve service cost of the target power grid.

[0199] Exemplarily, in this embodiment, the backup cost of the target power grid may be as follows:

[0200] ;

[0201] In the formula, is the reserve cost of the target power grid within a preset period; is the target operating cost of the target power grid within a preset period; is the second operating cost of the target power grid within the preset period; is the target charging capacity of the target grid at time t; is the target discharge capacity of the target power grid at time t.

[0202] It should be noted that, in this embodiment, the objective function may be as follows:

[0203] ;

[0204] In the formula, Represents the electricity quotation vector of the unit at time t; is the power clearing energy of the direct-controlled unit at time t; Represents the discharge / charge quote for electric vehicles; represents the electric vehicle discharge vector; represents the charging vector of the electric vehicle; It represents the reserve quotation of the unit at time t, that is, the first reserve cost; It represents the upward reserve clearing amount of the unit at time t, that is, the first reserve clearing amount; represents the unit's reserve quotation at time t, i.e., the second reserve cost; It indicates the downward adjustment of the spare clearance amount of the unit at time t, that is, the second spare clearance amount; T is the length of the preset time period.

[0205] It should be noted that in the process of determining the target operating cost, the constraints based on the above-mentioned first constraint and second constraint may include the following third constraint:

[0206] (1) System reserve demand constraint: The reserve of the unit clearing cannot be less than the reserve demand specified by the system operator, that is:

[0207] ;

[0208] ;

[0209] in, and are the upward reserve and downward reserve clearing vectors of the generator, considering the randomness of the charging and discharging behavior of electric vehicles, and the system upward regulation demand Set to the positive deviation between the real-time net load curve and the day-ahead predicted net load curve (less generation, more use), and adjust demand downward It is the negative deviation (more generation and less use) between the real-time net load curve and the day-ahead predicted net load curve.

[0210] (2) Physical constraints of the unit itself:

[0211] The downward reserve for clearing shall not exceed the amount of electricity cleared at the same time, and the upward reserve and electricity for clearing shall not exceed the maximum generating capacity of the unit, that is:

[0212] ;

[0213] In the formula, and They are the upward reserve and downward reserve clearing quantity vectors of the generator respectively; is the clearing power energy of the direct-controlled unit of the power grid at time t; is the upper limit of the capacity of the power grid directly controlled unit; T is the length of the preset time period.

[0214] Due to the inertia of the directly controlled units of the power grid, the upward and downward reserve of the unit clearing cannot exceed the maximum reserve capacity of the unit, that is:

[0215] ;

[0216] ;

[0217] In the formula, The vector for the upward reserve clearing of the generator; Raising the reserve ceiling for unit clearing; is the reserve clearing quantity vector for the generator; The lower limit of reserve is lowered to clear the unit.

[0218] At the same time, the upward and downward reserve of the unit clearing cannot exceed the unit's climbing capacity within the reserve response time specified by the system operator, that is:

[0219] ;

[0220] ;

[0221] In the formula, The vector for the upward reserve clearing of the generator; is the reserve clearing quantity vector for the generator; is the clearing power energy of the direct-controlled unit of the power grid at time t; is the power clearing energy of the direct-controlled unit at time t-1; T is the length of the preset time period; It is the maximum upward / downward climbing capability vector of the unit.

[0222] In the above embodiment, the operating costs of the target power grid in different dimensions are determined, so that the target power grid can formulate a charging strategy.

[0223] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0224] Based on the same inventive concept, the embodiment of the present application also provides a power grid operation cost determination device for implementing the power grid operation cost determination method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more power grid operation cost determination device embodiments provided below can refer to the limitations of the power grid operation cost determination method above, and will not be repeated here.

[0225] In an exemplary embodiment, Figure 8 As shown, a power grid operation cost determination device is provided, comprising: a function construction module 810, a constraint determination module 820, a charge and discharge amount determination module 830 and an operation cost determination module 840, wherein:

[0226] The function construction module 810 is used to construct an objective function corresponding to the target power grid with the goal of minimizing the operating cost of the target power grid within a preset period of time.

[0227] The constraint determination module 820 is used to determine the constraint conditions corresponding to the objective function.

[0228] Among them, the constraints are used to constrain the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid.

[0229] The charge and discharge amount determination module 830 is used to determine the target charge and discharge amount of the vehicle connected to the target power grid according to the objective function and the constraint conditions.

[0230] The operation cost determination module 840 is used to determine the target operation cost of the target power grid within a preset period of time according to the target charge and discharge amount.

[0231] In one embodiment, the function construction module 810 includes a first construction unit, which is used to construct a first decomposition function corresponding to the target power grid with the goal of minimizing the total cost of electricity production of the target power grid within a preset time period; a second construction unit, which is used to construct a second decomposition function corresponding to the target power grid with the goal of minimizing the charging and discharging cost of vehicles connected to the target power grid; a third construction unit, which is used to construct a third decomposition function corresponding to the target power grid with the goal of minimizing the power generation and standby cost of the target power grid within a preset time period; and a fourth construction unit, which is used to construct the target function corresponding to the target power grid based on the first decomposition function, the second decomposition function and the third decomposition function.

[0232] In one embodiment, the first construction unit includes a first determination subunit, which is used to determine, for any moment within a preset time period, the corresponding electricity production cost of the target power grid at a moment in time according to the cleared electricity of the target power grid at the moment in time and the standard electricity production cost at the corresponding moment in time; the first construction subunit is used to construct a first decomposition function corresponding to the target power grid with the goal of minimizing the sum of the corresponding electricity production costs of the target power grid at different moments in the preset time period.

[0233] In one embodiment, the second construction unit includes a second determination subunit, which is used to determine, for any moment within a preset time period, the charging and discharging cost of the vehicle connected to the target power grid at the corresponding moment according to the discharge cost and charging cost of the vehicle connected to the target power grid at the moment; the second construction subunit is used to construct a second decomposition function corresponding to the target power grid with the goal of minimizing the sum of the corresponding charging and discharging costs of the vehicles connected to the target power grid at different moments within the preset time period.

[0234] In one embodiment, the third construction unit includes a third determination subunit, which is used to determine, for any moment within a preset time period, the first power generation reserve cost of the target power grid at the corresponding moment according to the first reserve clearance amount and the first reserve cost corresponding to the target power grid at the moment; a fourth determination subunit, which is used to determine the second power generation reserve cost of the target power grid at the corresponding moment according to the second reserve clearance amount and the second reserve cost corresponding to the target power grid at the moment; a fifth determination subunit, which is used to take the sum of the first power generation reserve cost and the second power generation reserve cost as the power generation reserve cost corresponding to the target power grid at the moment; the third construction subunit is used to construct a third decomposition function corresponding to the target power grid with the goal of minimizing the sum of the power generation reserve costs corresponding to different moments in the preset time period of the target power grid.

[0235] In one embodiment, the constraints include a first constraint and a second constraint, and the power grid operation cost determination device also includes a cost determination module, including a function building unit, which is used to use the sum of the first decomposition function and the second decomposition function as an intermediate function corresponding to the target power grid; a first cost determination unit, which is used to determine the first reference charge and discharge amount and the first operation cost of the vehicle connected to the target power grid according to the first constraint and the second decomposition function; a second cost determination unit, which is used to determine the second reference charge and discharge amount and the second operation cost of the vehicle connected to the target power grid according to the first constraint and the intermediate function; and a third cost determination unit, which is used to determine the third reference charge and discharge amount and the third operation cost of the vehicle connected to the target power grid according to the second constraint and the intermediate function.

[0236] In one embodiment, the cost determination module also includes a balancing cost determination unit, which is used to determine the unit electricity balancing cost of the target power grid within a preset period of time by using the ratio of the first operating cost to the first reference charge and discharge amount; an interaction cost determination unit, which is used to determine the vehicle-grid interaction cost of the target power grid within a preset period of time by using the difference between the third operating cost and the second operating cost and the ratio of the third reference charge and discharge amount; and a standby cost determination unit, which is used to determine the standby cost of the target power grid within a preset period of time by using the difference between the target operating cost and the second operating cost and the ratio of the target charge and discharge amount.

[0237] Each module in the above-mentioned power grid operation cost determination device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0238] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig. 9As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a method for determining the operating cost of a power grid is implemented.

[0239] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0240] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0241] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0242] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0243] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0244] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0245] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for determining power grid operation costs, characterized in that: The method comprises: Taking the lowest operating cost of the target power grid within a preset period as the goal, constructing an objective function corresponding to the target power grid; Determining the constraint conditions corresponding to the objective function; wherein the constraint conditions are used to constrain the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid; Determining target charge and discharge amounts of vehicles connected to the target power grid according to the objective function and the constraint conditions; A target operating cost of the target power grid within the preset time period is determined according to the target charge and discharge amount.

2. The method according to claim 1, characterized in that The objective function corresponding to the target power grid is constructed with the lowest operating cost of the target power grid within a preset period as the objective, including: Taking the total cost of electricity production of the target power grid within a preset period as the lowest as the goal, constructing a first decomposition function corresponding to the target power grid; Taking the lowest charging and discharging cost of vehicles connected to the target power grid as the goal, constructing a second decomposition function corresponding to the target power grid; Taking the lowest power generation standby cost of the target power grid within a preset period as the goal, constructing a third decomposition function corresponding to the target power grid; An objective function corresponding to the target power grid is constructed according to the first decomposition function, the second decomposition function and the third decomposition function.

3. The method according to claim 2, characterized in that The step of constructing a first decomposition function corresponding to the target power grid with the goal of minimizing the total cost of electricity production of the target power grid within a preset period of time includes: For any moment within the preset time period, according to the cleared power of the target power grid at the moment and the standard power production cost at the corresponding moment, determine the corresponding power production cost of the target power grid at the moment; With the goal of minimizing the sum of the electricity production costs corresponding to the target power grid at different times within a preset time period, a first decomposition function corresponding to the target power grid is constructed.

4. The method according to claim 2, characterized in that: The second decomposition function corresponding to the target power grid is constructed with the goal of minimizing the charging and discharging cost of the vehicles connected to the target power grid, including: For any moment within a preset time period, according to the discharge cost and charging cost of the vehicle connected to the target power grid at the moment, determine the charging and discharging cost of the vehicle connected to the target power grid at the corresponding moment; With the goal of minimizing the sum of the charging and discharging costs corresponding to the vehicles connected to the target power grid at different times within a preset time period, a second decomposition function corresponding to the target power grid is constructed.

5. The method according to claim 2, characterized in that: The step of constructing a third decomposition function corresponding to the target power grid with the lowest power generation standby cost of the target power grid within a preset period as a goal includes: For any moment within a preset time period, according to the first reserve clearing amount and the first reserve cost corresponding to the target power grid at the moment, determine the first power generation reserve cost of the target power grid at the corresponding moment; Determine the second power generation reserve cost of the target power grid at the corresponding moment according to the second reserve clearing amount and the second reserve cost corresponding to the target power grid at the moment; The sum of the first power generation reserve cost and the second power generation reserve cost is used as the power generation reserve cost corresponding to the target power grid at the time; With the goal of minimizing the sum of the power generation reserve costs corresponding to the target power grid at different times within a preset time period, a third decomposition function corresponding to the target power grid is constructed.

6. The method according to claim 2, characterized in that The constraint condition includes a first constraint condition and a second constraint condition; the method further includes: Using the sum of the first decomposition function and the second decomposition function as an intermediate function corresponding to the target power grid; Determining a first reference charge / discharge amount and a first operating cost of the vehicle connected to the target power grid according to the first constraint condition and the second decomposition function; and Determining a second reference charge and discharge amount and a second operating cost of the vehicle connected to the target power grid according to the first constraint condition and the intermediate function; and According to the second constraint condition and the intermediate function, a third reference charge and discharge amount and a third operating cost of the vehicle connected to the target power grid are determined.

7. The method according to claim 6, characterized in that The method further comprises: Determine the unit electricity balancing cost of the target power grid within the preset time period by using the ratio of the first operating cost to the first reference charge and discharge amount; Determine the vehicle-grid interaction cost of the target power grid within the preset time period by using the difference between the third operating cost and the second operating cost and the ratio of the third reference charge and discharge amount; The backup cost of the target power grid within the preset time period is determined by taking the difference between the target operating cost and the second operating cost and the ratio of the target charge and discharge amount.

8. A device for determining power grid operation cost, characterized in that: The device comprises: A function construction module, used to construct an objective function corresponding to the target power grid with the lowest operating cost of the target power grid within a preset period as the goal; A constraint determination module, used to determine the constraint conditions corresponding to the objective function; wherein the constraint conditions are used to constrain the operating parameters of different generator sets in the target power grid and the power usage of vehicles connected to the target power grid; A charge and discharge amount determination module, used to determine a target charge and discharge amount of the vehicle connected to the target power grid according to the objective function and the constraint condition; The operating cost determination module is used to determine the target operating cost of the target power grid within the preset time period according to the target charge and discharge amount.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.