A method and device for optimizing cutting of wooden furniture panels based on reinforcement learning

Through a method based on reinforcement learning, the board characteristics and cutting requirements are obtained, cutting candidate plans and scoring strategies are determined, and cutting actions are iteratively optimized, which solves the problem of low efficiency of wooden furniture board cutting optimization technology and achieves a more efficient cutting process.

CN118428567BActive Publication Date: 2024-09-27SICHUAN YADU FURNITURE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410900221.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-27
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

The existing wooden furniture panel cutting optimization technology is inefficient, the heuristic algorithm lacks theoretical guidance, and the branch and bound algorithm of the precise algorithm takes too long to calculate, resulting in low panel cutting efficiency.

Method used

A method based on reinforcement learning is used to determine the cutting candidate plan and scoring strategy by obtaining plate characteristic data and cutting requirements, iteratively selects the cutting action that maximizes the cutting evaluation value, optimizes the scoring strategy, and forms a cutting optimization plan. The method includes a decision problem model, scoring strategy, Monte Carlo tree and reinforcement learning strategy network to optimize the cutting process.

Benefits of technology

The cutting efficiency is improved, cutting needs are fully considered, reasonable integration of resources is achieved, and the problem of low efficiency in the existing technology is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428567B
    Figure CN118428567B
Patent Text Reader

Abstract

The present application provides a method and device for optimizing the cutting of wooden furniture boards based on reinforcement learning. The method includes: obtaining board feature data and cutting requirements of the target board; determining at least one corresponding cutting candidate scheme based on the board feature data and the cutting requirements, wherein the cutting candidate scheme includes at least one cutting stage and the cutting action of the board acting on each cutting stage; determining a scoring strategy that matches the cutting requirements, wherein the scoring strategy is used to indicate the cutting evaluation value of the board after executing any of the cutting actions; iteratively screening out the cutting action that maximizes the cutting evaluation value, and optimizing the scoring strategy based on the screened cutting action, so as to form a cutting optimization scheme from the cutting candidate scheme. The present application improves the efficiency of board cutting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of wooden furniture production. Specifically, the present application relates to a method and device for optimizing the cutting of wooden furniture panels based on reinforcement learning. Background Art

[0002] For the wooden furniture industry, the board cutting optimization problem is a classic combinatorial optimization problem. At present, there are two solutions for this combinatorial optimization problem: heuristic algorithms and exact algorithms. Among them, the heuristic algorithm lacks theoretical guidance and requires a lot of industry verification. The branch and bound algorithm in the exact algorithm is more commonly used to solve the combinatorial optimization problem, but the branch calculation amount generated by the conversion of the board cutting problem into node decisions is large and the calculation time is too long. Therefore, the efficiency of the existing board cutting optimization technology is low. Summary of the invention

[0003] The present application provides a method and device for optimizing the cutting of wooden furniture boards based on reinforcement learning, which are used to solve the technical problem of low efficiency of existing board cutting optimization technology.

[0004] According to one aspect of the present application, a method for optimizing cutting of wooden furniture boards based on reinforcement learning is provided, comprising:

[0005] Obtain the plate feature data and cutting requirements of the target plate;

[0006] Based on the plate feature data and the cutting requirement, determining at least one corresponding cutting candidate solution, wherein the cutting candidate solution includes at least one cutting stage and a cutting action for the plate in each cutting stage;

[0007] Determining a scoring strategy that matches the cutting requirement, the scoring strategy is used to indicate a cutting evaluation value of the plate after performing any of the cutting actions;

[0008] Iteratively screen out cutting actions that maximize the cutting evaluation value, and optimize the scoring strategy based on the screened cutting actions to form a cutting optimization solution from the cutting candidate solutions.

[0009] Optionally, determining at least one corresponding candidate cutting solution based on the plate feature data and the cutting requirement includes:

[0010] Based on the cutting requirements, a decision problem model is formed, wherein the cutting requirements include the material of the formed panel, the size of the formed panel, the rotation requirement of the formed panel, the sawing seam size, the milling edge length, and the number of iterations;

[0011] Based on the decision problem model, a corresponding decision problem solver is determined, wherein the decision problem solver is used to indicate at least one cutting candidate solution that responds to the cutting requirement.

[0012] Optionally, the scoring strategy includes a consumption scoring strategy for characterizing minimization of wasted area generated by any of the cutting actions.

[0013] Optionally, the iteratively screening out the cutting action that maximizes the cutting evaluation value, and optimizing the scoring strategy based on the screened cutting action to form a cutting optimization scheme from the cutting candidate schemes, includes:

[0014] For any cutting stage, the corresponding cutting evaluation value is determined based on the current scoring strategy and the plate feature data after the last cutting action is performed, wherein the cutting action includes the cutting position, the cutting direction and the plate placement position;

[0015] From the candidate cutting solutions, select a plate corresponding to when the determined cutting evaluation value reaches a preset high evaluation threshold value in the cutting stage;

[0016] Adding the target cutting action corresponding to the selected plate to the candidate cutting scheme;

[0017] The cutting candidate scheme is iteratively updated until the number of iterations reaches a preset number of cutting times, so as to determine a cutting action set in the current cutting candidate scheme that maximizes the total cutting evaluation value composed of the cutting evaluation values ​​under each cutting stage as a cutting optimization scheme.

[0018] Optionally, the iterative updating of the cutting candidate scheme until the obtained plate reaches a preset number of cutting times, so as to determine a cutting action set that maximizes a total cutting evaluation value composed of cutting evaluation values ​​at each cutting stage in the current cutting candidate scheme as a cutting optimization scheme, comprises:

[0019] When the data length of the current candidate cutting solution is not less than the preset beam width, for any cutting stage, the corresponding plates are sorted from small to large according to their cutting evaluation values, and the plates ranked in the top a% are deleted, where: .

[0020] Optionally, the iterative updating of the cutting candidate scheme until the obtained plate reaches a preset number of cutting times, so as to determine a cutting action set that maximizes a total cutting evaluation value composed of cutting evaluation values ​​at each cutting stage in the current cutting candidate scheme as a cutting optimization scheme, further includes:

[0021] When the data length of the current candidate cutting solution is less than the beam width, determining whether the number of iterations reaches the number of cutting times;

[0022] If so, the iteration ends and the cutting optimization scheme is determined; otherwise, the corresponding plate is repeatedly selected based on the cutting evaluation value.

[0023] Optionally, the iteratively screening out the cutting action that maximizes the cutting evaluation value, and optimizing the scoring strategy based on the screened cutting action to form a cutting optimization solution from the cutting candidate solutions, further includes:

[0024] Adding the candidate cutting scheme after the target cutting action, determining a node data set, wherein the node data set includes at least one node, and the node is used to characterize the plate in each cutting stage;

[0025] For any cutting stage, determine the similarity matrix between any corresponding node and other nodes, the state transfer matrix between any node and the corresponding target cutting actions, and the corresponding reinforcement learning strategy network;

[0026] Constructing leaf nodes of a Monte Carlo tree based on the similarity matrix, the state transfer matrix, and the reinforcement learning strategy network;

[0027] The leaf nodes of the Monte Carlo tree are expanded to optimize the scoring strategy.

[0028] Optionally, constructing a leaf node of a Monte Carlo tree based on the similarity matrix, the state transition matrix, and the reinforcement learning strategy network includes:

[0029] Based on the similarity matrix, determining the scoring value of the scoring strategy;

[0030] Determine a node evaluation function of the node, and in the node evaluation function, calculate an estimated evaluation score of the node based on the similarity matrix and the state transition matrix under the constraints of one-size-fits-all and preset size for the current plate;

[0031] The leaf nodes of the Monte Carlo tree are constructed so that when the leaf nodes are estimated to be scored, the cutting action is simulated a fixed number of times at the cutting stage where the current leaf node is located, so that the scoring value of the scoring strategy of the reinforcement learning strategy network at the current cutting stage approaches the estimated evaluation score of the node evaluation function at the current cutting stage.

[0032] Optionally, the plate feature data includes plate material, plate shape, plate size and defect features, and the defect features include defect shape, defect position, defect size and defect quantity;

[0033] The following steps are used to determine the cutting evaluation value, including:

[0034] Determine a first characteristic relationship for characterizing the correlation between any plate characteristic data and each cutting requirement;

[0035] determining a second characteristic relationship for characterizing the correlation between any cutting requirement and the scoring strategy;

[0036] Determining a third characteristic relationship for characterizing the degree of influence of any plate characteristic data on the scoring strategy;

[0037] Based on the first characteristic relationship, the second characteristic relationship and the third characteristic relationship, determining the efficiency evaluation value of each plate feature data, so as to screen out the plate feature data corresponding to when the efficiency evaluation value reaches a preset high correlation threshold;

[0038] Based on the scoring strategy, the screened material characteristic data and the corresponding efficiency evaluation value, a cutting evaluation value is calculated.

[0039] According to another aspect of the present application, a wooden furniture board cutting optimization device based on reinforcement learning is provided, comprising:

[0040] A data acquisition module is used to obtain the plate feature data and cutting requirements of the target plate;

[0041] A cutting candidate scheme determining module, used to determine at least one corresponding cutting candidate scheme based on the plate feature data and the cutting requirement, wherein the cutting candidate scheme includes at least one cutting stage and a cutting action acting on the plate in each cutting stage;

[0042] A scoring strategy determination module, used to determine a scoring strategy that matches the cutting requirement, wherein the scoring strategy is used to indicate a cutting evaluation value of a plate after any cutting action is performed;

[0043] The optimization module is used to iteratively select the cutting action that maximizes the cutting evaluation value, and optimize the scoring strategy based on the selected cutting actions to form a cutting optimization solution from the cutting candidate solutions.

[0044] The beneficial effects of the technical solution provided by this application are:

[0045] The reinforcement learning-based wood furniture board cutting optimization method provided in the present application obtains the board feature data and cutting requirements of the target board, and then determines at least one corresponding cutting candidate scheme based on the board feature data and the cutting requirements, wherein the cutting candidate scheme includes at least one cutting stage and the cutting actions acting on the board in each cutting stage, and determines a scoring strategy that matches the cutting requirements. The scoring strategy is used to indicate the cutting evaluation value of the board after performing any of the cutting actions, so as to iteratively screen out the cutting actions that maximize the cutting evaluation value, and optimize the scoring strategy based on the screened cutting actions, so as to form a cutting optimization scheme from the cutting candidate schemes. The cutting optimization scheme can fully consider the impact of the cutting requirements on the entire cutting process, can effectively control each cutting action to greatly improve the cutting efficiency, realize reasonable integration of resources, and solve the technical problem of low efficiency of the existing board cutting optimization technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of a process flow of a method for optimizing cutting of wooden furniture panels based on reinforcement learning provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of plate cutting provided for an exemplary embodiment of the present application;

[0048] Figure 3 A schematic diagram of plate cutting provided for another exemplary embodiment of the present application;

[0049] Figure 4 A schematic diagram of the structure of a wooden furniture board cutting optimization device based on reinforcement learning provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] Embodiment 1

[0052] Figure 1 A schematic flow chart of a method for optimizing cutting of wooden furniture boards based on reinforcement learning is provided in an embodiment of the present application. The method for optimizing cutting of wooden furniture boards based on reinforcement learning includes steps S101 to S103.

[0053] S101, obtaining plate feature data and cutting requirements of a target plate.

[0054] In the present application, the plate feature data includes plate material, plate shape, plate size and defect features, but is not limited thereto. Defect features include defect shape, defect location, defect size and defect quantity. The cutting requirements include formed plate material, formed plate size, formed plate rotation requirements, saw seam size, milling edge length and iteration times, but are not limited thereto.

[0055] S102: Based on the plate feature data and the cutting requirement, determine at least one corresponding cutting candidate solution, wherein the cutting candidate solution includes at least one cutting stage and a cutting action acting on the plate in each cutting stage.

[0056] In some embodiments, the determining of at least one corresponding cutting candidate solution based on the plate feature data and the cutting requirement includes:

[0057] Based on the cutting requirements, a decision problem model is formed, wherein the cutting requirements include the material of the formed panel, the size of the formed panel, the rotation requirement of the formed panel, the sawing seam size, the milling edge length, and the number of iterations;

[0058] Based on the decision problem model, a corresponding decision problem solver is determined, wherein the decision problem solver is used to indicate at least one cutting candidate solution that responds to the cutting requirement.

[0059] In this embodiment, the user inputs the cutting requirements of the target plate, and then converts the parsed forming plate, material requirements, plate size, raw material plate size and saw seam into the algorithm service body, constructs the demand parameter structure in the service, and converts the demand parameter structure in the service into a decision problem model in the service, so as to generate a corresponding decision problem solver according to the decision problem model, and obtain the corresponding cutting candidate solution according to the decision problem solver. Among them, the demand information includes the forming plate material, the forming plate size, the forming plate rotation, the available raw material plate material, the available raw material material size, the cutting equipment saw seam, the milling edge length and the maximum number of algorithm iterations, etc. The service includes the service configuration file, the service model and the service details, and the decision problem model includes the plate unique decision problem, the same plate merge decision problem, and the plate stacking decision problem formed on the basis of the first two models.

[0060] Therefore, this embodiment obtains multiple candidate cutting solutions by constructing a decision problem model related to cutting requirements, and finds multiple possibilities of cutting combinations, thereby improving the accuracy of cutting.

[0061] S103: Determine a scoring strategy that matches the cutting requirement, where the scoring strategy is used to indicate a cutting evaluation value of the plate after any cutting action is performed.

[0062] In some embodiments, the scoring strategy includes a consumption scoring strategy for characterizing minimization of wasted area generated by any of the cutting actions.

[0063] Among them, the scoring strategy includes a consumption scoring strategy using the minimum wasted area as evaluation, an efficient scoring strategy using the minimum number of cuts as evaluation, a scoring strategy using the shortest cutting time as evaluation, etc., and the application does not make any restrictions on this.

[0064] S104, iteratively screen out cutting actions that maximize the cutting evaluation value, and optimize the scoring strategy based on the screened cutting actions to form a cutting optimization solution from the cutting candidate solutions.

[0065] In this application, illustratively, Figure 2 A schematic diagram of a plate cutting provided for an exemplary embodiment of the present application, and Figure 3 A schematic diagram of plate cutting provided for another exemplary embodiment of the present application, in the first cutting stage, the target plate is cut into an area including part i1, part i2, part i3, and a defective part and a right area, in the second cutting stage, it is cut into part i1 and an area including part i2, part i3, and a defective part, and in the third cutting stage, it is cut into part i2, part i3, and a defective part. Furthermore, as Figure 3 As shown, in the fourth cutting stage, the defective part is further cut.

[0066] The reinforcement learning-based cutting optimization method for wooden furniture boards provided in the present embodiment obtains board feature data and cutting requirements of a target board, and then determines at least one corresponding cutting candidate scheme based on the board feature data and the cutting requirements, wherein the cutting candidate scheme includes at least one cutting stage and cutting actions acting on the board in each cutting stage, and determines a scoring strategy that matches the cutting requirements, wherein the scoring strategy is used to indicate a cutting evaluation value for the board after executing any of the cutting actions, thereby iteratively screening out the cutting actions that maximize the cutting evaluation value, and optimizing the scoring strategy based on the screened cutting actions, so as to form a cutting optimization scheme from the cutting candidate schemes, which can fully consider the impact of the cutting requirements on the entire cutting process, can effectively control each cutting action to greatly improve the cutting efficiency, realize reasonable integration of resources, and solve the technical problem of low efficiency of existing board cutting optimization technology.

[0067] In some embodiments, the iteratively screening out the cutting action that maximizes the cutting evaluation value, and optimizing the scoring strategy based on the screened cutting action to form a cutting optimization solution from the cutting candidate solutions, comprises:

[0068] For any cutting stage, the corresponding cutting evaluation value is determined based on the current scoring strategy and the plate feature data after the last cutting action is performed, wherein the cutting action includes the cutting position, the cutting direction and the plate placement position;

[0069] From the candidate cutting solutions, select a plate corresponding to when the determined cutting evaluation value reaches a preset high evaluation threshold value in the cutting stage;

[0070] Adding the target cutting action corresponding to the selected plate to the candidate cutting scheme;

[0071] The cutting candidate scheme is iteratively updated until the number of iterations reaches a preset number of cutting times, so as to determine a cutting action set in the current cutting candidate scheme that maximizes the total cutting evaluation value composed of the cutting evaluation values ​​under each cutting stage as a cutting optimization scheme.

[0072] In this embodiment, the plate cutting problem is converted into a node structure, wherein each plate in each cutting stage is associated with a node, and the node information includes the selected plate, plate direction, placement position, and index of the raw material plate used. The placement position includes the lower left corner of the plate, the lower right corner of the plate placement position in the previous cutting stage, and the upper left corner of the plate placement position in the previous cutting stage.

[0073] Then, based on the current node status and in the node state Next feasible cutting action to form the next node state ; Taking the panel selection as the time step, the state transformation is as follows:

[0074]

[0075] in, is the node state of the plate at each cutting stage, is the state transformation (i.e. conditional probability);

[0076] Then, based on the state transformation, combined with the set penalty parameters and beam width, beam search can balance the accuracy and computational cost to output the output sequence of the current stage. Further, for the node output sequence formed above, combined with the cutting evaluation value of each node on the evaluation strategy, the selected nodes and their corresponding target cutting actions are added to the cutting candidate scheme, and the worst nodes are removed while satisfying the beam width K until the plate is cut, such as when the number of iterations reaches the cutting number or the cutting requirement is met.

[0077] Based on the above embodiment, in one embodiment, the cutting candidate scheme is iteratively updated until the obtained plate reaches a preset number of cutting times, so as to determine a cutting action set that maximizes the total cutting evaluation value composed of the cutting evaluation values ​​at each cutting stage in the current cutting candidate scheme as a cutting optimization scheme, including:

[0078] When the data length of the current candidate cutting solution is not less than the preset beam width, for any cutting stage, the corresponding plates are sorted from small to large according to their cutting evaluation values, and the plates ranked in the top a% are deleted, where: .

[0079] Based on the above embodiment, in another embodiment, the cutting candidate scheme is iteratively updated until the obtained plate reaches a preset number of cutting times, so as to determine a cutting action set that maximizes the total cutting evaluation value composed of the cutting evaluation values ​​at each cutting stage in the current cutting candidate scheme as a cutting optimization scheme, and further includes:

[0080] When the data length of the current candidate cutting solution is less than the beam width, determining whether the number of iterations reaches the number of cutting times;

[0081] If so, the iteration ends and the cutting optimization scheme is determined; otherwise, the corresponding plate is repeatedly selected based on the cutting evaluation value.

[0082] In some embodiments, the iteratively screening out the cutting action that maximizes the cutting evaluation value, and optimizing the scoring strategy based on the screened cutting action to form a cutting optimization solution from the cutting candidate solutions, further includes:

[0083] Adding the candidate cutting scheme after the target cutting action, determining a node data set, wherein the node data set includes at least one node, and the node is used to characterize the plate in each cutting stage;

[0084] For any cutting stage, determine the similarity matrix between any corresponding node and other nodes, the state transfer matrix between any node and the corresponding target cutting actions, and the corresponding reinforcement learning strategy network;

[0085] Constructing leaf nodes of a Monte Carlo tree based on the similarity matrix, the state transfer matrix, and the reinforcement learning strategy network;

[0086] The leaf nodes of the Monte Carlo tree are expanded to optimize the scoring strategy.

[0087] Based on the above embodiment, in some embodiments, constructing leaf nodes of the Monte Carlo tree based on the similarity matrix, the state transition matrix and the reinforcement learning strategy network includes:

[0088] Based on the similarity matrix, determining the scoring value of the scoring strategy;

[0089] Determine a node evaluation function of the node, and in the node evaluation function, calculate an estimated evaluation score of the node based on the similarity matrix and the state transition matrix under the constraints of one-size-fits-all and preset size for the current plate;

[0090] The leaf nodes of the Monte Carlo tree are constructed so that when the leaf nodes are estimated to be scored, the cutting action is simulated a fixed number of times at the cutting stage where the current leaf node is located, so that the scoring value of the scoring strategy of the reinforcement learning strategy network at the current cutting stage approaches the estimated evaluation score of the node evaluation function at the current cutting stage.

[0091] In this embodiment, the characteristic vector of each plate (node) is determined, and the Euclidean distance between the characteristic vectors of the nth plate and other plates is calculated to obtain the similarity matrix Sn between the nth plate and other plates. Then, the state transfer matrix between the nth plate and other plates is determined based on the similarity matrix Sn of the nth plate.

[0092] Furthermore, we use the structure2vec structure in the graph neural network to extract nodes and calculate the node similarity matrix And the state transfer matrix , design reinforcement learning policy network , including the following:

[0093] Design state-action set (n, a), where state n represents the node in the current cutting stage, and action a represents the cutting action to enter the next node;

[0094] For the current state n: The scoring value of the current board cutting scoring strategy is ,in express The kth board in ; the transition probability of the next board selection is: , express The kth placement in ;

[0095] Then, the node evaluation function of the cutting node of wooden furniture board is , for the state-action set (n, a), under the constraints of the current plate one-size-fits-all and size, the estimated evaluation score of the plate node is calculated, including the following:

[0096] Evaluate function at node In , we first traverse k=1,2,...,N, and calculate at each value of k The calculation results of k at each value are summed up, and the result is recorded as That is, the estimated evaluation score of the node.

[0097] Going further, construct the leaf nodes of the Monte Carlo tree:

[0098]

[0099] Among them, each leaf node corresponds to the node used to characterize the plate, P(n,a) is the previous transition probability, and its value is equal to , is the initial value of the evaluation before the current leaf node of the Monte Carlo tree is expanded. ; is the reward function after the expansion of the estimated current leaf node of the Monte Carlo tree; is the number of visits before the current leaf node of the Monte Carlo tree is expanded, The number of selections after the current leaf node of the Monte Carlo tree is expanded.

[0100] Optional, is the weighted value average of the current node, including:

[0101]

[0102] in, is the preset weight; when evaluating the maximum estimated capacity value for each Monte Carlo tree node, a fixed number of simulated placement actions or a fixed time limit are performed on the current node state, so that the reinforcement learning strategy network The scoring value of the scoring strategy under node state n is , approximating the node evaluation function Estimated evaluation score corresponding to the current cutting stage .

[0103] In a specific embodiment, the nodes of the Monte Carlo tree are expanded, wherein the root node is an initially fixed node, and the leaf nodes are child nodes in the Monte Carlo tree expanded from the root node. The specific expansion process is:

[0104] The selection process is as follows:

[0105] According to the position of the current node, explore the child node information, and select the current optimal child node according to the polynomial confidence rule; its selection strategy is:

[0106]

[0107]

[0108] Among them, α is the action selected by the current node under the optimal strategy of selecting the child nodes of this node: combined with the weighted value mean of the current node Encouraged exploration value with reference exploration coefficient ; is a constant used to determine the degree of expansion when selecting child nodes. In the selection process, nodes with higher selection probabilities will be selected initially, but nodes with higher values ​​will be gradually selected during the expansion of the Monte Carlo tree. is the previous transition probability of the node; The number of selections after the current leaf node is expanded; is the number of times the parent node to which the current leaf node belongs is selected, and b represents the parent node; when the Monte Carlo tree is expanded, the upper limit of the number of times each node is selected is fixed , lock the tree.

[0109] In a specific embodiment, the expansion process is as follows:

[0110] In the process of Monte Carlo tree expansion, the minimum wasted area strategy is used. The previous transition probability is given according to the transition matrix , and executes until the next leaf node of the Monte Carlo tree or until the Monte Carlo tree is fully expanded.

[0111] In a specific embodiment, the evaluation process is as follows:

[0112] In the process of Monte Carlo tree expansion, starting from the leaf node and continuing until the Monte Carlo tree is fully expanded, the reward value of the current branch selection is obtained according to the parcel grid allocation of the current branch and the reward function when the Monte Carlo tree is fully expanded;

[0113] In a specific embodiment, the backtracking process is as follows:

[0114] After the Monte Carlo tree is fully expanded, the number of selections is updated upward from the bottom node of the Monte Carlo tree. , And the corresponding leaf node evaluation value and reward value under the expansion strategy , Until the current leaf node, through the backtracking process, the weighted value mean of the current leaf node is calculated :

[0115]

[0116] After multiple rounds of Monte Carlo tree expansion exploration interactions, when the change in the cumulative reward value of all current nodes is lower than the preset threshold, the Monte Carlo tree expansion path at the current root node is the optimal cutting optimization solution.

[0117] In this embodiment, by combining reinforcement learning with Monte Carlo tree, the generalization of the optimization evaluation strategy and cutting action is improved, and it can be applied to different cutting scenarios. This embodiment can fully consider the impact of cutting requirements on the entire cutting process, and can effectively control each cutting action to greatly improve the cutting efficiency and achieve reasonable integration of resources.

[0118] In some embodiments, the plate feature data includes plate material, plate shape, plate size and defect features, and the defect features include defect shape, defect location, defect size and defect quantity;

[0119] The following steps are used to determine the cutting evaluation value, including:

[0120] Determine a first characteristic relationship for characterizing the correlation between any plate characteristic data and each cutting requirement;

[0121] determining a second characteristic relationship for characterizing the correlation between any cutting requirement and the scoring strategy;

[0122] Determining a third characteristic relationship for characterizing the degree of influence of any plate characteristic data on the scoring strategy;

[0123] Based on the first characteristic relationship, the second characteristic relationship and the third characteristic relationship, determining the efficiency evaluation value of each plate feature data, so as to screen out the plate feature data corresponding to when the efficiency evaluation value reaches a preset high correlation threshold;

[0124] Based on the scoring strategy, the screened material characteristic data and the corresponding efficiency evaluation value, a cutting evaluation value is calculated.

[0125] In this embodiment, since different plate feature data are involved in the plate cutting process, such as plate material, plate shape, plate size and defect characteristics, different plate feature data have their own characteristics, and there are differences in the cutting schemes (involving multi-dimensional cutting stages and multiple cutting actions) corresponding to the cutting requirements. Therefore, reinforcement learning requires a large amount of simulation calculations to evaluate different cutting schemes, which greatly affects the efficiency of reinforcement learning.

[0126] Therefore, this embodiment evaluates each plate feature data and each cutting requirement, and based on the correlation between the two, selects the plate feature data that can affect the cutting requirement. For example, the cutting requirement includes the size of the formed plate, and the plate feature data includes a defect feature. Then, the defect feature has a high correlation with the cutting requirement of the formed plate size, that is, there is a certain cutting impact. Then, by evaluating each cutting requirement and the evaluation strategy, based on the correlation between the two, the influence of the evaluation strategy on the cutting requirement is considered. For example, the cutting requirement includes the size of the formed plate and the material of the formed plate, and the evaluation strategy is the minimum waste area strategy, then the influence of the formed plate size on the minimum waste area strategy will be slightly higher than the influence of the formed plate material on the minimum waste area strategy. Furthermore, by evaluating each plate feature data and the evaluation strategy, based on the correlation between the two, the influence of the plate feature data on the scoring strategy is considered, so as to select features that have an important impact on the model.

[0127] Therefore, based on the first characteristic relationship, the second characteristic relationship and the third characteristic relationship, the efficiency evaluation value of each plate feature data is determined, so that the plate feature data with a higher efficiency evaluation value is screened out, and the cutting evaluation value is calculated based on the scoring strategy, the screened material feature data and the corresponding efficiency evaluation value, fully considering the interaction and correlation between the features, and only considering the plate feature data that has an important impact on the cutting requirements and evaluation strategies, which greatly simplifies the calculation complexity and is conducive to improving the subsequent calculation efficiency.

[0128] Figure 4 A schematic diagram of a structure of a wooden furniture board cutting optimization device based on reinforcement learning provided in an embodiment of the present application, the wooden furniture board cutting optimization device 200 based on reinforcement learning comprises:

[0129] The data acquisition module 201 is used to acquire the plate feature data and cutting requirements of the target plate;

[0130] A cutting candidate scheme determining module 202 is used to determine at least one corresponding cutting candidate scheme based on the plate feature data and the cutting requirement, wherein the cutting candidate scheme includes at least one cutting stage and a cutting action for the plate in each cutting stage;

[0131] A scoring strategy determination module 203 is used to determine a scoring strategy that matches the cutting requirement, wherein the scoring strategy is used to indicate a cutting evaluation value of the plate after any of the cutting actions are performed;

[0132] The optimization module 204 is used to iteratively select the cutting action that maximizes the cutting evaluation value, and optimize the scoring strategy based on the selected cutting actions to form a cutting optimization solution from the cutting candidate solutions.

[0133] In some embodiments, the cutting candidate determination module 202 includes:

[0134] A decision problem model forming unit, used to form a decision problem model based on the cutting requirements, wherein the cutting requirements include the material of the formed panel, the size of the formed panel, the rotation requirement of the formed panel, the sawing seam size, the milling edge length and the number of iterations;

[0135] A problem solving unit is used to determine a corresponding decision problem solver based on the decision problem model, wherein the decision problem solver is used to indicate at least one cutting candidate solution that responds to the cutting requirement.

[0136] In some embodiments, the scoring strategy includes a consumption scoring strategy for characterizing minimization of wasted area generated by any of the cutting actions.

[0137] In some embodiments, the optimization module 204 includes:

[0138] A cutting evaluation value calculation unit, for determining a corresponding cutting evaluation value for any cutting stage based on a current scoring strategy and plate feature data after a previous cutting action, wherein the cutting action includes a cutting position, a cutting direction, and a plate placement position;

[0139] A plate selection unit, configured to select, from the candidate cutting solutions, a plate corresponding to the cutting evaluation value determined at the cutting stage reaching a preset high evaluation threshold;

[0140] A cutting candidate plan updating unit, used for adding the target cutting action corresponding to the selected plate to the cutting candidate plan;

[0141] The cutting iteration unit is used to iteratively update the cutting candidate scheme until the number of iterations reaches a preset number of cutting times, so as to determine a set of cutting actions in the current cutting candidate scheme that maximizes the total cutting evaluation value composed of the cutting evaluation values ​​under each cutting stage as a cutting optimization scheme.

[0142] In some embodiments, the cutting iteration unit includes:

[0143] The first beam width judgment unit is used to sort the corresponding plates in ascending order according to their cutting evaluation values ​​for any cutting stage when the data length of the current cutting candidate solution is not less than the preset beam width, and delete the plates ranked in the top a%, wherein: .

[0144] In some embodiments, the cutting iteration unit further includes:

[0145] A first beam width judgment unit, configured to judge whether the number of iterations reaches the number of cutting times when the data length of the current cutting candidate solution is smaller than the beam width;

[0146] The iterative judgment unit is used to end the iteration and determine the cutting optimization plan if yes; otherwise, repeatedly select the corresponding plate based on the cutting evaluation value.

[0147] In some embodiments, the optimization module 204 further includes:

[0148] A node data set determining unit, used to determine a node data set by adding the candidate cutting scheme after the target cutting action is added, wherein the node data set includes at least one node, and the node is used to characterize the plate in each cutting stage;

[0149] A reinforcement learning strategy network construction unit is used to determine, for any cutting stage, a similarity matrix between any corresponding node and other nodes, a state transfer matrix between any node and corresponding target cutting actions, and a corresponding reinforcement learning strategy network;

[0150] A Monte Carlo tree construction unit, configured to construct a leaf node of a Monte Carlo tree based on the similarity matrix, the state transition matrix, and the reinforcement learning strategy network;

[0151] The scoring strategy optimization unit is used to expand the leaf nodes of the Monte Carlo tree to optimize the scoring strategy.

[0152] In some embodiments, the Monte Carlo tree construction unit includes:

[0153] A scoring value calculation unit, used to determine the scoring value of the scoring strategy based on the similarity matrix;

[0154] An estimated evaluation score calculation unit is used to determine a node evaluation function of the node, and in the node evaluation function, under the constraints of one-size-fits-all and preset size for the current plate, calculate the estimated evaluation score of the node based on the similarity matrix and the state transfer matrix;

[0155] The leaf node construction unit is used to construct the leaf nodes of the Monte Carlo tree, so that when the leaf nodes are estimated to be scored, the cutting action is simulated a fixed number of times at the cutting stage where the current leaf node is located, so that the scoring value of the scoring strategy of the reinforcement learning strategy network at the current cutting stage approaches the estimated evaluation score of the node evaluation function at the current cutting stage.

[0156] In some embodiments, the plate feature data includes plate material, plate shape, plate size and defect features, and the defect features include defect shape, defect position, defect size and defect quantity; the cutting evaluation value calculation unit includes:

[0157] A first characteristic relationship determination unit, used to determine a first characteristic relationship for characterizing the correlation between any plate characteristic data and each cutting requirement;

[0158] A second characteristic relationship determining unit, used to determine a second characteristic relationship for characterizing the correlation between any cutting requirement and the scoring strategy;

[0159] A third characteristic relationship determination unit, used to determine a third characteristic relationship for characterizing the degree of influence of any plate material characteristic data on the scoring strategy;

[0160] a plate feature data screening unit, configured to determine an efficiency evaluation value of each plate feature data based on the first feature relationship, the second feature relationship, and the third feature relationship, so as to screen out the plate feature data corresponding to when the efficiency evaluation value reaches a preset high correlation threshold;

[0161] The calculation unit is used to calculate the cutting evaluation value based on the scoring strategy, the screened material characteristic data and the corresponding efficiency evaluation value.

[0162] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0163] In the description of the embodiments of the present invention, the terms "first", "second", "third", and "fourth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third", and "fourth" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.

[0164] In the description of the embodiments of the present invention, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.

[0165] In the description of the embodiments of the present invention, it should be understood that "-" and "~" represent the range between two values, and the range includes the endpoints. For example: "AB" represents a range greater than or equal to A and less than or equal to B. "A~B" represents a range greater than or equal to A and less than or equal to B.

[0166] In the description of the embodiments of the present invention, the term "and / or" herein is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " herein generally indicates that the associated objects before and after are in an "or" relationship.

[0167] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for optimizing cutting of wooden furniture boards based on reinforcement learning, characterized in that: include: Obtain the plate feature data and cutting requirements of the target plate; Based on the plate feature data and the cutting requirement, determining at least one corresponding cutting candidate solution, wherein the cutting candidate solution includes at least one cutting stage and a cutting action for the plate in each cutting stage; Determine a scoring strategy that matches the cutting requirement, the scoring strategy is used to indicate the cutting evaluation value of the plate after performing any of the cutting actions, the plate feature data includes plate material, plate shape, plate size and defect characteristics, the defect characteristics include defect form, defect position, defect size and defect quantity, and the cutting evaluation value is determined by the following steps, including: determining a first characteristic relationship for characterizing the correlation between any plate feature data and each cutting requirement; determining a second characteristic relationship for characterizing the correlation between any cutting requirement and the scoring strategy; determining a third characteristic relationship for characterizing the degree of influence of any plate feature data on the scoring strategy; based on the first characteristic relationship, the second characteristic relationship and the third characteristic relationship, determining the efficiency evaluation value of each plate feature data, so as to screen out the corresponding plate feature data when the efficiency evaluation value reaches a preset high correlation threshold; based on the scoring strategy, the screened material feature data and the corresponding efficiency evaluation value, calculate the cutting evaluation value; Iteratively screen out cutting actions that maximize the cutting evaluation value, and optimize the scoring strategy based on the screened cutting actions to form a cutting optimization solution from the cutting candidate solutions.

2. The method for optimizing cutting of wooden furniture boards based on reinforcement learning according to claim 1, characterized in that: The determining of at least one corresponding cutting candidate solution based on the plate feature data and the cutting requirement includes: Based on the cutting requirements, a decision problem model is formed, wherein the cutting requirements include the material of the formed panel, the size of the formed panel, the rotation requirement of the formed panel, the sawing seam size, the milling edge length, and the number of iterations; Based on the decision problem model, a corresponding decision problem solver is determined, wherein the decision problem solver is used to indicate at least one cutting candidate solution that responds to the cutting requirement.

3. The method for optimizing cutting of wooden furniture boards based on reinforcement learning according to claim 2, characterized in that: The scoring strategy includes a consumption scoring strategy for characterizing minimization of wasted area generated by any of the cutting actions.

4. The method for optimizing cutting of wooden furniture boards based on reinforcement learning according to claim 3 is characterized in that: The iteratively screening out the cutting action that maximizes the cutting evaluation value, and optimizing the scoring strategy based on the screened cutting action to form a cutting optimization solution from the cutting candidate solutions, comprises: For any cutting stage, the corresponding cutting evaluation value is determined based on the current scoring strategy and the plate feature data after the last cutting action is performed, wherein the cutting action includes the cutting position, the cutting direction and the plate placement position; From the candidate cutting solutions, select a plate corresponding to when the determined cutting evaluation value reaches a preset high evaluation threshold value in the cutting stage; Adding the target cutting action corresponding to the selected plate to the candidate cutting scheme; The cutting candidate scheme is iteratively updated until the number of iterations reaches a preset number of cutting times, so as to determine a cutting action set in the current cutting candidate scheme that maximizes the total cutting evaluation value composed of the cutting evaluation values ​​under each cutting stage as a cutting optimization scheme.

5. The method for optimizing cutting of wooden furniture boards based on reinforcement learning according to claim 4, characterized in that: The iterative updating of the cutting candidate scheme until the obtained plate reaches a preset number of cutting times, so as to determine a cutting action set that maximizes a total cutting evaluation value composed of cutting evaluation values ​​at each cutting stage in the current cutting candidate scheme as a cutting optimization scheme, comprises: When the data length of the current candidate cutting solution is not less than the preset beam width, for any cutting stage, the corresponding plates are sorted from small to large according to their cutting evaluation values, and the plates ranked in the top a% are deleted, where: .

6. The method for optimizing cutting of wooden furniture boards based on reinforcement learning according to claim 5, characterized in that: The iterative updating of the cutting candidate scheme until the obtained plate reaches a preset number of cutting times, so as to determine a cutting action set that maximizes the total cutting evaluation value composed of the cutting evaluation values ​​at each cutting stage in the current cutting candidate scheme as a cutting optimization scheme, further includes: When the data length of the current candidate cutting solution is less than the beam width, determining whether the number of iterations reaches the number of cutting times; If so, the iteration ends and the cutting optimization scheme is determined; otherwise, the corresponding plate is repeatedly selected based on the cutting evaluation value.

7. The method for optimizing cutting of wooden furniture boards based on reinforcement learning according to claim 6, characterized in that: The iteratively screening out the cutting action that maximizes the cutting evaluation value, and optimizing the scoring strategy based on the screened cutting action to form a cutting optimization solution from the cutting candidate solutions, further includes: Adding the candidate cutting scheme after the target cutting action, determining a node data set, wherein the node data set includes at least one node, and the node is used to characterize the plate at each cutting stage; For any cutting stage, determine the similarity matrix between any corresponding node and other nodes, the state transfer matrix between any node and the corresponding target cutting actions, and the corresponding reinforcement learning strategy network; Constructing leaf nodes of a Monte Carlo tree based on the similarity matrix, the state transfer matrix, and the reinforcement learning strategy network; The leaf nodes of the Monte Carlo tree are expanded to optimize the scoring strategy.

8. The method for optimizing cutting of wooden furniture boards based on reinforcement learning according to claim 7, characterized in that: The constructing leaf nodes of the Monte Carlo tree based on the similarity matrix, the state transition matrix and the reinforcement learning strategy network includes: Based on the similarity matrix, determining the scoring value of the scoring strategy; Determine a node evaluation function of the node, and in the node evaluation function, calculate an estimated evaluation score of the node based on the similarity matrix and the state transition matrix under the constraints of one-size-fits-all and preset size for the current plate; The leaf nodes of the Monte Carlo tree are constructed so that when the leaf nodes are estimated to be scored, the cutting action is simulated a fixed number of times at the cutting stage where the current leaf node is located, so that the scoring value of the scoring strategy of the reinforcement learning strategy network at the current cutting stage approaches the estimated evaluation score of the node evaluation function at the current cutting stage.

9. A wooden furniture board cutting optimization device based on reinforcement learning, characterized in that: include: A data acquisition module is used to obtain the plate feature data and cutting requirements of the target plate; A cutting candidate scheme determining module, used to determine at least one corresponding cutting candidate scheme based on the plate feature data and the cutting requirement, wherein the cutting candidate scheme includes at least one cutting stage and a cutting action acting on the plate in each cutting stage; A scoring strategy determination module is used to determine a scoring strategy that matches the cutting requirement, the scoring strategy is used to indicate a cutting evaluation value for a plate after any of the cutting actions are performed, the plate feature data includes plate material, plate shape, plate size and defect features, the defect features include defect form, defect position, defect size and defect quantity, and the cutting evaluation value is determined by the following steps, including: determining a first feature relationship for characterizing the correlation between any plate feature data and each cutting requirement; determining a second feature relationship for characterizing the correlation between any cutting requirement and the scoring strategy; determining a third feature relationship for characterizing the degree of influence of any plate feature data on the scoring strategy; determining an efficiency evaluation value of each plate feature data based on the first feature relationship, the second feature relationship and the third feature relationship, so as to screen out the corresponding plate feature data when the efficiency evaluation value reaches a preset high correlation threshold; calculating the cutting evaluation value based on the scoring strategy, the screened material feature data and the corresponding efficiency evaluation value; The optimization module is used to iteratively select the cutting action that maximizes the cutting evaluation value, and optimize the scoring strategy based on the selected cutting actions to form a cutting optimization solution from the cutting candidate solutions.