Two-dimensional plane layout optimization method based on heuristic search
Through a two-dimensional plane arrangement optimization method based on heuristic search, combined with data preprocessing and Boolean calculation, the emission order of parts and raw materials is optimized, and the problems of low overall material utilization and early emission of small parts in the existing technology are solved, and the problem of low overall material utilization and early emission of small parts is achieved. Higher stability and applicability.
Patent Information
- Application Number
- CN202411187483.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-28
AI Technical Summary
The prior art is difficult to effectively improve the overall material utilization rate in the plane arrangement problem, which easily leads to the early discharge of small parts. The randomness based on the intelligent random search algorithm and the dependence based on the heuristic search algorithm limit its application scope and stability. sex.
Using a two-dimensional plane sorting optimization method based on heuristic search, the two-dimensional plane sorting optimization method is adopted, and the steps of data preprocessing, single-row pattern solving, single-row pattern selection and multi-scheme selection are optimized, combined with critical polygons and two-dimensional Boolean calculations, the parts and raw materials are optimized. Emission order to avoid early discharge of small parts and improve overall utilization.
It has achieved the improvement of overall material utilization in actual production, avoiding the problem of early discharge of small parts, and at the same time improving the stability and scope of application of the sampling results.
Smart Images

Figure CN118709862B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of graphic layout optimization, and in particular to a two-dimensional plane layout optimization method based on heuristic search. Background Art
[0002] Plane nesting problem, also known as nesting problem, refers to the reasonable layout of irregular graphics in a plane, and keeping them non-overlapping, so as to improve material utilization and processing efficiency, save resources and reduce production costs. The two-dimensional irregular nesting problem is a classic optimization combination problem, which is widely used in sheet metal processing, laser cutting, clothing cutting and other industries. Plane nesting problems can be classified according to the parts to be arranged, optimization goals, problem types, and nesting areas. Different types of problems have great differences in goals, constraints, etc.
[0003] Plane layout methods are mainly divided into three categories: algorithms based on mathematical models, algorithms based on intelligent random search, and algorithms based on heuristic search. Algorithms based on mathematical models include simplex method, branch and bound, dynamic programming, enumeration method, etc. Since mathematical modeling is simple and easy to implement, they are suitable for solving small-scale layout problems. Algorithms based on intelligent random search include genetic algorithm, particle swarm algorithm, taboo search algorithm, ant colony algorithm, etc. The core is to design the code to represent the layout of the layout, and use the characteristics of parallel search and global optimization to quickly handle large-scale layout problems and wait for a more satisfactory solution, greatly reducing the search time. Algorithms based on heuristic search include heuristic rules such as bottom left and best fit. The core is the fast search and pruning mechanism based on experience, which can quickly obtain high-quality solutions within a reasonable time.
[0004] On the layout problem, most of the current discussions are about raw materials of infinite length, or calculating the maximum number of parts to be arranged on a raw material. However, in actual production, there are usually multiple raw materials and parts. This will lead to excessive pursuit of the utilization rate of a single layout diagram, at the expense of overall utilization, and easily cause small parts to be arranged in advance.
[0005] In terms of calculation methods, algorithms based on mathematical models are difficult to adapt to the complex production data in actual production, and have great limitations in adaptability and calculation speed. Algorithms based on intelligent random search will show a certain degree of randomness in the iterative process, and the solved nesting results are often difficult to reproduce. Its solving performance is not stable enough, which also greatly reduces its applicability in actual engineering. Algorithms based on heuristic search are strongly dependent on heuristic rules, which in turn are strongly dependent on specific nesting problems, limiting the scope of application of different problems and the degree of adaptability to different data. Summary of the invention
[0006] The present invention provides a two-dimensional plane layout optimization method based on heuristic search, one of the technical problems to be solved is: how to increase the layout utilization rate and avoid the problem of small parts being arranged in advance.
[0007] In view of the above problems in the prior art, according to one aspect disclosed in the present invention, the present invention adopts the following technical solution:
[0008] A two-dimensional plane layout optimization method based on heuristic search, comprising:
[0009] Step 1, data preprocessing: preprocess each original part and raw material in each batch, obtain the corresponding preprocessed parts and raw material shape data, and arrange the preprocessed parts in descending order of area;
[0010] Step 2: Solving single row pattern drawing: According to the current part and raw material information and sequence, select a raw material specification, and complete the generation of a single row pattern drawing according to the critical polygon and two-dimensional Boolean calculation and the heuristic search method;
[0011] Step 3: Select the best single-row sample drawing: According to the current number of parts and raw materials, calculate the effective number of stackable plates and the number of parts under different stacking numbers, calculate the layout effects under different stacking numbers according to the single-row sample drawing solution method, and select the best layout effect;
[0012] Step 4, single solution solution: according to the number of each original part and raw material in each batch, the layout results are generated in sequence according to the single-row board drawing optimization method until the number of original parts or raw materials is zero;
[0013] Step 5: Select the best solution from multiple options: According to the area threshold in the heuristic search method, calculate the single solution results under different area thresholds and select the best layout effect.
[0014] In order to better realize the present invention, a further technical solution is:
[0015] Furthermore, in step 1, the data preprocessing step includes:
[0016] Step 1.1, expand the outer contour of the point set of the part;
[0017] Step 1.2, solve all possible postures of the part: determine whether the part can be rotated and turned over according to the material and rotation angle of the part, and solve the outer contour information of all non-repetitive postures according to whether it is rotated and turned over;
[0018] Step 1.3, merging parts: merge all parts with repeated postures into one part type;
[0019] Step 1.4, parts sorting: Arrange the merged parts in descending order of area;
[0020] Step 1.5, shrink the outer contour of the point set of the raw material;
[0021] Step 1.6, raw material sorting: Arrange the pre-processed raw materials according to the raw material usage requirements;
[0022] Step 1.7, data check: Check whether at least one raw material can be discharged for each part.
[0023] Further, the expanding the outer contour of the point set of the part includes expanding the outer contour of the point set of the part by d / 2 according to the arrangement gap d;
[0024] The shrinking of the outer contour of the point set of the raw material includes shrinking the point set contour of the raw material by fd / 2 according to the trimming value f and the row spacing d of the rectangular raw material.
[0025] Furthermore, in step 2, the process of solving the single-row sample graph includes:
[0026] Step 2.1, initializing the space to be sorted: using the pre-processed contour data of the selected raw material as the initial space to be sorted;
[0027] Step 2.2, calculate the positioning points of all postures in the space to be discharged: According to the calculation method of the critical polygon, calculate the positioning information of all postures of the part in the space to be discharged, and select the positioning points according to the positioning control parameters, and arrange them in ascending order according to the geometric center of gravity placed at the positioning points, so as to determine the priority of the same part with different postures to be discharged;
[0028] Step 2.3, calculate the fit of all postures: measure the fit of the postures placed in the waiting space according to the geometric information before and after placement. The greater the fit, the more regular the placement of the postures in the waiting space;
[0029] Step 2.4, calculate the searchability of all postures: initialize the searchability conditions, which include that the number of parts is greater than zero, the posture has a positioning point, the area of the part / the area of the first placeable part ≥ the search area threshold; the fit value of the posture is equal to the maximum fit value;
[0030] Step 2.5, select the searchable posture of the space to be arranged: if there is a search posture, go to the step of combining parts, otherwise go to step 2.8;
[0031] Step 2.6, combine parts: combine the parts that meet the posture conditions;
[0032] Step 2.7, place the combined parts, and update the number of parts and the space to be arranged: calculate the combined parts according to the polygon Boolean, solve the lower layer space to be arranged and update the number of parts;
[0033] Step 2.8, record the best arrangement result; then determine whether the current space to be arranged is the initial space to be arranged, if yes, then end, if not, then return to the upper space to be arranged, and then enter step 2.9;
[0034] Step 2.9, update the searchability of the space to be arranged. The update rules include: the postures that have been discussed and attempted to be arranged in the subsequent sub-spaces to be arranged cannot be searched, and the postures that have been discussed and attempted to be arranged in the combined parts cannot be searched; after updating the searchability of the space to be arranged, go to step 2.5.
[0035] Furthermore, in step 2.3, the formula for calculating the degree of fit is: degree of fit = (10-the number of new spaces to be arranged)*100+(the number of vertices in the space to be arranged+the number of part posture vertices-Σ(the number of vertices in the new space to be arranged+1)).
[0036] Furthermore, in step 3, the process of selecting the best single-row sample images includes:
[0037] Step 3.1, calculate the first discharged part and the discharged raw material: according to the order of parts and raw materials, find the first part that can be placed on a certain raw material;
[0038] Step 3.2, calculate the theoretical maximum number of stacked plates: The theoretical maximum number of stacked plates is the minimum value between the number of the first discharged parts and the number of discharged raw materials;
[0039] Step 3.3, take the theoretical number of stacked plates and initialize the theoretical number of stacked plates to 1;
[0040] Step 3.4, compare the theoretical stacking number with the theoretical maximum stacking number calculated in step 3.2; if the theoretical stacking number is less than or equal to the theoretical maximum stacking number calculated in step 3.2, calculate the number of parts under the stacking number, and calculate the number of stacking parts: the number of stacking parts = [number of parts / number of stackings], and then go to step 3.5; if the theoretical stacking number is greater than the theoretical maximum stacking number calculated in step 3.2, output the best single nesting diagram;
[0041] Step 3.5, determine the searchability. If it is searchable, enter the single-row sample diagram solution of step 2, then record the current single-row material diagram and the best single-row layout, and then calculate the actual number of stacking boards of the single-row board diagram under the current theoretical number of stacking boards, and make the theoretical number of stacking boards equal to the actual number of stacking boards plus 1, and then return to step 3.4.
[0042] Compared with the prior art, one of the beneficial effects of the present invention is:
[0043] The two-dimensional plane layout optimization method based on heuristic search of the present invention not only pursues the utilization rate of a single layout diagram, but also starts from the overall perspective, combines the actual production situation, considers the overall utilization rate of the layout diagram, and avoids the problem of small parts being arranged in advance. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application document or the technical solutions in the prior art, the drawings required for use in the description of the embodiments or the prior art are briefly introduced below. Obviously, the drawings described below are only references to some embodiments in the present application document. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 The figure is a flow chart of a two-dimensional plane layout optimization method based on heuristic search according to an embodiment of the present invention.
[0046] Figure 2 The figure is a schematic diagram of a process of solving a single-row sample graph according to an embodiment of the present invention.
[0047] Figure 3 The figure is a schematic diagram of a single-row sample image optimization process according to an embodiment of the present invention.
[0048] Figure 4 Schematic diagram of parts according to an embodiment of the present invention.
[0049] Figure 5 FIG. 4 is a schematic diagram of arrangement results according to an embodiment of the present invention.
[0050] Figure 6 FIG. 4 is a schematic diagram of a sample arrangement process according to an embodiment of the present invention.
[0051] Figure 7 FIG. 4 is a schematic diagram of arrangement results according to another embodiment of the present invention. DETAILED DESCRIPTION
[0052] The present invention is further described in detail below in conjunction with examples, but the embodiments of the present invention are not limited thereto.
[0053] A problem involved in a two-dimensional plane layout optimization method based on heuristic search: Assume that in a layout plan, there are I types of rectangular raw materials that can be used, and the length of the i-th raw material is l i , width is w i , the maximum number of uses is n i There are J types of parts to be arranged, and the length of the j-th type of parts is l j , with a width of w j , the number is n jAfter the layout is completed, a total of K layout diagrams are generated, and the number of the i-th type of raw materials used in the k-th layout diagram is N k i , the number of parts of the jth type arranged in the figure is n k j The position of the mth part of the jth class on the diagram is determined by the coordinates of the lower left corner of the part on the layout diagram (x k jm ,y k jm ) and posture (rotation angle a k jm , flip whether t k jm )Sure.
[0054] See also Figure 1 As shown, a two-dimensional plane layout optimization method based on heuristic search includes the following steps:
[0055] Step 1, data preprocessing: preprocess each original part and raw material in each batch, obtain the corresponding preprocessed parts and raw material shape data, arrange the preprocessed parts in descending order of area, and arrange the preprocessed raw materials according to the raw material usage requirements.
[0056] The specific process of data preprocessing includes:
[0057] Step 1.1: Expand the outer contour of the point set of the part. According to the nesting gap d, expand the outer contour of the point set of the part by d / 2, and move the outer contour of the point set to the first quadrant.
[0058] Step 1.2, solve all the postures that the part can be arranged. According to the material and rotation angle of the part, determine whether the part can be rotated and turned over (if the materials on both sides of the part are the same, it can be turned over and arranged, when the materials on both sides of the part are different, it cannot be turned over and arranged), and solve the outer contour information of all non-repetitive postures according to whether it is rotated and turned over.
[0059] Step 1.3, merging of parts. Merge all parts with repeated postures into one part type. For example, the postures of two parts are not exactly the same at the beginning, but after rotating and turning them over, it is possible that all postures overlap, so merge them.
[0060] Step 1.4: Arrange the merged parts in descending order of area.
[0061] Step 1.5: Indent the outer contour of the raw material point set. According to the trimming value f (trimming values of four sides: fx1, fx2, fy1, fy2) of the rectangular raw material and the pattern spacing d, indent the point set contour of the raw material by fd / 2.
[0062] Step 1.6: Sort the raw materials. Sort the pre-processed raw materials according to the raw material usage requirements.
[0063] Step 1.7, data check: Check whether at least one raw material can be discharged for each part.
[0064] Step 2, single row sample diagram solution: According to the current parts and raw material information and sequence, a raw material specification is selected, and the generation of a single row sample diagram is completed according to the critical polygon and two-dimensional Boolean calculation and the heuristic search method. For the critical polygon and two-dimensional Boolean calculation and heuristic search algorithm, it can adopt the existing algorithm and formula, so the present invention does not make a detailed description of the algorithm and formula itself.
[0065] For solving a single row of sample graphs, the basic idea is to use an adaptive heuristic search method that combines depth-first search with rule-based pruning, see Figure 2 As shown, the specific process is as follows:
[0066] Step 2.1, initializing the space to be sorted. The contour data of the raw material after preprocessing is used as the initial space to be sorted.
[0067] Step 2.2, calculate the positioning points of all postures. According to the calculation method such as critical polygon, calculate the positioning information of all postures of parts (quantity greater than 0) in the space to be arranged, and select the positioning points according to the positioning control parameters, and arrange them in ascending order according to the geometric center of gravity placed at the positioning points, so as to determine the priority of the same part in different postures to be arranged. For example, the center of gravity of the circle is the center of the circle, and the center of gravity of the special shape is obtained by geometric calculation, and then arranged in ascending order in the X direction or Y direction according to the needs. In the process of nesting, give priority to parts with low center of gravity so that the arranged parts are more concentrated.
[0068] Step 2.3, calculate the fit of all postures. Measure the fit of the posture placed in the waiting space based on the geometric information before and after placement. The greater the fit, the more regular the posture is placed in the waiting space. Fit = (10-the number of new waiting spaces) * 100 + (the number of vertices in the waiting space + the number of part posture vertices-Σ(the number of vertices in the new waiting space + 1)).
[0069] The waiting space refers to the area on the layout drawing waiting for the next part to be laid out. For example, if a non-right triangle is placed on the corner of a rectangle, the rectangle minus the triangle will generate multiple polygons, and the area where the multiple polygons are located is the waiting space.
[0070] Space vertices to be arranged: The Boolean difference of two polygons will produce multiple polygons, and the vertices of these generated polygons are the space vertices to be arranged.
[0071] Step 2.4, calculate the searchability of all postures. It can be, initialize the searchability conditions: the number of parts is greater than zero; the posture has a positioning point; the area of the part / the area of the first placeable part ≥ the search area threshold; the fit value of the posture is equal to the maximum fit value.
[0072] Step 2.5, select the searchable posture of the space to be arranged: if there is a search posture, enter the step of combining parts, otherwise enter step 2.8. It can be, select the judgment criteria from high to low priority: ① fit, ② part area, ③ center of gravity.
[0073] Step 2.6, combine parts. The posture conditions of the combined parts can be: ① the number of parts is greater than zero; ② there is a suitable positioning point in the placed space; ③ the degree of fit between the positioning point and the placed space is greater than 904.
[0074] Step 2.7: Place the combined parts and update the information such as the number of parts and the space to be arranged. According to the polygon Boolean calculation and the placed combined parts, the lower layer space to be arranged and the updated information such as the number of parts are solved.
[0075] Step 2.8, record the best nesting result. The best judgment criteria are prioritized from high to low: ① the area to be nested, ② the number of parts to be nested, ③ the type of parts to be nested, and ④ the total center of gravity of the parts to be nested.
[0076] Step 2.9, update the searchability of the space to be arranged. Update rules: ① The posture discussed and attempted to be arranged in the subsequent sub-space to be arranged cannot be searched, ② The posture discussed and attempted to be arranged in the combined parts cannot be searched; after updating the searchability of the space to be arranged, go to step 2.5.
[0077] Step 3, single-row sample drawing selection: According to the current number of parts and raw materials, calculate the effective number of stackable plates and the number of parts under different stacking numbers, calculate the layout effects under different stacking numbers according to the single-row sample drawing solution method, and select the best layout effect.
[0078] For the single-row sample selection, the basic idea is to calculate the single-row sample results under different stacking numbers and select the best single-row sample result. Figure 3 As shown, the specific process is as follows:
[0079] Step 3.1, calculate the first discharged part and the discharged raw material. According to the order of parts and raw materials, find the first part that can be placed on a certain raw material.
[0080] Step 3.2, calculate the theoretical maximum number of laps. LapMax = Min (the number of first discharged parts, the number of discharged raw materials), that is, the minimum value between the number of first discharged parts and the number of discharged raw materials.
[0081] Step 3.3, take the theoretical number of stacked plates and initialize the theoretical number of stacked plates to 1;
[0082] Step 3.4, compare the theoretical stacking number with the theoretical maximum stacking number calculated in step 3.2; if the theoretical stacking number is less than or equal to the theoretical maximum stacking number calculated in step 3.2, calculate the number of parts under the stacking number, and calculate the number of stacking parts: the number of stacking parts = [number of parts / number of stackings], and then go to step 3.5; if the theoretical stacking number is greater than the theoretical maximum stacking number calculated in step 3.2, output the best single nesting diagram;
[0083] Step 3.5, determine the searchability. If it is searchable, enter the single-row sample diagram solution of step 2, then record the current single-row material diagram and the best single-row layout, and then calculate the actual number of stacking boards of the single-row board diagram under the current theoretical number of stacking boards, and make the theoretical number of stacking boards equal to the actual number of stacking boards plus 1, and then return to step 3.4.
[0084] Step 4, single solution solution: According to the number of each original part and raw material in each batch, the layout results are generated in sequence according to the single-row board selection method until the number of original parts or raw materials is zero.
[0085] Step 5: Select the best solution from multiple options: According to the area threshold in the heuristic search method, calculate the single solution results under different area thresholds and select the best layout effect.
[0086] Example 1: Figure 4 As shown, Figure 4 This is a schematic diagram of the raw materials of Example 1 before layout. The raw material is 2440*1220, the quantity is 999, there is no texture, and both sides are the same. The layout gap is 0, the raw material trimming value is 0, and the excess material is concentrated on the top. The parts have 6 rectangular specifications of 600*700, 500*600, 400*500, 300*400, 200*300, and 100*200, and the quantity of each specification is 3. After heuristic search layout, we get Figure 4 and Figure 5 Two layout drawings, all parts have been laid out, including Figure 5 The heuristic search and sorting process is as follows Figure 6 As shown. The initial space to be arranged is 2440*1220. After the first arrangement, patterns (1) and (2) are obtained. After several more arrangements, pattern (1) obtains patterns (1.1.1) and (1.2.1.1). After several more arrangements, pattern (2) obtains patterns (2.1.1), (2.1.2), (2.2.1.1), (2.2.2.1) and (2.2.3.1). In the end, there are 7 possible results to choose from.
[0087] Example 2: Raw material 244*122, quantity 999, no texture, same on both sides. The nesting gap is 0, the raw material trimming value is 0, and the leftover material is concentrated on the right. The Trousers (a set of standard data provided by a research group on cutting and packaging of the European Operational Research Society) case in the internationally used nesting benchmark case provided by ESCUP (European Operational Research Society) is selected as the part data. The nesting result is as follows Figure 7 shown.
[0088] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0089] When referred to in this specification, "one embodiment", "another embodiment", "an embodiment", etc., it means that the specific features, structures or characteristics described in conjunction with the embodiment are included in at least one embodiment generally described in this application. The same expression appearing in multiple places in the specification does not necessarily refer to the same embodiment. Further, when a specific feature, structure or characteristic is described in conjunction with any embodiment, it is claimed that the realization of such feature, structure or characteristic in conjunction with other embodiments also falls within the scope of the present invention.
[0090] Although the present invention is described herein with reference to a plurality of illustrative embodiments of the present invention, it should be understood that those skilled in the art may devise many other modifications and implementations that fall within the scope and spirit of the principles disclosed herein. More specifically, within the scope of the present disclosure and claims, a variety of variations and improvements may be made to the components and / or layout of the subject combination layout. In addition to variations and improvements made to the components and / or layout, other uses will also be apparent to those skilled in the art.
Claims
1. A two-dimensional plane layout optimization method based on heuristic search, characterized in that include: Step 1, data preprocessing: preprocess each original part and raw material in each batch, obtain the corresponding preprocessed parts and raw material shape data, and arrange the preprocessed parts in descending order of area; Step 2: Solving single row pattern drawing: According to the current part and raw material information and sequence, select a raw material specification, and complete the generation of a single row pattern drawing according to the critical polygon and two-dimensional Boolean calculation and the heuristic search method; The process of solving a single-row sample diagram includes: Step 2.1, initializing the space to be sorted: using the pre-processed contour data of the selected raw material as the initial space to be sorted; Step 2.2, calculate the positioning points of all postures in the space to be discharged: According to the calculation method of the critical polygon, calculate the positioning information of all postures of the part in the space to be discharged, and select the positioning points according to the positioning control parameters, and arrange them in ascending order according to the geometric center of gravity placed at the positioning points, so as to determine the priority of the same part with different postures to be discharged; Step 2.3, calculate the degree of fit of all postures: measure the degree of fit of the posture placed on the waiting space according to the geometric information before and after placement. The greater the degree of fit, the more regular the posture is placed in the waiting space. The formula for calculating the degree of fit is: fit = (10-the number of new waiting spaces) * 100 + (the number of vertices in the waiting space + the number of part posture vertices-Σ(the number of vertices in the new waiting space + 1)); Step 2.4, calculate the searchability of all postures: initialize the searchability conditions, which include that the number of parts is greater than zero, the posture has a positioning point, the area of the part / the area of the first placeable part ≥ the search area threshold; the fit value of the posture is equal to the maximum fit value; Step 2.5, select the searchable posture of the space to be arranged: if there is a search posture, go to the step of combining parts, otherwise go to step 2.8; Step 2.6, combine parts: combine the parts that meet the posture conditions; Step 2.7, place the combined parts, and update the number of parts and the space to be arranged: calculate the combined parts according to the polygon Boolean, solve the lower layer space to be arranged and update the number of parts; Step 2.8, record the best arrangement result; then determine whether the current space to be arranged is the initial space to be arranged, if yes, then end, if not, then return to the upper space to be arranged, and then enter step 2.9; Step 2.9, update the searchability of the space to be arranged, the update rules include: the posture discussed and attempted to be arranged in the subsequent sub-space to be arranged cannot be searched, and the posture discussed and attempted to be arranged in the combined parts cannot be searched; after updating the searchability of the space to be arranged, go to step 2.5; Step 3: Optimal selection of single-row sample drawings: According to the current number of parts and raw materials, calculate the effective number of stackable plates and the number of parts under different stacking numbers, calculate the layout effects under different stacking numbers according to the single-row sample drawing solution method, and select the best layout effect; the process of optimizing single-row sample drawings includes: Step 3.1, calculate the first discharged part and the discharged raw material: according to the order of parts and raw materials, find the first part that can be placed on a certain raw material; Step 3.2, calculate the theoretical maximum number of stacked plates: The theoretical maximum number of stacked plates is the minimum value between the number of the first discharged parts and the number of discharged raw materials; Step 3.3, take the theoretical number of stacked plates and initialize the theoretical number of stacked plates to 1; Step 3.4, compare the theoretical stacking number with the theoretical maximum stacking number calculated in step 3.2; if the theoretical stacking number is less than or equal to the theoretical maximum stacking number calculated in step 3.2, calculate the number of parts under the stacking number, and calculate the number of stacking parts: the number of stacking parts = [number of parts / number of stackings], and then go to step 3.5; if the theoretical stacking number is greater than the theoretical maximum stacking number calculated in step 3.2, output the best single nesting diagram; Step 3.5, determine the searchability. If it is searchable, enter the single-row sample diagram solution of step 2, then record the current single-row material diagram and the best single-row layout, and then calculate the actual number of stacking boards of the single-row board diagram under the current theoretical number of stacking boards, and make the theoretical number of stacking boards equal to the actual number of stacking boards plus 1, and then return to step 3.4; Step 4, single solution solution: according to the number of each original part and raw material in each batch, the layout results are generated in sequence according to the single-row board drawing optimization method until the number of original parts or raw materials is zero; Step 5: Select the best solution from multiple options: According to the area threshold in the heuristic search method, calculate the single solution results under different area thresholds and select the best layout effect.
2. The two-dimensional plane layout optimization method based on heuristic search according to claim 1 is characterized in that In step 1, the data preprocessing step includes: Step 1.1, expand the outer contour of the point set of the part; Step 1.2, solve all possible postures of the part: determine whether the part can be rotated and turned over according to the material and rotation angle of the part, and solve the outer contour information of all non-repetitive postures according to whether it is rotated and turned over; Step 1.3, merging parts: merge all parts with repeated postures into one part type; Step 1.4, parts sorting: Arrange the merged parts in descending order of area; Step 1.5, shrink the outer contour of the point set of the raw material; Step 1.6, raw material sorting: Arrange the pre-processed raw materials according to the raw material usage requirements; Step 1.7, data check: Check whether at least one raw material can be discharged for each part.
3. The two-dimensional plane layout optimization method based on heuristic search according to claim 2 is characterized in that The step of expanding the outer contour of the point set of the part includes expanding the outer contour of the point set of the part by d / 2 according to the arrangement gap d; The shrinking of the outer contour of the point set of the raw material includes shrinking the point set contour of the raw material by fd / 2 according to the trimming value f and the row spacing d of the rectangular raw material.
