Two-dimensional irregular polygon layout method considering leading-in and leading-out lines of parts

By preprocessing and scoring the layout method of two-dimensional irregular polygon parts, detecting and removing overlaps, the problem of introducing lead line intersections is solved, and the efficiency and safety of part processing in the sheet metal industry are improved.

CN118735045AActive Publication Date: 2024-10-01GUANGDONG UNIV OF TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410762988.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-01
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

In the sheet metal industry, during the layout process of two-dimensional irregular polygonal parts, if the planning is improper and lead-out lines are introduced to intersect with other parts, the parts may be damaged during the cutting process and affect the processing efficiency and safety.

Method used

A two-dimensional irregular polygon layout method is adopted that considers the introduction and lead lines of parts. By obtaining the point collection and sequence of polygon parts, preprocessing and scoring are performed, and overlaps are detected and removed. Critical polygon and inner critical polygon detection are used to ensure There is no overlap between parts and in the raw material plate area, and parts positions are exchanged in the initial solution to obtain a feasible solution.

Benefits of technology

It effectively prevents parts from being damaged during the cutting process, improves processing efficiency and safety, ensures that the lead-in and lead-out lines do not intersect, and avoids damage to parts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735045A_ABST
    Figure CN118735045A_ABST
Patent Text Reader

Abstract

The invention discloses a two-dimensional irregular polygon layout method considering leading-in and leading-out lines of parts, and the method comprises the steps: detecting whether the polygonal parts are overlapped or not and whether the polygonal parts are overlapped with an external region of a raw material plate layout region or not when obtaining an initial solution of the layout of the polygonal parts; and whether the leading-in and leading-out wire of the currently placed polygonal part is overlapped with the placed polygonal part or not needs to be detected. Besides, in the process of searching for the feasible solution through continuous iteration of the initial solution, the positions of the two polygonal parts need to be exchanged, and after the positions of the parts are exchanged, whether the leading-in and leading-out wire of the currently placed polygonal part is overlapped with the placed polygonal part needs to be detected again. The method solves the problem that in the layout process of existing two-dimensional irregular polygonal parts, if the planning is improper, the leading-in and leading-out lines of the current parts are likely to intersect with other parts, and the parts are damaged in the cutting process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of two-dimensional irregular polygonal layout, in particular to a two-dimensional irregular polygonal layout method considering lead-in and lead-out lines of parts. Background Art

[0002] In the sheet metal industry, parts are usually cut by flame cutting or plasma cutting. When using these cutting methods, the tool will generate high temperature, which can easily cause the material at the cutting point to melt and deform. If the part is cut directly from the edge, the smoothness and integrity of the part edge will be damaged. Therefore, in the sheet metal industry, tool paths need to be reserved during layout to facilitate the entry and exit of the tool, and the edge of the part must not be damaged. These tool paths are called lead-in and lead-out lines, where the lead-in line is the tool entry path of the part and the lead-out line is the tool exit path of the part. However, during the layout process of two-dimensional irregular polygonal parts, if the planning is not done properly, the lead-in and lead-out lines of the current part may intersect with other parts, which will not only cause the parts to be accidentally damaged during the cutting process, but also affect the efficiency and safety of the entire processing process. Summary of the invention

[0003] In view of the above-mentioned defects, the present invention proposes a two-dimensional irregular polygonal layout method taking into account the lead-in and lead-out lines of parts. The purpose is to solve the problem that in the existing two-dimensional irregular polygonal parts layout process, if the planning is improper, the lead-in and lead-out lines of the current part may intersect with other parts, which will not only cause the parts to be damaged during the cutting process, but also may affect the efficiency and safety of the entire processing process.

[0004] To achieve this object, the present invention adopts the following technical solutions:

[0005] A two-dimensional irregular polygonal layout method considering lead-in and lead-out lines of parts comprises the following steps:

[0006] Step S1: Obtain a point set of polygonal parts to be arranged and a sequence of polygonal parts to be arranged;

[0007] Step S2: preprocessing the point set of the polygonal part to be arranged, and obtaining the point set of the polygonal part to be arranged after preprocessing;

[0008] Step S3: Based on the point set of the polygonal parts to be arranged after preprocessing, critical polygons between polygonal parts and inner critical polygons of the arrangement area of ​​the polygonal parts and the raw material plate are calculated;

[0009] Step S4: each time, the first n polygonal parts are selected from the sequence of polygonal parts to be arranged, and the feasible position of each polygonal part is scored, and the polygonal part with the highest score is placed in the arrangement area of ​​the raw material plate, until the remaining polygonal parts to be arranged in the sequence of polygonal parts to be arranged cannot find a feasible position or the sequence of polygonal parts to be arranged is empty, so as to obtain an initial solution for the arrangement of polygonal parts, wherein n is a positive integer and n≥1;

[0010] Before placing the polygonal parts in the raw material plate layout area, an overlap detection is performed, wherein the overlap detection includes detecting whether the polygonal parts overlap with each other through critical polygons, detecting whether the polygonal parts overlap with the outer area of ​​the raw material plate layout area through inner critical polygons, and detecting whether the lead-in and lead-out lines of the currently placed polygonal parts overlap with the already placed polygonal parts;

[0011] Step S5: In the initial solution of the polygonal parts nesting, the positions of two polygonal parts are arbitrarily exchanged, and overlap detection is performed. If the detection result obtained by the overlap detection is overlap, that is, the overlap value is not 0, then the overlap is completely removed by overlapping removal to obtain a feasible solution of the polygonal parts nesting with an overlap value of 0.

[0012] Preferably, in step S1, all polygonal parts to be arranged in the sequence of polygonal parts to be arranged are sorted in descending order according to the areas of their enveloping rectangles.

[0013] Preferably, in step S2, the point set of the polygonal part to be arranged is preprocessed, which specifically includes the following sub-steps: deleting duplicate points and invalid points in the point set of the polygonal part to be arranged.

[0014] Preferably, in step S4, the first n polygonal parts are selected from the sequence of polygonal parts to be arranged each time, and the feasible position of each polygonal part is scored, and the polygonal part with the highest score is placed in the arrangement area of ​​the raw material plate, which specifically includes the following steps:

[0015] Step S41: each time, the first n polygonal parts are selected from the sequence of polygonal parts to be arranged, and all feasible rotation states of each polygonal part are traversed;

[0016] Step S42: Score all possible rotation states of each polygonal part, and select the possible rotation state with the highest score as the state in which the corresponding polygonal part needs to be placed in the raw material plate layout area. The specific scoring calculation formula is as follows:

[0017] RScore ir =10(α ir / α imax )-4(e ir / e imax);

[0018] Among them, RScore ir represents the fraction of the rth feasible rotation state of the i-th polygonal part, r∈R i , R i represents the set of feasible rotation states of the i-th polygonal part; α ir Indicates the degree of fit of the i-th polygonal part and the r-th feasible rotation state; α imax represents the maximum part fit among all feasible rotation states of the i-th polygonal part; e ir represents the length of the i-th polygonal part and the r-th feasible rotation state beyond the arranged area; e imax Indicates the maximum length of all feasible rotation states of the i-th polygonal part that exceeds the arranged area;

[0019] Step S43: Score all polygonal parts and select the polygonal part with the highest score as the polygonal part to be placed in the raw material plate layout area. The specific scoring calculation formula is as follows:

[0020] RScore i =4(s i / s max +10(α i ' / α' max )-4(e i ' / e' max );

[0021] Among them, RScore i represents the score of the i-th polygonal part; s i represents the enveloping rectangular area of ​​the ith polygonal part; s max Represents the largest enveloping rectangular area among all polygonal parts; α i ' represents the degree of fit of the i-th polygonal part; α' max Indicates the maximum part fit among all polygonal parts; e i 'Indicates the length of the i-th polygonal part that exceeds the arranged area; e' max Indicates the maximum length of all polygonal parts that exceeds the nested area.

[0022] Preferably, in step S4, whether polygonal parts overlap is detected by critical polygons, which specifically includes the following sub-steps: generating a critical polygon between polygonal part A and polygonal part B, taking any point in the point set of polygonal part A as a reference point, and judging whether the reference point is within the critical polygon generated between polygonal part A and polygonal part B. If so, it proves that polygonal part A overlaps with polygonal part B; if not, it proves that polygonal part A and polygonal part B are separated;

[0023] Whether the polygonal part overlaps with the outer area of ​​the raw material plate layout area is detected by the inner critical polygon, which specifically includes the following sub-steps: taking any point in the point set of the polygonal part as a reference point, and judging whether the reference point is within the inner critical polygon generated by the polygon detection polygonal part and the raw material plate layout area, if so, the polygonal part does not overlap with the outer area of ​​the raw material plate layout area; if not, the polygonal part overlaps with the outer area of ​​the raw material plate layout area.

[0024] Preferably, in step S5, all overlaps are removed by overlapping removal to obtain a feasible solution for polygonal part nesting with an overlap value of 0, which specifically includes the following sub-steps: by moving the positions of polygonal parts in the nesting area of ​​the raw material plate to reduce the overlap value of the initial solution of the current polygonal part nesting; when the overlap value of the initial solution of the current polygonal part nesting is reduced to 0, it means that the initial solution of the current polygonal part nesting is a feasible solution for the polygonal part nesting.

[0025] Preferably, in step S5, in the process of obtaining a feasible solution for polygonal part layout, an unconstrained nonlinear programming model is established for solution, and the mathematical expression of the unconstrained nonlinear programming model is as follows:

[0026] Minimize f(V)=∑ 1≤k<q≤n f kq (V)+∑ 1≤k≤n g k (V)+∑ 1≤k<q≤n h kq (V);

[0027] Where f(V) represents the total overlap value; f kq (V) represents two polygonal parts p k and p q Overlap value; g k (V) represents the polygonal part p k Overlap value with the raw material board; h kq (V) indicates p q The lead-in and lead-out wires are k The overlap value of ; k represents the kth polygonal part; q represents the qth polygonal part; n represents the total number of polygonal parts.

[0028] Preferably, in the process of solving the unconstrained nonlinear programming model, by calculating f kq (V), g k (V) and h kq Partial derivative of (V) to calculate the displacement of each polygonal part in the next step;

[0029] Among them, f kq The partial derivative of (V) is calculated as follows:

[0030]

[0031] Where V represents the displacement vector; Represents v m x m and m Mathematical symbols for partial derivatives, v m =(x m ,y m ) represents the coordinates of the mth polygonal part; x m Indicates the x-coordinate, y-coordinate of the m-th polygon part m represents the y coordinate of the mth polygonal part; m represents the mth polygonal part;

[0032] When a polygonal part With another polygon part When there is no overlap, the following equation is satisfied:

[0033]

[0034] Among them, r k Indicates the rotation state of the kth polygonal part; v k represents the coordinates of the kth polygonal part; r q Indicates the rotation state of the qth polygonal part; v q Represents the coordinates of the qth polygonal part;

[0035] When a polygonal part With another polygon part When overlapping, the following two equations are satisfied:

[0036]

[0037] in, Indicates v k Mathematical symbols for partial derivatives; Indicates v q Mathematical symbols for partial derivatives; Indicates the overlapping depth of parts k and q;

[0038] g k The partial derivative of (V) is calculated as follows:

[0039]

[0040] Wherein, k represents the kth polygonal part;

[0041] When a polygonal part When it is completely inside the raw material plate arrangement area, the following two formulas are satisfied:

[0042]

[0043] in, Represents polygonal parts The overlapping depth with the outside of the raw material plate arrangement area; M(W,L) represents the raw material plate arrangement area;

[0044] When a polygonal part When it overlaps with the outside of the raw material plate arrangement area, the following two formulas are satisfied:

[0045]

[0046] h kq The partial derivative of (V) is calculated as follows:

[0047]

[0048] When a polygonal part With another polygon part When the lead-in and lead-out lines do not intersect each other, the following equation is satisfied:

[0049]

[0050] When a polygonal part The lead-in and lead-out lines of another polygonal part Intersection, or a polygonal part With another polygon part When the lead-in and lead-out lines intersect, the following two equations are satisfied:

[0051]

[0052] in, Indicates the overlapping depth of the lead-in and lead-out lines of the k-th polygonal part and the q-th polygonal part; Indicates the overlapping depth of the lead-in and lead-out lines of the qth polygonal part and the kth polygonal part.

[0053] Preferably, in step S5, in the process of obtaining a feasible solution for the polygonal part arrangement with an overlap value of 0, two adjacent polygonal parts are expanded outward by 0.5 times the cutting spacing to meet the constraint of the cutting spacing.

[0054] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0055] When obtaining the initial solution for the polygonal parts layout, this solution needs to detect whether the polygonal parts overlap with each other and whether the polygonal parts overlap with the outer area of ​​the raw material plate layout area, as well as whether the lead-in and lead-out lines of the currently placed polygonal parts overlap with the already placed polygonal parts. In addition, in the process of finding a feasible solution through continuous iteration of the initial solution, the positions of the two polygonal parts need to be exchanged. After the positions of the parts are exchanged, it is also necessary to detect again whether the lead-in and lead-out lines of the currently placed polygonal parts overlap with the already placed polygonal parts. In the layout planning of polygonal parts, this solution fully considers the problem of the intersection of the lead-in and lead-out lines of the current part with other parts, which can prevent the parts from being damaged during the cutting process, thereby improving the efficiency and safety of part processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a step flow chart of a two-dimensional irregular polygonal layout method that takes into account the lead-in and lead-out lines of parts.

[0057] Figure 2 is a flow chart of generating critical polygons of parts A and B in one embodiment of the present invention;

[0058] Figure 3 It is a flow chart for generating the inner critical polygon of the layout area of ​​part A and the raw material plate in one embodiment of the present invention. DETAILED DESCRIPTION

[0059] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0060] A two-dimensional irregular polygonal layout method considering lead-in and lead-out lines of parts comprises the following steps:

[0061] Step S1: Obtain a point set of polygonal parts to be arranged and a sequence of polygonal parts to be arranged;

[0062] Step S2: preprocessing the point set of the polygonal part to be arranged, and obtaining the point set of the polygonal part to be arranged after preprocessing;

[0063] Step S3: Based on the point set of the polygonal parts to be arranged after preprocessing, critical polygons between polygonal parts and inner critical polygons of the arrangement area of ​​the polygonal parts and the raw material plate are calculated;

[0064] Step S4: each time, the first n polygonal parts are selected from the sequence of polygonal parts to be arranged, and the feasible position of each polygonal part is scored, and the polygonal part with the highest score is placed in the arrangement area of ​​the raw material plate, until the remaining polygonal parts to be arranged in the sequence of polygonal parts to be arranged cannot find a feasible position or the sequence of polygonal parts to be arranged is empty, so as to obtain an initial solution for the arrangement of polygonal parts, wherein n is a positive integer and n≥1;

[0065] Before placing the polygonal parts in the raw material plate layout area, an overlap detection is performed, wherein the overlap detection includes detecting whether the polygonal parts overlap with each other through critical polygons, detecting whether the polygonal parts overlap with the outer area of ​​the raw material plate layout area through inner critical polygons, and detecting whether the lead-in and lead-out lines of the currently placed polygonal parts overlap with the already placed polygonal parts;

[0066] Step S5: In the initial solution of the polygonal parts nesting, the positions of two polygonal parts are arbitrarily exchanged, and overlap detection is performed. If the detection result obtained by the overlap detection is overlap, that is, the overlap value is not 0, then the overlap is completely removed by overlapping removal to obtain a feasible solution of the polygonal parts nesting with an overlap value of 0.

[0067] This scheme is a two-dimensional irregular polygonal layout method that considers the lead-in and lead-out lines of parts, such as Figure 1 As shown, the first step is to obtain the point set of the polygonal parts to be arranged and the sequence of polygonal parts to be arranged. In this embodiment, the polygonal parts to be arranged are composed of contours, lead-in lines and lead-out lines, and the point set of the polygonal parts to be arranged includes points on the contours, lead-in lines and lead-out lines. The sequence of polygonal parts to be arranged contains multiple polygonal parts to be arranged. The second step is to preprocess the point set of the polygonal parts to be arranged to obtain the point set of the polygonal parts to be arranged after preprocessing. In this embodiment, preprocessing the point set of the polygonal parts to be arranged is conducive to reducing the data scale and improving the efficiency of the solution. The third step is to calculate the critical polygons between the polygonal parts and the inner critical polygons of the polygonal parts and the arrangement area of ​​the raw material plate based on the point set of the polygonal parts to be arranged after preprocessing. In one embodiment, as Figure 2 As shown in the figure, taking the generation of the critical polygon of part A and part B as an example, firstly, we need to select a point from the point set of part A as the reference point, then move part A close to the boundary of part B and complete a circle, and record the moving path of the reference point. The area surrounded by the moving path is the critical polygon of part A and part B. Figure 3 As shown, the inner critical polygon of the polygonal part and the raw material plate layout area is generated as follows: first, a point of part A is taken as the reference point, and then part A is moved in a circle inside the raw material plate layout area along the edge of the raw material plate layout area. The area surrounded by the moving path of the reference point of part A is the inner critical polygon. The fourth step is to select n polygonal parts from the sequence of polygonal parts to be arranged each time, and score the feasible position of each polygonal part, and place the polygonal part with the highest score in the raw material board arrangement area, until the remaining polygonal parts to be arranged in the sequence of polygonal parts to be arranged cannot find a feasible position or the sequence of polygonal parts to be arranged is empty, so as to obtain the initial solution of polygonal part arrangement, wherein n is a positive integer and n≥1; before placing the polygonal parts in the raw material board arrangement area, overlap detection is performed, wherein the overlap detection includes detecting whether the polygonal parts overlap through critical polygons, detecting whether the polygonal parts overlap with the outer area of ​​the raw material board arrangement area through internal critical polygons, and detecting whether the lead-in and lead-out lines of the currently placed polygonal parts overlap with the placed polygonal parts. In this embodiment, n is 10, and the first 10 parts of the polygonal part sequence are taken out each time for trial arrangement and scoring, and then the part with the highest score is selected and placed in the raw material board arrangement area. Selecting the part with the highest score for arrangement means that the part can optimally utilize the space of the raw material board under the current layout, reducing the waste of space, thereby improving the utilization rate of the raw material board and the overall efficiency of arrangement. When obtaining the initial solution of polygonal part packing, before placing each polygonal part in the packing area of ​​the raw material board, in addition to detecting whether the polygonal parts overlap with each other and whether the polygonal parts overlap with the outer area of ​​the packing area of ​​the raw material board, it is also necessary to detect whether the lead-in and lead-out lines of the currently placed polygonal parts overlap with the placed polygonal parts, so that the final initial solution can fully consider the two-dimensional irregular packing problem with lead-in and lead-out lines. The fifth step is to arbitrarily exchange the positions of two polygonal parts in the initial solution of polygonal part packing and perform overlap detection. If the detection result obtained by the overlap detection is overlap, that is, when the overlap value is not 0, the overlap is completely removed by the overlap removal method to obtain a feasible solution of polygonal part packing with an overlap value of 0. In this embodiment, after obtaining the initial solution, it is necessary to continuously iterate to find a feasible solution. When finding a feasible solution, it is necessary to exchange the positions of the two polygonal parts. The packing scheme after exchanging the positions of the parts is likely to have overlaps. In order to solve this problem, this scheme needs to re-detect the overlap situation. If there is overlap, all overlaps are removed by the overlap removal method, so as to obtain a feasible solution for polygonal part packing.

[0068] When obtaining the initial solution for the polygonal parts layout, this solution needs to detect whether the polygonal parts overlap with each other and whether the polygonal parts overlap with the outer area of ​​the raw material plate layout area, as well as whether the lead-in and lead-out lines of the currently placed polygonal parts overlap with the already placed polygonal parts. In addition, in the process of finding a feasible solution through continuous iteration of the initial solution, the positions of the two polygonal parts need to be exchanged. After the positions of the parts are exchanged, it is also necessary to detect again whether the lead-in and lead-out lines of the currently placed polygonal parts overlap with the already placed polygonal parts. In the layout planning of polygonal parts, this solution fully considers the problem of the intersection of the lead-in and lead-out lines of the parts with other parts, which can prevent the parts from being damaged during the cutting process, thereby improving the efficiency and safety of part processing.

[0069] Preferably, in step S1, all polygonal parts to be arranged in the sequence of polygonal parts to be arranged are sorted in descending order according to the area of ​​the envelope rectangle. In this embodiment, the reason for sorting according to the area of ​​the envelope rectangle is that it is necessary to consider that some polygonal parts have a small area but a large overall size. Further explanation, in the process of polygonal part arrangement, polygonal parts with a large envelope rectangle area are placed first, because polygonal parts with a small area can better fill the gaps between the placed polygonal parts in the later stage of arrangement.

[0070] Preferably, in step S2, the point set of the polygonal part to be arranged is preprocessed, specifically including the following sub-steps: deleting duplicate points and invalid points in the point set of the polygonal part to be arranged. In this embodiment, duplicate points are defined as: if the coordinates of two points are the same, the two points are repeated; invalid points are defined as: when point A is on the line segment formed by points B and C, point A is determined to be an invalid point. By deleting duplicate points and invalid points, it is helpful to reduce the data scale and improve the efficiency of solving.

[0071] Preferably, in step S4, the first n polygonal parts are selected from the sequence of polygonal parts to be arranged each time, and the feasible position of each polygonal part is scored, and the polygonal part with the highest score is placed in the arrangement area of ​​the raw material plate, which specifically includes the following steps:

[0072] Step S41: each time, the first n polygonal parts are selected from the sequence of polygonal parts to be arranged, and all feasible rotation states of each polygonal part are traversed;

[0073] Step S42: Score all possible rotation states of each polygonal part, and select the possible rotation state with the highest score as the state in which the corresponding polygonal part needs to be placed in the raw material plate layout area. The specific scoring calculation formula is as follows:

[0074] RScore ir =10(αir / α imax )-4(e ir / e imax );

[0075] Among them, RScore ir represents the fraction of the rth feasible rotation state of the i-th polygonal part, r∈R i , R i represents the set of feasible rotation states of the i-th polygonal part; α ir Indicates the degree of fit of the i-th polygonal part and the r-th feasible rotation state; α imax represents the maximum part fit among all feasible rotation states of the i-th polygonal part; e ir represents the length of the i-th polygonal part and the r-th feasible rotation state beyond the arranged area; e imax Indicates the maximum length of all feasible rotation states of the i-th polygonal part that exceeds the arranged area;

[0076] Step S43: Score all polygonal parts and select the polygonal part with the highest score as the polygonal part to be placed in the raw material plate layout area. The specific scoring calculation formula is as follows:

[0077] RScore i =4(s i / s max )+10(α i ' / α' max )-4(e i ' / e' max );

[0078] Among them, RScore i represents the score of the i-th polygonal part; s i represents the enveloping rectangular area of ​​the ith polygonal part; s max Represents the largest enveloping rectangular area among all polygonal parts; a i ' represents the degree of fit of the i-th polygonal part; α' max Indicates the maximum part fit among all polygonal parts; e i 'Indicates the length of the i-th polygonal part that exceeds the arranged area; e' max Indicates the maximum length of all polygonal parts that exceeds the nested area.

[0079] In this embodiment, after selecting the first n polygonal parts from the sequence of polygonal parts to be arranged, all the selected polygonal parts are scored, and the polygonal part with the highest score is selected and placed in the arrangement area of ​​the raw material plate. The state in which the polygonal part is placed is the feasible rotation state with the highest score among all feasible rotation states of the polygonal part, so that the space of the raw material plate can be optimally utilized.

[0080] Preferably, in step S4, whether polygonal parts overlap is detected by critical polygons, which specifically includes the following sub-steps: generating a critical polygon between polygonal part A and polygonal part B, taking any point in the point set of polygonal part A as a reference point, and determining whether the reference point is within the critical polygon generated between polygonal part A and polygonal part B. If so, it proves that polygonal part A overlaps with polygonal part B; if not, it proves that polygonal part A and polygonal part B are separated;

[0081] Whether the polygonal part overlaps with the outer area of ​​the raw material plate layout area is detected by the inner critical polygon, which specifically includes the following sub-steps: taking any point in the point set of the polygonal part as a reference point, and judging whether the reference point is within the inner critical polygon generated by the polygon detection polygonal part and the raw material plate layout area, if so, the polygonal part does not overlap with the outer area of ​​the raw material plate layout area; if not, the polygonal part overlaps with the outer area of ​​the raw material plate layout area.

[0082] In this embodiment, to determine whether a point is inside a polygon, it is only necessary to send a ray to the right from the point, and then calculate the number of points where the ray intersects with the edge of the polygon. If the number is an even number, the point is outside the polygon; if the number is an odd number, the point is inside the polygon. By detecting whether polygonal parts overlap, it is helpful to improve the utilization rate of the raw material board. By detecting whether polygonal parts overlap with the outer area of ​​the raw material board layout area, it is helpful to improve the utilization rate of the raw material board on the one hand, and on the other hand, avoid the parts being removed from the raw material board in the subsequent overlap removal process.

[0083] Preferably, in step S5, all overlaps are removed by overlapping removal to obtain a feasible solution for polygonal part nesting with an overlap value of 0, which specifically includes the following sub-steps: by moving the positions of polygonal parts in the nesting area of ​​the raw material plate to reduce the overlap value of the initial solution of the current polygonal part nesting; when the overlap value of the initial solution of the current polygonal part nesting is reduced to 0, it means that the initial solution of the current polygonal part nesting is a feasible solution for the polygonal part nesting.

[0084] In this embodiment, since the overlap removal process cannot modify the rotation state of the parts, the overlap value of the current nesting scheme can only be reduced by displacing each part. If the overlap value can be optimized to 0, it means that a feasible nesting scheme is obtained. If the overlap value cannot be optimized to 0, it means that the current nesting scheme cannot be converted into a feasible nesting scheme by displacing the parts, and it is necessary to reduce the parts arranged on the raw material plate or modify the rotation state of the parts.

[0085] Preferably, in step S5, in the process of obtaining a feasible solution for polygonal part layout, an unconstrained nonlinear programming model is established for solution, and the mathematical expression of the unconstrained nonlinear programming model is as follows:

[0086] Minimize f(V)=∑ 1≤k<q≤n f kq (V)+∑ 1≤k≤n g k (V)+∑ 1≤k<q≤n h kq (V);

[0087] Where f(V) represents the total overlap value; f kq (V) represents two polygonal parts p k and p q Overlap value; g k (V) represents the polygonal part p k Overlap value with the raw material board; h kq (V) indicates p q The lead-in and lead-out wires are k The overlap value of ; k represents the kth polygonal part; q represents the qth polygonal part; n represents the total number of polygonal parts.

[0088] In this embodiment, because the overlap removal process cannot modify the rotation state of the parts, the overlap value of the current layout scheme can only be reduced by shifting each part. Therefore, the only variable in the above formula is V. The above formula can be understood as an unconstrained nonlinear programming model for solution.

[0089] Preferably, in the process of solving the unconstrained nonlinear programming model, by calculating f kq (V), g k (V) and h kq Partial derivative of (V) to calculate the displacement of each polygonal part in the next step;

[0090] Among them, f kq The partial derivative of (V) is calculated as follows:

[0091]

[0092] Where V represents the displacement vector; Represents v m x m and m Mathematical symbols for partial derivatives, v m =(x m ,y m ) represents the coordinates of the mth polygonal part; x m Indicates the x-coordinate, y-coordinate of the m-th polygon part m represents the y coordinate of the mth polygonal part; m represents the mth polygonal part;

[0093] When a polygonal part With another polygon part When there is no overlap, the following equation is satisfied:

[0094]

[0095] Among them, r k Indicates the rotation state of the kth polygonal part; v k represents the coordinates of the kth polygonal part; r q Indicates the rotation state of the qth polygonal part; v q Represents the coordinates of the qth polygonal part;

[0096] When a polygonal part With another polygon part When overlapping, the following two equations are satisfied:

[0097]

[0098] in, Indicates v k Mathematical symbols for partial derivatives; Indicates v q Mathematical symbols for partial derivatives; Indicates the overlapping depth of parts k and q;

[0099] g k The partial derivative of (V) is calculated as follows:

[0100]

[0101] Wherein, k represents the kth polygonal part;

[0102] When a polygonal part When it is completely inside the raw material plate arrangement area, the following two formulas are satisfied:

[0103]

[0104] in, Represents polygonal parts The overlapping depth with the outside of the raw material plate arrangement area; M(W,L) represents the raw material plate arrangement area;

[0105] When a polygonal part When it overlaps with the outside of the raw material plate arrangement area, the following two formulas are satisfied:

[0106]

[0107] h kq The partial derivative of (V) is calculated as follows:

[0108]

[0109] When a polygonal part With another polygon part When the lead-in and lead-out lines do not intersect each other, the following equation is satisfied:

[0110]

[0111] When a polygonal part The lead-in and lead-out lines of another polygonal part Intersection, or a polygonal part With another polygon part When the lead-in and lead-out lines intersect, the following two equations are satisfied:

[0112]

[0113] in, Indicates the overlapping depth of the lead-in and lead-out lines of the k-th polygonal part and the q-th polygonal part; Indicates the overlapping depth of the lead-in and lead-out lines of the qth polygonal part and the kth polygonal part.

[0114] In this embodiment, the process of solving the unconstrained nonlinear programming model can be understood as a process of simulating the movement of polygonal parts. According to the mathematical expression of the unconstrained nonlinear programming model, kq (V), g k (V) and h kq (V) The rate of change and direction of the function at a certain point are used to calculate the displacement of each polygonal part in the next step. After each polygonal part is displaced, f is recalculated. kq (V), g k (V) and h kq (V) The function changes at a certain point in the rate and direction of change, and then shifts each polygon part again, repeating this step until the whole reaches a stable state, and returns the overlap value of the current nesting solution.

[0115] Preferably, in step S5, in the process of obtaining a feasible solution for the polygonal part arrangement with an overlap value of 0, two adjacent polygonal parts are expanded by 0.5 times the cutting spacing to meet the constraint of the cutting spacing. In this embodiment, by expanding two adjacent polygonal parts by 0.5 times the cutting spacing, when the expanded contours of the two polygonal parts are placed in contact, a cutting spacing is reserved between the two polygonal parts.

[0116] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0117] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A two-dimensional irregular polygon layout method considering lead-in and lead-out lines of parts, characterized by: The following steps are involved: Step S1: Obtain a point set of polygonal parts to be arranged and a sequence of polygonal parts to be arranged; Step S2: preprocessing the point set of the polygonal part to be arranged, and obtaining the point set of the polygonal part to be arranged after preprocessing; Step S3: Based on the point set of the polygonal parts to be arranged after preprocessing, critical polygons between polygonal parts and inner critical polygons of the arrangement area of ​​the polygonal parts and the raw material plate are calculated; Step S4: each time, the first n polygonal parts are selected from the sequence of polygonal parts to be arranged, and the feasible position of each polygonal part is scored, and the polygonal part with the highest score is placed in the arrangement area of ​​the raw material plate, until the remaining polygonal parts to be arranged in the sequence of polygonal parts to be arranged cannot find a feasible position or the sequence of polygonal parts to be arranged is empty, so as to obtain an initial solution for the arrangement of polygonal parts, wherein n is a positive integer and n≥1; Before placing the polygonal parts in the raw material plate layout area, an overlap detection is performed, wherein the overlap detection includes detecting whether the polygonal parts overlap with each other through critical polygons, detecting whether the polygonal parts overlap with the outer area of ​​the raw material plate layout area through inner critical polygons, and detecting whether the lead-in and lead-out lines of the currently placed polygonal parts overlap with the already placed polygonal parts; Step S5: In the initial solution of the polygonal parts nesting, the positions of two polygonal parts are arbitrarily exchanged, and overlap detection is performed. If the detection result obtained by the overlap detection is overlap, that is, the overlap value is not 0, then the overlap is completely removed by overlapping removal to obtain a feasible solution of the polygonal parts nesting with an overlap value of 0.

2. A two-dimensional irregular polygon layout method considering lead-in and lead-out lines of parts according to claim 1, characterized in that: In step S1, all the polygonal parts to be arranged in the sequence of polygonal parts to be arranged are sorted in descending order according to the area of ​​the envelope rectangle.

3. A two-dimensional irregular polygon layout method considering lead-in and lead-out lines of parts according to claim 1, characterized in that: In step S2, the point set of the polygonal part to be arranged is preprocessed, which specifically includes the following sub-steps: deleting duplicate points and invalid points in the point set of the polygonal part to be arranged.

4. A two-dimensional irregular polygon layout method considering lead-in and lead-out lines of parts according to claim 1, characterized in that: In step S4, the first n polygonal parts are selected from the sequence of polygonal parts to be arranged each time, and the feasible positions of each polygonal part are scored, and the polygonal part with the highest score is placed in the arrangement area of ​​the raw material plate, which specifically includes the following steps: Step S41: each time, the first n polygonal parts are selected from the sequence of polygonal parts to be arranged, and all feasible rotation states of each polygonal part are traversed; Step S42: Score all possible rotation states of each polygonal part, and select the possible rotation state with the highest score as the state in which the corresponding polygonal part needs to be placed in the raw material plate layout area. The specific scoring calculation formula is as follows: RScore ir =10(s ir / α imax )-4(and ir / and imax ); Among them, RScore ir represents the fraction of the rth feasible rotation state of the i-th polygonal part, r∈R i , R i represents the set of feasible rotation states of the i-th polygonal part; α ir Indicates the degree of fit of the i-th polygonal part and the r-th feasible rotation state; α imax represents the maximum part fit among all feasible rotation states of the i-th polygonal part; e ir represents the length of the i-th polygonal part and the r-th feasible rotation state beyond the arranged area; e imax Indicates the maximum length of all feasible rotation states of the i-th polygonal part that exceeds the arranged area; Step S43: Score all polygonal parts and select the polygonal part with the highest score as the polygonal part to be placed in the raw material plate layout area. The specific scoring calculation formula is as follows: RScore i =4(s i / s max )+10(a i ' / a' max )-4(e i ' / e' max ); Among them, RScore i represents the score of the i-th polygonal part; s i represents the enveloping rectangular area of ​​the ith polygonal part; s max Represents the largest enveloping rectangular area among all polygonal parts; α i ' represents the degree of fit of the i-th polygonal part; α' max Indicates the maximum part fit among all polygonal parts; e i 'Indicates the length of the i-th polygonal part that exceeds the arranged area; e' max Indicates the maximum length of all polygonal parts that exceeds the nested area.

5. The two-dimensional irregular polygon layout method considering lead-in and lead-out lines of parts according to claim 1, characterized in that: In step S4, whether polygonal parts overlap is detected by critical polygons, which specifically includes the following sub-steps: generating a critical polygon between polygonal part A and polygonal part B, taking any point in the point set of polygonal part A as a reference point, and determining whether the reference point is within the critical polygon generated between polygonal part A and polygonal part B. If so, it proves that polygonal part A and polygonal part B overlap; If not, it proves that polygonal part A is separated from polygonal part B; Whether the polygonal part and the outer area of ​​the raw material plate arrangement area overlap is detected by the inner critical polygon, specifically including the following sub-steps: taking any point in the point set of the polygonal part as a reference point, judging whether the reference point is within the inner critical polygon generated by the polygon detection polygonal part and the raw material plate arrangement area, if so, the polygonal part and the outer area of ​​the raw material plate arrangement area do not overlap; If not, the polygonal part overlaps with the outer area of ​​the raw material plate layout area.

6. A two-dimensional irregular polygon layout method considering lead-in and lead-out lines of parts according to claim 1, characterized in that: In step S5, all overlaps are removed by overlapping removal to obtain a feasible solution for polygonal part nesting with an overlap value of 0, which specifically includes the following sub-steps: by moving the positions of polygonal parts in the nesting area of ​​the raw material plate, the overlap value of the initial solution of the current polygonal part nesting is reduced; when the overlap value of the initial solution of the current polygonal part nesting is reduced to 0, it means that the initial solution of the current polygonal part nesting is a feasible solution for the polygonal part nesting.

7. The two-dimensional irregular polygon layout method considering lead-in and lead-out lines of parts according to claim 1, characterized in that: In step S5, in the process of obtaining a feasible solution for polygonal part layout, an unconstrained nonlinear programming model is established for solution. The mathematical expression of the unconstrained nonlinear programming model is as follows: Minimize f(V)=∑ 1≤k<q≤n f kq (V)+Σ 1≤k≤n g k (V)+∑ 1≤k<q≤n h kq (V); Where f(V) represents the total overlap value; f kq (V) represents two polygonal parts p k and p q Overlap value; g k (V) represents the polygonal part p k Overlap value with the raw material board; h kq (V) indicates p q The lead-in and lead-out wires are k The overlap value of ; k represents the kth polygonal part; q represents the qth polygonal part; n represents the total number of polygonal parts.

8. A two-dimensional irregular polygonal layout method considering lead-in and lead-out lines of parts according to claim 7, characterized in that: In the process of solving the unconstrained nonlinear programming model, by calculating f kq (V), g k (V) and h kq Partial derivative of (V) to calculate the displacement of each polygonal part in the next step; Among them, f kq The partial derivative of (V) is calculated as follows: Where V represents the displacement vector; Represents v m x m and m Mathematical symbols for partial derivatives, v m =(x m ,y m ) represents the coordinates of the mth polygonal part; x m Indicates the x-coordinate, y-coordinate of the m-th polygon part m represents the y coordinate of the mth polygonal part; m represents the mth polygonal part; When a polygonal part With another polygon part When there is no overlap, the following equation is satisfied: Among them, r k Indicates the rotation state of the kth polygonal part; v k represents the coordinates of the kth polygonal part; r q Indicates the rotation state of the qth polygonal part; v q Represents the coordinates of the qth polygonal part; When a polygonal part With another polygon part When overlapping, the following two equations are satisfied: in, Indicates v k Mathematical symbols for partial derivatives; Indicates v q Mathematical symbols for partial derivatives; Indicates the overlapping depth of parts k and q; g k The partial derivative of (V) is calculated as follows: Wherein, k represents the kth polygonal part; When a polygonal part When it is completely inside the raw material plate arrangement area, the following two formulas are satisfied: in, Represents polygonal parts The overlapping depth with the outside of the raw material plate arrangement area; M(W,L) represents the raw material plate arrangement area; When a polygonal part When it overlaps with the outside of the raw material plate arrangement area, the following two formulas are satisfied: h kq The partial derivative of (V) is calculated as follows: When a polygonal part With another polygon part When the lead-in and lead-out lines do not intersect each other, the following equation is satisfied: When a polygonal part The lead-in and lead-out lines of another polygonal part Intersection, or a polygonal part With another polygon part When the lead-in and lead-out lines intersect, the following two equations are satisfied: in, Indicates the overlapping depth of the lead-in and lead-out lines of the k-th polygonal part and the q-th polygonal part; Indicates the overlapping depth of the lead-in and lead-out lines of the qth polygonal part and the kth polygonal part.

9. The two-dimensional irregular polygon layout method considering lead-in and lead-out lines of parts according to claim 1, characterized in that: In step S5, in the process of obtaining a feasible solution for the polygonal part arrangement with an overlap value of 0, two adjacent polygonal parts are expanded outward by 0.5 times the cutting spacing to meet the constraint of the cutting spacing.

Citation Information

Patent Citations

  • Two-dimensional irregular layout method for single-specification plate

    CN111275243A

  • Plate stock layout method and system based on overlapping separation

    CN117236509A

  • Irregular plate part layout method based on overlapping separation sequence optimization algorithm

    CN117973773A

  • Systems and methods for nesting irregular part shapes on a material resource

    DE102015109709A1