Material scheduling method, device, electronic equipment and medium based on meta-optimizer

By converting the material scheduling problem into a binary combination optimization problem and using the meta-optimizer for iterative optimization, combined with the pre-training of the graph neural network, the problem that traditional scheduling methods cannot improve efficiency and quality is solved, and in-depth analysis and analysis of material scheduling are realized. Reasonable scheduling.

CN118378758BActive Publication Date: 2024-09-17SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410805919.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-17
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Traditional material dispatching methods cannot effectively cope with resource constraints, variable factors, optimization goals, large-scale data and real-time requirements, making it difficult to improve the efficiency and quality of material dispatching, and making in-depth analysis impossible to achieve reasonable material dispatching.

Method used

Convert the material scheduling problem into a binary combination optimization problem based on connected graphs, use the meta-optimizer to construct an initial feasible solution and obtain the optimal solution through iterative optimization, and combine it with the graph neural network of ternary attention for pre-training and parameter optimization to achieve Determination of the global optimal solution.

Benefits of technology

Through multiple iterative optimizations, the global optimal solution is obtained, which improves the efficiency and quality of material dispatching and enables in-depth analysis and reasonable dispatching of material dispatching problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378758B
    Figure CN118378758B
Patent Text Reader

Abstract

The present application discloses a material dispatching method, device, electronic device and medium based on a meta-optimizer, which converts the material dispatching problem into a binary combination optimization problem based on the connected graph, uses a meta-optimizer to construct several initial feasible solutions corresponding to the binary combination optimization problem, performs iterative optimization based on each initial feasible solution and the binary combination optimization problem, obtains an optimal solution set corresponding to the binary combination optimization problem, determines the optimization target expected value corresponding to each optimal solution in the optimal solution set based on the problem optimization goal, determines the global optimal solution from the optimal solution set, and uses the global optimal solution to dispatch materials. The present application can use a meta-optimizer to perform multiple iterative optimizations based on the material dispatching problem to obtain a global optimal solution, realizes efficient search for a better solution to the material dispatching problem, completes an in-depth analysis of the material dispatching problem, and effectively improves the efficiency and quality of material dispatching. The present application can be widely used in the field of material dispatching technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of material scheduling, and in particular to a material scheduling method, device, electronic equipment and medium based on a meta-optimizer. Background Art

[0002] Material scheduling issues involve challenges in many aspects, such as resource constraints, variable factors, optimization goals, large-scale data, and real-time requirements. As the scale of global logistics and supply chains continues to expand, these issues have become more complex and critical. Traditional material scheduling methods often cannot effectively cope with these challenges. Therefore, the introduction of deep learning technology has become a new approach to solving material scheduling issues.

[0003] At present, when using deep learning technology to solve material scheduling problems, there are still some challenges to be faced, such as huge amounts of data and the influence of variable factors. Therefore, existing technologies cannot effectively improve the efficiency and quality of material scheduling, and cannot conduct in-depth analysis of material scheduling problems to achieve reasonable material scheduling. Summary of the invention

[0004] In order to solve at least one of the technical problems existing in the above-mentioned related technologies, the embodiments of the present application propose a material scheduling method, device, electronic device and medium based on a meta-optimizer, which can effectively improve the efficiency and quality of material scheduling, conduct in-depth analysis of material scheduling problems, and achieve reasonable material scheduling.

[0005] On the one hand, an embodiment of the present application proposes a material scheduling method based on a meta-optimizer, the method comprising the following steps:

[0006] Get material dispatching problems;

[0007] According to the material dispatching problem, a corresponding connected graph is established, and the material dispatching problem is converted into a binary combination optimization problem based on the connected graph;

[0008] The connectivity graph is represented by the following formula:

[0009] ;

[0010] in, is the vertex, It is a picture The edges and vertices in is the node for material dispatching, The cost or path length for material scheduling between two nodes;

[0011] The binary combination optimization problem consists of a feasible solution set and an objective function Composition, feasible solution set Include A binary decision variable, the value of which is 0 or 1, represents a connected graph Whether a path is selected, represents the set of real numbers, is a connected graph Related objective function, objective function It means finding an optimal feasible solution , so that Minimize, the best feasible solution Elements in is a feasible solution set The i-th binary decision variable in The value range is 1 to , , Connected Graph Middle Edge the number of

[0012] Constructing several initial feasible solutions corresponding to the binary combinatorial optimization problem using a meta-optimizer;

[0013] Passing each of the initial feasible solutions to the meta-optimizer, and using the meta-optimizer to perform iterative optimization according to each of the initial feasible solutions and the binary combination optimization problem to obtain an optimal solution set corresponding to the binary combination optimization problem;

[0014] Obtaining a problem optimization goal, and determining an optimization goal expected value corresponding to each optimal solution in the optimal solution set according to the problem optimization goal;

[0015] In the step of obtaining the problem optimization objective and determining the optimization objective expected value corresponding to each optimal solution in the optimal solution set according to the problem optimization objective, the optimization objective expected value is calculated by the following formula:

[0016] ;

[0017] in, Optimize the goal for the problem, is the connected graph corresponding to the material dispatch problem, represents the expected value of the optimization target, is a connected graph The relevant objective function is is the optimal solution set K An optimal solution;

[0018] According to the expected value of the optimization target corresponding to each of the optimal solutions, a global optimal solution is determined from the optimal solution set, and the global optimal solution is used to perform material scheduling.

[0019] In some embodiments, before executing the step of constructing a plurality of initial feasible solutions corresponding to the binary combinatorial optimization problem using a meta-optimizer, the method further comprises the following steps:

[0020] Obtain combinatorial optimization problem dataset;

[0021] A graph neural network based on ternary attention is constructed as the meta-optimizer, the meta-optimizer is pre-trained using the combinatorial optimization problem dataset, and the parameters of the meta-optimizer are optimized using an evolutionary strategy.

[0022] In some embodiments, the step of constructing a plurality of initial feasible solutions corresponding to the binary combinatorial optimization problem using a meta-optimizer specifically includes:

[0023] Inputting the connectivity graph into the meta-optimizer, using a first graph neural network in the meta-optimizer to initialize a parameter vector of a heat map according to the connectivity graph, and using a second graph neural network in the meta-optimizer to construct an initial heat map according to the parameter vector of the heat map;

[0024] The meta-optimizer is used to construct a plurality of initial feasible solutions corresponding to the binary combinatorial optimization problem according to the initial heat map.

[0025] In some embodiments, the step of transmitting each of the initial feasible solutions to the meta-optimizer, and using the meta-optimizer to perform iterative optimization according to each of the initial feasible solutions and the binary combination optimization problem to obtain an optimal solution set corresponding to the binary combination optimization problem specifically includes:

[0026] Using the second graph neural network in the meta-optimizer, according to the initial heat map and each of the initial feasible solutions, the parameter vector corresponding to the initial heat map is updated to obtain a corresponding first-round iterative heat map;

[0027] Constructing the optimal solution set;

[0028] The first round of iterative heat map is obtained as the current heat map, and the first round is obtained as the current iteration round number;

[0029] Using the meta-optimizer to construct a plurality of feasible solutions corresponding to the binary combinatorial optimization problem in the current iteration round according to the current heat map;

[0030] According to the optimization objective of the problem, the optimization objective expected value corresponding to each feasible solution is calculated, and according to the optimization objective expected value corresponding to each feasible solution, the optimal solution corresponding to the current iteration round number is selected from a plurality of feasible solutions;

[0031] Adding the optimal solution to the optimal solution set;

[0032] When the current iteration number is less than a given iteration number threshold, the second graph neural network in the meta-optimizer is used to update the parameter vector corresponding to the current heat map according to each feasible solution corresponding to the current iteration number, to obtain the corresponding optimized updated heat map, to use the optimized updated heat map as the current heat map, to increment the current iteration number, to obtain the next iteration number, to use the next iteration number as the current iteration number, and then to return to the step of constructing a number of feasible solutions corresponding to the binary combination optimization problem in the current iteration number according to the current heat map using the meta-optimizer, until the current iteration number is equal to the iteration number threshold;

[0033] When the current iteration number is equal to the iteration number threshold, the meta-optimizer is stopped from performing iterative optimization to obtain the optimal solution set, wherein the optimal solution set includes the optimal solutions corresponding to each iteration number.

[0034] In some embodiments, the binary combination optimization problem includes a plurality of given binary decision variables, and the step of constructing a plurality of feasible solutions corresponding to the binary combination optimization problem in the current iteration round according to the current heat map by using the meta-optimizer specifically includes:

[0035] Obtain multiple construction steps corresponding to the current iteration round number;

[0036] For each of the construction steps, a probability distribution strategy is set, and a number of target decision variables are determined from the multiple binary decision variables using the probability distribution strategy. The target decision variables are sorted and combined to obtain the feasible solution corresponding to the construction step.

[0037] In some embodiments, the probability distribution strategy is represented by the following formula:

[0038] ;

[0039] ;

[0040] in, represents the probability distribution, To construct the feasible solution corresponding to step t, , Indicates that given the current The next decision variable to be set to 1, Indicates that in the construction step The i-th binary decision variable Determine as the target decision variable, N is the number of binary decision variables, For the binary decision variables The corresponding masking value, For the binary decision variables The corresponding masking value, is the number of binary decision variables, is a masking function, and the masking function is used to calculate and , Indicates that in the construction step From the current binary decision variables The state of cannot deduce a feasible solution, and Set as the target decision variable, Indicates that in the construction step From the current binary decision variables The feasible solution can be derived from the state of Set as the target decision variable, heat map , Indicates a dimensional real vector space, Every element in is a real number, For heat map The i-th element in .

[0041] On the other hand, an embodiment of the present application proposes a material scheduling device based on a meta-optimizer, the device comprising:

[0042] The first module is used to obtain material scheduling problems;

[0043] The second module is used to establish a corresponding connectivity graph according to the material scheduling problem, and transform the material scheduling problem into a binary combination optimization problem based on the connectivity graph; the connectivity graph is represented by the following formula:

[0044] ;

[0045] in, is the vertex, It is a picture The edges and vertices in is the node for material dispatching, The cost or path length for material scheduling between two nodes;

[0046] The binary combination optimization problem consists of a feasible solution set and an objective function Composition, feasible solution set Include A binary decision variable, the value of which is 0 or 1, represents a connected graph Whether a path is selected, represents the set of real numbers, is a connected graph Related objective function, objective function It means finding an optimal feasible solution , so that Minimize, the best feasible solution Elements in is a feasible solution set The i-th binary decision variable in The value range is 1 to , , Connected Graph Middle Edge the number of

[0047] The third module is used to construct several initial feasible solutions corresponding to the binary combinatorial optimization problem using a meta-optimizer;

[0048] A fourth module is used to transfer each of the initial feasible solutions to the meta-optimizer, and use the meta-optimizer to perform iterative optimization according to each of the initial feasible solutions and the binary combination optimization problem to obtain an optimal solution set corresponding to the binary combination optimization problem;

[0049] The fifth module is used to obtain the problem optimization target, and determine the optimization target expected value corresponding to each optimal solution in the optimal solution set according to the problem optimization target; in the step of obtaining the problem optimization target and determining the optimization target expected value corresponding to each optimal solution in the optimal solution set according to the problem optimization target, the optimization target expected value is calculated by the following formula:

[0050] ;

[0051] in, Optimize the goal for the problem, is the connected graph corresponding to the material dispatch problem, represents the expected value of the optimization target, is a connected graph The relevant objective function is is the optimal solution set K An optimal solution;

[0052] The sixth module is used to determine the global optimal solution from the optimal solution set according to the expected value of the optimization target corresponding to each optimal solution, and use the global optimal solution to perform material scheduling.

[0053] On the other hand, an embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the material scheduling method described above when executing the computer program.

[0054] On another aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the material scheduling method described above.

[0055] The present application provides a material scheduling method, device, electronic device and medium based on a meta-optimizer, which converts the material scheduling problem into a binary combination optimization problem based on the connected graph, uses a meta-optimizer to construct several initial feasible solutions corresponding to the binary combination optimization problem, performs iterative optimization based on each initial feasible solution and the binary combination optimization problem, obtains the optimal solution set corresponding to the binary combination optimization problem, determines the optimization target expected value corresponding to each optimal solution in the optimal solution set according to the problem optimization goal, determines the global optimal solution from the optimal solution set, and uses the global optimal solution to perform material scheduling. The present application can use a meta-optimizer to perform multiple iterative optimizations based on the material scheduling problem to obtain the global optimal solution, realizes efficient search for a better solution to the material scheduling problem, completes in-depth analysis of the material scheduling problem, effectively improves the efficiency and quality of material scheduling, and realizes reasonable material scheduling. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 is a flow chart of a material scheduling method based on a meta-optimizer provided in an embodiment of the present application;

[0057] Figure 2 It is a structural schematic diagram of a material scheduling device based on a meta-optimizer provided in an embodiment of the present application;

[0058] Figure 3 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0060] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0062] In recent years, deep learning technology has played an increasingly important role in material scheduling problems and has become a hot topic of widespread concern in the industry and academia. Material scheduling problems involve challenges in many aspects, such as resource constraints, variable factors, optimization goals, large-scale data, and real-time requirements. With the continuous expansion of global logistics and supply chain, these problems have become more complex and critical. Traditional scheduling methods are often unable to effectively cope with these challenges. Therefore, the introduction of deep learning technology has become a new idea for solving material scheduling problems.

[0063] Deep learning technology can provide more intelligent and efficient solutions to material scheduling problems by learning the characteristics and rules in large-scale data. For example, deep learning technology can be used to optimize resource utilization in material scheduling, thereby improving scheduling efficiency and resource utilization; at the same time, deep learning can also predict and respond to uncertain factors in the supply chain, such as demand fluctuations and traffic delays, by learning from historical data, thereby improving the stability and robustness of scheduling.

[0064] However, the current material dispatch problem still faces some challenges, such as huge amounts of data and the influence of variable factors. Therefore, how to effectively use deep learning technology to solve these challenges and improve the efficiency and quality of material dispatch is one of the important topics in current research and practice. Through continuous exploration and innovation, I believe that deep learning technology will bring more opportunities and solutions to material dispatch problems and promote the development and progress of logistics and supply chain management.

[0065] Based on this, the embodiments of the present application propose a material scheduling method, device, electronic device and medium based on a meta-optimizer, which can effectively improve the efficiency and quality of material scheduling, conduct in-depth analysis of material scheduling problems, and achieve reasonable material scheduling.

[0066] Reference Figure 1 , Figure 1This is an optional flow chart of a material scheduling method based on a meta-optimizer provided in an embodiment of the present application. The method may include but is not limited to steps S101 to S106:

[0067] Step S101, obtaining a material dispatching problem;

[0068] Step S102, according to the material dispatching problem, a corresponding connected graph is established, and the material dispatching problem is converted into a binary combination optimization problem based on the connected graph;

[0069] Step S103, constructing several initial feasible solutions corresponding to the binary combinatorial optimization problem using a meta-optimizer;

[0070] Step S104, transmitting each initial feasible solution to a meta-optimizer, using the meta-optimizer to perform iterative optimization based on each initial feasible solution and the binary combination optimization problem, to obtain an optimal solution set corresponding to the binary combination optimization problem;

[0071] Step S105, obtaining the optimization target of the problem, and determining the optimization target expected value corresponding to each optimal solution in the optimal solution set according to the optimization target of the problem;

[0072] Step S106, according to the expected value of the optimization target corresponding to each optimal solution, determine the global optimal solution from the optimal solution set, and use the global optimal solution to perform material dispatch.

[0073] In step S102 of some embodiments, a connectivity graph is established according to the material dispatching problem. ,in, is the vertex, It is a picture The edges and vertices in is the node for material dispatching, It is the cost or path length for material scheduling between two nodes.

[0074] In some embodiments, before executing step S103, steps S201 to S202 are also included:

[0075] Step S201, obtaining a combinatorial optimization problem data set;

[0076] Step S202: construct a graph neural network based on ternary attention as a meta-optimizer, pre-train the meta-optimizer using a combinatorial optimization problem data set, and use an evolutionary strategy to optimize the parameters of the meta-optimizer.

[0077] In step S201 of some embodiments, the combinatorial optimization problem data set includes different instances of the combinatorial optimization problem defined on different connected graphs.

[0078] In step S202 of some embodiments, the meta-optimizer includes two graph neural networks based on ternary attention, specifically:

[0079] Learnable Meta-Optimizers by Graph Neural Networks and Composed of parameters Parameterization, where the first graph neural network Used to initialize the heatmap parameter vector ,pass Able to construct a batch of feasible solutions, the second graph neural network Used to update based on current solution and iterative information The value of .

[0080] Both graph neural networks based on ternary attention include a feature extraction module, a ternary attention module and a forward module, specifically:

[0081] For any pair of points in a connected graph , the embedding vector of the point and the edge embedding vector Through the feature extraction modules respectively, the feature representation capabilities of each are enhanced.

[0082] A ternary attention module is introduced in the channel of the edge. The ternary attention module is located between the feature extraction module and the forward module. The point pairs (i, j), (j, k), and (k, j) form a triple. The first attention of the triple is calculated as follows:

[0083] ;

[0084] ;

[0085] in, From edge embedding The inward learnable projection of To point The flow process, Yes Assign to peer pair The inward attention weight, is the inward output of the attention head, for The derived inward query vector, for The derived inward key vector, and is a triangle The point pair of the third side of The corresponding edge embedding vector The derived inward scalar, represents the inward bias term and represents the inward gating term, and is the activation function.

[0086] The above first attention calculation is called inward update, and the second attention calculation of the triple is a parallel update, which can also be called outward update. It is completed by changing the direction of the aggregation pair. The second attention calculation of the triple is as follows:

[0087] ;

[0088] ;

[0089] in, From edge embedding The outward learnable projection of To point The flow process, Yes Assign to peer pair The outward attention weight, is the outward output of the attention head, for The derived outward query vector, for derived outward key vector; and is a triangle The point pair of the third side of Embed The derived outward scalar, represents the outward bias term, represents the outward gating term, and is the activation function.

[0090] Finally, and Connect them to obtain the concatenation result, pass the concatenation result to the forward module, and update the embedding vector from the learnable projection of the concatenation result in the forward module .

[0091] The meta-optimizer is pre-trained using the combinatorial optimization problem dataset, and the parameters of the meta-optimizer are optimized using evolutionary strategies, specifically:

[0092] Assume that the connected graph corresponding to a material scheduling instance in the combinatorial optimization problem dataset is distributed from D represents a data set, which contains a series of instances of each combinatorial optimization problem, and each instance corresponds to a connected graph. The distribution Gx ~ D represents the distribution of the connected graph sampled from the data set D. The optimization goal is:

[0093] ;

[0094] in, , are the graph neural network parameters of the meta-optimizer, To optimize the goal, for The optimal solution obtained after rounds of iterative training, is the corresponding instance connectivity graph, is with the picture The relevant objective function is Represents the expected value, because this optimization goal is non-differentiable and is the result of a potentially long optimization trajectory, so an evolutionary strategy is used to parameterize Optimization.

[0095] In step S102 of some embodiments, the binary combinatorial optimization problem consists of a feasible solution set and an objective function Composition, feasible solution set Included A set of binary decision variables, each of which can only take the value of 0 or 1. In the material scheduling problem, each binary decision variable can be represented by a graph. Whether a path is selected (1 for selected, 0 for unselected) in the objective function middle, represents the set of real numbers, is with the picture Related objective function, objective function It means finding an optimal feasible solution , so that Minimize, the best feasible solution Elements in is a feasible solution set The i-th binary decision variable in The value range is 1 to , , Connected Graph Middle Edge The number of

[0096] In some embodiments, step S103 may include but is not limited to steps S301 to S302:

[0097] Step S301, input the connectivity graph into the meta-optimizer, use the first graph neural network in the meta-optimizer to initialize the parameter vector of the heat map according to the connectivity graph, and use the second graph neural network in the meta-optimizer to construct the initial heat map according to the parameter vector of the heat map;

[0098] Step S302: construct several initial feasible solutions corresponding to the binary combinatorial optimization problem according to the initial heat map using a meta-optimizer.

[0099] In some embodiments, the binary combinatorial optimization problem includes a plurality of given binary decision variables, and step S302 may include but is not limited to steps S401 to S402:

[0100] Step S401, obtaining multiple construction steps corresponding to the current iteration round number;

[0101] Step S402, for each construction step, a probability distribution strategy is set, and a number of target decision variables are determined from multiple binary decision variables using the probability distribution strategy, and the target decision variables are sorted and combined to obtain a feasible solution corresponding to the construction step.

[0102] In step S402 of some embodiments, the probability distribution strategy is expressed by the following formula:

[0103] ;

[0104] ;

[0105] in, represents the probability distribution, To construct the feasible solution corresponding to step t, , Indicates that given the current The next decision variable to be set to 1, Indicates that in the construction step The i-th binary decision variable Determine as the target decision variable, N is the number of binary decision variables, For the binary decision variables The corresponding masking value, For the binary decision variables The corresponding masking value, is the number of binary decision variables, is a masking function, and the masking function is used to calculate and , Indicates that in the construction step From the current binary decision variables The state of cannot deduce a feasible solution, and Set as the target decision variable, Indicates that in the construction step From the current binary decision variables The feasible solution can be derived from the state of Set as the target decision variable, heat map , Indicates a dimensional real vector space, Every element in is a real number, For heat map The i-th element in .

[0106] In steps S301 to S302 of some embodiments, the connected graph corresponding to the material scheduling problem is input into the meta-optimizer, and the connected graph corresponding to the material scheduling problem is input into the meta-optimizer through the first graph neural network of the meta-optimizer. Initialize the parameter vector of the heat map, and generate the initial heat map based on the parameter vector of the connectivity graph and the heat map .

[0107] Assume that the binary combination optimization problem corresponding to the material scheduling problem has binary decision variables, through the initial heat map To construct the initial solution, Indicates a dimensional real vector space, where every element is a real number.

[0108] Specifically, in each construction step , the strategy emits a probability distribution ,in Indicates that the current construction step is given The next decision variable to be set to 1 is obtained through the above probability distribution strategy. The corresponding feasible solution is obtained by repeating this random process b times. There are corresponding b feasible solutions, where the specific value of b can be set according to actual needs.

[0109] ;

[0110] in, Heatmap The gradient of the parameter vector of , the purpose of which is to optimize, For the picture The relevant objective function is is the feasible solution corresponding to the maximum construction step T, To construct the feasible solution corresponding to step t, Represents probability distribution. T is a variable set based on actual experience and does not need to be Similarly, the b solutions are the solutions to b material scheduling plans, and one solution corresponds to one material scheduling plan.

[0111] In some embodiments, step S104 may include but is not limited to steps S501 to S508:

[0112] Step S501, using the second graph neural network in the meta-optimizer to update the parameter vector corresponding to the initial heat map according to the initial heat map and each initial feasible solution, to obtain the corresponding first round iterative heat map;

[0113] Step S502, constructing an optimal solution set;

[0114] Step S503, obtaining the first round of iteration heat map as the current heat map, obtaining the first round as the current iteration round number;

[0115] Step S504, using the meta-optimizer to construct several feasible solutions corresponding to the binary combinatorial optimization problem in the current iteration round according to the current heat map;

[0116] Step S505, according to the problem optimization goal, calculate the optimization goal expected value corresponding to each feasible solution, and select the optimal solution corresponding to the current iteration round from a number of feasible solutions according to the optimization goal expected value corresponding to each feasible solution;

[0117] Step S506, adding the optimal solution to the optimal solution set;

[0118] Step S507, when the current iteration number is less than the given iteration number threshold, the second graph neural network in the meta-optimizer is used to update the parameter vector corresponding to the current heat map according to the feasible solutions corresponding to the current iteration number, and the corresponding optimized updated heat map is obtained, and the optimized updated heat map is used as the current heat map, and the current iteration number is incremented to obtain the next iteration number, and the next iteration number is used as the current iteration number, and then the step of using the meta-optimizer to construct several feasible solutions corresponding to the binary combination optimization problem in the current iteration number according to the current heat map is returned until the current iteration number is equal to the iteration number threshold;

[0119] Step S508, when the current iteration number is equal to the iteration number threshold, stop using the meta-optimizer to perform iterative optimization to obtain an optimal solution set, wherein the optimal solution set includes the optimal solutions corresponding to each iteration number.

[0120] In some embodiments, for k Round iteration, assuming that k The number of iterations is the current number of iterations. kCurrent heatmap corresponding to the round iteration Construct b feasible solutions, determine the optimal solution from the feasible solutions, add the optimal solution to the optimal solution, update the optimal solution set, and then and b feasible solutions to construct k Wheel feature map ,Will Passed to the meta-optimizer, using the meta-optimizer included (As in the second graph neural network above), get the updated heat map (As mentioned above, optimize and update the heat map).

[0121] After K rounds of iterations, the global optimal solution is selected from the optimal solution set. , according to the global optimal solution Determine the material scheduling plan, and perform material scheduling according to the material scheduling plan. The value of the iteration round threshold K can be set according to actual needs.

[0122] In step S105 of some embodiments, the optimization target expected value corresponding to each optimal solution is calculated by the following formula:

[0123] ;

[0124] in, Optimize the goal for the problem, , are the graph neural network parameters of the meta-optimizer. At this time, the graph neural network parameters of the meta-optimizer are fixed. is the connected graph corresponding to the material dispatch problem, represents the expected value of the optimization target, is a connected graph The relevant objective function is is the optimal solution set K The optimal solution is set by pre-setting the optimization goal. , substitute the optimal solution , and get the optimal solution In the problem optimization goal The expected value of the corresponding optimization objective is .

[0125] Reference Figure 2 , Figure 2 : is an optional structural diagram of a material scheduling device based on a meta-optimizer provided in an embodiment of the present application. The device can be used to implement the material scheduling method based on the meta-optimizer. The device may include but is not limited to:

[0126] The first module is used to obtain material scheduling problems;

[0127] The second module is used to establish a corresponding connected graph according to the material scheduling problem, and transform the material scheduling problem into a binary combination optimization problem based on the connected graph;

[0128] The third module is used to construct several initial feasible solutions corresponding to the binary combinatorial optimization problem using the meta-optimizer;

[0129] The fourth module is used to transfer each initial feasible solution to the meta-optimizer, and use the meta-optimizer to perform iterative optimization according to each initial feasible solution and the binary combination optimization problem to obtain an optimal solution set corresponding to the binary combination optimization problem;

[0130] The fifth module is used to obtain the optimization target of the problem, and determine the expected value of the optimization target corresponding to each optimal solution in the optimal solution set according to the optimization target of the problem;

[0131] The sixth module is used to determine the global optimal solution from the optimal solution set according to the expected value of the optimization target corresponding to each optimal solution, and use the global optimal solution to dispatch materials.

[0132] The specific implementation of the material scheduling device based on the meta-optimizer is basically the same as the specific implementation of the material scheduling method based on the meta-optimizer mentioned above, and will not be repeated here.

[0133] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the material scheduling method based on the meta-optimizer when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0134] See also Figure 3 , Figure 3 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0135] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0136] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the material scheduling method based on the meta-optimizer in the embodiment of this application;

[0137] Input / output interface 903, used to implement information input and output;

[0138] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0139] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0140] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0141] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned material scheduling method based on the meta-optimizer.

[0142] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0143] The embodiments of the present application provide a material scheduling method, device, electronic device and medium based on a meta-optimizer, which converts the material scheduling problem into a binary combination optimization problem based on the connected graph, uses a meta-optimizer to construct several initial feasible solutions corresponding to the binary combination optimization problem, performs iterative optimization based on each initial feasible solution and the binary combination optimization problem, obtains an optimal solution set corresponding to the binary combination optimization problem, determines the optimization target expected value corresponding to each optimal solution in the optimal solution set according to the problem optimization goal, determines the global optimal solution from the optimal solution set, and uses the global optimal solution to perform material scheduling. The present application can use a meta-optimizer to perform multiple iterative optimizations based on the material scheduling problem to obtain a global optimal solution, thereby achieving efficient search for a better solution to the material scheduling problem, completing an in-depth analysis of the material scheduling problem, effectively improving the efficiency and quality of material scheduling, and achieving reasonable material scheduling.

[0144] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0145] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0146] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A material scheduling method based on meta-optimizer, It is characterized in that The method comprises the following steps: Get material dispatching problems; According to the material dispatching problem, a corresponding connected graph is established, and the material dispatching problem is converted into a binary combination optimization problem based on the connected graph; The connectivity graph is represented by the following formula: ; in, is the vertex, It is a picture The edges and vertices in is the node for material dispatching, The cost or path length for material scheduling between two nodes; The binary combination optimization problem consists of a feasible solution set and an objective function Composition, feasible solution set Include A binary decision variable, the value of which is 0 or 1, represents a connected graph Whether a path is selected, represents the set of real numbers, is a connected graph Related objective function, objective function It means finding an optimal feasible solution , so that Minimize, the best feasible solution Elements in is a feasible solution set The i-th binary decision variable in The value range is 1 to , , Connected Graph Middle Edge the number of Constructing several initial feasible solutions corresponding to the binary combinatorial optimization problem using a meta-optimizer; Passing each of the initial feasible solutions to the meta-optimizer, and using the meta-optimizer to perform iterative optimization according to each of the initial feasible solutions and the binary combination optimization problem to obtain an optimal solution set corresponding to the binary combination optimization problem; Obtaining a problem optimization goal, and determining an optimization goal expected value corresponding to each optimal solution in the optimal solution set according to the problem optimization goal; In the step of obtaining the problem optimization objective and determining the optimization objective expected value corresponding to each optimal solution in the optimal solution set according to the problem optimization objective, the optimization objective expected value is calculated by the following formula: ; in, Optimize the goal for the problem, is the connected graph corresponding to the material dispatch problem, represents the expected value of the optimization target, is a connected graph The relevant objective function is is the optimal solution set K An optimal solution; Determine a global optimal solution from the optimal solution set according to the optimization target expected value corresponding to each optimal solution, and use the global optimal solution to dispatch materials; The step of constructing a plurality of initial feasible solutions corresponding to the binary combination optimization problem using a meta-optimizer specifically includes: Inputting the connectivity graph into the meta-optimizer, using a first graph neural network in the meta-optimizer to initialize a parameter vector of a heat map according to the connectivity graph, and using a second graph neural network in the meta-optimizer to construct an initial heat map according to the parameter vector of the heat map; The meta-optimizer is used to construct a plurality of initial feasible solutions corresponding to the binary combinatorial optimization problem according to the initial heat map.

2. The material dispatching method according to claim 1, It is characterized in that Before executing the step of constructing a plurality of initial feasible solutions corresponding to the binary combinatorial optimization problem using a meta-optimizer, the method further comprises the following steps: Obtain combinatorial optimization problem dataset; A graph neural network based on ternary attention is constructed as the meta-optimizer, the meta-optimizer is pre-trained using the combinatorial optimization problem dataset, and the parameters of the meta-optimizer are optimized using an evolutionary strategy.

3. The material dispatching method according to claim 1, It is characterized in that The step of transmitting each of the initial feasible solutions to the meta-optimizer, and using the meta-optimizer to perform iterative optimization according to each of the initial feasible solutions and the binary combination optimization problem to obtain an optimal solution set corresponding to the binary combination optimization problem specifically includes: Using the second graph neural network in the meta-optimizer, according to the initial heat map and each of the initial feasible solutions, the parameter vector corresponding to the initial heat map is updated to obtain a corresponding first-round iterative heat map; Constructing the optimal solution set; The first round of iterative heat map is obtained as the current heat map, and the first round is obtained as the current iteration round number; Using the meta-optimizer to construct a plurality of feasible solutions corresponding to the binary combinatorial optimization problem in the current iteration round according to the current heat map; According to the optimization objective of the problem, the optimization objective expected value corresponding to each feasible solution is calculated, and according to the optimization objective expected value corresponding to each feasible solution, the optimal solution corresponding to the current iteration round number is selected from a plurality of feasible solutions; Adding the optimal solution to the optimal solution set; When the current iteration number is less than a given iteration number threshold, the second graph neural network in the meta-optimizer is used to update the parameter vector corresponding to the current heat map according to each feasible solution corresponding to the current iteration number, to obtain the corresponding optimized updated heat map, to use the optimized updated heat map as the current heat map, to increment the current iteration number, to obtain the next iteration number, to use the next iteration number as the current iteration number, and then to return to the step of constructing a number of feasible solutions corresponding to the binary combination optimization problem in the current iteration number according to the current heat map using the meta-optimizer, until the current iteration number is equal to the iteration number threshold; When the current iteration number is equal to the iteration number threshold, the meta-optimizer is stopped from performing iterative optimization to obtain the optimal solution set, wherein the optimal solution set includes the optimal solutions corresponding to each iteration number.

4. The material dispatching method according to claim 3, It is characterized in that The binary combination optimization problem includes a plurality of given binary decision variables, and the step of constructing a plurality of feasible solutions corresponding to the binary combination optimization problem in the current iteration round according to the current heat map by using the meta-optimizer specifically includes: Obtain multiple construction steps corresponding to the current iteration round number; For each of the construction steps, a probability distribution strategy is set, and a number of target decision variables are determined from the multiple binary decision variables using the probability distribution strategy. The target decision variables are sorted and combined to obtain the feasible solution corresponding to the construction step.

5. The material dispatching method according to claim 4, It is characterized in that The probability distribution strategy is expressed by the following formula: ; ; in, represents the probability distribution, To construct the feasible solution corresponding to step t, , Indicates that given the current The next decision variable to be set to 1, Indicates that in the construction step The i-th binary decision variable is determined as the target decision variable, N is the number of binary decision variables, For the binary decision variables The corresponding masking value, For the binary decision variables The corresponding masking value, is the number of binary decision variables, is a masking function, and the masking function is used to calculate and , Indicates that in the construction step From the current binary decision variables The state of cannot deduce a feasible solution, and Set as the target decision variable, Indicates that in the construction step From the current binary decision variables The feasible solution can be derived from the state of Set as the target decision variable, heat map , Indicates a dimensional real vector space, Every element in is a real number, For heat map The i-th element in .

6. A material scheduling device based on meta-optimizer, It is characterized in that The device comprises: The first module is used to obtain material scheduling problems; The second module is used to establish a corresponding connectivity graph according to the material scheduling problem, and transform the material scheduling problem into a binary combination optimization problem based on the connectivity graph; the connectivity graph is represented by the following formula: ; in, is the vertex, It is a picture The edges and vertices in is the node for material dispatching, The cost or path length for material scheduling between two nodes; The binary combination optimization problem consists of a feasible solution set and an objective function Composition, feasible solution set Include A binary decision variable, the value of which is 0 or 1, represents a connected graph Whether a path is selected, represents the set of real numbers, is a connected graph Related objective function, objective function It means finding an optimal feasible solution , so that Minimize, the best feasible solution Elements in is a feasible solution set The i-th binary decision variable in The value range is 1 to , , Connected Graph Middle Edge the number of The third module is used to construct several initial feasible solutions corresponding to the binary combination optimization problem by using a meta-optimizer; the step of constructing several initial feasible solutions corresponding to the binary combination optimization problem by using a meta-optimizer specifically includes: Inputting the connectivity graph into the meta-optimizer, using a first graph neural network in the meta-optimizer to initialize a parameter vector of a heat map according to the connectivity graph, and using a second graph neural network in the meta-optimizer to construct an initial heat map according to the parameter vector of the heat map; Using the meta-optimizer to construct a plurality of initial feasible solutions corresponding to the binary combinatorial optimization problem according to the initial heat map; A fourth module is used to transfer each of the initial feasible solutions to the meta-optimizer, and use the meta-optimizer to perform iterative optimization according to each of the initial feasible solutions and the binary combination optimization problem to obtain an optimal solution set corresponding to the binary combination optimization problem; The fifth module is used to obtain the problem optimization target, and determine the optimization target expected value corresponding to each optimal solution in the optimal solution set according to the problem optimization target; in the step of obtaining the problem optimization target and determining the optimization target expected value corresponding to each optimal solution in the optimal solution set according to the problem optimization target, the optimization target expected value is calculated by the following formula: ; in, Optimize the goal for the problem, is the connected graph corresponding to the material dispatch problem, represents the expected value of the optimization target, is a connected graph The relevant objective function is is the optimal solution set K An optimal solution; The sixth module is used to determine the global optimal solution from the optimal solution set according to the expected value of the optimization target corresponding to each optimal solution, and use the global optimal solution to perform material scheduling.

7. An electronic device, It is characterized in that The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the material dispatching method according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the material dispatching method according to any one of claims 1 to 5 is implemented.