A method and system for optimizing resource allocation problem in power spot market
By dividing the relaxed solution of the safety-constrained unit combination problem into a set of branch variables and constructing a cutting plane combination, the problem of low traversal efficiency of the branch-and-bound scheme in the power spot market is solved, and the solution accuracy and stability are improved.
Patent Information
- Application Number
- CN202410704935.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-03
AI Technical Summary
In the existing technology, the branch-and-bound scheme needs to traverse a large number of binary variables ineffectively in the power spot market optimization, resulting in low solution convergence speed, accuracy and stability.
By dividing the relaxed solution of the safety constrained unit combination problem into two branch variable sets, and constructing multiple cutting plane combinations to form branch and bound nodes, optimization is performed to determine the optimal solution.
It effectively reduces the problem solving scale, reduces the search space, improves the solution convergence speed and accuracy, and enhances stability.
Smart Images

Figure CN118279087B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power data optimization, and in particular to a method and system for optimizing resource allocation problems in a power spot market. Background Art
[0002] With the deepening of the reform of the electricity spot trading market, the scale of the optimization problem of resource allocation in the electricity spot market continues to expand, and the requirements for solution efficiency are becoming more and more stringent. At present, the optimization problem of the electricity market is mainly solved by the branch-and-bound scheme. The branch-and-bound scheme adopted by the current general mathematical programming solver is mainly to fix the non-integer binary variables in the relaxation problem one by one to the corresponding binary boundary traversal search for the optimal solution. Although the solver will design a large number of branch rules with certain effects on all scenario problems in branch selection and sorting to ensure that the branch-and-bound method is applicable to industrial production scenarios, the design of these branch selection rules is difficult to effectively utilize the problem characteristics in the power field. At the same time, in the special optimization scenario of power market optimization, due to the existence of a large number of binary variables to describe the operation mode of the power market, the general method often needs to traverse a large number of binary variables ineffectively to find effective branches and improve the optimality of the lower bound verification of the objective function, which easily leads to low convergence speed, solution accuracy and convergence stability. Summary of the invention
[0003] The present invention provides a method and system for optimizing resource allocation problems in the electricity spot market, which solves the technical problem that the general method of the branch and bound scheme in the prior art often requires invalid traversal of a large number of binary variables to find effective branches and improve the optimality of the lower bound verification of the objective function, resulting in low solution convergence speed, solution accuracy and convergence stability.
[0004] In view of this, a first aspect of the present invention provides a method for optimizing resource allocation in a power spot market, comprising the following steps:
[0005] By comparing all the relaxed solutions of the safety-constrained unit commitment problem with the preset threshold parameter, all the relaxed solutions are divided into two branch variable sets according to the comparison results;
[0006] Constructing a plurality of cutting planes corresponding to the two branch variable sets respectively;
[0007] Performing cross-combination between sets on a plurality of cutting planes corresponding to the two branch variable sets, respectively, to obtain a plurality of cutting plane combinations;
[0008] Combining the safety-constrained unit combination problem with a plurality of the cutting plane combinations to form a plurality of branch-and-bound nodes;
[0009] Optimizing and solving the plurality of branch and bound nodes to determine the optimal solution to the safety constrained unit combination problem.
[0010] Preferably, the step of comparing all the relaxed solutions to the safety constrained unit commitment problem with a preset threshold parameter and dividing all the relaxed solutions into two branch variable sets according to the comparison result specifically includes:
[0011] By comparing the relaxation solutions of all binary decision variables of the safety-constrained unit commitment problem with the preset threshold parameters, all relaxation solutions are divided into two branch variable sets according to the comparison results;
[0012] Among them, one branch variable set includes all relaxation solutions between boundary 0 and the preset threshold parameter, and the other branch variable set includes all relaxation solutions between the preset threshold parameter and boundary 1, and the preset threshold parameter is between boundary 0 and boundary 1.
[0013] Preferably, the two branch variable sets respectively correspond to two cutting planes, and the cutting planes respectively correspond to the two branch variable sets are:
[0014]
[0015]
[0016]
[0017]
[0018] In the formula, i and j represent the index of the relaxed solution, L and U represent two branch variable sets, , denote the ith and jth relaxation solutions respectively, represents the upper bound of the sum of all relaxed solutions in the branch variable set L, represents the lower bound of the sum of all relaxed solutions in the branch variable set U, where
[0019]
[0020] In the formula, represents the preset threshold parameter, ∈[0,1], |U| is the number of elements in the branch variable set U, and |L| is the number of elements in the branch variable set L.
[0021] Preferably, the step of performing optimal solution on the plurality of branch and bound nodes to determine the optimal solution to the safety constrained unit commitment problem specifically includes:
[0022] Performing a relaxation solution on each branch and bound node, and determining an optimal lower bound of the branch and bound node according to an objective function value corresponding to an optimal relaxation solution, wherein the objective function value is a minimized objective function value;
[0023] According to the size relationship of the optimal lower bounds of the branch and bound nodes, each branch and bound node is optimized and solved in ascending order;
[0024] Determine whether the objective function values corresponding to the optimal solutions of the currently solved branch and bound nodes are all smaller than the optimal lower bounds of other branch and bound nodes;
[0025] If it is determined that the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are not all smaller than the optimal lower bounds of other branch and bound nodes, then the next branch and bound node is searched for optimal solution, and the step of determining whether the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all smaller than the optimal lower bounds of other branch and bound nodes is performed;
[0026] If it is determined that the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all smaller than the optimal lower bounds of other branch and bound nodes, the optimal solution of the branch and bound node currently being solved is output as the optimal solution to the safety constrained unit commitment problem.
[0027] Preferably, the step of performing optimal solution on the plurality of branch and bound nodes to determine the optimal solution to the safety constrained unit commitment problem specifically includes:
[0028] Performing a relaxation solution on each branch and bound node, and determining an optimal upper bound of the branch and bound node according to an objective function value corresponding to an optimal relaxation solution, wherein the objective function value is a maximized objective function value;
[0029] According to the size relationship of the optimal upper bounds of the branch and bound nodes, each branch and bound node is optimized and solved in descending order;
[0030] Determine whether the objective function values corresponding to the optimal solutions of the branch and bound nodes currently being solved are all greater than the optimal upper bounds of other branch and bound nodes;
[0031] If it is determined that the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are not all greater than the optimal upper bounds of other branch and bound nodes, then the next branch and bound node is searched for optimal solution, and the step of determining whether the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all greater than the optimal upper bounds of other branch and bound nodes is performed;
[0032] If it is determined that the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all greater than the optimal upper bounds of other branch and bound nodes, the optimal solution of the branch and bound node currently being solved is output as the optimal solution to the safety constrained unit commitment problem.
[0033] Preferably, each branch and bound node is relaxed and solved by a dual simplex method.
[0034] In a second aspect, the present invention further provides a system for optimizing resource allocation problems in a power spot market, comprising:
[0035] A relaxation classification module is used for comparing all relaxation solutions of the safety-constrained unit commitment problem with a preset threshold parameter, and dividing all relaxation solutions into two branch variable sets according to the comparison result;
[0036] A cutting plane construction module, used to construct a plurality of cutting planes corresponding to the two branch variable sets respectively;
[0037] A cutting plane combination module, used for performing cross-combination between sets of multiple cutting planes corresponding to the two branch variable sets to obtain multiple cutting plane combinations;
[0038] A branch and bound module, used for combining the safety constraint unit combination problem with a plurality of the cutting plane combinations to form a plurality of branch and bound nodes;
[0039] The optimization and solution module is used to perform optimization and solution on the plurality of branch and bound nodes to determine the optimal solution to the safety constraint unit combination problem.
[0040] In a third aspect, the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned method for optimizing resource allocation problems in the electricity spot market.
[0041] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed, implements the above-mentioned method for optimizing resource allocation problems in the electricity spot market.
[0042] In a fifth aspect, the present invention also provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, wherein when the program instructions are executed by a computer, the computer executes the method for optimizing resource allocation problems in the electricity spot market as described above.
[0043] It can be seen from the above technical solutions that the present invention has the following advantages:
[0044] The present invention divides all relaxed solutions of the safety constraint unit combination problem into two branch variable sets according to the relationship between numerical values, constructs multiple cutting planes corresponding to the two branch variable sets, performs cross-combinations between the sets, combines the safety constraint unit combination problem with the multiple cutting plane combinations, and performs optimal solution on each branch node, which can effectively reduce the scale of problem solution and the search space for problem optimization, thereby accelerating the solution convergence process and improving the solution accuracy and convergence stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flowchart of a method for optimizing resource allocation problems in a power spot market provided by an embodiment of the present invention;
[0046] Figure 2 A schematic diagram of constructing a cutting plane provided by an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of a branch and bound node provided in an embodiment of the present invention;
[0048] Figure 4 A flowchart of a method for optimizing resource allocation problems in a power spot market provided by a second embodiment of the present invention;
[0049] Figure 5 It is the node topology diagram of IEEE6 nodes;
[0050] Figure 6 A flowchart of a method for optimizing resource allocation problems in a power spot market provided by a third embodiment of the present invention;
[0051] Figure 7 A structural schematic diagram of a system for optimizing resource allocation problems in a power spot market provided by the present invention. DETAILED DESCRIPTION
[0052] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0054] At present, the power market optimization problem is mainly solved by the branch-and-bound scheme. The branch-and-bound scheme adopted by the current general mathematical programming solver is mainly to fix the non-integer binary variables in the relaxation problem one by one to the corresponding binary boundary traversal search for the optimal solution. Although the solver will design a large number of branch rules with certain effects on all scenario problems in branch selection and sorting to ensure that the branch-and-bound method is applicable to industrial production scenarios, the design of these branch selection rules is difficult to effectively utilize the problem characteristics in the power field. At the same time, in the special optimization scenario of power market optimization, due to the existence of a large number of binary variables to describe the operation mode of the power market, general methods often need to traverse a large number of binary variables ineffectively to find effective branches and improve the optimality of the lower bound verification of the objective function, which easily leads to low convergence speed, solution accuracy and convergence stability.
[0055] In view of this, an embodiment of the present invention provides a method for optimizing the resource allocation problem in the electricity spot market. The embodiment of the present invention can be applicable to the situation of optimizing the resource allocation problem in the electricity spot market. The method can be executed by an optimization device for optimizing the resource allocation problem in the electricity spot market. The optimization device for optimizing the resource allocation problem in the electricity spot market can be implemented in the form of hardware and / or software. The optimization device for optimizing the resource allocation problem in the electricity spot market can be configured in a computer device.
[0056] For easier understanding, see Figure 1 , Figure 1 The present invention illustrates a process of optimizing a method for solving resource allocation problems in a power spot market provided by an embodiment of the present invention.
[0057] The present invention provides a method for optimizing resource allocation problems in a power spot market, comprising the following steps S1 to S5:
[0058] Step S1: By comparing all the relaxed solutions of the safety constrained unit commitment problem with a preset threshold parameter, all the relaxed solutions are divided into two branch variable sets according to the comparison result.
[0059] It should be noted that the core of the safety constraint unit combination problem is to determine whether each unit is on or off at each time period throughout the day, and the power generation of the unit at the time of startup. The logic can be described as the following constraints:
[0060]
[0061] In the formula, i is the unit index, t is the time period, is the operating status of the unit, =0 means that the running state of unit i in period t is shutdown state, =1 means that the running state of unit i in period t is the start-up state; is the power generation of unit i in period t; are the minimum and maximum adjustable output of unit i in period t respectively.
[0062] At the same time, the startup and shutdown decisions of the generator set themselves also have related constraints. For example, once a coal-fired unit is started, it needs to run for a long time before it can be shut down, and once it is shut down, it also needs to shut down for a considerable time before it can be started again. In order to characterize such constraints, the startup and shutdown decision variables are often introduced into the safety constraint unit combination model. The relationship between the startup and shutdown decision variables and the unit operation status can be expressed by the following constraint formula:
[0063]
[0064]
[0065] In the formula, They are respectively whether the unit i has made a startup decision and whether it has made a shutdown decision in period t; the startup decision of the unit Only the current period is downtime , the current period is startup operation It can only be 1 when the power-on decision is Only the current period is powered on 1. The current period is downtime It is 1 only when , and 0 in other cases.
[0066] This embodiment is to obtain all the relaxed solutions of the safety constraint unit combination problem by relaxing the safety constraint unit combination problem. In the relaxed solution, the output of the unit can meet the load demand, and the penalty for the flow safety over-limit is the lowest. However, after relaxing the binary variables of the unit operation status, the unit in the relaxed solution is in a logically half-open state, that is, the relaxed solution can take any real value in [0,1] instead of only integers of 0 or 1.
[0067] In the relaxed solution, the closer the unit operating state is to boundary 1, the closer the unit output is to the maximum adjustable output of the unit when the system load requirements are met and the objective function is optimal. If the output of a unit in the relaxed solution does not reach the maximum, such as the unit output in the relaxed solution is half of the maximum adjustable output, then the operating state variable of the unit It does not need to be maintained at the boundary 1, and a value of 0.5 may also satisfy the constraints of the relaxed problem.
[0068] Similarly, the closer the unit operating state is to the boundary 0, the more likely it is that the unit needs to be shut down if the system load requirements are met and the objective function is optimal. If it is close to 1, it means that the unit is likely to need to make a startup decision at this time. , In the relaxed problem, the value range is [0,1], and the constraints are:
[0069]
[0070] Make sure that When is 1, must be 0. Similarly, since the constraints are:
[0071]
[0072] And the variables are non-negative, when When is 1, the constraints are:
[0073]
[0074] make sure is 1, Must be 0.
[0075] Based on this, by giving a threshold parameter, all the relaxed solutions of the safety constrained unit commitment problem are compared with the threshold parameter. Specifically, step S1 specifically includes step S101:
[0076] Step S101, by comparing the relaxation solutions of all binary decision variables of the safety constrained unit commitment problem with a preset threshold parameter, all relaxation solutions are divided into two branch variable sets according to the comparison result;
[0077] Among them, one branch variable set contains all the relaxation solutions between boundary 0 and a preset threshold parameter, and the other branch variable set contains all the relaxation solutions between the preset threshold parameter and boundary 1, and the preset threshold parameter is between boundary 0 and boundary 1.
[0078] The binary decision variable refers to a decision variable containing 0-1, including but not limited to the startup decision and shutdown decision of each unit.
[0079] In one example, it is preferred to give a threshold parameter , the two branch variable sets are:
[0080]
[0081] In the formula, U and L represent two branch variable sets, i represents the index of the relaxed solution, represents the ith relaxed solution, represents the preset threshold parameter, ∈[0,1].
[0082] It can be understood that the branch variable set U represents a set of binary variables that are more likely to be 1, that is, all unit time periods that may be turned on, and the branch variable set L represents a set of binary variables that are more likely to be 0, that is, all unit time periods that may be turned off.
[0083] Step S2: construct multiple cutting planes corresponding to the two branch variable sets.
[0084] Among them, Figure 2 As shown, Figure 2 The principle of constructing the cutting plane is illustrated. In this embodiment, the two branch variable sets correspond to two cutting planes respectively, and the cutting planes corresponding to the two branch variable sets are respectively:
[0085]
[0086]
[0087]
[0088]
[0089] In the formula, i and j represent the index of the relaxed solution, L and U represent two branch variable sets, , denote the ith and jth relaxation solutions respectively, represents the upper bound of the sum of all relaxed solutions in the branch variable set L, represents the lower bound of the sum of all relaxed solutions in the branch variable set U, where
[0090]
[0091] In the formula, represents the preset threshold parameter, ∈[0,1], |U| is the number of elements in the branch variable set U, and |L| is the number of elements in the branch variable set L.
[0092] It should be noted that, through the relaxation calculation of the safety constrained unit combination problem, two branch variable sets are obtained to respectively represent the set of binary variables that are more likely to be 1 and the set of binary variables that are more likely to be 0. In order to make the solution more accurate and comprehensive, it is necessary to identify whether each binary variable in the set is 1 or 0 in the optimal solution of the safety constrained unit combination problem. To this end, this embodiment adds four cutting planes by setting cutting plane parameters. By adding four cutting planes, the credibility judgment of all binary variables can be covered.
[0093] Step S3: performing cross-combination between sets on multiple cutting planes corresponding to two branch variable sets, to obtain multiple cutting plane combinations.
[0094] It should be noted that in the problem of safety-constrained unit commitment, the optimization target can be the total system cost of the sum of the flow over-limit cost, transmission cost, unit operation cost and unit startup cost caused by the flow over-limit penalty to ensure flow safety. Generally speaking, in the total system cost, the flow over-limit cost often accounts for the largest proportion, which can reach more than 90% of the total cost, and is numerically much more important than the objective function items such as unit operation cost.
[0095] When power flow safety is not considered, the optimization objectives of the unit combination problem are mainly transmission cost, unit operation cost and unit startup cost. At this time, the relaxed solution of the unit combination problem will be mainly limited by the system load demand and power generation cost. Since there are many unit combinations that can meet the load demand, the binary variables with values close to 0 or 1 in the relaxed solution are more likely to be opposite to the values in the optimal unit combination, and less effective information of the optimal combination can be provided in subsequent calculations. When the power grid power flow safety is considered, in the relaxed solution, in addition to meeting the load demand, in order to minimize the power flow over-limit cost, the output of the unit that can make the power flow output not over-limit will be fully generated, and the output of the unit that makes the power flow over-limit will be minimized. Therefore, in the relaxed optimal solution, the on-off state of the unit close to full generation and close to shutdown has a higher credibility. The unit close to full generation indicates that the output of the unit can effectively reduce the power flow over-limit and meet the load demand; the unit close to shutdown or in shutdown indicates that the unit does not work and can effectively reduce the power flow over-limit, and the output of the remaining units can meet the load demand. Since the combination space of unit on / off is relatively small under the optimal power flow, in the safety-constrained unit commitment problem, the values of binary variables in the relaxed solution can provide the optimal combination information with higher credibility.
[0096] Among them, the multiple cutting planes corresponding to the two branch variable sets are cross-combined between sets, and the resulting cutting plane combinations are:
[0097] 1) ,
[0098] 2) ,
[0099] 3) ,
[0100] 4) ,
[0101] It is understandable that the cutting plane combinations cannot be repeated or logically contradictory, including the situation where the same unit is turned on and off at the same time.
[0102] Step S4: Combine the safety constraint unit combination problem with multiple cutting plane combinations to form multiple branch and bound nodes.
[0103] Among them, each combination of cutting planes and safety constraint unit combination problems is a branch and bound node, and four branch and bound nodes can be constructed, such as Figure 3 As shown, Figure 3 The principle of constructing branch and bound nodes is illustrated, where the safety constrained unit commitment problem is expressed as Ax=b.
[0104] Step S5: performing optimization and solving on multiple branch and delimitation nodes to determine the optimal solution to the safety-constrained unit commitment problem.
[0105] It should be noted that by optimizing and solving each branch and bound node, the safety constrained unit combination problem can be solved under the constraints of each cutting plane combination. The solution obtained is not a relaxed solution, but a binary variable. By comparing the objective function values corresponding to each branch and bound node, the optimal solution to the safety constrained unit combination problem can be determined.
[0106] It should also be noted that the present invention divides all relaxed solutions of the safety constrained unit combination problem into two branch variable sets according to the relationship between numerical values, and constructs multiple cutting planes corresponding to the two branch variable sets, and performs cross-combinations between the sets, and combines the safety constrained unit combination problem with multiple cutting plane combinations, and by optimizing and solving each branch node, it can effectively reduce the scale of problem solving, reduce the search space for problem optimization, thereby accelerating the solution convergence process, and improving the solution accuracy and convergence stability.
[0107] The above is a detailed description of a first embodiment of an optimization method for electricity spot market resource allocation problem provided by the present invention. The following is a detailed description of a second embodiment of an optimization method for electricity spot market resource allocation problem provided by the present invention.
[0108] like Figure 4 As shown, Figure 4 The flowchart of a method for optimizing resource allocation problem in a power spot market provided by a second embodiment of the present invention is illustrated.
[0109] An optimization method for resource allocation problem in a power spot market provided by an embodiment of the present invention includes the following steps S201 to S209:
[0110] Step S201: By comparing all the relaxed solutions of the safety constrained unit commitment problem with a preset threshold parameter, all the relaxed solutions are divided into two branch variable sets according to the comparison result.
[0111] Step S202: construct multiple cutting planes corresponding to two branch variable sets respectively.
[0112] Step S203: performing cross-combination between sets on a plurality of cutting planes corresponding to two branch variable sets, to obtain a plurality of cutting plane combinations.
[0113] Step S204: combining the safety constraint unit combination problem with a plurality of cutting plane combinations to form a plurality of branch and bound nodes.
[0114] It should be noted that steps S201 to S204 in the second embodiment of the present invention are consistent with the processes of steps S101 to S104 in the first embodiment, and are not described in detail herein.
[0115] Step S205: performing a relaxation solution on each branch and bound node, and determining the optimal lower bound of the branch and bound node according to the objective function value corresponding to the optimal relaxation solution, wherein the objective function value is the minimized objective function value.
[0116] It should be noted that since only two branch and bound constraints are introduced at each node, the dual simplex method is used to relax each branch and bound node, and the optimal relaxed solution of the branch and bound node after updating the constraints can be obtained, and the objective function value corresponding to the optimal relaxed solution determines the optimal lower bound of the branch and bound node. Among them, the optimal lower bound refers to the minimum objective function value of the safety constraint unit commitment problem under the constraints of this cutting plane combination.
[0117] Step S206: According to the size relationship of the optimal lower bounds of the branch and bound nodes, each branch and bound node is optimized and solved in ascending order.
[0118] It should be noted that the updated lower bound of each branch and bound node will be different, but it is improved compared to the original lower bound, and each cutting plane combination may eliminate the combination of the optimal solution in the search space. Usually, cutting off the cutting plane combination of the optimal solution will cause the optimal lower bound of the node to increase too much and exceed the target cost of the optimal solution of the original problem. Therefore, the solver can choose to optimize the calculation starting from the node with the smallest optimal lower bound.
[0119] Step S207: Determine whether the objective function values corresponding to the optimal solution of the branch and bound node currently being solved are all smaller than the optimal lower bounds of other branch and bound nodes.
[0120] Step S208: If it is determined that the objective function value corresponding to the optimal solution of the branch and bound node currently being solved is not less than the optimal lower bound of other branch and bound nodes, then enter the optimization solution of the next branch and bound node and go to step S207;
[0121] Step S209: If it is determined that the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all smaller than the optimal lower bounds of other branch and bound nodes, the optimal solution of the branch and bound node currently being solved is output as the optimal solution to the safety constrained unit commitment problem.
[0122] It should be noted that when the solver searches for the objective function value corresponding to the optimal solution of the branch and bound node currently being solved that is smaller than the optimal lower bound of other branch and bound nodes, it means that the objective function values of other branch and bound nodes under any solution are greater than the objective function value corresponding to the optimal solution of the branch and bound node currently being solved, that is, it is not the optimal solution. In this case, other branch and bound nodes can be pruned. If the objective function value corresponding to the optimal solution of the branch and bound node currently being solved is still greater than the optimal lower bound of other branch and bound nodes, then enter the node with the second lowest optimal lower bound to continue the optimization calculation.
[0123] A calculation example is presented below in conjunction with a method for optimizing resource allocation in a power spot market provided in the second embodiment of the present invention.
[0124] This example uses a model of IEEE 6-node safety-constrained unit commitment problem, such as Figure 5 As shown, Figure 5 The node topology of IEEE6-node is illustrated, where the IEEE6-node system consists of 6 nodes, 3 units, 3 load nodes and 11 tie lines. Bus1~Bus6 represent 6 nodes, D1~D3 represent 3 load nodes, G1~G3 represent 3 units. The specific unit parameters are shown in Table 1, the tie line parameters are shown in Table 2, and the hourly load data are shown in Table 3.
[0125] Table 1 Unit parameters
[0126]
[0127] Table 2 Tie line parameters
[0128]
[0129] Table 3 Hourly load data
[0130]
[0131] The model of the safety-constrained unit commitment problem in this example is:
[0132] The objective function is:
[0133]
[0134] In the formula, G is the number of units, T is the number of optimization periods, Provide quotation for unit operation, The start and stop status of the unit. are the startup and shutdown costs of the unit respectively, and z represents the operating cost of the unit.
[0135] Based on the minimum unit operating cost, the following constraints are considered:
[0136] 1) Node load balancing constraints
[0137]
[0138] In the formula, For all units included in node b, is the tie line of input node b, is the tie line leaving node b, is the output of tie line j at time period t, is the load of node b in period t.
[0139] 2) Unit output constraints
[0140]
[0141] This constraint requires that if unit i is turned on in time period t, the output range must be met, and if it is turned off, the output is 0. In the formula, are the minimum and maximum output of the unit respectively.
[0142] 3) Unit climbing constraints
[0143]
[0144]
[0145] This constraint requires that the output change of unit i meets the unit climbing range requirements, and it can only be shut down when it climbs to the minimum output. are the ramp-up rate and ramp-down rate of unit i respectively.
[0146] 4) Minimum start and stop time constraints for units
[0147]
[0148]
[0149] This constraint requires that each time unit i is turned on or off, it must be turned on for a certain minimum on time and minimum off time. are the minimum shutdown time and minimum startup time of unit i respectively.
[0150] 5) Unit status and on / off decision constraints
[0151]
[0152]
[0153] This constraint is used to describe the logic relationship of the on / off decision of unit i in period t, where They are the startup decision and shutdown decision of unit i at time t respectively. The unit can make at most one startup and shutdown decision at each moment.
[0154] 6) Tie line output constraints
[0155]
[0156] This constraint requires that the tie line output must meet a certain output range. are the minimum and maximum outputs of tie line j respectively.
[0157] Initially, the simplex method is used to relax the root node, and the optimal value of relaxation can be obtained for this problem, which is 67555.6. Given the threshold parameter , construct the branch variable set as shown in Tables 4~5.
[0158] Table 4 Binary variables in the 1-12 hour period belong to the set U or L
[0159]
[0160] Table 5 Binary variables in the 13-24 hour period belong to the set U or L
[0161]
[0162] Tables 4 and 5 show that the branch variable set U includes the operating state variables of unit 1 from time 1 to 24 and the startup decision variables at time 1. The branch variable set L includes the startup decision variables of unit 1 from time 2 to 24 and the shutdown decision variables from time 1 to 24; the operating state variables of unit 2 from time 1 to 17 and from time 20 to 24, the startup decision variables from time 1 to 24 and the shutdown decision variables from time 1 to 24; the unit operating state variables of unit 3 from time 1 to 24, the startup decision variables from time 1 to 24 and the shutdown decision variables from time 1 to 24.
[0163] From this we can calculate:
[0164]
[0165] Construct 4 cutting planes as:
[0166]
[0167]
[0168]
[0169]
[0170] The four cutting planes are combined into four cutting planes:
[0171] 1)
[0172] 2)
[0173] 3)
[0174] 4)
[0175] Combine each cutting plane combination and the model of the safety-constrained unit combination problem into a branch-and-bound node;
[0176] The optimal solution 0-1 variable is obtained by solving the branch and bound node composed of the cutting plane combination 1) and the model of the safety constraint unit combination problem:
[0177] The optimal solution 0-1 variables of the nodes after adding the cutting plane are shown in Tables 6~7.
[0178] Table 6 Optimal solution 0-1 variable values for the 1-12 hour period
[0179]
[0180] Table 7 Optimal solution 0-1 variable values for the 13-24 hour period
[0181]
[0182] Among them, the optimal target cost of the branch and bound node composed of the cutting plane combination 1) and the model of the safety constrained unit combination problem is 67555.6, the optimal lower bound is 67555.6, and the calculation time is 0.05 seconds.
[0183] The relaxed solutions of other branch and bound nodes are solved by the dual simplex method, and the optimal lower bounds of other branch and bound nodes are 67954.35, 68073.91 and 68029.46 respectively. Among them, the optimal lower bounds of other branch and bound nodes are all greater than the optimal target cost of the branch and bound nodes composed of the cutting plane combination 1) and the model of the safety constrained unit combination problem. Then, the solution corresponding to the branch and bound node composed of the cutting plane combination 1) and the model of the safety constrained unit combination problem is output, and other branch and bound nodes will be pruned.
[0184] To further check the validity of the branches, this example also provides control data, which are the optimal solution 0-1 variable values as shown in Tables 8-9 obtained by calculating the optimal solution without using the optimization method for the electricity spot market resource allocation problem provided by the embodiment of the present invention.
[0185] Table 8 Optimal solution 0-1 variable values for the 1-12 hour period in the control data
[0186]
[0187] Table 9 Optimal solution 0-1 variable values for the 13-24 hour period in the control data
[0188]
[0189] Among them, the optimal target cost of the control data is 67555.6, the optimal lower bound is 67555.6, and the calculation time is 0.15 seconds.
[0190] It can be concluded that, by comparing the target cost and calculation time in this example with the control data, it is found that the optimization method for the electricity spot market resource allocation problem provided by the present invention is more accurate in solving the problem and is faster in solving the problem.
[0191] The above is a detailed description of the second embodiment of a method for optimizing resource allocation problems in the electricity spot market provided by the present invention. The following is a detailed description of the third embodiment of a method for optimizing resource allocation problems in the electricity spot market provided by the present invention.
[0192] like Figure 6 As shown, Figure 6 The flowchart of a method for optimizing resource allocation problem in the electricity spot market provided by the third embodiment of the present invention is illustrated.
[0193] A third embodiment of the present invention provides a method for optimizing resource allocation in a power spot market, comprising the following steps S301-S309:
[0194] Step S301: By comparing all the relaxed solutions of the safety constrained unit commitment problem with a preset threshold parameter, all the relaxed solutions are divided into two branch variable sets according to the comparison result.
[0195] Step S302: construct multiple cutting planes corresponding to two branch variable sets respectively.
[0196] Step S303: performing cross-combination between sets on a plurality of cutting planes corresponding to two branch variable sets, to obtain a plurality of cutting plane combinations.
[0197] Step S304: combining the safety constraint unit combination problem with multiple cutting plane combinations to form multiple branch and bound nodes.
[0198] It should be noted that steps S301 to S304 in the second embodiment of the present invention are consistent with the processes of steps S101 to S104 in the first embodiment, and are not described in detail herein.
[0199] Step S305: performing relaxation solution on each branch and bound node, and determining the optimal upper bound of the branch and bound node according to the objective function value corresponding to the optimal relaxation solution, wherein the objective function value is the maximum objective function value;
[0200] Step S306: according to the size relationship of the optimal upper bounds of the branch and bound nodes, each branch and bound node is optimized and solved in descending order;
[0201] Step S307: determining whether the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all greater than the optimal upper bounds of other branch and bound nodes;
[0202] Step S308: If it is determined that the objective function value corresponding to the optimal solution of the branch and bound node currently being solved is not greater than the optimal upper bound of other branch and bound nodes, then enter the optimization solution of the next branch and bound node and go to step S307;
[0203] Step S309: If it is determined that the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all greater than the optimal upper bounds of other branch and bound nodes, the optimal solution of the branch and bound node currently being solved is output as the optimal solution to the safety constrained unit commitment problem.
[0204] It should be noted that the difference between steps S305 to S309 in this embodiment and the aforementioned steps S205 to S209 is that this embodiment determines the optimal solution to the safety constrained unit commitment problem by comparing the optimal upper bounds of each branch delimitation node.
[0205] It should also be noted that the safety-constrained unit combination problem generally takes the minimization of unit operating cost as the target condition. At the same time, the safety-constrained unit combination problem also has the target condition of maximizing unit operating efficiency or unit operating reliability. When the safety-constrained unit combination problem also has the target condition of maximizing the objective function value, it is necessary to use this embodiment to solve the optimal solution of the safety-constrained unit combination problem, including but not limited to: an objective function constructed with maximizing system operating benefit as the target condition, an objective function constructed with maximizing system operating reliability as the target condition, and an objective function constructed with maximizing system operating efficiency as the target condition.
[0206] The above is a detailed description of an embodiment of a method for optimizing resource allocation problems in the electricity spot market provided by the present invention. The following is a detailed description of an embodiment of a system for optimizing resource allocation problems in the electricity spot market provided by the present invention.
[0207] For easier understanding, see Figure 7 The present invention provides a system for optimizing resource allocation in a power spot market, comprising:
[0208] A relaxation classification module 100 is used to compare all relaxation solutions of the safety constrained unit commitment problem with a preset threshold parameter, and divide all relaxation solutions into two branch variable sets according to the comparison result;
[0209] A cutting plane construction module 200 is used to construct a plurality of cutting planes corresponding to two branch variable sets respectively;
[0210] A cutting plane combination module 300 is used to perform cross-combination between sets of multiple cutting planes corresponding to two branch variable sets to obtain multiple cutting plane combinations;
[0211] A branch and bound module 400 is used to combine the safety constraint unit combination problem with multiple cutting plane combinations to form multiple branch and bound nodes;
[0212] The optimization and solution module 500 is used to perform optimization and solution on multiple branch and bound nodes to determine the optimal solution of the safety constrained unit commitment problem.
[0213] The present invention also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method for optimizing the resource allocation problem in the electricity spot market as described in the above embodiment.
[0214] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the method for optimizing the resource allocation problem in the electricity spot market as described in the above embodiment is implemented.
[0215] The present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer executes the method for optimizing the resource allocation problem in the electricity spot market as described in the above-mentioned embodiment.
[0216] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, electronic devices, computer storage media and computer program products can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0217] In several embodiments provided by the present invention, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a part of a module, a program segment or a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
[0218] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, electronic devices, computer storage media, computer program products and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0219] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0220] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0221] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the various embodiments of the method of the present invention through a computer device (which can be a personal computer, a server, or a network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk, etc. Various media that can store program codes.
[0222] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for optimizing resource allocation in the electricity spot market, characterized in that: The following steps are involved: By comparing all the relaxed solutions of the safety-constrained unit commitment problem with the preset threshold parameter, all the relaxed solutions are divided into two branch variable sets according to the comparison results; Constructing a plurality of cutting planes corresponding to the two branch variable sets respectively; Performing cross-combination between sets on a plurality of cutting planes corresponding to the two branch variable sets, respectively, to obtain a plurality of cutting plane combinations; The resulting cutting plane combinations are: , ; , ; , ; , ; In the formula, i and j represent the index of the relaxed solution, L and U represent two branch variable sets, , denote the ith and jth relaxation solutions respectively, represents the upper bound of the sum of all relaxed solutions in the branch variable set L, represents the lower bound of the sum of all relaxed solutions in the branch variable set U, where ; In the formula, represents the preset threshold parameter, ∈[0,1], |U| is the number of elements in the branch variable set U, |L| is the number of elements in the branch variable set L; Combining the safety-constrained unit combination problem with a plurality of the cutting plane combinations to form a plurality of branch-and-bound nodes; The optimal solution of the safety constrained unit combination problem is determined by searching and solving the multiple branch and delimit nodes, including: solving the safety constrained unit combination problem under the constraints of the cutting plane combination, the solution obtained is a binary variable, and then determining the optimal solution of the safety constrained unit combination problem by comparing the objective function values corresponding to each branch and delimit node.
2. The method for optimizing the resource allocation problem in the electricity spot market according to claim 1, characterized in that: The step of comparing all the relaxed solutions of the safety-constrained unit commitment problem with a preset threshold parameter and dividing all the relaxed solutions into two branch variable sets according to the comparison result specifically includes: By comparing the relaxation solutions of all binary decision variables of the safety-constrained unit commitment problem with the preset threshold parameters, all relaxation solutions are divided into two branch variable sets according to the comparison results; Among them, one branch variable set includes all relaxation solutions between boundary 0 and the preset threshold parameter, and the other branch variable set includes all relaxation solutions between the preset threshold parameter and boundary 1, and the preset threshold parameter is between boundary 0 and boundary 1.
3. The method for optimizing the resource allocation problem in the electricity spot market according to claim 1, characterized in that: The step of performing optimal solution on the plurality of branch and bound nodes to determine the optimal solution of the safety constrained unit commitment problem specifically includes: Performing a relaxation solution on each branch and bound node, and determining an optimal lower bound of the branch and bound node according to an objective function value corresponding to an optimal relaxation solution, wherein the objective function value is a minimized objective function value; According to the size relationship of the optimal lower bounds of the branch and bound nodes, each branch and bound node is optimized and solved in ascending order; Determine whether the objective function values corresponding to the optimal solutions of the currently solved branch and bound nodes are all smaller than the optimal lower bounds of other branch and bound nodes; If it is determined that the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are not all smaller than the optimal lower bounds of other branch and bound nodes, then the next branch and bound node is searched for optimal solution, and the step of determining whether the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all smaller than the optimal lower bounds of other branch and bound nodes is performed; If it is determined that the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all smaller than the optimal lower bounds of other branch and bound nodes, the optimal solution of the branch and bound node currently being solved is output as the optimal solution to the safety constrained unit commitment problem.
4. The method for optimizing the resource allocation problem in the electricity spot market according to claim 1, characterized in that: The step of performing optimal solution on the plurality of branch and bound nodes to determine the optimal solution of the safety constrained unit commitment problem specifically includes: Performing a relaxation solution on each branch and bound node, and determining an optimal upper bound of the branch and bound node according to an objective function value corresponding to an optimal relaxation solution, wherein the objective function value is a maximized objective function value; According to the size relationship of the optimal upper bounds of the branch and bound nodes, each branch and bound node is optimized and solved in descending order; Determine whether the objective function values corresponding to the optimal solutions of the branch and bound nodes currently being solved are all greater than the optimal upper bounds of other branch and bound nodes; If it is determined that the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are not all greater than the optimal upper bounds of other branch and bound nodes, then the next branch and bound node is searched for optimal solution, and the step of determining whether the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all greater than the optimal upper bounds of other branch and bound nodes is performed; If it is determined that the objective function values corresponding to the optimal solutions of the branch and bound node currently being solved are all greater than the optimal upper bounds of other branch and bound nodes, the optimal solution of the branch and bound node currently being solved is output as the optimal solution to the safety constrained unit commitment problem.
5. The method for optimizing the resource allocation problem in the electricity spot market according to claim 3 or 4, characterized in that: Each of the branch and bound nodes is relaxed and solved by a dual simplex method.
6. An optimization system for resource allocation problem in the electricity spot market, characterized in that: include: A relaxation classification module is used for comparing all relaxation solutions of the safety constraint unit commitment problem with a preset threshold parameter, and dividing all relaxation solutions into two branch variable sets according to the comparison result; A cutting plane construction module, used to construct a plurality of cutting planes corresponding to the two branch variable sets respectively; A cutting plane combination module, used for performing cross-combination between sets of multiple cutting planes corresponding to the two branch variable sets to obtain multiple cutting plane combinations; The resulting cutting plane combinations are: , ; , ; , ; , ; In the formula, i and j represent the index of the relaxed solution, L and U represent two branch variable sets, , denote the ith and jth relaxation solutions respectively, represents the upper bound of the sum of all relaxed solutions in the branch variable set L, represents the lower bound of the sum of all relaxed solutions in the branch variable set U, where ; In the formula, represents the preset threshold parameter, ∈[0,1], |U| is the number of elements in the branch variable set U, |L| is the number of elements in the branch variable set L; A branch and bound module, used for combining the safety constraint unit combination problem with a plurality of the cutting plane combinations to form a plurality of branch and bound nodes; The optimization solution module is used to perform optimization solution on the multiple branch and delimit nodes to determine the optimal solution of the safety constrained unit combination problem, including: solving the safety constrained unit combination problem under the constraints of the cutting plane combination, and the obtained solution is a binary variable, and then comparing the objective function values corresponding to each branch and delimit node to determine the optimal solution of the safety constrained unit combination problem.
7. An electronic device, characterized in that: It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method for optimizing the resource allocation problem in the electricity spot market as described in any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the method for optimizing the resource allocation problem in the electricity spot market as described in any one of claims 1 to 5 is implemented.
9. A computer program product, characterized in that The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer is caused to execute the method for optimizing the resource allocation problem in the electricity spot market as described in any one of claims 1-5.
