Gradient-free distributed optimization method for complex system
By obtaining the equipment application result calculation model and iteration parameters in the complex system, using the distributed optimization algorithm to perform iterative processing within the preset time, and designing the TBG function to control the convergence time, the accuracy of the global optimal solution calculation in the existing technology is solved. reliability and efficiency issues, achieving reliable cost estimation of the system.
Patent Information
- Application Number
- CN202410603860.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-10-11
AI Technical Summary
Existing distributed optimization algorithms are difficult to accurately and quickly obtain the global optimal solution in complex systems, and the convergence time cannot be accurately controlled, affecting the accuracy and efficiency of cost estimation.
By obtaining the application results calculation model and iteration initial parameters of multiple devices, using the preset distributed optimization algorithm to perform iterative processing within the preset convergence time, output the optimal solution of the device in the target application scenario, and design the TBG function to control Convergence time.
It achieves the global optimal solution within the preset time, improves the accuracy and efficiency of calculation, provides a reliable basis for system cost estimation, and solves the problem that traditional methods cannot accurately control the convergence time.
Smart Images

Figure CN118761305A_ABST
Abstract
Description
[Technical field]
[0001] The present application relates to the technical field of computer data processing, and in particular to a gradient-free distributed optimization method for complex systems. [Background technology]
[0002] The rise of computer technology, big data, and wireless networks has promoted the rapid development of multi-device systems and distributed optimization. For example, distributed optimization can be used to determine the optimal way to call the power of multiple new energy charging stations for a virtual power plant. For another example, distributed optimization can be used to calculate the optimal way to assign tasks to team members for e-sports. In general, distributed optimization is actually a way to calculate the most reasonable cost. It can decompose problems in actual scenarios into multiple sub-problems, solve each sub-problem independently on different computing nodes, and obtain the global optimal solution or a solution close to the optimal solution through communication between adjacent nodes.
[0003] However, most existing distributed optimization algorithms need to know the gradient information of each device in the system. For some complex systems, the gradient information is often difficult to determine. If a heuristic method is adopted, it will take many iterations to converge, so the convergence speed is slow, and the heuristic method needs to evaluate the entire population, which has high computational cost. In addition, traditional distributed optimization algorithms can usually only provide exponential convergence or asymptotic convergence, and their convergence time cannot be accurately determined, which affects the efficiency of cost estimation of the system and leads to insufficient accuracy of the obtained results, making it impossible to handle actual work in an optimal way in actual scenarios.
[0004] Therefore, how to obtain the global optimal solution for multiple devices more accurately and quickly has become a technical problem that needs to be solved urgently. [Summary of the invention]
[0005] The embodiment of the present application provides a gradient-free distributed optimization method for a complex system, aiming to solve the technical problem that the distributed optimization algorithm in the related art is insufficiently accurate in evaluating system costs.
[0006] In a first aspect, an embodiment of the present application provides a gradient-free distributed optimization method for a complex system, comprising:
[0007] Obtain the application result calculation model of multiple devices in the target application scenario.
[0008] The application result calculation model is used to reflect the correlation between the performance characteristics of the device in the target application scenario and the application results obtained by applying the performance characteristics;
[0009] Obtaining iteration parameters of the application result calculation models of the plurality of devices at the initial iteration moment;
[0010] Based on the iteration parameters at the initial time of the iteration and the preset distributed optimization algorithm, iterative processing is performed on the application result calculation models of the multiple devices within a preset convergence time to output the optimal solution of the application results of the multiple devices in the target application scenario,
[0011] The distributed optimization algorithm is used to reflect the correlation between the performance characteristics of the device when it is affected by the iteration time and iteration parameters of the current iteration and the performance characteristics of the next iteration.
[0012] In a second aspect, an embodiment of the present application provides a complex system gradient-free distributed optimization device, comprising:
[0013] A calculation model acquisition unit, used to acquire application result calculation models of each of the plurality of devices in the target application scenario, wherein the application result calculation model is used to reflect the correlation between the performance characteristics of the device in the target application scenario and the application result obtained by applying the performance characteristics;
[0014] An initial iteration parameter acquisition unit, used to acquire iteration parameters of the application result calculation models of the plurality of devices at the initial iteration moment;
[0015] A preset convergence time iteration unit is used to perform iterative processing on the application result calculation models of the multiple devices respectively within the preset convergence time based on the iteration parameters at the initial moment of the iteration and the preset distributed optimization algorithm, so as to output the optimal solution of the application results of the multiple devices in the target application scenario, wherein the distributed optimization algorithm is used to reflect the correlation between the performance characteristics of the devices when affected by the iteration moment and iteration parameters of the current iteration and the performance characteristics of the next iteration.
[0016] In a third aspect, an embodiment of the present application provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are configured to execute the method described in the first aspect above.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the method described in the first aspect above.
[0018] The above technical solution aims at solving the technical problem that the distributed optimization algorithm in the related art is not accurate enough in evaluating the system cost. The above distributed optimization algorithm can be used to iteratively process the performance characteristics of each of the multiple devices, and the performance characteristics obtained in each iteration are applied to the application result calculation model corresponding to each of the multiple devices, so as to realize the iteration of the application results corresponding to each of the multiple devices. Furthermore, the duration of the iteration is limited to a preset convergence time, so that the multiple devices output their own solutions at the end of the preset convergence time as the global optimal solution of the entire system. Therefore, in view of the need for a specific convergence time in actual applications, a TBG function can be designed so that the convergence time can be pre-designed, which solves the problem that the traditional method cannot accurately control the convergence time, so that the convergence time can be accurately controlled, and the accuracy of the calculation of the global optimal solution can be improved, providing a reliable basis for the cost estimation of the system.
Brief Description of the Drawings
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A flowchart of a gradient-free distributed optimization method for a complex system according to an embodiment of the present application is shown;
[0021] Figure 2 A flowchart of a gradient-free distributed optimization method for a complex system according to another embodiment of the present application is shown;
[0022] Figure 3 A communication topology diagram of multiple devices in a system according to an embodiment of the present application is shown;
[0023] Figure 4 A TBG function variation diagram and a gain variation curve according to an embodiment of the present application are shown;
[0024] Figure 5 A comparison diagram showing the convergence speed of the technical solution according to an embodiment of the present application and the convergence speed of other solutions in the related art is shown;
[0025] Figure 6 An evolution curve diagram of a new energy charging station when the convergence time is preset to 0.2s according to an embodiment of the present application is shown;
[0026] Figure 7 An evolution curve diagram of a new energy charging station when the convergence time is preset to 0.1s according to an embodiment of the present application is shown;
[0027] Figure 8 A block diagram of a computer device according to an embodiment of the present application is shown;
[0028] Fig. 9 A block diagram of a computer device according to another embodiment of the present application is shown. [Specific implementation method]
[0029] 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 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.
[0030] Figure 1 A flowchart of a gradient-free distributed optimization method for a complex system according to an embodiment of the present application is shown.
[0031] like Figure 1 As shown, a complex system gradient-free distributed optimization method according to an embodiment of the present application includes:
[0032] Step 102: Obtain application result calculation models of multiple devices in the target application scenario.
[0033] The application result calculation model is used to reflect the correlation between the performance characteristics of the device in the target application scenario and the application results obtained by applying the performance characteristics.
[0034] Optionally, the target application scenario includes determining the optimal way to call on the electricity of multiple new energy charging stations for the virtual power plant, and the multiple devices refer to multiple new energy charging stations. The application result calculation model of each new energy charging station is used to calculate the amount of electricity that it should provide to the virtual power plant within a specified time. Its realization characteristics include variables such as the power generation and charging consumption of the new energy charging station. The application result obtained by the performance characteristics is the amount of electricity that it should provide to the virtual power plant within a specified time.
[0035] Optionally, the target application scenario includes calculating the optimal method of assigning tasks to team members in e-sports, and the multiple devices refer to multiple e-sports entities of a competitive team. The application result calculation model of each e-sports entity is used to calculate its contribution to the team during the e-sports process, and its realization characteristics include the competitive participation and ability performance level of the e-sports entity. The application result obtained from the performance characteristics is the aforementioned contribution that it should have within a specified time.
[0036] Step 104: Obtain iteration parameters of the application result calculation models of the multiple devices at the initial iteration moment.
[0037] Specifically, the initial value of the performance characteristic, the initial value of the integral term of the performance characteristic, the step size set for the iteration, and the time-varying gain of the application result calculation model of each of the multiple devices at the initial moment of iteration may be obtained.
[0038] The method of obtaining the time-varying gain includes: obtaining a time base generator and an implementation condition of the time base generator, wherein the implementation condition includes:
[0039]
[0040]
[0041] ψ(t) represents the time base generator, t represents the time variable, t f is the preset convergence time, represents the derivative of the time base generator; based on the time base generator and the implementation condition of the time base generator, the time-varying gain is determined as:
[0042]
[0043] Wherein, ζ(t) represents the time-varying gain, κ is a constant, and 0<κ<<1.
[0044] The preset convergence time can be an arbitrarily small positive number, and ψ(t) is called a time-based generator (TBG). Generally, a system composed of multiple devices can use a time-based generator to achieve the convergence of the system within a preset time interval. On this basis, it can be determined whether the multiple devices meet the preset time convergence conditions based on the time-varying gain, wherein the preset time convergence conditions are used to reflect the characteristics of the comprehensive performance states of the multiple devices when effective convergence can be completed within the preset convergence time. If the multiple devices meet the convergence conditions, it is allowed to enter the step of performing iterative processing on the application result calculation models of the multiple devices within the preset convergence time.
[0045] Specifically, the first-order dynamical system of the plurality of devices is determined:
[0046]
[0047] in, is the system eigenvalue of the first-order dynamic system, v is a constant, and v>0, ζ(t) represents the time-varying gain, is the comprehensive performance status of the multiple devices at time t, the comprehensive performance status of the multiple devices at the initial time The first-order dynamic system is integrated from the initial moment to the preset convergence time to obtain the comprehensive performance state of the multiple devices at moment t:
[0048]
[0049] If the comprehensive performance status meets the following conditions:
[0050]
[0051] Determine whether the multiple devices meet a preset time convergence condition, wherein: is the optimal solution obtained by the first-order dynamic system converging within the preset convergence time, and c is a constant.
[0052] Among them, choosing appropriate parameters κ and v can ensure Converges to a constant From this we can see that System t f It can be designed arbitrarily and does not depend on the initial values and parameters of the system. If the comprehensive performance state of the system meets the above-mentioned limiting conditions, it is determined that the system achieves the preset time convergence.
[0053] Step 106, based on the iteration parameters at the initial moment of the iteration and the preset distributed optimization algorithm, perform iterative processing on the application result calculation models of the multiple devices within a preset convergence time to output the optimal solution of the application results of the multiple devices in the target application scenario.
[0054] The distributed optimization algorithm is used to reflect the correlation between the performance characteristics of the device when it is affected by the iteration time and iteration parameters of the current iteration and the performance characteristics of the next iteration. The distributed optimization algorithm can be selected as follows:
[0055]
[0056]
[0057] Among them, x i (t) and x i (t+1) respectively represent the performance characteristics of the i-th device among the multiple devices at time t of the current iteration and time t+1 of the next iteration in the target application scenario, η represents the step size set for iteration, ζ(t) represents the time-varying gain, L ij represents the interaction characteristics of the i-th device among the multiple devices after being affected by the j-th device, x j (t) is the performance feature of the jth device among the multiple devices at time t of the current iteration, represents the comprehensive performance value of the interaction characteristics of other devices other than the jth device among the multiple devices with the i-th device, v i (t) and v i (t+1) are x i (t) and x i The integral term of (t+1), For x i The gradient term of (t), represents an n-dimensional real vector space, x i (0) represents the initial value of the performance feature at the beginning of the iteration, represents the sum of the integral items of the multiple devices other than the j-th device.
[0058] The above technical solution can iteratively process the performance characteristics of each of the multiple devices through the above-mentioned distributed optimization algorithm, and apply the performance characteristics obtained in each iteration to the application result calculation model corresponding to each of the multiple devices, so as to realize the iteration of the application results corresponding to each of the multiple devices. Furthermore, the duration of the iteration is limited to a preset convergence time, so that the multiple devices output their own solutions at the end of the preset convergence time as the global optimal solution of the entire system. Therefore, in view of the need for a specific convergence time in actual applications, a TBG function can be designed so that the convergence time can be pre-designed, which solves the problem that the traditional method cannot accurately control the convergence time, so that the convergence time can be accurately controlled, thereby improving the accuracy of the global optimal solution calculation, and providing a reliable basis for the cost estimation of the system.
[0059] In addition, for each device among the multiple devices, the method of obtaining the gradient item of the device includes: obtaining a gradient item estimation value of the performance characteristics of the device when it is affected by the iteration time and iteration parameters of the current iteration, wherein,
[0060]
[0061] represents the estimated value of the gradient term, δ is the exploration factor, δ>0, is an orthonormal basis.
[0062] The above technical solution replaces the calculation of the gradient term with the estimated value of the gradient term in the distributed computing process, which simplifies the complexity of the gradient term calculation, reduces the occupation of computing resources by the gradient term calculation, and improves the computing efficiency. At the same time, this gradient estimator can calculate the gradient information of the function value and realize the gradient update, which effectively solves the difficulty of gradient acquisition.
[0063] Figure 2 A flowchart of a gradient-free distributed optimization method for a complex system according to another embodiment of the present application is shown;
[0064] like Figure 2 As shown, a complex system gradient-free distributed optimization method according to another embodiment of the present application includes:
[0065] S1: Clearly define the optimization goal;
[0066] S2: define variables and communication topology;
[0067] S3: Determine the update rules of the first-order distributed optimization algorithm;
[0068] S4: Estimate gradient information using a deterministic gradient estimator;
[0069] S5: Use TBG function to achieve convergence within preset time;
[0070] S6: Use estimated gradient information to converge to the global optimal point within a preset time.
[0071] Specifically,
[0072] In S1, for a system with N devices, each device has a local objective function All devices work together to achieve the global objective function The minimum value of , that is:
[0073]
[0074] make That is x * is the global cost function The optimal value point.
[0075] In S2, a multi-device system can be defined.
[0076] Furthermore, define is an n-dimensional real vector space, Represents the gradient of the differentiable function f(x), and defines the vector group If and only if device i and device j can communicate with each other, or if and only if nodes i and node j in the system can communicate with each other, a ij >0 and (i, j)∈ε, where i≠j.
[0077] In S3, it is necessary to determine the update rule of the first-order dual distributed optimization algorithm. Here, the distributed optimization algorithm based on the PI control strategy can be proposed as:
[0078]
[0079]
[0080] The algorithm updates in a discrete manner, It indicates the optimal value x of the i-th device at time k * Estimate of the integral term is an integral term, which is used to correct the error caused by the fixed step size when the i-th device is updated.
[0081] in, It is to ensure communication between devices and maintain device consistency. is the gradient term of the local cost function, ensuring that the estimate of each device is updated in the current gradient direction. Since the step size of the gradient update is fixed to 1, the system often cannot accurately converge to the global optimal value point, so the integral term v is introduced i (k), used to correct the error caused by the fixed step size.
[0082] In S4, the gradient estimator can be used to estimate the gradient information. Considering that in the process of machine learning and high-dimensional statistical analysis, the gradient information is often unknown, the sampled function value can be used to estimate the gradient information of the function. The details are as follows:
[0083]
[0084] Among them, δ>0 is the exploration factor. This gradient estimator is calculated based on the function value sampled at n+1 points of function f. is an orthonormal basis.
[0085] In S5, in order to achieve the preset time convergence, a continuously differentiable function ψ(t) is introduced to satisfy the following conditions:
[0086]
[0087]
[0088] Among them, t f represents the preset time, which is an arbitrarily small positive number. Function ψ(t) is the time base generator, and the system uses TBG to achieve preset time convergence.
[0089] Furthermore, a first-order dynamical system is introduced:
[0090]
[0091] Among them, the constant v>0, is the state of the system at time t.
[0092] Furthermore, the time-varying gain ζ(t) is set to satisfy the following conditions:
[0093]
[0094] Where κ is a constant satisfying 0<κ<<1. f ) and integrate them to get:
[0095]
[0096] Among them, choosing appropriate parameters κ and ν can ensure Converges to a constant From this we can see that System t f It can be designed arbitrarily and does not depend on the initial values and parameters of the system.
[0097] The definition of convergence of a first-order dynamic system to a preset time is as follows: for any initial state If the system satisfies the following definition, it is determined that the system achieves the preset time convergence. Where c is a very small constant.
[0098]
[0099] In S6, the gradient information is estimated by using the gradient estimator under the preset convergence time, so that the preset time convergence can be achieved within the preset time, that is,
[0100]
[0101] At t→t f When the estimated value x i (t) converges to the optimal value x * Neighborhood t>t f When the estimated value x i (t) In this neighborhood, when t→∞, the estimated value x i (t) converges to the global optimal point x * . And convergence upper bound With the preset time t f It doesn't matter, that is, no matter f How small is x? i The convergence upper bound of (t) remains unchanged.
[0102] The above technical solution is further explained below through application in specific scenarios.
[0103] For example, the power control system corresponding to the virtual power plant includes four new energy charging stations, each of which corresponds to a local cost function. The local cost functions of the four new energy charging stations are f1(x)~f4(x). The local cost functions selected in the simulation experiment are:
[0104]
[0105] f3(x)=(x-2) 2 +e -0.1x , f4(x)=x 2 log(2+x 2 ),
[0106] Among them, f1 and f3 are strongly convex functions, and f2 and f4 are non-strongly convex functions. The communication topology of the system is shown in Figure 3 shown.
[0107] run Figure 1 The distributed optimization algorithm with a preset time convergence proposed in the illustrated embodiment is:
[0108]
[0109]
[0110] The initial value is selected as: estimated initial value of state Initial value of integral term The step size η = 0.01, the selected TBG function is:
[0111]
[0112] Secondly, Matlab is used for simulation verification. First, the preset time is selected as 0.2s, and the distributed optimization algorithm is run according to the initial condition settings. Figure 4 The TBG function change diagram and gain change curve are shown. The TBG function ψ(t) is initially 0 and reaches 1 at the preset time of 0.2s. The time-varying gain ζ(t) only acts within the preset time, which is 0 to 0.2s in this simulation, and is 0 at other times.
[0113] Figure 5 The convergence speed of this technical solution is compared with that of other solutions in the related art. It can be seen that under the preset convergence time, this technical solution converges to 10 at the preset time of 0.2s. -20 order of magnitude, and then converged to 10 -47 Compared with the case without preset convergence time, the distance to the optimal value point at 0.2s is significantly different. Comparing the first-order algorithm with the zero-order algorithm, it can be found that the zero-order algorithm converges slightly slower than the first-order algorithm, but can also converge to the global optimal value point.
[0114] Furthermore, by observing the characteristic performance of each new energy charging station, we can get the following Figure 6 From the evolution curves shown, it can be seen that the four new energy charging stations reach the optimal point x*=0.79 of the global cost function at the preset time of 0.2s and reach consistency.
[0115] In addition, the preset convergence time can be set to 0.1s. Under the same communication topology and the selection of local cost function and initial value, the following can be obtained: Figure 7 As shown in the evolution curve, each new energy charging station converges to the neighborhood of the global optimal value point x*=0.79 at 0.1s and reaches a consensus. It can be seen that the preset convergence time tf can be changed based on the needs of the actual scene, and is not limited to the examples given in this application.
[0116] In summary, this technology proposes a distributed optimization algorithm in a complex system with multiple devices that is gradient-free and has a preset convergence time. For the distributed optimization problem of complex systems, firstly, in the case where the gradient of the complex system function is difficult to obtain, a gradient-free algorithm is used to calculate the gradient information of the function value through the gradient estimator and perform gradient update. Secondly, in the case of actual applications where convergence within a specific time is required, a preset time convergence algorithm is used. By designing the TBG function, the convergence time can be pre-designed, which solves the problem that the traditional method cannot accurately control the convergence time.
[0117] The embodiment of the present application provides a complex system non-gradient distributed optimization device, including:
[0118] A calculation model acquisition unit, used to acquire application result calculation models of each of the plurality of devices in the target application scenario, wherein the application result calculation model is used to reflect the correlation between the performance characteristics of the device in the target application scenario and the application result obtained by applying the performance characteristics;
[0119] An initial iteration parameter acquisition unit, used to acquire iteration parameters of the application result calculation models of the plurality of devices at the initial iteration moment;
[0120] A preset convergence time iteration unit is used to perform iterative processing on the application result calculation models of the multiple devices respectively within the preset convergence time based on the iteration parameters at the initial moment of the iteration and the preset distributed optimization algorithm, so as to output the optimal solution of the application results of the multiple devices in the target application scenario, wherein the distributed optimization algorithm is used to reflect the correlation between the performance characteristics of the devices when affected by the iteration moment and iteration parameters of the current iteration and the performance characteristics of the next iteration.
[0121] In one embodiment of the present application, optionally, the initial iteration parameter acquisition unit is used to:
[0122] The initial value of the performance characteristic, the initial value of the integral term of the performance characteristic, the step size set for iteration and the time-varying gain of the application result calculation model of each of the multiple devices at the initial time of iteration are obtained.
[0123] In one embodiment of the present application, optionally, the device further includes:
[0124] A time-varying gain acquisition unit is used to acquire a time base generator and an implementation condition of the time base generator, wherein the implementation condition includes:
[0125]
[0126]
[0127] ψ(t) represents the time base generator, t represents the time variable, t f is the preset convergence time, represents the derivative of the time base generator; based on the time base generator and the implementation condition of the time base generator, the time-varying gain is determined as:
[0128]
[0129] Wherein, ζ(t) represents the time-varying gain, κ is a constant, and 0<κ<<1.
[0130] In one embodiment of the present application, optionally, the device further includes:
[0131] A feasibility judgment unit for a preset convergence time is used to determine whether the multiple devices meet a preset time convergence condition based on the time-varying gain before iterative processing is performed on the application result calculation models of each of the multiple devices within the preset convergence time, wherein the preset time convergence condition is used to reflect the characteristics of the comprehensive performance status of the multiple devices when effective convergence can be completed within the preset convergence time; if the multiple devices meet the convergence condition, it is allowed to enter the step of iterative processing of the application result calculation models of each of the multiple devices within the preset convergence time.
[0132] In one embodiment of the present application, optionally, the feasibility judgment unit of the preset convergence time is used to:
[0133] Determine the first-order dynamical system for the plurality of devices:
[0134]
[0135] in, is the system eigenvalue of the first-order dynamic system, ν is a constant, and v>0, ζ(t) represents the time-varying gain, is the comprehensive performance status of the multiple devices at time t, the comprehensive performance status of the multiple devices at the initial time The first-order dynamic system is integrated from the initial moment to the preset convergence time to obtain the comprehensive performance state of the multiple devices at moment t:
[0136]
[0137] If the comprehensive performance status meets the following conditions:
[0138]
[0139] Determine whether the multiple devices meet a preset time convergence condition, wherein: is the optimal solution obtained by the first-order dynamic system converging within the preset convergence time, and c is a constant.
[0140] In one embodiment of the present application, optionally, the distributed optimization algorithm is:
[0141]
[0142]
[0143] Among them, x i (t) and x i (t+1) respectively represent the performance characteristics of the i-th device among the multiple devices at time t of the current iteration and time t+1 of the next iteration in the target application scenario, η represents the step size set for iteration, ζ(t) represents the time-varying gain, L ij represents the interaction characteristics of the i-th device among the multiple devices after being affected by the j-th device, x j (t) is the performance feature of the jth device among the multiple devices at time t of the current iteration, represents the comprehensive performance value of the interaction characteristics of other devices other than the jth device among the multiple devices with the i-th device, v i (t) and v i (t+1) are x i (t) and x i The integral term of (t+1), For x i The gradient term of (t), represents an n-dimensional real vector space, x i (0) represents the initial value of the performance feature at the beginning of the iteration, represents the sum of the integral items of the multiple devices other than the j-th device.
[0144] In one embodiment of the present application, optionally, the device further includes:
[0145] A gradient term estimation unit is used to obtain, for each of the multiple devices, a gradient term estimation value of a performance characteristic of the device when the device is affected by an iteration time and an iteration parameter of a current iteration, wherein:
[0146]
[0147] represents the estimated value of the gradient term, δ is the exploration factor, δ>0, is an orthonormal basis.
[0148] The complex system gradient-free distributed optimization device uses any of the solutions described in the above embodiments, and therefore has all the above technical effects, which will not be repeated here.
[0149] In addition, in one embodiment, the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, the method described in any of the above embodiments can be implemented.
[0150] In one embodiment, the present application further provides a computer device, which may be a client, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server via a network connection. When the computer program is executed by the processor, the method described in any of the above embodiments can be implemented.
[0151] Any of the above-mentioned computer devices in the embodiments of the present application may exist in various forms, including but not limited to:
[0152] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0153] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0154] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys, wearable devices, and portable car navigation devices.
[0155] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0156] (5) Other electronic devices with data interaction functions.
[0157] In addition, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to perform the following steps:
[0158] Obtain the application result calculation model of multiple devices in the target application scenario.
[0159] The application result calculation model is used to reflect the correlation between the performance characteristics of the device in the target application scenario and the application results obtained by applying the performance characteristics;
[0160] Obtaining iteration parameters of the application result calculation models of the plurality of devices at the initial iteration moment;
[0161] Based on the iteration parameters at the initial time of the iteration and the preset distributed optimization algorithm, iterative processing is performed on the application result calculation models of the multiple devices within a preset convergence time to output the optimal solution of the application results of the multiple devices in the target application scenario,
[0162] The distributed optimization algorithm is used to reflect the correlation between the performance characteristics of the device when it is affected by the iteration time and iteration parameters of the current iteration and the performance characteristics of the next iteration.
[0163] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant description in the aforementioned method embodiment. In order to avoid repetition, they will not be described one by one here.
[0164] The technical solution of the present application is described in detail above in conjunction with the accompanying drawings. Through the technical solution of the present application, the performance characteristics of each of the multiple devices can be iteratively processed through the above-mentioned distributed optimization algorithm, and the performance characteristics obtained in each iteration are applied to the application result calculation model corresponding to each of the multiple devices, so as to realize the iteration of the application results corresponding to each of the multiple devices. Furthermore, the duration of the iteration is limited to a preset convergence time, so that the multiple devices output their own solutions at the end of the preset convergence time as the global optimal solution of the entire system. Therefore, in view of the need for a specific convergence time in actual applications, a TBG function can be designed so that the convergence time can be pre-designed, which solves the problem that the traditional method cannot accurately control the convergence time, so that the convergence time can be accurately controlled, and the accuracy of the global optimal solution calculation can be improved, providing a reliable basis for the cost estimation of the system.
[0165] The word "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when determining" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0166] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0167] In the several embodiments provided in the present application, 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. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0168] In addition, each functional unit in each embodiment of the present application 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 hardware plus software functional units.
[0169] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0170] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A gradient-free distributed optimization method for complex systems, characterized in that: include: Obtain the application result calculation model of multiple devices in the target application scenario. The application result calculation model is used to reflect the correlation between the performance characteristics of the device in the target application scenario and the application results obtained by applying the performance characteristics; Obtaining iteration parameters of the application result calculation models of the plurality of devices at the initial iteration moment; Based on the iteration parameters at the initial time of the iteration and the preset distributed optimization algorithm, iterative processing is performed on the application result calculation models of the multiple devices within a preset convergence time to output the optimal solution of the application results of the multiple devices in the target application scenario, The distributed optimization algorithm is used to reflect the correlation between the performance characteristics of the device when it is affected by the iteration time and iteration parameters of the current iteration and the performance characteristics of the next iteration.
2. The method according to claim 1, characterized in that The obtaining of iteration parameters of the application result calculation models of the plurality of devices at the initial iteration time includes: The initial value of the performance characteristic, the initial value of the integral term of the performance characteristic, the step size set for iteration and the time-varying gain of the application result calculation model of each of the multiple devices at the initial time of iteration are obtained.
3. The method according to claim 2, characterized in that The method of obtaining the time-varying gain includes: Acquire a time base generator and an implementation condition of the time base generator, wherein the implementation condition includes: represents the time base generator, t represents the time variable, is the preset convergence time, represents a derivative of the time base generator; Based on the time base generator and the implementation condition of the time base generator, the time-varying gain is determined as: Wherein, ζ(t) represents the time-varying gain, κ is a constant, and 0<κ<<1.
4. The method according to claim 3, characterized in that Before performing iterative processing on the application result calculation models of the multiple devices within the preset convergence time, the method further includes: Based on the time-varying gains, determining whether the multiple devices meet a preset time convergence condition, wherein the preset time convergence condition is used to reflect the characteristics of the comprehensive performance state of the multiple devices when effective convergence can be completed within the preset convergence time; If the multiple devices meet the convergence condition, the step of performing iterative processing on the application result calculation models of the multiple devices respectively within a preset convergence time is allowed to proceed.
5. The method according to claim 4, characterized in that The determining, based on the time-varying gain, whether the plurality of devices meet a preset time convergence condition comprises: Determine the first-order dynamical system for the plurality of devices: in, is the system eigenvalue of the first-order dynamic system, v is a constant, and v>0, ζ(t) represents the time-varying gain, is the comprehensive performance status of the multiple devices at time t, the comprehensive performance status of the multiple devices at the initial time The first-order dynamic system is integrated from the initial moment to the preset convergence time to obtain the comprehensive performance state of the multiple devices at moment t: If the comprehensive performance status meets the following conditions: Determine whether the multiple devices meet a preset time convergence condition, in, is the optimal solution obtained by the first-order dynamic system converging within the preset convergence time, and c is a constant.
6. The method according to claim 3, characterized in that The distributed optimization algorithm is: Among them, x i (t) and x i (t+1) respectively represent the performance characteristics of the i-th device among the multiple devices at time t of the current iteration and time t+1 of the next iteration in the target application scenario, η represents the step size set for iteration, ζ(t) represents the time-varying gain, L ij represents the interaction characteristics of the i-th device among the multiple devices after being affected by the j-th device, x j (t) is the performance feature of the jth device among the multiple devices at time t of the current iteration, represents the comprehensive performance value of the interaction characteristics of other devices other than the jth device among the multiple devices with the i-th device, v i (t) and v i (t+1) are x i (t) and x i The integral term of (t+1), For x i The gradient term of (t), represents an n-dimensional real vector space, x i (0) represents the initial value of the performance feature at the beginning of the iteration, represents the sum of the integral items of the multiple devices other than the j-th device.
7. The method according to claim 6, characterized in that For each of the plurality of devices A device, and a method of obtaining the gradient item of the device includes: Obtaining a gradient term estimate of a performance characteristic of the device when it is affected by an iteration time and an iteration parameter of a current iteration, wherein: represents the estimated value of the gradient term, δ is the exploration factor, δ>0, is an orthonormal basis.
8. A gradient-free distributed optimization device for complex systems, characterized in that: include: A calculation model acquisition unit, used to acquire application result calculation models of each of the plurality of devices in the target application scenario, wherein the application result calculation model is used to reflect the correlation between the performance characteristics of the device in the target application scenario and the application result obtained by applying the performance characteristics; An initial iteration parameter acquisition unit, used to acquire iteration parameters of the application result calculation models of the plurality of devices at the initial iteration moment; A preset convergence time iteration unit is used to perform iterative processing on the application result calculation model of each of the multiple devices within a preset convergence time based on the iteration parameters at the initial moment of the iteration and the preset distributed optimization algorithm, so as to output the optimal solution of the application results of the multiple devices in the target application scenario, wherein the distributed optimization algorithm is used to reflect the correlation between the performance characteristics of the devices when affected by the iteration moment and iteration parameters of the current iteration and the performance characteristics of the next iteration.
9. A computer device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, wherein the instructions are configured to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to execute the method according to any one of claims 1 to 7.
