A method and system for timing control of power market operation simulation process
By generating a timing control table and flexibly setting the execution time and cycle period of the power market operation link, the simulation problem of existing technologies that are difficult to adapt to different market models is solved, and flexible simulation and verification of power market operations are achieved, ensuring the safe and stable operation of the market.
Patent Information
- Application Number
- CN201910773528.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-21
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2039-08-21
AI Technical Summary
The existing power market operation simulation system is difficult to adapt to the continuous operation simulation of different market models and market rules, and cannot effectively verify the market operation effect.
A timing control method for the power market operation simulation process is provided. By generating a timing control table, the execution time interval and cycle period of the operation link can be flexibly set to realize the automatic operation simulation of power markets with different modes.
It has achieved flexible simulation and verification of power market operations, ensured the safe and stable operation of the market under different modes, and provided effective technical support.
Smart Images

Figure CN112418573B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power market simulation, and in particular to a method and system for controlling a timing sequence of a power market operation simulation process. Background Art
[0002] The spot market is a crucial component of the electricity market system, providing fundamental support for the open, competitive, and orderly operation of the electricity market. It is also crucial for coordinating market transactions and ensuring the smooth operation of the system. Currently, numerous regions have initiated the development of electricity spot markets.
[0003] The operation of the electricity spot market is a long-term, dynamic process, influenced by a variety of factors, including grid structure, supply and demand, and the external environment. It is difficult to predict the market's performance through theoretical analysis alone. Therefore, it is necessary to conduct experimental simulations to verify the market's ongoing performance before the market officially begins operations.
[0004] In order to achieve comprehensive verification and analysis of the operation effect of the electricity spot market, it is necessary to simulate the continuous operation process of the market. By analyzing and verifying the rationality of electricity prices, the changing trend of winning electricity prices, the safety of power grid operation, and the evolution trend of market members' bidding strategies based on the operation simulation results of the market over a period of time, the safe and stable operation of the electricity spot market after it goes online can be ensured.
[0005] At present, the power market operation simulation system mainly simulates the single operation process of a specific transaction type. A small number of simulation systems simulate the continuous operation process of multiple transactions based on the operation sequence of a specific market model. However, the power market is currently in the stage of reform, and the market model and market rules are constantly changing and developing. During the market reform process, it is necessary to carry out operation simulation analysis for different market models.
[0006] At present, no continuous operation simulation solution that is adaptable to different market models and market rules has been proposed. Summary of the Invention
[0007] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a method for timing control of an electricity market operation simulation process. This method can flexibly set the execution time intervals and cycle periods of the electricity market operation links and each link during initial execution according to the characteristics of various transaction types in the electricity market model, generate a timing control table suitable for electricity markets of different modes, and complete the timing control of automatic operation simulations of electricity markets of different modes based on this table, thereby providing effective technical support for actual electricity market operation control.
[0008] The purpose of the present invention is achieved by adopting the following technical solutions:
[0009] The present invention provides a method for controlling a timing sequence of a power market operation simulation process, wherein the method comprises:
[0010] According to the various operation links and timing control parameters that need to be executed during the power market operation simulation, determine the timing control table for executing each operation link;
[0011] According to the timing control table, the process information of the corresponding operation link is called to execute the simulation process of each operation link;
[0012] The timing control parameters include a simulation period in the power market operation simulation process, and a cycle period, an execution time interval and a transaction date of each operation link within the simulation period.
[0013] Preferably, the timing control table for executing each operation link is determined based on each operation link and timing control parameters to be executed during the power market operation simulation, including:
[0014] Initialize the execution time interval and transaction date corresponding to the first execution of each power market operation link during the simulation period;
[0015] Determine the execution time interval and transaction date corresponding to the first execution of each power market operation link according to the power market cycle;
[0016] According to the execution time interval, all execution time intervals and their corresponding power market operation links and transaction dates are arranged in ascending order to generate a time sequence control table for the power market;
[0017] Among them, l∈(2,L), L is the total number of times each power market operation link is executed during the simulation period.
[0018] Furthermore, the execution time interval and transaction date corresponding to the first execution of each power market operation link within the initial simulation period include:
[0019] Initialize simulation period [D T1 ,D T2 ]The corresponding execution time interval when the i-th operation link of the power market is first executed is [D T1 -d si $$A$$HH si :mm si ,D T1 -d ei $$A$$HH ei :mm ei ], simulation period [D T1 ,D T2 The transaction date corresponding to the first execution of the i-th operation link in the power market is D T1 ;
[0020] Among them, D T1 is the initial date of the simulation period, D T2 The end date of the simulation period; $$A$$ is a separator, d si is the first preset day of the ith operation link in the power market during the simulation period, d ei is the second preset day of the ith operation link in the power market during the simulation period, HH si is the starting hour of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, mm si is the starting minute of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, HH ei is the end hour of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, mm ei is the ending minute of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period.
[0021] Furthermore, the determining of the execution time interval and transaction date corresponding to the first execution of each power market operation link according to the power market cycle includes:
[0022] The starting time t of the execution time interval corresponding to the lth execution of the i-th operation link of the power market is determined by the following formula: l,si :
[0023] t l,si =D T1 +(l-1)·cd si 1440+HH si 60+mm si
[0024] The end time t of the execution time interval corresponding to the lth execution of the i-th operation link of the power market is determined by the following formula: l,ei :
[0025] t l,ei =D T1 +(l-1)·cd ei 1440+HH ei 60+mm ei
[0026] The transaction date R corresponding to the execution of the first operation link of the electricity market is determined by the following formula: i,l :
[0027] R i,l =D T1 +(l-1)·c
[0028] Where c is the cycle period of the power market operation link, in minutes.
[0029] Furthermore, the total number of times L that the power market operation links are executed during the simulation period is determined by the following formula:
[0030]
[0031] Where c is the cycle period of the ith operating link in the electricity market, in minutes.
[0032] Preferably, the process of calling the process information of the corresponding operation link to execute the simulation process of each operation link according to the timing control table includes:
[0033] Scanning the system virtual clock of the electricity market;
[0034] When the time displayed by the system virtual clock of the power market is the start time of the kth execution time interval in the timing control table of the power market, the corresponding process of the operation link corresponding to the kth execution time interval in the timing control table of the power market is called according to the process name and input parameters of the operation link and the simulation operation of the operation link is started until the simulation operation of all operation links is completed;
[0035] Among them, the input parameter of the operation link corresponding to the kth execution time interval in the timing control table of the power market is the starting time of the transaction date corresponding to the kth execution time interval in the timing control table of the power market, k∈(1,m), and m is the total number of execution time intervals in the timing control table of the power market.
[0036] Furthermore, the time t displayed by the system virtual clock of the power market is determined as follows: v :
[0037] t v =t s1 +(i·fI r )·R x
[0038] Where, t s1 is the start time of the first execution time interval in the timing control table of the power market; i is the number of times the power market simulation controller cyclically scans the power market system virtual clock; f is the frequency of the power market simulation controller cyclically scanning the power market system virtual clock; R x is the virtual clock scale; I r It is the abnormal processing time of power system simulation. If there is no abnormality in the simulation operation of the current operation link, then I r Take 0, otherwise I r Get the exception handling time of the current operation link.
[0039] The present invention provides a time sequence control system for a power market operation simulation process, wherein the improvement is that the system comprises:
[0040] A determination module is used to determine the timing control table for executing each operation link according to each operation link and timing control parameters to be executed during the power market operation simulation;
[0041] An execution module, configured to call the process information of the corresponding operation link according to the timing control table to execute the simulation process of each operation link;
[0042] The timing control parameters include a simulation period in the power market operation simulation process, and a cycle period, an execution time interval and a transaction date of each operation link within the simulation period.
[0043] Preferably, the determination module is utilized, including:
[0044] An initialization unit, used to initialize the execution time interval and transaction date corresponding to the first execution of each power market operation link within the simulation period;
[0045] a determination unit, configured to determine, according to a cycle of the power market, an execution time interval and a transaction date corresponding to the first execution of each power market operation link;
[0046] A generating unit is used to generate a timing control table for the power market after arranging all execution time intervals and their corresponding power market operation links and transaction dates in ascending order according to the execution time intervals;
[0047] Among them, l∈(2,L), L is the total number of times each power market operation link is executed during the simulation period.
[0048] Furthermore, the initialization unit is used to:
[0049] Initialize simulation period [D T1 ,D T2 ]The corresponding execution time interval when the i-th operation link of the power market is first executed is [D T1 -d si $$A$$HH si :mm si ,D T1 -d ei $$A$$HH ei :mm ei ], simulation period [D T1 ,D T2 The transaction date corresponding to the first execution of the i-th operation link in the power market is D T1 ;
[0050] Among them, D T1 is the initial date of the simulation period, D T2 The end date of the simulation period; $$A$$ is a separator, d si is the first preset day of the ith operation link in the power market during the simulation period, d ei is the second preset day of the ith operation link in the power market during the simulation period, HH si is the starting hour of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, mm si is the starting minute of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, HH ei is the end hour of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, mm ei is the ending minute of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period.
[0051] Furthermore, the determining unit includes:
[0052] The starting time t of the execution time interval corresponding to the lth execution of the i-th operation link of the power market is determined by the following formula: l,si :
[0053] t l,si =D T1 +(l-1)·cd si 1440+HH si 60+mm si
[0054] The end time t of the execution time interval corresponding to the lth execution of the i-th operation link of the power market is determined by the following formula: l,ei :
[0055] t l,ei =D T1 +(l-1)·cd ei 1440+HH ei 60+mm ei
[0056] The transaction date R corresponding to the execution of the first operation link of the electricity market is determined by the following formula: i,l :
[0057] R i,l =D T1 +(l-1)·c
[0058] Where c is the cycle period of the power market operation link, in minutes.
[0059] Furthermore, the total number of times L that the power market operation links are executed during the simulation period is determined by the following formula:
[0060]
[0061] Where c is the cycle period of the ith operating link in the electricity market, in minutes.
[0062] Preferably, the execution module includes:
[0063] A scanning unit, used for scanning the system virtual clock of the power market;
[0064] The simulation unit is configured to, when the time displayed by the system virtual clock of the power market is the start time of the kth execution time interval in the timing control table of the power market, call the corresponding process of the operation link according to the process name and input parameters of the operation link corresponding to the kth execution time interval in the timing control table of the power market and start the simulation operation of the operation link until the simulation operation of all operation links is completed;
[0065] Among them, the input parameter of the operation link corresponding to the kth execution time interval in the timing control table of the power market is the starting time of the transaction date corresponding to the kth execution time interval in the timing control table of the power market, k∈(1,m), and m is the total number of execution time intervals in the timing control table of the power market.
[0066] Furthermore, the time t displayed by the system virtual clock of the power market is determined as follows: v :
[0067] t v =t s1 +(i·fI r )·R x
[0068] Where, t s1 is the start time of the first execution time interval in the timing control table of the power market; i is the number of times the power market simulation controller cyclically scans the power market system virtual clock; f is the frequency of the power market simulation controller cyclically scanning the power market system virtual clock; R x is the virtual clock scale; I r It is the abnormal processing time of power system simulation. If there is no abnormality in the simulation operation of the current operation link, then I r Take 0, otherwise I r Get the exception handling time of the current operation link.
[0069] Compared with the closest prior art, the present invention has the following beneficial effects:
[0070] The technical solution provided by the present invention generates a timing control table for the power market using the execution time intervals corresponding to the power market operation links within a simulation period; this timing control table is then used to simulate the power market operation. Based on the characteristics of various transaction types within the power market model, the execution time intervals and cycle periods of the power market operation links and each link during initial execution are flexibly set to generate a timing control table suitable for power markets of different modes. Based on this table, timing control is performed for the automatic operation simulation of power markets of different modes, thereby providing effective technical support for actual power market operation control. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 It is a flow chart of a timing control method for a power market operation simulation process;
[0072] Figure 2 It is a structural diagram of a timing control system for a power market operation simulation process. DETAILED DESCRIPTION
[0073] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0074] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of 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 making creative efforts shall fall within the scope of protection of the present invention.
[0075] The present invention proposes a timing control method for power market operation simulation process, such as Figure 1 As shown, the method includes:
[0076] Step 101. Determine a timing control table for executing each operation link according to each operation link and timing control parameters to be executed during the power market operation simulation;
[0077] In a specific embodiment of the present invention, different power market operation links are set according to different power market operation modes, as well as the execution time interval, transaction date and cycle period corresponding to each power market operation link when it is first executed; thereby realizing the generation of timing control tables for different power market operation modes.
[0078] The market operation links refer to the various execution steps that need to be experienced in the power market operation simulation process. They are the smallest units for the experimental master control program to implement the timing control of the simulation process.
[0079] Step 102: Calling the process information of the corresponding operation link according to the timing control table to execute the simulation process of each operation link;
[0080] The timing control parameters include a simulation period in the power market operation simulation process, and a cycle period, an execution time interval and a transaction date of each operation link within the simulation period.
[0081] Specifically, step 101 includes:
[0082] Step a. Initialize the execution time interval and transaction date corresponding to the first execution of each power market operation link within the simulation period;
[0083] Step b. Determine the execution time interval and transaction date corresponding to each power market operation link when the first l is executed according to the power market cycle;
[0084] Step c. According to the execution time interval, all execution time intervals and their corresponding power market operation links and transaction dates are arranged in ascending order to generate a timing control table for the power market;
[0085] Among them, l∈(2,L), L is the total number of times each power market operation link is executed during the simulation period.
[0086] In the best embodiment of the present invention, according to the design of power market rules, each power market operation link corresponds to a certain execution time interval, and the market link is active only within the execution time interval.
[0087] For example, if the time interval corresponding to the transaction declaration phase of the day-ahead electricity market on a certain day is 8:00-12:00 of the previous day, then in the actual market operation process, market members are only allowed to submit bidding declaration data when the system time is within this interval, otherwise they cannot be submitted. The time interval corresponding to the transaction clearing calculation phase is 12:00-16:00 of the previous day. Only when the system time is within this interval can the market operator click the clearing button to start the clearing calculation, otherwise it cannot be started.
[0088] Furthermore, the step a includes:
[0089] Initialize simulation period [D T1 ,D T2 ]The corresponding execution time interval when the i-th operation link of the power market is first executed is [D T1 -d si $$A$$HH si :mm si ,D T1 -d ei $$A$$HH ei :mmei ], simulation period [D T1 ,D T2 The transaction date corresponding to the first execution of the i-th operation link in the power market is D T1 ;
[0090] Among them, D T1 is the initial date of the simulation period, D T2 The end date of the simulation period; $$A$$ is a separator, d si is the first preset day of the ith operation link in the power market during the simulation period, d ei is the second preset day of the ith operation link in the power market during the simulation period, HH si is the starting hour of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, mm si is the starting minute of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, HH ei is the end hour of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, mm ei is the ending minute of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period.
[0091] Furthermore, the step b includes:
[0092] The starting time t of the execution time interval corresponding to the lth execution of the i-th operation link of the power market is determined by the following formula: l,si :
[0093] t l,si =D T1 +(l-1)·cd si 1440+HH si 60+mm si
[0094] The end time t of the execution time interval corresponding to the lth execution of the i-th operation link of the power market is determined by the following formula: l,ei :
[0095] t l,ei =D T1 +(l-1)·cd ei 1440+HH ei 60+mm ei
[0096] The transaction date R corresponding to the execution of the first operation link of the electricity market is determined by the following formula: i,l :
[0097] R i,l =D T1 +(l-1)·c
[0098] Where c is the cycle period of the power market operation link, in minutes.
[0099] In the best embodiment of the present invention, since the electricity market operation process has significant periodicity, when setting parameters, it is only necessary to set the execution time interval of each operation link when it is first executed during the simulation period and the cycle period of the link, so as to obtain all the execution time intervals of the link during the simulation period.
[0100] Specifically, the total number of times L that the power market operation links are executed during the simulation period is determined as follows:
[0101]
[0102] Where c is the cycle period of the ith operating link in the electricity market, in minutes.
[0103] Specifically, step 102 includes:
[0104] Step d. Scanning the system virtual clock of the electricity market;
[0105] Step e. When the time displayed by the system virtual clock of the power market is the start time of the kth execution time interval in the timing control table of the power market, the corresponding process of the operation link corresponding to the kth execution time interval in the timing control table of the power market is called according to the process name and input parameters of the operation link and the simulation operation of the operation link is started until the simulation operation of all operation links is completed;
[0106] Among them, the input parameter of the operation link corresponding to the kth execution time interval in the timing control table of the power market is the starting time of the transaction date corresponding to the kth execution time interval in the timing control table of the power market, k∈(1,m), and m is the total number of execution time intervals in the timing control table of the power market.
[0107] In the preferred embodiment of the present invention, the simulation master control program set in the simulation controller of the power market in different power market modes is different accordingly. The simulation master control program includes: an execution program and a calling program corresponding to each operation link in the power market;
[0108] The calling program is used to match the execution program corresponding to the process name and input parameters of the calling interface of the simulation controller of the power market.
[0109] When the power market needs to simulate a certain operation link, the power market simulation controller inputs the process name and input parameters corresponding to the link into the calling interface of the power market simulation controller; thereby enabling the controller to start the simulation operation of the link.
[0110] In the power market operation simulation control, since there may be multiple algorithms and rules in each market operation link, in order to improve the adaptability of the master control program, the present invention also configures the execution process corresponding to each market operation link, defines the process name and input parameters, and when a certain market operation link needs to be executed, as long as the corresponding process information is found, the process can be dynamically called based on the program's reflection mechanism according to the process name and the required input parameters to execute the corresponding program processing process.
[0111] If market rules change and the execution process of the trading operation simulation needs to be switched, as long as the process corresponding to the market operation link is the changed process and the corresponding input parameters, there is no need for frequent code modification and compilation.
[0112] Furthermore, the time t displayed by the system virtual clock of the power market is determined as follows: v :
[0113] t v =t s1 +(i·fI r )·R x
[0114] Where, t s1 is the start time of the first execution time interval in the timing control table of the power market; i is the number of times the power market simulation controller cyclically scans the power market system virtual clock; f is the frequency of the power market simulation controller cyclically scanning the power market system virtual clock; R x is the virtual clock scale; I r It is the abnormal processing time of power system simulation. If there is no abnormality in the simulation operation of the current operation link, then I r Take 0, otherwise I r Get the exception handling time of the current operation link.
[0115] In the preferred embodiment of the present invention, the power system simulation anomaly may be that the corresponding process of a certain operation link is not correctly called and the simulation operation of the operation link is not started; or the actual execution time of the process of a certain operation link exceeds the execution time interval set for the link, etc.
[0116] In a specific embodiment of the present invention, the power market operation simulation is different from the actual power market operation. It is often necessary to complete the simulation of a longer period of market operation process in a shorter period of time. Therefore, it is also necessary to set the virtual clock scale during the simulation. Assuming the scale is 1:60, then if the system time increases by 1 minute, the virtual clock will increase by 1 hour. In this way, when performing timing control of the simulation process, it is only necessary to operate according to whether the virtual clock performs the execution time of the market link, which can significantly speed up the market operation simulation process.
[0117] In a specific embodiment of the present invention, the frequency at which the simulation controller of the power market scans the system virtual clock of the power market needs to be preset, for example, the virtual clock is continuously scanned at a fixed frequency f (eg, every 0.5 / 1 / 2 minutes).
[0118] In a specific embodiment of the present invention, if an exception occurs during the execution of a power market operation link, an exception alarm is issued and pending processing is performed. After the exception processing is completed, the virtual time is first corrected based on the exception processing time, and then the market operation simulation is restarted from the market operation link. The corrected virtual time ensures that the time occupied by the exception processing stage does not affect the execution of subsequent market operation links. When the execution processes corresponding to all market link execution intervals in the timing control table have been called and executed, the market operation simulation process timing control is considered to be completed, and the power market simulation process ends.
[0119] In a specific embodiment of the present invention, the power market links under a certain power market model include three market operation links: market member agent declaration, transaction clearing calculation and clearing result release (which may need to be adjusted accordingly due to market rules or simulation analysis). The simulation period is from July 1 to July 31, and the cycle of the power market operation link is set to 1 day (1440 minutes). The operable time interval specified in the market member agent declaration link is 8:00-12:00; the execution operable time interval specified in the transaction clearing calculation link is 12:00-16:00; the execution operable time interval specified in the clearing result release is 16:00-18:00; the first preset number of days for each link in the power market during the simulation period is 1, and the second preset number of days for each link in the power market during the simulation period is 1; perform simulation control under the power market model; for example: the market members of the power market during the simulation period are: The first execution time interval corresponding to the member agent declaration phase is [6.30$$A$$8:00,6.30$$A$$12:00]; the execution time interval corresponding to the second execution of the market member agent declaration phase of the power market during the simulation period is [7.1$$A$$8:00,7.1$$A$$12:00]; Table 1 records the definition information of each market operation phase, where the definition information includes the functional classification, cycle information and process information of each market operation phase. The process information of each market operation phase includes: process name and input parameters; Table 2 records the timing control table of the power market operation from July 1 to July 2;
[0120] Table 1
[0121]
[0122] Table 2
[0123] Transaction process Start time End Time Trading Hours Market member agent declaration 6.30 8:00 6.30 12:00 7.1 Transaction clearing calculation 6.30 12:00 6.30 16:00 7.1 Clearance results released 6.30 16:00 6.30 18:00 7.1 Market member agent declaration 7.1 8:00 7.1 12:00 7.2 Transaction clearing calculation 7.1 12:00 7.1 16:00 7.2 Clearance results released 7.1 16:00 7.1 18:00 7.2 … … … …
[0124] The present invention provides a timing control system for power market operation simulation process, such as Figure 2 As shown, the system includes:
[0125] A determination module is used to determine the timing control table for executing each operation link according to each operation link and timing control parameters to be executed during the power market operation simulation;
[0126] An execution module, configured to call the process information of the corresponding operation link according to the timing control table to execute the simulation process of each operation link;
[0127] The timing control parameters include a simulation period in the power market operation simulation process, and a cycle period, an execution time interval and a transaction date of each operation link within the simulation period.
[0128] Specifically, the determination module is used, including:
[0129] An initialization unit, used to initialize the execution time interval and transaction date corresponding to the first execution of each power market operation link within the simulation period;
[0130] a determination unit, configured to determine, according to a cycle of the power market, an execution time interval and a transaction date corresponding to the first execution of each power market operation link;
[0131] A generating unit is used to generate a timing control table for the power market after arranging all execution time intervals and their corresponding power market operation links and transaction dates in ascending order according to the execution time intervals;
[0132] Among them, l∈(2,L), L is the total number of times each power market operation link is executed during the simulation period.
[0133] Furthermore, the initialization unit is used to:
[0134] Initialize simulation period [D T1 ,D T2 ]The corresponding execution time interval when the i-th operation link of the power market is first executed is [D T1 -d si $$A$$HH si :mm si ,D T1 -d ei $$A$$HH ei :mm ei ], simulation period [D T1 ,D T2 The transaction date corresponding to the first execution of the i-th operation link in the power market is D T1 ;
[0135] Among them, D T1 is the initial date of the simulation period, D T2 The end date of the simulation period; $$A$$ is a separator, d si is the first preset day of the ith operation link in the power market during the simulation period, d ei is the second preset day of the ith operation link in the power market during the simulation period, HH si is the starting hour of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, mm si is the starting minute of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, HH ei is the end hour of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period, mm eiis the ending minute of the execution time interval corresponding to the first execution of the i-th operation link in the power market during the simulation period.
[0136] Furthermore, the determining unit includes:
[0137] The starting time t of the execution time interval corresponding to the lth execution of the i-th operation link of the power market is determined by the following formula: l,si :
[0138] t l,si =D T1 +(l-1)·cd si 1440+HH si 60+mm si
[0139] The end time t of the execution time interval corresponding to the lth execution of the i-th operation link of the power market is determined by the following formula: l,ei :
[0140] t l,ei =D T1 +(l-1)·cd ei 1440+HH ei 60+mm ei
[0141] The transaction date R corresponding to the execution of the first operation link of the electricity market is determined by the following formula: i,l :
[0142] R i,l =D T1 +(l-1)·c
[0143] Where c is the cycle period of the power market operation link, in minutes.
[0144] Specifically, the total number of times L that the power market operation links are executed during the simulation period is determined as follows:
[0145]
[0146] Where c is the cycle period of the ith operating link in the electricity market, in minutes.
[0147] Specifically, the execution module includes:
[0148] A scanning unit, used for scanning the system virtual clock of the power market;
[0149] The simulation unit is configured to, when the time displayed by the system virtual clock of the power market is the start time of the kth execution time interval in the timing control table of the power market, call the corresponding process of the operation link according to the process name and input parameters of the operation link corresponding to the kth execution time interval in the timing control table of the power market and start the simulation operation of the operation link until the simulation operation of all operation links is completed;
[0150] Among them, the input parameter of the operation link corresponding to the kth execution time interval in the timing control table of the power market is the starting time of the transaction date corresponding to the kth execution time interval in the timing control table of the power market, k∈(1,m), and m is the total number of execution time intervals in the timing control table of the power market.
[0151] Furthermore, the time t displayed by the system virtual clock of the power market is determined as follows: v :
[0152] t v =t s1 +(i·fI r )·R x
[0153] Where, t s1 is the start time of the first execution time interval in the timing control table of the power market; i is the number of times the power market simulation controller cyclically scans the power market system virtual clock; f is the frequency of the power market simulation controller cyclically scanning the power market system virtual clock; R x is the virtual clock scale; I r It is the abnormal processing time of power system simulation. If there is no abnormality in the simulation operation of the current operation link, then I r Take 0, otherwise I r Take the exception handling time of the current operation link. Those skilled in the art will understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0154] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0155] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0156] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered by the scope of protection of the claims of the present invention.
Claims
1. A method for controlling the timing of a power market operation simulation process, characterized in that: The method comprises: According to the various operation links and timing control parameters that need to be executed during the power market operation simulation, determine the timing control table for executing each operation link; According to the timing control table, the process information of the corresponding operation link is called to execute the simulation process of each operation link; The timing control parameters include the simulation period in the power market operation simulation process, and the cycle period, execution time interval and transaction date of each operation link in the simulation period; The process of calling the process information of the corresponding operation link to execute the simulation process of each operation link according to the timing control table includes: Scanning the system virtual clock of the electricity market; When the time displayed by the system virtual clock of the power market is When the start time of the execution time interval is reached, the time control table of the power market is used to control the start time of the execution time interval. The process name and input parameters of the operation link corresponding to the execution time interval are used to call the corresponding process of the operation link and start the simulation operation of the operation link until the simulation operation of all operation links is completed; Among them, the timing control table of the power market The input parameters of the operation link corresponding to the execution time interval are the first The starting time of the trading date corresponding to the execution time interval, , is the total number of execution time intervals in the timing control table of the electricity market.
2. The method according to claim 1, wherein According to the various operation links and timing control parameters that need to be executed during the power market operation simulation, the timing control table for executing each operation link is determined, including: Initialize the execution time interval and transaction date corresponding to the first execution of each power market operation link during the simulation period; Determine the first step of each power market operation link according to the power market cycle The execution time range and transaction date corresponding to the execution; According to the execution time interval, all execution time intervals and their corresponding power market operation links and transaction dates are arranged in ascending order to generate a time sequence control table for the power market; in, , It is the total number of times each power market operation link is executed during the simulation period.
3. The method according to claim 2, wherein The execution time interval and transaction date corresponding to the first execution of each power market operation link within the initial simulation period include: Initialize simulation period The domestic electricity market The execution time interval corresponding to the first execution of an operation link is , simulation period The domestic electricity market The transaction date corresponding to the first execution of an operation link is ; in, is the initial date of the simulation period, is the end date of the simulation period; is a separator, The first The first preset number of days for each operation phase, The first The second preset number of days for each operation link, The first The starting hour of the execution time interval corresponding to the first execution of an operation link, The first The starting minutes of the execution time interval corresponding to the first execution of an operation link, The first The end hours of the execution time interval corresponding to the first execution of an operation link, The first The number of minutes that the execution time interval corresponding to the first execution of an operation link ends.
4. The method according to claim 3, wherein The determination of the first stage of each power market operation link according to the cycle of the power market The execution time range and transaction date corresponding to the execution, including: The first step of the electricity market is determined by the following formula: Operational stage The start time of the execution time interval corresponding to the execution of the : The first step of the electricity market is determined by the following formula: Operational stage The end time of the execution time interval corresponding to the execution time : The first step of the electricity market is determined by the following formula: Operational stage The corresponding transaction date when the transaction is executed : Where, It is the cycle period of the electricity market operation link, in minutes.
5. The method according to claim 3, wherein The total number of times the power market operation links are executed during the simulation period is determined by the following formula: : Where, For the electricity market The cycle time of each operation link, in minutes.
6. The method according to claim 5, wherein The time displayed by the system virtual clock of the electricity market is determined by the following formula : Where, The start time of the first execution time interval in the timing control table of the power market; The number of times the simulation controller of the power market cycles through the system virtual clock of the power market; A frequency of a system virtual clock for a power market that is cyclically scanned by a simulation controller for the power market; is the virtual clock scale; It is the abnormal processing time of power system simulation. If there is no abnormality in the simulation operation of the current operation link, Take 0, otherwise Get the exception handling time of the current operation link.
7. A timing control system for power market operation simulation process, characterized in that: The system comprises: A determination module is used to determine the timing control table for executing each operation link according to each operation link and timing control parameters to be executed during the power market operation simulation; An execution module, configured to call the process information of the corresponding operation link according to the timing control table to execute the simulation process of each operation link; The timing control parameters include the simulation period in the power market operation simulation process, and the cycle period, execution time interval and transaction date of each operation link in the simulation period; The execution module includes: A scanning unit, used for scanning the system virtual clock of the power market; The simulation unit is used to set the time displayed by the system virtual clock of the power market to the time control table of the power market. When the start time of the execution time interval is reached, the time control table of the power market is used to control the start time of the execution time interval. The process name and input parameters of the operation link corresponding to the execution time interval are used to call the corresponding process of the operation link and start the simulation operation of the operation link until the simulation operation of all operation links is completed; Among them, the timing control table of the power market The input parameters of the operation link corresponding to the execution time interval are the first The starting time of the trading date corresponding to the execution time interval, , is the total number of execution time intervals in the timing control table of the electricity market.
8. The system according to claim 7, wherein: Utilize the identified modules, including: An initialization unit, used to initialize the execution time interval and transaction date corresponding to the first execution of each power market operation link within the simulation period; The determination unit is used to determine the first step of each power market operation link according to the power market cycle. The execution time range and transaction date corresponding to the execution; A generating unit is used to generate a timing control table for the power market after arranging all execution time intervals and their corresponding power market operation links and transaction dates in ascending order according to the execution time intervals; in, , It is the total number of times each power market operation link is executed during the simulation period.
9. The system according to claim 8, wherein The initialization unit is used to: Initialize simulation period The domestic electricity market The execution time interval corresponding to the first execution of an operation link is , simulation period The domestic electricity market The transaction date corresponding to the first execution of an operation link is ; in, is the initial date of the simulation period, is the end date of the simulation period; is a separator, The first The first preset number of days for each operation phase, The first The second preset number of days for each operation link, The first The starting hour of the execution time interval corresponding to the first execution of an operation link, The first The starting minutes of the execution time interval corresponding to the first execution of an operation link, The first The end hours of the execution time interval corresponding to the first execution of an operation link, The first The number of minutes that the execution time interval corresponding to the first execution of an operation link ends.
10. The system according to claim 9, wherein The determining unit includes: The first step of the electricity market is determined by the following formula: Operational stage The start time of the execution time interval corresponding to the execution of the : The first step of the electricity market is determined by the following formula: Operational stage The end time of the execution time interval corresponding to the execution time : The first step of the electricity market is determined by the following formula: Operational stage The corresponding transaction date when the transaction is executed : Where, It is the cycle period of the electricity market operation link, in minutes.
11. The system according to claim 9, wherein The total number of times the power market operation links are executed during the simulation period is determined by the following formula: : Where, For the electricity market The cycle time of each operation link, in minutes.
12. The system according to claim 11, wherein The time displayed by the system virtual clock of the electricity market is determined by the following formula : Where, The start time of the first execution time interval in the timing control table of the power market; The number of times the simulation controller of the power market cycles through the system virtual clock of the power market; A frequency of a system virtual clock for a power market that is cyclically scanned by a simulation controller for the power market; is the virtual clock scale; It is the abnormal processing time of power system simulation. If there is no abnormality in the simulation operation of the current operation link, Take 0, otherwise Get the exception handling time of the current operation link.
Citation Information
Patent Citations
Power market panorama experiment platform
CN106447462A