High-efficiency reinforcement learning method and device for operation scheduling of controlled system
Through the sampling data distribution algorithm and supplementary sampling mechanism, the problem of the impact of state-action on the distribution of sample numbers in complex controlled systems is solved, the learning efficiency and action accuracy are improved, and efficient operation scheduling of systems such as smart grids is achieved.
Patent Information
- Application Number
- CN202410798963.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-20
AI Technical Summary
In the operation and scheduling of complex controlled systems such as smart grids, existing reinforcement learning methods are difficult to distinguish the number of samples of different state-action pairs, resulting in low learning efficiency and poor optimal action accuracy.
Through the sampling data allocation algorithm, based on the Q-factor sample variance of each action in each state and the total amount of consumed samples, the target sample size of each action in each state is determined, supplementary sampling is performed, and the total sampling amount is adjusted to distinguish the importance of the actions. , asymptotically maximizes the probability of correctly selecting the optimal action.
It improves the learning efficiency of complex controlled system operation and scheduling, significantly improves online decision-making time, reduces data usage, and ensures the estimability of optimal actions.
Smart Images

Figure CN118674066A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of reinforcement learning, and in particular to a high-efficiency reinforcement learning method and device for operation scheduling of a controlled system. Background Art
[0002] For complex controlled systems (such as smart grids), their economic operation has important engineering requirements. Reinforcement learning has the potential to learn from data and gradually improve strategy performance, so it has received high attention in engineering applications. Taking smart grids as an example, the state space (such as the power generation side, demand side, and energy storage side) and action space (such as power generation scheduling, charging power of electric vehicle charging piles, and charging or discharging power of energy storage power stations) in actual problems are generally very large. The reinforcement learning methods for the operation scheduling of complex controlled systems in the prior art have the following limitations:
[0003] (1) In the online learning process, the sample efficiency can be improved by scheduling the number of samples allocated to different actions after the current state is given. However, the importance of decisions in different states varies. It is difficult to systematically distinguish the differences in the importance of different decisions in the online learning process. Therefore, the existing methods have the problem of being unable to quickly obtain the optimal strategy when computing resources are limited.
[0004] (2) During the offline learning process, although different numbers of samples can be allocated to different (state, action) pairs, the impact of decision importance on sample allocation under different states is not analyzed, resulting in long learning time, low efficiency, and poor strategy determination performance. Summary of the invention
[0005] The present invention is used to solve the problem in the prior art that the influence of different state-action pairs on the distribution of sampling quantity is not distinguished during the operation scheduling of a complex controlled system, resulting in low learning efficiency and poor optimal action accuracy.
[0006] In order to solve the above technical problems, the first aspect of the present invention provides a high-efficiency reinforcement learning method for operation scheduling of a controlled system, comprising:
[0007] Sampling the simulation results of each state-action pair of the controlled system according to a preset sampling number, and determining the action type of each action under each state, the Q factor sample variance of each state-action pair, and the total amount of consumed samples according to the sampled simulation results;
[0008] The sample variance of the Q factor of each state-action pair and the total amount of consumed samples are analyzed by using the sampling data allocation algorithm to obtain the target sample size of each action in each state. The sampling data allocation algorithm includes a sampling quantity determination criterion for distinguishing the importance of each type of action in each state, which is used to asymptotically maximize the probability of correctly selecting the optimal action.
[0009] Determine the number of additional samples for each action based on the target sample size of each action and the sample size consumed by each action;
[0010] Supplementary sampling is performed according to the number of supplementary samplings for each action, and the action type of each action and the Q factor sample variance of each state-action pair are re-determined using the simulation results of the supplementary sampling;
[0011] Adjust the total amount of consumed samples to determine whether the total amount of consumed samples is less than the preset total sampling amount. If so, recalculate the target sample amount and the steps thereafter. If not, output the optimal action observed under each state.
[0012] As a further embodiment of the present invention, the sampling data allocation algorithm determination process includes:
[0013] Establish the objective function of the control strategy based on the equipment information and load information of the controlled system, system status, control action, and optimization target information;
[0014] Converting the objective function of the control strategy to obtain an action Q function of reinforcement learning;
[0015] According to the action Q function, an objective function of an approximate optimal action selection probability function and an action sampling quantity constraint condition are established, wherein the objective function of the approximate optimal action selection probability function has a data item for distinguishing the importance of each type of action in each state;
[0016] According to the objective function of the approximate optimal action selection probability function and the action sampling quantity constraint condition, the criteria of the sampling data allocation algorithm are determined.
[0017] As a further embodiment of the present invention, according to the action Q function, an objective function and action sampling quantity constraint conditions of an approximate optimal action selection probability function are established, including:
[0018] According to the action Q function, the true optimal action selection probability function and action sampling quantity constraint conditions are established;
[0019] Based on the importance of each type of action in each state, the true optimal action selection probability function is transformed to obtain an approximate optimal action selection probability function.
[0020] As a further embodiment of the present invention, the objective function of the approximate optimal action selection probability function and the action sampling quantity constraint condition are expressed by the following formula:
[0021] Max APCS;
[0022]
[0023]
[0024] Among them, APCS represents the approximate optimal action selection probability, Represents the optimal action observed in state s Q(s,a) represents the Q factor of the non-observable optimal action a in state s, (s) represents the steady-state probability distribution of state s, ε represents a constant, and N sa represents the sampling amount of any action a in state s, and N represents the total sampling amount.
[0025] As a further embodiment of the present invention, the sampling data allocation algorithm is used to indicate:
[0026] The larger the noise-to-signal ratio of the non-observed optimal action under each state s, the larger the number of samples of the non-observed optimal action. The noise in the noise-to-signal ratio refers to the sample standard deviation of the Q factor of the non-observed optimal action under each state s, and the information in the noise-to-signal ratio refers to the performance difference between the Q factor of the non-observed optimal action under each state s and the Q factor of the observed optimal action under state s.
[0027] The number of samples of the best observed action in each state s should be greater than the number of samples of other non-best observed actions;
[0028] The number of samples of the best observed action in each state should be proportional to the product of the steady-state probability of each state and the sample standard deviation of the Q factor of each state.
[0029] As a further embodiment of the present invention, the sampling data allocation algorithm includes the following criteria:
[0030] Criterion 1: For unobserved optimal actions i and j,
[0031] Among them, N si represents the number of samples of action i in state s, N sj represents the number of samples of action j in state s, σ si represents the sample standard deviation of the Q factor of action i in state s, σ sj represents the sample standard deviation of the Q factor of action j in state s, δ si represents the difference between the performance of action i in state s and the observed best action in state s, δ sj represents the difference between the performance of action j in state s and the observed best action in that state s;
[0032] Criterion 2: The optimal action a for an observation in state s b ,
[0033] in, Indicates action a in state s b The number of samples, Indicates the action in state s ab The sample standard deviation of the Q factor, N sa represents the number of samples of non-observed optimal action a under state s, sa represents the sample standard deviation of the Q factor of the non-observed optimal action a in state s;
[0034] Criterion 3: The optimal action a for the observation in state s1 b (s1) and the observed optimal action a in state s2 b (s2),
[0035]
[0036] in, represents the observed optimal action a under state s1 b The number of samples of (s1), represents the observed optimal action a in state s2 b (s2), π(s1) represents the steady-state probability distribution of state s1, π(s2) represents the steady-state probability distribution of state s2, represents the observed optimal action a under state s1 b The sample standard deviation of the Q factor (s1), represents the observed optimal action a in state s2 b (s2) is the sample standard deviation of the Q factor.
[0037] As a further embodiment of the present invention, the sample variance of the Q factor of each state-action pair and the total amount of consumed samples are analyzed using a sampling data allocation algorithm to obtain the target sample size of each action in each state, including:
[0038] The Q-factor sample variance of each state-action pair is analyzed according to the sampling data allocation algorithm to obtain the target sample quantity ratio of each action in each state;
[0039] The number of samples that should be obtained for each action in each state is obtained by multiplying the target sample number ratio of each action in each state by the total number of consumed samples;
[0040] The larger of the number of samples that should be obtained for each action in each state and the number of samples actually used for each action in each state is selected as the target number of samples for each action in each state.
[0041] A second aspect of the present invention provides a high-efficiency reinforcement learning device for operation scheduling of a controlled system, comprising:
[0042] A simulation calculation unit, used to sample the simulation results of each state-action pair of the controlled system according to a preset sampling number, and determine the action type of each action under each state, the Q factor sample variance of each state-action pair, and the total amount of consumed samples according to the sampled simulation results;
[0043] A target sampling amount determination unit is used to analyze the Q factor sample variance and the total amount of consumed samples of each state-action pair using a sampling data allocation algorithm to obtain a target sample amount of each action in each state, wherein the sampling data allocation algorithm includes a sampling quantity determination criterion for distinguishing the importance of each type of action in each state, and is used to asymptotically maximize the probability of correctly selecting the optimal action;
[0044] A supplementary sampling amount determination unit, used to determine the number of supplementary sampling for each action according to the target sample amount of each action and the consumed sample amount of each action;
[0045] A supplementary sampling unit, used for performing supplementary sampling according to the supplementary sampling quantity of each action, and re-determining the action type of each action and the Q factor sample variance of each state-action pair by using the simulation result of the supplementary sampling;
[0046] The analysis unit is used to adjust the total amount of consumed samples and determine whether the total amount of consumed samples is less than the preset total sampling amount. If so, the target sampling amount determination unit is restarted. If not, the optimal action observed under each state is output.
[0047] The high-efficiency reinforcement learning method and device for the operation and scheduling of the controlled system provided by the present invention are applicable to complex controlled systems including multiple states and multiple actions, such as smart grids. The Q function analysis obtained by converting the objective function of the controlled system obtains a sampling quantity determination criterion that can distinguish the importance of various types of actions under various states. With the help of the sampling quantity determination criterion, the probability of correctly selecting the optimal action can be gradually maximized, and the simulation resources can be concentrated on the important actions that really need to be distinguished, so as to achieve effective sampling, reduce learning time, and reduce time costs, so that the observation results of each action are more and more accurate, and finally the optimal action is obtained. Compared with the prior art, the full set of feasible strategies is considered, and the importance differences of different state-action pairs can be distinguished, and the estimability of the selection of the optimal action can be guaranteed, and the performance of the final determination of the action can be improved. At the same time, the present invention can also improve the data efficiency of online reinforcement learning in the operation and scheduling process of the controlled system through the control of the sampling amount, significantly improve the time required for online decision-making, and reduce the amount of data used.
[0048] In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 A flow chart showing a process of determining a sampling data allocation algorithm according to an embodiment of the present invention is shown;
[0051] Figure 2 A flow chart showing a high-efficiency reinforcement learning method for operation scheduling of a controlled system according to an embodiment of the present invention is shown;
[0052] Figure 3 A flowchart showing a process of determining the sampling amount of each action target in each state of an embodiment of the present invention is shown;
[0053] Figure 4 A structural diagram showing a high-efficiency reinforcement learning device for operation scheduling of a controlled system according to an embodiment of the present invention is shown;
[0054] Figure 5 A structural diagram of a computer device according to an embodiment of the present invention is shown;
[0055] Figure 6 A flowchart of a high-efficiency reinforcement learning method program design according to an embodiment of the present invention is shown.
[0056] Description of the accompanying symbols:
[0057] 401, simulation calculation unit;
[0058] 402. Target sampling amount determination unit;
[0059] 403. Supplementary sampling volume determination unit;
[0060] 404. Supplementary sampling unit;
[0061] 405. Analysis unit;
[0062] 502. Computer equipment;
[0063] 504, processor;
[0064] 506. Memory;
[0065] 508, driving mechanism;
[0066] 510, input / output module;
[0067] 512. Input devices;
[0068] 514. Output device;
[0069] 516. Presentation equipment;
[0070] 518. Graphical user interface;
[0071] 520, network interface;
[0072] 522, communication link;
[0073] 524. Communication bus. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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.
[0075] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes 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 equipment.
[0076] This specification provides method operation steps as described in the embodiments or flow charts, but more or fewer operation steps may be included based on routine or non-creative work. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the system or device product is executed in practice, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel.
[0077] It should be noted that the data involved in the present invention (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the acquisition, transmission, storage, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0078] It should be noted that in the embodiments of the present invention, certain software, components, models and other existing solutions in the industry may be mentioned, which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present invention, but it does not mean that the applicant has or will necessarily use the solution.
[0079] The controlled system described in the present invention is a system with multiple states and multiple actions, such as a smart grid system, and the corresponding state space includes, for example, the states of the power generation side, the demand side, and the energy storage side of the power grid, and the corresponding action space includes, for example, power generation scheduling, the charging power of electric vehicle charging piles, and the charging or discharging power of energy storage power stations. In specific implementation, it can also be other multi-state and multi-action systems, and the present invention does not specifically limit the controlled system.
[0080] Before implementing the high-efficiency reinforcement learning method for the operation scheduling of the controlled system described in the present invention, a sampling data allocation algorithm needs to be established to indicate:
[0081] (1) The larger the noise-to-signal ratio of the non-observable optimal action in each state s, the larger the number of samples of the non-observable optimal action.
[0082] The noise in the noise-to-signal ratio refers to the sample standard deviation of the Q factor of the non-observed optimal action under each state s, and the information in the noise-to-signal ratio refers to the performance difference between the Q factor of the non-observed optimal action under each state s and the Q factor of the observed optimal action under state s;
[0083] (2) The number of samples of the observed optimal action in each state s should be greater than the number of samples of other non-observed optimal actions.
[0084] (3) The number of samples of the best observed action in each state should be proportional to the product of the steady-state probability of each state and the sample standard deviation of the Q factor of each state.
[0085] Specifically, Figure 1 As shown, the sampling data allocation algorithm determination process includes:
[0086] Step 101, establishing the objective function of the control strategy according to the device information and load information of the controlled system, the system state, the control action, and the optimization target information.
[0087] Step 102: convert the objective function of the control strategy to obtain the action Q function of reinforcement learning.
[0088] Step 103: Based on the action Q function, an objective function approximating the optimal action selection probability function and action sampling quantity constraints are established.
[0089] The objective function of the approximate optimal action selection probability function has data items for distinguishing the importance of each type of action in each state.
[0090] Step 104, determining the criteria of the sampling data allocation algorithm according to the objective function of the approximate optimal action selection probability function and the action sampling quantity constraint.
[0091] Specifically, the device information, load information, system status, control action, and optimization target information in step 101 may be determined according to the specific conditions of the controlled system, and the present invention does not limit the specific parameters included therein. An objective function is established according to the device information, load information, system status, control action, and optimization target.
[0092] Taking the controlled system as a smart grid as an example, consider a grid with a large number of renewable energy sources (such as solar energy, wind energy, etc.). The randomness and volatility of renewable energy generation require coordinated control of the supply side and demand side of the grid. Optimization control on one side alone may not guarantee the stable operation of the entire grid system. There are many types of equipment in this grid (such as power consumption equipment, energy storage equipment, and power generation equipment), so the state space is very large. It is hoped that by offline learning, relatively important (state, action) pairs can be found from a large number of (state, action) pairs, and sampling resources can be properly allocated according to the importance of (state, action), so that the best possible operation scheduling strategy can be found within a limited time.
[0093] In some implementations, the established control target can be expressed using the following formula:
[0094]
[0095] Among them, s t Represents the system state vector at time t. Taking the controlled system as a smart grid to which a large amount of new energy (such as solar energy, wind energy, etc.) is connected as an example, the system state vector includes, for example, the power generation power of each power generation device, the power demand of each power consumption device, the energy storage level of each energy storage device, etc.;
[0096] d represents the operation scheduling strategy, that is, the action taken is determined based on the system status. For example, the scheduling strategy is the charging or discharging power of the energy storage device, the power generation power of the generator set, the total charging power of the electric vehicle charging station, etc.;
[0097] c t represents the control target of the controlled system at time t, for example, a cost function. Taking the controlled system as a smart grid as an example, for example, the total power generation cost of the smart grid, including relatively free or low-cost new energy power generation and relatively high-priced large power grid power generation costs minus fees collected from users, etc.;
[0098] T represents the total simulation time;
[0099] J(d) represents the average operating cost of strategy d.
[0100] For formula (1), the control objective is to minimize J(d), and the content expressed by formula (1) can be described as:
[0101]
[0102] Among them, N sa represents the sampling amount of the Q factor of (state, action) to (s, a); S represents the state space, s represents the state; A represents the action space, a represents the action; N represents the total sampling amount, which is a preset value and can be set by the user according to actual needs; d b Represents the target control strategy.
[0103] When step 102 is implemented, the action Q function is established according to the above formula (1):
[0104]
[0105] Among them, Q d (s,a) represents the Q function of action a in state s; d represents the given strategy; for simplicity, the above Q d (s,a) can also be expressed as Q(s,a);
[0106] c represents the target object value corresponding to state s and action a;
[0107] s' represents the future state; P(s'|s, a) represents the probability of taking action a from state s to the next state s';
[0108] Q d (s',d(s')) represents the Q factor under state s' and its strategy d'.
[0109] Furthermore, since P(s′|s, a) is usually not available, the Q function of formula (3) can be observed using the following formula:
[0110]
[0111] Among them, Q k+1 (s,a) represents Q d The estimated value of (s,a); Q k (s',d(s')) represents Q d (s',d(s')) estimated value, k is the number of iterations.
[0112] The above step 103 establishes an objective function and action sampling quantity constraint conditions of an approximate optimal action selection probability function according to the action Q function, including:
[0113] First, according to the action Q function, the true optimal action selection probability function and the action sampling quantity constraint conditions are established; then the true optimal action selection probability function is transformed to obtain the approximate optimal action selection probability function.
[0114] In a specific implementation, the true optimal action selection probability function is expressed as follows:
[0115]
[0116] Among them, PCS represents the true optimal action selection probability function, that is, probability of correct selection (the probability function of correctly selecting the control action);
[0117] π(s) represents the steady-state probability distribution of state s, which can be estimated by simulation;
[0118] Q(s,a b (s) is the action Q function, representing the state s and action a b The starting objective function value, such as average cost;
[0119] ε is a constant, which indicates the value that the objective function value should not exceed, such as the value that the average operation cost of the power grid should not exceed;
[0120] Represents the action sampling quantity constraint.
[0121] Compared with the objective function expressed by formula (1), the true optimal action selection probability function maximizes the probability of finding an operation strategy, thus converting the performance of the optimal operation strategy that is difficult to evaluate into a probability that is relatively easy to evaluate.
[0122] In one specific implementation, the reasoning process of (5) includes:
[0123] According to Bayesian theory, the samples obtained are considered N sa is given and fixed, and the true value Q(s,a) is regarded as a random variable that obeys the posterior distribution. In fact, if the prior distribution obeys the Gaussian distribution, and the observation noise also obeys the Gaussian distribution, then the posterior distribution also obeys the Gaussian distribution. In this embodiment, the observation noise refers to the observed sample mean The difference between the actual sample Q(s,a). According to the central limit theorem, assuming that the sample If the sample means are independently distributed, The difference with Q(s,a) obeys Gaussian distribution, and then we can conclude:
[0124] Assumption: For all states and actions, the prior distribution of Q(s,a) follows a Gaussian distribution
[0125] Under the above assumptions, the lag distribution of Q(s,a) follows a Gaussian distribution yes variance.
[0126] Since the true Q(s,a) is a random variable, if the best action observed is chosen in each state, the performance of the policy can be expressed as:
[0127]
[0128] in, For a steady-state distribution, the probability of the correct choice is:
[0129]
[0130] However, the optimal strategy The authenticity of is difficult to evaluate. Instead, according to the above formula, we can determine that maximizing the probability of correct selection can obtain the optimal strategy, that is, we get the above (5).
[0131] In some implementations, the objective function of the approximate optimal action selection probability function and the action sampling quantity constraint are expressed using the following formula:
[0132] Max APCS;
[0133]
[0134] Among them, APCS represents the approximate optimal action selection probability function;
[0135] Represents the optimal action observed in state s Q factor value;
[0136] Q(s,a) represents the Q factor value of the non-observed optimal action a in state s;
[0137] π(s) represents the steady-state probability distribution of state s;
[0138] ε represents a constant;
[0139] N sa represents the sampling amount of any action a in state s;
[0140] N represents the total number of samples.
[0141] In the approximate optimal action selection probability function, It is a data item that distinguishes the importance of each type of action in each state. The meaning of the approximate optimal action selection probability function is that the observed optimal action in each state is indeed the true optimal action and the objective function value of the observed optimal strategy does not exceed ε.
[0142] Specifically, the reasoning process of obtaining formula (6) based on formula (5) includes:
[0143] PCS is difficult to calculate in a closed form. Based on this, we first give the lower bound of PCS, which represents the approximate PCS (denoted as APCS). Specifically, based on the Bonferroni inequality and PCS, we can get the following inequality:
[0144]
[0145] The right side of formula (7) is APCS.
[0146] In order to further obtain the accurate expression of APCS, we have:
[0147]
[0148] in,
[0149] therefore, Obey Gaussian distribution in:
[0150]
[0151] Then we can get:
[0152]
[0153] in,
[0154]
[0155] We can further get:
[0156]
[0157] By integrating formulas (7)-(9), we can obtain:
[0158]
[0159] The right side of the above equation is expressed as APCS.
[0160] In the above step 104, in order to solve formula (10), according to the Lagrangian idea, the following Lagrangian function can be obtained based on APCS:
[0161]
[0162] Here, λ is the Lagrange multiplier.
[0163] According to the Karush-Kuhn-Tucker (KKT) condition, the following necessary conditions for local optimal performance can be obtained:
[0164]
[0165] Based on this, we can get:
[0166] First, for the unobserved optimal action a in state s, we can get:
[0167]
[0168] in,
[0169]
[0170] Combining formula (11) to formula (13), we can get:
[0171]
[0172] Secondly, the best action for observing state s is You can get:
[0173]
[0174] Based on the above formula, APCS can be rewritten as:
[0175] APCS=A+B;
[0176] in, Then we can get:
[0177]
[0178] Combining formulas (15) and (16), we can obtain:
[0179]
[0180] Furthermore, we can get
[0181]
[0182] Next, we introduce N sb1 and N sb2 Represents A and B respectively The value of, and analyze to the end, let N sb1 =N sb2 , we can get:
[0183]
[0184] Next, analyze N saFirst, assuming that non-optimal actions i and j are observed in state s, according to formula (14), we can get:
[0185]
[0186] When the total amount of samples N tends to infinity, most of the samples should be allocated to observe the best action in state s.
[0187] Assumptions Then we get:
[0188]
[0189] Further we get:
[0190]
[0191] By rearranging the above equation, we can obtain:
[0192]
[0193] Taking the logarithm of both sides, we can get:
[0194]
[0195] When N is large enough, the logarithmic term is significantly smaller than the other terms, and we can get:
[0196]
[0197] The best action for observation Combining formula (14) and (17), we can get:
[0198]
[0199] According to formula (18), for two actions, the optimal action is observed in different states. and You can get:
[0200]
[0201] Further we get:
[0202]
[0203] Formulas (19), (20), and (21) can form the criteria for the sampling data allocation algorithm.
[0204] Compared with the objective function of the true optimal action selection probability function, the objective function of the approximate optimal action selection probability function replaces the difficult-to-calculate joint probability of the true optimal action selection probability function with the probability of matching between the observed optimal action and other actions under each state s, and the probability of observing the optimal action performance under all states. The objective function of the approximate optimal action selection probability function is easier to calculate than the objective function of the true optimal action selection probability function, and can even be accelerated by parallel computing. Based on the determination of the sampling data allocation algorithm, the objective function of the approximate optimal action selection probability function can easily calculate the asymptotic optimal solution.
[0205] In the above step 104, according to the objective function of the approximate optimal action selection probability function and the action sampling quantity constraint condition, the criteria of the sampling data allocation algorithm are determined as follows:
[0206] Criterion 1: For unobserved optimal actions i and j,
[0207] Among them, N si represents the number of samples of action i in state s, N sj represents the number of samples of action j in state s, σ si represents the sample standard deviation of the Q factor of action i in state s, σ sj represents the sample standard deviation of the Q factor of action j in state s, δ si represents the difference between the performance of action i in state s and the observed best action in state s, δ sj It represents the difference between the performance of action j in state s and the observed optimal action in the state s; specifically, the difference can be reflected by the corresponding Q factor difference.
[0208] Criterion 2: Optimal action for an observation in state s ab ,
[0209] in, Indicates the action in state s ab The number of samples, Indicates the action in state s ab The sample standard deviation of the Q factor, N sa represents the number of samples of non-observed optimal action a in state s, σ sa represents the sample standard deviation of the Q factor of the non-observed optimal action a in state s;
[0210] Criterion 3: The optimal action a for the observation in state s1 b (s1) and the observed optimal action a in state s2 b (s2),
[0211]
[0212] in, represents the observed optimal action a under state s1 b The number of samples of (s1), represents the observed optimal action a in state s2 b (s2), π(s1) represents the steady-state probability distribution of state s1, π(s2) represents the steady-state probability distribution of state s2, represents the observed optimal action a under state s1 b The sample standard deviation of the Q factor (s1), represents the observed optimal action a in state s2 b (s2) is the sample standard deviation of the Q factor.
[0213] At the same time, criterion 4 must be met:
[0214]
[0215] Criterion 1 states that the number of samples of two non-observed optimal actions i and j in state s should be proportional to the square of their "noise-to-signal ratio". The noise in the noise-to-signal ratio refers to the sample standard deviation of the single observation performance of the Q factor of the (state, action) pair, and the information in the noise-to-signal ratio refers to the information of the (state, action) pair and the observed optimal action a in the state. b (ie (s,a b )) has poor Q factor performance.
[0216] Criterion 2 states that the optimal action a in state s is b (s) The sample size should be proportional to the Q factor of a single observation and the standard deviation of the Q factor should be clearly given. Should be equal to the number of samples obtained by other actions in the same state (N sa / σ sa ) 2 If the observed standard deviations of the Q factors of the actions are similar, then observing the best action will obtain significantly more samples than other actions.
[0217] Criterion 3 states that the number of samples that should be obtained for the Q factor corresponding to the best observed action in two different states should be proportional to the product of the steady-state probability of each state and the standard deviation of its Q factor sample. According to Criterion 3, the best observed action in the state that often appears in the steady state will obtain more samples than the best observed action in other states.
[0218] Criterion 4 states that after calculating the proportion of the number of samples that the Q factor of each (state, action) pair should obtain according to Criteria 1-3, the total number of samples should be equal to the given total number of samples.
[0219] On the basis of determining the sampling data allocation algorithm, a high-efficiency reinforcement learning method for the operation scheduling of the controlled system can be implemented. Specifically, Figure 2 As shown in FIG. 1 , the efficient reinforcement learning method for the operation scheduling of the controlled system includes:
[0220] Step 201, sampling the simulation results of each state-action pair of the controlled system according to a preset sampling number, and determining the action type of each action under each state, the Q factor sample variance of each state-action pair and the total amount of consumed samples according to the sampled simulation results.
[0221] When this step is implemented, each action in each state and each state-action pair can be recorded as (state, action).
[0222] The preset sampling amount (N0) can be set according to the preset total sampling amount N, the preset number of cycles, the action space and the newly added sampling amount △. Generally, the preset number of cycles is greater than 10, and the preset total sampling amount N is much greater than the preset sampling amount N0 multiplied by the action amount in the action space.
[0223] The actions in this step can be determined according to the action space. For example, in a scenario where ten vehicles are charged, each vehicle has two actions: charging and not charging. Then, the ten vehicles combined will have 1024 actions.
[0224] The state in this step can be determined based on the state space.
[0225] In this step, (state, action) can directly act on the simulation model of the controlled system (such as a digital twin model), and the simulation results of each (state, action) can be determined through the simulation model. In specific implementation, the execution results of the preset sampling amount can also be obtained from the historical data according to the state and action, and the obtained execution results are used as simulation results.
[0226] The total amount of consumed samples in this step is the product of the total state amount, the total action amount and the preset sampling amount plus the preset increase amount. The following formula can be used for calculation during implementation:
[0227]
[0228] Among them, n0 represents the preset sampling amount; S represents the state amount in the state space; A represents the action amount in the action space; Δ represents the preset increase amount. Among them, the preset increase amount is a preset value, and its selection should make the number of iterations of the entire algorithm not too much or too little, for example, at least 10 times or 20 times.
[0229] Step 202: Analyze the Q factor sample variance and the total amount of consumed samples of each state-action pair using a sampling data allocation algorithm to obtain the target sample size of each action in each state.
[0230] The sampling data allocation algorithm includes a sampling quantity determination criterion for distinguishing the importance of each type of action in each state, and the criterion is used to gradually maximize the probability of correctly selecting the optimal action. The criterion determination process can refer to the aforementioned embodiment and will not be repeated here.
[0231] Step 203, determining the number of supplementary samples for each action according to the target sample size of each action and the consumed sample size of each action.
[0232] Step 204 , performing supplementary sampling according to the supplementary sampling quantity of each action, and re-determining the action type of each action and the Q factor sample variance of each state-action pair using the simulation result of the supplementary sampling.
[0233] Step 205, adjust the total amount of consumed samples, and determine whether the total amount of consumed samples is less than the preset total sampling amount. If so, re-execute step 202 and subsequent steps. If not, output the optimal action observed under each state.
[0234] When this step is implemented, the consumed sampling amount is increased by the newly added sampling amount △ to obtain the adjusted total consumed sampling amount. The action sampling amount constraint condition is the preset total sampling amount N, which can be set according to the preset sampling amount initial value and action space in step 201, as long as the preset number of steps 201 to 205 can be repeated.
[0235] In this step, if the total amount of consumed samples is less than or equal to the action sampling amount constraint, it means that the consumed sampling amount after the next iteration has not reached or is exactly equal to the preset total sampling amount, and the feasibility of the action can continue to be observed in a loop. If the total amount of consumed samples is greater than the action sampling amount constraint, it means that the consumed sampling amount after the next iteration exceeds the preset total sampling amount, and the feasibility of the action cannot be observed.
[0236] In a specific implementation manner, the algorithm process of this embodiment is as follows Figure 6 shown. Figure 6 Where n0 is the preset sampling amount, a represents the action, represents the action space, σ sa 2 represents the standard deviation of the Q factor samples of state s-action a, n0|S||A represents the number of samples actually consumed, Indicates the number of samples consumed, △ indicates the number of new samples, N indicates the total number of preset samples, α sa Indicates the sample size ratio between state s and action a. is the number of samples that should be obtained for state s-action a, N sa is the number of samples consumed by state s-action i, N sa ' is the target sample size of state s-action i, N sa '-N sais the supplementary sampling amount of state s-action a; represents the best action observed for the final determined state s.
[0237] After obtaining the optimal action observed in each state, the controlled system can be controlled according to the optimal action observed in each state.
[0238] This embodiment is applicable to complex controlled systems including multiple states and multiple actions, such as smart grids. According to the Q function analysis obtained by converting the objective function of the controlled system, a sampling quantity determination criterion that can distinguish the importance of various types of actions under each state is obtained. With the help of the sampling quantity determination criterion, the probability of correctly selecting the optimal action can be gradually maximized, and simulation resources can be concentrated on important actions that really need to be distinguished, so that the observation results of each action are more and more accurate, and the optimal action is finally obtained. Compared with the prior art, the full set of feasible strategies is considered, and the importance differences of different state-action pairs can be distinguished, and the estimability of the selection of the optimal action can be guaranteed, which can improve the performance of the final determination of the action. At the same time, the present invention can also improve the data efficiency of online reinforcement learning in the operation and scheduling process of the controlled system through the control of the sampling amount, significantly improve the time required for online decision-making, and reduce the amount of data used.
[0239] In one embodiment of the present invention, Figure 3 As shown, the above step 202 uses the sampling data allocation algorithm to analyze the Q factor sample variance and the total amount of consumed samples of each state-action pair to obtain the target sample size of each action in each state, including:
[0240] Step 301 : Analyze the Q factor sample variance of each state-action pair according to the sampling data allocation algorithm to obtain the target sample quantity ratio of each action in each state.
[0241] Step 302, the number of samples that should be obtained for each action in each state is obtained by multiplying the target sample number ratio of each action in each state by the total number of consumed samples.
[0242] Step 303 , selecting the larger of the number of samples that should be obtained for each action in each state and the number of samples actually used for each action in each state as the target number of samples for each action in each state.
[0243] In one embodiment of the present invention, the above step 203 determines the number of supplementary samples for each action based on the target sample size of each action and the consumed sample size of each action, including: using the target sample size of each action minus the consumed sample size of each action to obtain the number of supplementary samples for each action.
[0244] In one embodiment of the present invention, the process of performing supplementary sampling according to the supplementary sampling quantity in step 204 can refer to step 201, and its specific implementation process will not be repeated here.
[0245] Based on the same inventive concept, the present invention also provides a high-efficiency reinforcement learning device for operation scheduling of a controlled system, as described in the following embodiments. Since the principle of solving the problem by the high-efficiency reinforcement learning device for operation scheduling of a controlled system is similar to the high-efficiency reinforcement learning method for operation scheduling of a controlled system, the implementation of the high-efficiency reinforcement learning device for operation scheduling of a controlled system can refer to the high-efficiency reinforcement learning method for operation scheduling of a controlled system, and the repeated parts will not be repeated.
[0246] Specifically, Figure 4 As shown, the high-efficiency reinforcement learning device for the operation scheduling of the controlled system includes:
[0247] The simulation calculation unit 401 is used to sample the simulation results of each state-action pair of the controlled system according to a preset sampling number, and determine the action type of each action under each state, the Q factor sample variance of each state-action pair and the total amount of consumed samples according to the sampled simulation results.
[0248] In detail, the implementation process of obtaining the simulation result in the simulation calculation unit 401 can be found in the method embodiment, which will not be described in detail here.
[0249] The target sampling quantity determination unit 402 is used to use the sampling data allocation algorithm to analyze the Q factor sample variance and the total amount of consumed samples of each state-action pair to obtain the target sample quantity of each action under each state, wherein the sampling data allocation algorithm includes a sampling quantity determination criterion for distinguishing the importance of each type of action under each state, and the criterion is obtained by analyzing the Q function obtained by converting the objective function of the controlled system, and is used to gradually maximize the probability of correctly selecting the optimal action.
[0250] The specific criteria included in the sampling data allocation algorithm may refer to Criteria 1 to Criteria 3 in the above embodiments.
[0251] The supplementary sampling amount determination unit 403 is used to determine the number of supplementary samplings for each action according to the target sample amount of each action and the consumed sample amount of each action. In the embodiment of this step, the number of supplementary samplings for each action is obtained by subtracting the consumed sample amount of each action from the target sample amount of each action. When calculating in this step, the states involved are the same, that is, determining the number of supplementary samplings for each action according to the target sample amount of each action and the consumed sample amount of each action means determining the number of supplementary samplings for action a under state s according to the target sampling amount of action a under state s and the consumed sample amount of action a under state s.
[0252] The supplementary sampling unit 404 is used to perform supplementary sampling according to the supplementary sampling quantity of each action, and re-determine the action type of each action and the Q factor sample variance of each state-action pair using the simulation result of the supplementary sampling. Specifically, the supplementary sampling process can refer to the above embodiment, which will not be repeated here.
[0253] The analysis unit 405 is used to adjust the total amount of consumed samples and determine whether the total amount of consumed samples is less than the preset total sampling amount. If so, restart the target sampling amount determination unit. If not, output the optimal action observed under each state.
[0254] This embodiment can gradually maximize the probability of correctly selecting the optimal action by using the sampling quantity to determine the criterion, and concentrate the simulation resources on the important actions that really need to be distinguished, so that the observation results of each action are more and more accurate, and finally the optimal action is obtained. Compared with the prior art, the whole set of feasible strategies is considered, and the importance difference of different state-action pairs can be distinguished, and the estimability of the selection of the optimal action can be guaranteed, which can improve the performance of the final determination of the action. At the same time, the present invention can also improve the data efficiency of online reinforcement learning in the operation and scheduling process of the controlled system through the control of the sampling quantity, significantly improve the time required for online decision-making, and reduce the amount of data used.
[0255] In one embodiment of the present invention, a computer device is also provided, such as Figure 5 As shown, the computer device 502 may include one or more processors 504, such as one or more central processing units (CPUs), each of which may implement one or more hardware threads. The computer device 502 may also include any memory 506, which is used to store any kind of information such as code, settings, data, etc. Non-limitingly, for example, the memory 506 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent a fixed or removable component of the computer device 502. In one case, when the processor 504 executes an associated instruction stored in any memory or a combination of memories, the computer device 502 may perform any operation of the associated instruction. The computer device 502 also includes one or more drive mechanisms 508 for interacting with any memory, such as a hard disk drive mechanism, an optical disk drive mechanism, etc.
[0256] The computer device 502 may also include an input / output module 510 (I / O) for receiving various inputs (via input devices 512) and for providing various outputs (via output devices 514). A specific output mechanism may include a presentation device 516 and an associated graphical user interface 518 (GUI). In other embodiments, the input / output module 510 (I / O), input device 512, and output device 514 may not be included, and the computer device 502 may be used as a computer device in a network. The computer device 502 may also include one or more network interfaces 520 for exchanging data with other devices via one or more communication links 522. One or more communication buses 524 couple the components described above together.
[0257] The communication link 522 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 522 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.
[0258] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are executed.
[0259] An embodiment of the present invention further provides a computer-readable instruction, wherein when a processor executes the instruction, the program therein causes the processor to execute the steps of the above method.
[0260] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor of a computer device, the method described in any of the above embodiments is implemented.
[0261] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0262] It should also be understood that in the embodiments of the present invention, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.
[0263] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0264] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0265] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0266] 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 embodiments of the present invention.
[0267] 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.
[0268] 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 is essentially 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 a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0269] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A high-efficiency reinforcement learning method for operation scheduling of a controlled system, characterized in that: include: Sampling the simulation results of each state-action pair of the controlled system according to a preset sampling number, and determining the action type of each action under each state, the Q factor sample variance of each state-action pair, and the total amount of consumed samples according to the sampled simulation results; The sample variance of the Q factor of each state-action pair and the total amount of consumed samples are analyzed by using the sampling data allocation algorithm to obtain the target sample size of each action in each state. The sampling data allocation algorithm includes a sampling quantity determination criterion for distinguishing the importance of each type of action in each state, which is used to asymptotically maximize the probability of correctly selecting the optimal action. Determine the number of additional samples for each action based on the target sample size of each action and the sample size consumed by each action; Supplementary sampling is performed according to the number of supplementary samplings for each action, and the action type of each action and the Q factor sample variance of each state-action pair are re-determined using the simulation results of the supplementary sampling; Adjust the total amount of consumed samples to determine whether the total amount of consumed samples is less than the preset total sampling amount. If so, recalculate the target sample amount and the steps thereafter. If not, output the optimal action observed under each state.
2. The method according to claim 1, characterized in that The sampling data allocation algorithm determination process includes: Establish the objective function of the control strategy based on the equipment information and load information of the controlled system, system status, control action, and optimization target information; Converting the objective function of the control strategy to obtain an action Q function of reinforcement learning; According to the action Q function, an objective function of an approximate optimal action selection probability function and an action sampling quantity constraint condition are established, wherein the objective function of the approximate optimal action selection probability function has a data item for distinguishing the importance of each type of action in each state; According to the objective function of the approximate optimal action selection probability function and the action sampling quantity constraint condition, the criteria of the sampling data allocation algorithm are determined.
3. The method according to claim 2, characterized in that According to the action Q function, the objective function and action sampling quantity constraints of the approximate optimal action selection probability function are established, including: According to the action Q function, the true optimal action selection probability function and action sampling quantity constraint conditions are established; Based on the importance of each type of action in each state, the true optimal action selection probability function is transformed to obtain an approximate optimal action selection probability function.
4. The method according to claim 2, characterized in that The objective function of the approximate optimal action selection probability function and the action sampling quantity constraint condition are expressed by the following formula: Max APCS; Among them, APCS represents the approximate optimal action selection probability, Represents the optimal action observed in state s Q(s,a) represents the Q factor of the non-observable optimal action a in state s, π(s) represents the steady-state probability distribution of state s, ε represents a constant, and N sa represents the sampling amount of any action a in state s, and N represents the total sampling amount.
5. The method according to claim 1, characterized in that The sampled data allocation algorithm is used to indicate: The larger the noise-to-signal ratio of the non-observed optimal action under each state s, the larger the number of samples of the non-observed optimal action. The noise in the noise-to-signal ratio refers to the sample standard deviation of the Q factor of the non-observed optimal action under each state s, and the information in the noise-to-signal ratio refers to the performance difference between the Q factor of the non-observed optimal action under each state s and the Q factor of the observed optimal action under state s. The number of samples of the best observed action in each state s should be greater than the number of samples of other non-best observed actions; The number of samples of the best observed action in each state should be proportional to the product of the steady-state probability of each state and the sample standard deviation of the Q factor of each state.
6. The method according to claim 5, characterized in that The sampling data allocation algorithm includes the following criteria: Criterion 1: For unobserved optimal actions i and j, Among them, N si represents the number of samples of action i in state s, N sj represents the number of samples of action j in state s, σ si represents the sample standard deviation of the Q factor of action i in state s, σ sj represents the sample standard deviation of the Q factor of action j in state s, δ si represents the difference between the performance of action i in state s and the observed best action in state s, δ sj represents the difference between the performance of action j in state s and the observed best action in that state s; Criterion 2: The optimal action a for an observation in state s b , in, Indicates action a in state s b The number of samples, Indicates action a in state s b The sample standard deviation of the Q factor, N sa represents the number of samples of non-observed optimal action a in state s, σ sa represents the sample standard deviation of the Q factor of the non-observed optimal action a in state s; Criterion 3: The optimal action a for the observation in state s1 b (s1) and the observed optimal action a in state s2 b (s2), in, represents the observed optimal action a under state s1 b The number of samples of (s1), represents the best action observed in state s2 The number of samples, π(s1) represents the steady-state probability distribution of state s1, π(s2) represents the steady-state probability distribution of state s2, represents the observed optimal action a under state s1 b The sample standard deviation of the Q factor (s1), represents the observed optimal action a in state s2 b (s2) is the sample standard deviation of the Q factor.
7. The method according to claim 1, characterized in that The sample data allocation algorithm is used to analyze the Q factor sample variance and the total amount of consumed samples of each state-action pair to obtain the target sample size of each action in each state, including: The Q-factor sample variance of each state-action pair is analyzed according to the sampling data allocation algorithm to obtain the target sample quantity ratio of each action in each state; The number of samples that should be obtained for each action in each state is obtained by multiplying the target sample number ratio of each action in each state by the total number of consumed samples; The larger of the number of samples that should be obtained for each action in each state and the number of samples actually used for each action in each state is selected as the target number of samples for each action in each state.
8. A high-efficiency reinforcement learning device for operation scheduling of a controlled system, characterized in that: include: A simulation calculation unit, used to sample the simulation results of each state-action pair of the controlled system according to a preset sampling number, and determine the action type of each action under each state, the Q factor sample variance of each state-action pair, and the total amount of consumed samples according to the sampled simulation results; a target sampling amount determination unit, used to analyze the Q factor sample variance and the total amount of consumed samples of each state-action pair using a sampling data allocation algorithm to obtain the target sample amount of each action in each state, wherein the sampling data allocation algorithm includes a sampling quantity determination criterion for distinguishing the importance of each type of action in each state, and is used to asymptotically maximize the probability of correctly selecting the optimal action; A supplementary sampling amount determination unit, used to determine the number of supplementary sampling for each action according to the target sample amount of each action and the consumed sample amount of each action; A supplementary sampling unit, used for performing supplementary sampling according to the supplementary sampling quantity of each action, and re-determining the action type of each action and the Q factor sample variance of each state-action pair by using the simulation result of the supplementary sampling; The analysis unit is used to adjust the total amount of consumed samples and determine whether the total amount of consumed samples is less than the preset total sampling amount. If so, the target sampling amount determination unit is restarted. If not, the optimal action observed under each state is output.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor of a computer device, the method according to any one of claims 1 to 7 is implemented.
