Window type material sawing and milling optimization method and system based on genetic algorithm
Through the optimization method of window sawing and milling processing based on genetic algorithm, the problem of waiting for materials after the whole material is optimized, and the upstream and downstream data barriers are broken, achieving efficient material flow and production task response.
Patent Information
- Application Number
- CN202411822691.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-04-04
AI Technical Summary
In the prior art, the optimization of the monolith material discharge may cause four materials of the same frame fan to be loaded and unloaded on different monoliths, resulting in problems such as welding stations and other materials waiting for materials, and the upstream processing demand data cannot be identified by the downstream equipment upstream computers.
The window sawing and milling processing optimization method based on genetic algorithm is adopted. By obtaining processing requirements files and window structures, analyzing processing requirements, and using genetic algorithms to group and sort materials to generate processing program files recognized by the equipment's upper-level functions.
It effectively reduces the situation of materials waiting for materials such as welding stations, breaks down the data barriers upstream and downstream, improves material flow efficiency, reduces material stacking situation, and improves the response speed of production task changes.
Smart Images

Figure CN119761718A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sawing and milling processing, and in particular to a method and system for optimizing sawing and milling processing of window-type materials based on a genetic algorithm. Background Art
[0002] In the prior art, since the whole material profile needs to be optimized for cutting, one-dimensional cutting optimization may result in the four pieces of the same frame and sash being cut and cut from different whole materials. This also leads to the problem of waiting for materials at the subsequent welding processing station. Therefore, it is urgent to sort and group the cutting plans through algorithms to reduce the situation of waiting for materials at the welding station.
[0003] In addition, the processing demand data generated upstream cannot be read and recognized by the host computer of the downstream equipment. Therefore, it is urgent to use new optimization methods to break the upstream and downstream data barriers and analyze, sort and transform the upstream processing demand files according to the data format requirements of the equipment. Summary of the invention
[0004] In order to solve the above-mentioned problems, the present invention provides a window-type material sawing and milling processing optimization method and system based on genetic algorithm.
[0005] In the first aspect, the present invention provides a window material sawing and milling optimization method based on genetic algorithm, which adopts the following technical solution:
[0006] A window material sawing and milling processing optimization method based on genetic algorithm, comprising:
[0007] Obtain processing requirement documents and window structure;
[0008] Parse the acquired processing requirement files to obtain specific sawing and milling processing requirements;
[0009] According to the sawing and milling processing requirements, the genetic algorithm is used to group and sort the materials of the window structure;
[0010] According to sawing and milling processing requirements, the processing steps of the sorted window structure materials are sorted;
[0011] Generate a processing program file that can be recognized by the upper function of the equipment according to the agreed format.
[0012] Furthermore, the acquired processing requirement file is parsed to obtain specific sawing and milling processing requirements, including reading each line of text in the processing requirement file, analyzing and judging from the first word of each line to obtain the processing code, and obtaining the corresponding tool number, program number, parameters and function code according to the processing code as the specific sawing and milling processing requirements.
[0013] Furthermore, according to the sawing and milling processing requirements, the genetic algorithm is used to group and sort the materials of the window structure, including using a material sorting algorithm to analyze all the window structures and calculate the optimal production sequence; then according to the production sequence of the window structures, personnel are grouped and grouped work orders are generated; based on the optimal production sequence and the grouped work orders, a genetic algorithm is used to sort the material unloading order of the window structure.
[0014] Furthermore, the material sorting algorithm is used to analyze all window structures and calculate the optimal production sequence, including calculating the similarity of each window structure, wherein the window structure with a higher processing volume has a higher production sequence level, and the higher the processing similarity between two window structures, the closer the production sequences of the two window structures are. Based on this principle, the optimized production sequence of the window structure is calculated.
[0015] Furthermore, the personnel are grouped according to the production sequence of the window structure and group work orders are generated, including grouping and calculating the production tasks according to the set material flow scale, generating group work orders in combination with the current equipment and personnel load conditions, ensuring the production sequence of the window materials through the production content of the group work orders, and dividing large-scale production into small-batch production tasks according to the manually set production pace.
[0016] Furthermore, the method of using a genetic algorithm to sort the material unloading order of the window-type structure includes encoding the total material amount and the minimum processing batch size of all window-type structures based on the genetic algorithm, and calculating the correlation coefficient of a single material based on a fitness function, wherein the higher the frequency of occurrence of a single material in each window-type structure, the greater the correlation coefficient.
[0017] Furthermore, the fitness function is:
[0018]
[0019] where t co is the switching time, t i P i The processing time of a single piece; X is all x ij The set is composed of, count_zero(X) is the number of groups with value 0. i For profile P i The correlation coefficient, P i The higher the frequency of occurrence in each window type, the higher the i The larger the value, the better for a certain profile P i ,i=1,2,…,n, the number of groups is g i =n i / b i , where n i is the total amount of the profile, b iIt is the minimum processing batch.
[0020] Furthermore, according to the sawing and milling processing requirements, the processing steps of the sorted window-type structure materials are sorted, including calculating the absolute offset of each processing step based on the optimal production sequence, sorting the order of the processing steps according to the absolute offset, and calculating the length of the remaining material after cutting. The processing steps are adjusted again according to the length of the remaining material, and additional sawing codes are added after the processing steps are adjusted, and then the processing positions of all processing steps are recalculated, and the corresponding function codes and program numbers are analyzed to obtain a processing plan.
[0021] In the second aspect, a window material sawing and milling processing optimization system based on genetic algorithm includes:
[0022] The data acquisition module is configured to acquire the processing requirement file and the window type structure;
[0023] The parsing module is configured to parse the acquired processing requirement file to obtain specific sawing and milling processing requirements;
[0024] The grouping module is configured to group and sort the materials of the window-shaped structure using a genetic algorithm according to sawing and milling processing requirements;
[0025] A sorting module is configured to sort the processing steps of the sorted window-shaped structure materials according to sawing and milling processing requirements;
[0026] The generation module is configured to generate a processing program file that can be recognized by the upper function of the device according to the agreed format.
[0027] In a third aspect, the present invention provides a computer-readable storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device, for example, a genetic algorithm-based window-type material sawing and milling optimization method.
[0028] In a fourth aspect, the present invention provides a terminal device including a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded by the processor and executed by the genetic algorithm-based window-type material sawing and milling optimization method.
[0029] In summary, the present invention has the following beneficial technical effects:
[0030] The present invention sorts and groups the material cutting schemes through a genetic algorithm, thereby reducing the situation where welding stations have to wait for materials.
[0031] The present invention breaks the upstream and downstream data barriers and performs data analysis, sorting and conversion on upstream processing demand files according to the data format requirements of the equipment.
[0032] The present invention utilizes a material sorting algorithm to first analyze all window structures in an order, and obtains the optimal production sequence through intelligent algorithm calculations; then the material unloading sequence is optimized through a self-developed sorting algorithm, and a subsequent sorting and grouping plan is generated to ensure that the material processing information of the same material truck is the same, and that the unloaded materials can meet the welding needs of the entire window as quickly as possible, greatly alleviating the problem of pushing and waiting for materials in the workshop.
[0033] The material flow efficiency in the workshop is improved by group scheduling. The rod materials required for the welding of the whole window are produced one after another, and there will be no problems waiting for materials and finding materials at the welding station, which reduces the accumulation of materials in the workshop. At the same time, it can respond faster to changes in production tasks and has strong flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a schematic diagram of a window-shaped material sawing and milling processing optimization method based on a genetic algorithm according to Example 1 of the present invention;
[0035] Figure 2 is a schematic diagram of a processing requirement file according to Embodiment 1 of the present invention;
[0036] Figure 3 It is a schematic diagram of the maintenance interface for processing codes in the software of Example 1 of the present invention;
[0037] Figure 4 is a schematic diagram of cutting parameters of Example 1 of the present invention;
[0038] Figure 5 This is a schematic diagram of starting a tool processing instruction according to Embodiment 1 of the present invention;
[0039] Figure 6 It is a schematic diagram of fitness function calculation in Example 1 of the present invention. DETAILED DESCRIPTION
[0040] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0041] Example 1
[0042] Reference Figure 1 , a window material sawing and milling processing optimization method based on genetic algorithm in this embodiment includes:
[0043] Obtain processing requirement documents and window structure;
[0044] Parse the acquired processing requirement files to obtain specific sawing and milling processing requirements;
[0045] According to the sawing and milling processing requirements, the genetic algorithm is used to group and sort the materials of the window structure;
[0046] According to sawing and milling processing requirements, the processing steps of the sorted window structure materials are sorted;
[0047] Generate a processing program file that can be recognized by the upper function of the equipment according to the agreed format.
[0048] Specifically, the following steps are included:
[0049] S1. Obtain processing requirement documents and window structure;
[0050] S2. Parse the acquired processing requirement file to obtain specific sawing and milling processing requirements, which includes reading each line of text in the processing requirement file, analyzing and judging from the first word of each line to obtain the processing code, and obtaining the corresponding tool number, program number, parameter and function code according to the processing code as the specific sawing and milling processing requirements.
[0051] After the processing file is imported into the program, the program reads the text of each line of the file and analyzes and judges the first word of each line. The processing meaning represented by each word has been manually maintained in the system. Therefore, the program also understands the processing technology represented by each line and the meaning of subsequent processing parameters.
[0052] For example, CONFIG means a section of material is to be cut. If there is an N in the following parameter, it means a new whole material is to be cut. CutAngleLeft refers to the left cutting angle, and CutAngleRight refers to the right cutting angle. Fab refers to various punching or V-cutting operations to be performed on the section of material.
[0053] like Figure 2 The figure below shows the maintenance interface of the processing code in the software. By comparing the processing code of the processing file, the program knows which tool to use, which program number, and the parameters and function codes required in the processing process, and saves this information and sends it to the equipment, which implements the specific processing technology according to these parameter information. Then, the processing requirement information is processed, such as unit conversion according to different customer needs, and then assembled into a dictionary data structure that is convenient for our subsequent processing.
[0054] S3. According to the sawing and milling processing requirements, the genetic algorithm is used to group and sort the materials of the window structure, including using the material sorting algorithm to analyze all the window structures and calculate the optimal production sequence; then the personnel are grouped according to the production sequence of the window structure and the grouped work orders are generated; based on the optimal production sequence and the grouped work orders, the genetic algorithm is used to sort the material unloading sequence of the window structure.
[0055] Among them, genetic algorithm is used to sort the production order of window types.
[0056] The principle of seeking the optimal solution of the genetic algorithm is actually to quantify the similarity between each window type. The higher the similarity of the profiles required between the window types, the more likely they can be produced in batches, and the closer the production sequence of the two window types is. At the same time, the higher the production demand for each window type, the easier it is to produce in batches, which also improves its production sequence.
[0057] 1. Summarize window type information
[0058] The information in the processing file contains the location of each window type to which the material belongs. The first step of the program is to summarize and integrate this information, sort out the window types, the profile information contained in each window type, and the processing information of each profile, including how to cut the two ends, which processing holes are contained in the profile, etc. This information is linked with the special symbol "$@$" to form a string specifically used to identify the complete process flow of each profile.
[0059] 2. Calculate the data needed for subsequent use, including:
[0060] (1) Calculate the maximum length of all profiles and the total project quantity.
[0061] (2) Calculate the similarity between all window types
[0062] Traverse the different combinations of every two window types. For each combination: first establish two window type profile information comparison dictionaries: establish two window type profile information comparison dictionaries {'profile 1': [length, number of front window types, number of rear window types], 'profile 2': [length, number of front window types, number of rear window types]......} and the profile information dictionary of each window type: {'window number': [[profile number, length, quantity, [process 1, process 2, process 3,......]], [], []......]}
[0063] For two window types, if there are many similar profiles and more different profiles, it will cause the accumulation of profiles at the subsequent welding stations, which is not conducive to improving production efficiency.
[0064] Therefore, the similarity between two window types should be analyzed from two aspects: the similar parts and the dissimilar parts.
[0065] The pseudo code is as follows:
[0066] similar_weight=0#similar part rating
[0067] differ_weight=0#score of dissimilar parts
[0068] #Start calculating the similarity between the two windows
[0069] #Build a dictionary for comparing the profile information of two windows {'profile 1': [length, number of front windows, number of rear windows], 'profile 2': [length, number of front windows, number of rear windows]......}
[0070] compo_window_profile_info={}
[0071] Traverse the profiles in the dictionary, if it is a shared profile
[0072] Similarity increased compo_window_profile_info[profile code][1] / compo_window_profile_info[profile code][2]
[0073] The similarity of all profile members is accumulated to obtain the overall similarity of the two window types.
[0074] # Calculate the dissimilarity between the two windows
[0075] If compo_window_profile_info[profile code][1] == 0:
[0076] The dissimilarity effect parameter caused by the current window type is current_differ+=compo_window_profile_info[profile][2]
[0077] If compo_window_profile_info[profile code][2] == 0:
[0078] Then the dissimilar influence parameter caused by the previous window type is pre_differ + = compo_window_profile_info[profile][1]
[0079] Then the dissimilarity scores of the two window types are:
[0080] differ_weight=(1-(current_differ / pre_differ))if current_differ / pre_differ<1else(1-(pre_differ / current_differ))
[0081] Finally, the similarity of the two window types is similarity_num = similarity_weight * differ_weight
[0082] The similarity between the two window types is calculated and recorded in the dictionary structure.
[0083] {Window 1:{Window 1:Similarity 1,Window 2:Similarity 2,......}}
[0084] 3. Initialization
[0085] Use Python's genetic algorithm toolkit to instantiate the problem class
[0086] This class defines some information related to the problem, such as the problem name, the dimension M of the optimization target, the number of decision variables Dim, the ranges of the decision variables, the boundaries of the decision variables, etc. maxormins is a row vector that records whether each objective function is minimized or maximized, where an element of 1 indicates that the corresponding objective is a minimization objective; -1 indicates that the corresponding objective is a maximization objective. varTypes is a row vector that records the types of decision variables, where an element of 0 indicates that the corresponding decision variable is a continuous variable; 1 indicates that the corresponding decision variable is a discrete variable. The objective function to be solved is defined in the aimFunc() function.
[0087] Objective function aimFunc()
[0088] "The sum of the proportions of various profiles of each window type is used to measure the proportion of window type processing. The higher the proportion, the higher the relevance."'
[0089] First, we get the decision variable matrix X = pop.Phen. Parameter ObjV = [] # stores the overall correlation of all population individuals
[0090] Then start traversing the population.
[0091] window_sequence = [self.window_num_list[int(i)-1]for i in sequence] # Get the phenotype of the individual window number
[0092] Then, the parameter relevance is used to identify the overall relevance of the individual, and the order of the current window phenotypes is traversed to calculate the overall relevance of the individual.
[0093] First, calculate the proportion of single window engineering work and store it in the parameter window_processing
[0094] Then calculate the overall similarity between the current window type and all previous window types. If it is the first window type, the overall similarity is 100 by default. See above for specific similarity calculation.
[0095] GS = np.logspace (0, j-1, j, base = 1.8) # Geometric sequence generates weights, base = 1.8
[0096] GS_sum = sum(GS)
[0097] weight=[w / GS_sum for w in GS]#In the arrangement scheme, the weight generated according to the number of previous window types
[0098] Finally, the similarity between the current window type and all previous window types is parameter similarity_summary = self.window_similarity_dict[window_num][window_sequence[k]]*weight[k]
[0099] Among them, window_sequence is the phenotype of the individual window type number.
[0100] The final overall relevance of the individual is relevance + = window_processing * similarity_summary
[0101] Finally, the obtained objective function value is assigned to ObjV of population pop.
[0102] S4. Personnel are grouped according to the production sequence of the window structure and group work orders are generated, including grouping and calculating the production tasks based on the set material flow scale, generating group work orders based on the current equipment and personnel load conditions, and ensuring the production sequence of window materials through the production content of the group work orders. At the same time, large-scale production is divided into small-batch production tasks according to the manually set production pace.
[0103] S5. Encode the total amount of materials and the minimum processing batch of all window structures based on the genetic algorithm, and calculate the correlation coefficient of a single material based on the fitness function, wherein the higher the frequency of occurrence of a single material in each window structure, the greater the correlation coefficient.
[0104] Among them, the workshop material grouping decision based on genetic algorithm
[0105] For a profile P i ,i=1,2,…,n, the number of groups is g i =n i / b i , where n i is the total amount of the profile, b i is the minimum processing batch. Encode accordingly, such as Figure 6 Shown, where x ij is the number of profiles in each group, i.e., the decision variable, 0≤x ij ≤n i . Its fitness function is:
[0106]
[0107] where t co is the switching time, t i P i The processing time of a single piece; X is all x ij The set is composed of, count_zero(X) is the number of groups with value 0. i For profile P i The correlation coefficient, P i The higher the frequency of occurrence in each window type, the higher the i The larger the value.
[0108] In this embodiment, since the material cutting plan is fixed, it determines how the batch of whole materials should be cut. After sorting the window types, it is necessary to re-sort the users of each section of the material.
[0109] The specific processing idea is: first traverse the production sequence of the window type - traverse all the required profiles and rods of the current window type - query all the cutting plans that contain the current profiles and rods - perform priority calculations on the cutting plans that meet the conditions, because after cutting and sawing, the cutting plans that meet the conditions will not only obtain the currently required profiles and rods, but also produce a batch of profiles and rods that will be used for subsequent window types, but are not currently used. If these profiles and rods are used in window types too far back, or contain too many profiles and rods that are not temporarily used, it will also cause material accumulation at subsequent welding stations, so the priority will be low. On the contrary, the higher the priority. ——》We sort the cutting plans that meet the conditions from high to low priority, and allocate the sawed materials that are the same as the current profiles and rods, and assign them to the specific window type parts to be used. The remaining sawed materials that are not temporarily used are first put into a dictionary variable to specifically store the profile material information that has not yet been assigned a specified window type position. ——》When traversing the subsequent profiles on the window type to be processed, first search the dictionary variable that currently stores the material information of the profile rods that have not been assigned to the specified window type position. When possible profile rods that meet the conditions are found, they are allocated. If there are none or the quantity is insufficient, repeat the above steps to query all the cutting plans that include the current profile rods, and then calculate the priority of the cutting plans that meet the conditions, and allocate them from high to low until all the cutting plans are allocated.
[0110] Calculation of material cutting plan priority:
[0111] #Window profile grouping {'Window number': [[Profile number & length & v-mouth position 1-v-mouth position 2 & cut angle, length, quantity, type, quantity ratio, [Replenishment order IDs], [length, width, back, color, model, material]], [], []......]}
[0112] #procure_profile_name_dict{replenishment order:[profile full encoding tuple, quantity]}
[0113] :param cutting_order_other_dict:{profile code:[[detail item, quantity 1, total batch],[detail item, quantity, total batch]]} records other materials that are cut together
[0114] :param cutting_lines: can meet the requirements of cutting items
[0115] :param window_sequence: window type sequence
[0116] :param window_target_num: current window type
[0117] :param profile_comp_simp_dict: Profile full code: Simplified code comparison table
[0118] :return:
[0119] Calculation principle:
[0120] priority_dict = {} The dictionary uses the material delivery plan as the key to record the priority score of each material delivery plan.
[0121] First determine whether the current window type is the last one. If not, start traversing each material cutting plan - initialize the priority to 0 - query the information of the profile rods that will not be used temporarily in the material cutting plan - traverse the profile rods that will not be used temporarily, query the window type that can use the profile closest to the window type according to the window type optimization production sequence, calculate the difference between the order of the window type and the current window type order as the deviation value of the unused profile, and then add the deviation value of each section in the entire material cutting plan to get the deviation value of the entire material cutting plan. - Sort the material cutting plans by the deviation value. The larger the deviation value, the lower the priority.
[0122] According to the sawing and milling processing requirements, the processing steps of the sorted window-type structure materials are sorted, including calculating the absolute offset of each processing step based on the optimal production sequence, sorting the processing steps according to the absolute offset size, and calculating the length of the remaining material after cutting. The processing steps are adjusted again according to the length of the remaining material, and additional sawing codes are added after adjusting the processing steps, and then the processing positions of all processing steps are recalculated, and the corresponding function codes and program numbers are analyzed to obtain the processing plan. Among them,
[0123] First, for sawing and milling equipment, the fixed surface of the saw blade is used as the 0 point of the entire machining tool motion coordinates, and other hole machining tools are located in front of the saw blade. The offset of each tool has been maintained in the system, such as Figure 3 As shown. Through the above analysis of the processing file, we know the relative coordinates of each processing procedure in the section of material, and we also know the relative position of each section of material in the whole material. The two are added together to get the absolute position of each process relative to the whole material. The difference obtained by subtracting the offset of the tool used from the zero point from the X coordinate of the absolute position of each processing procedure refers to the coordinate value of the whole material where the material at the zero point saw blade is located when the process is being carried out. By sorting each processing procedure by the difference, the sorting order of all processing procedures on a whole material can be obtained.
[0124] Secondly, the length of the residual material must be calculated, because the structural design of the residual material outlet of the sawing and milling equipment must be considered, and different treatments must be performed according to the different lengths of the residual material.
[0125] The first step is to calculate the length of the remaining material. The remaining length after the whole material is sawed as planned is the length of the remaining material. We traverse the cutting plan of the whole material, subtract the length of each material to be sawed from the length of the whole material, and also subtract the loss caused by sawing between each material, including saw seam loss and loss between specifications. At the same time, because the cutting requirements between each two materials are different, the cutting plan is also different, and the loss generated is also different.
[0126] 1. If the cutting angles between two pieces of material are different, the cutting loss is the loss between specifications + sawing loss * sin (cutting angle).
[0127] 2. If the cutting angle is the same and the cutting is 90 degrees vertically, the loss is a sawing loss.
[0128] 3. If the cutting angle is the same and not 90 degrees, only one cut is needed, which is the sawing loss * sin (cutting angle)
[0129] The remainder after the loop traversal and subtraction is the remaining length.
[0130] The system has set up several parameters such as end trimming, saw loss, loss between specifications, tail length, waste discharge length, and maximum waste value. Figure 4 As shown:
[0131] When the length of the remaining material is greater than the length of the tail material, the remaining material needs to be placed in front of the whole material for cutting. At this time, the coordinates of each processing step originally calculated must be added with the cutting length of the remaining material placed in front.
[0132] The specific operations are as follows:
[0133] When the calculated residual length is greater than the tail length and less than the tail length + the waste discharge length, the waste greater than the tail length is discharged at the first right saw. Function code is 11
[0134] When the length of the remaining material is greater than or equal to the tail material length + the waste discharge length and less than the maximum value of the waste, the waste greater than the tail material length is divided into two right saws. The function code of the first right saw is 12 and the angle is 90°. The function code of the second right saw is 11 and the angle is the set angle.
[0135] Example 2
[0136] This embodiment provides a window material sawing and milling processing optimization method based on a genetic algorithm, comprising:
[0137] Import of processing data
[0138] To import processing data, first extract the profile code (referred to as Profile Code) and other processing data from the processing file.
[0139] The processing data can be downloaded to the PLC only after it is extracted.
[0140] 5.1Profile Code extraction, such as Figure 5
[0141] exist Figure 5 , the Profile Code corresponding to Scheme No. 1 is 60k, the Profile Code corresponding to Scheme No. 2 is 60k1, and so on. Extract the corresponding Profile Code according to the current processing scheme number.
[0142] 5.2 Extraction of processing parameters
[0143] The basic parameters and processing parameters of the profile can be obtained according to the Profile Code.
[0144] 5.2.1 Basic parameters of profiles: including profile height, profile width, manipulator rotation angle, manipulator gripping profile position, profile serial number, and milling cutter angle.
[0145] 5.2.2 Processing parameters: including processing code, tool number, processing program number, processing Y value, Z value, transition position, milling depth, and number of layered processing. Different processing codes correspond to different processing parameters.
[0146] 5.2.3 After the processing parameters are extracted, the processing data is automatically loaded into the PLC.
[0147] Tool processing command starts
[0148] After the processing data is downloaded to the PLC, the PLC will automatically start the tool processing instruction according to the current processing code, tool number, and function code. For example: Figure 5 In the third line, the processing code is HOLE10_15, the tool number is 14, and the function code is 4. The PLC will automatically start tool No. 14 for processing.
[0149] Tool processing trajectory data
[0150] After the tool processing instruction is started, the PLC will automatically generate the tool processing trajectory value based on the imported workpiece processing data.
[0151] For example: Figure 5 In the third line, the processing code is HOLE10_15, the tool number is 14, and the function code is 4. The PLC will automatically generate the processing trajectory data for tool 14. The tool will start processing the workpiece according to the PLC instructions and the running trajectory. After the processing is completed, the tool returns to a safe position and waits for the next processing instruction.
[0152] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device, for a genetic algorithm-based window-type material sawing and milling optimization method.
[0153] A terminal device includes a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded by the processor and executing the window-type material sawing and milling optimization method based on a genetic algorithm.
[0154] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A window material sawing and milling optimization method based on genetic algorithm, characterized in that: include: Obtain processing requirement documents and window structure; Parse the acquired processing requirement files to obtain specific sawing and milling processing requirements; According to the sawing and milling processing requirements, the genetic algorithm is used to group and sort the materials of the window structure; According to sawing and milling processing requirements, the processing steps of the sorted window structure materials are sorted; Generate a processing program file that can be recognized by the upper function of the equipment according to the agreed format.
2. The window material sawing and milling processing optimization method based on genetic algorithm according to claim 1 is characterized in that: The obtained processing requirement file is parsed to obtain specific sawing and milling processing requirements, including reading each line of text in the processing requirement file, analyzing and judging from the first word of each line to obtain the processing code, and obtaining the corresponding tool number, program number, parameters and function code according to the processing code as the specific sawing and milling processing requirements.
3. The window material sawing and milling processing optimization method based on genetic algorithm according to claim 2 is characterized in that: The method comprises: grouping and sorting the materials of the window structure by using a genetic algorithm according to the sawing and milling processing requirements, including analyzing all the window structures by using a material sorting algorithm to calculate the optimal production sequence; grouping the personnel according to the production sequence of the window structure to generate a group work order; Based on the optimal production sequence and grouped work orders, a genetic algorithm is used to sort the material unloading sequence of the window structure.
4. The window material sawing and milling processing optimization method based on genetic algorithm according to claim 3 is characterized in that: The material sorting algorithm is used to analyze all window structures and calculate the optimal production sequence, including calculating the similarity of each window structure, wherein the window structure with a higher processing volume has a higher production sequence level, and the higher the processing similarity between two window structures, the closer the production sequences of the two window structures are. Based on this principle, the optimal production sequence of the window structure is calculated.
5. The window material sawing and milling processing optimization method based on genetic algorithm according to claim 4 is characterized in that: The personnel are grouped according to the production sequence of the window structure and group work orders are generated, including grouping and calculating the production tasks according to the set material flow scale, generating group work orders in combination with the current equipment and personnel load conditions, ensuring the production sequence of the window materials through the production content of the group work orders, and dividing large-scale production into small-batch production tasks according to the manually set production pace.
6. The window material sawing and milling processing optimization method based on genetic algorithm according to claim 5 is characterized in that: The method of using a genetic algorithm to sort the material unloading order of the window structure includes encoding the total material amount and the minimum processing batch of all window structures based on the genetic algorithm, and calculating the correlation coefficient of a single material based on a fitness function, wherein the higher the frequency of occurrence of a single material in each window structure, the greater the correlation coefficient; the fitness function is: where t co is the switching time, t i P i The processing time of a single piece; X is all x ij The set is composed of, count_zero(X) is the number of groups with value 0. i For profile P i The correlation coefficient, P i The higher the frequency of occurrence in each window type, the higher the i The larger the value, the better for a certain profile P i ,i=1,2,…,n, the number of groups is g i =n i / b i , where n i is the total amount of the profile, b i It is the minimum processing batch.
7. The window material sawing and milling processing optimization method based on genetic algorithm according to claim 6 is characterized in that: According to the sawing and milling processing requirements, the processing steps of the sorted window-type structure materials are sorted, including calculating the absolute offset of each processing step based on the optimal production sequence, sorting the order of the processing steps according to the absolute offset, and calculating the length of the remaining material after cutting. The processing steps are adjusted again according to the length of the remaining material, and additional sawing codes are added after the processing steps are adjusted, and then the processing positions of all processing steps are recalculated, and the corresponding function codes and program numbers are analyzed to obtain a processing plan.
8. A window material sawing and milling processing optimization system based on genetic algorithm, characterized in that: include: The data acquisition module is configured to acquire the processing requirement file and the window type structure; The parsing module is configured to parse the acquired processing requirement file to obtain specific sawing and milling processing requirements; The grouping module is configured to group and sort the materials of the window-shaped structure using a genetic algorithm according to sawing and milling processing requirements; A sorting module is configured to sort the processing steps of the sorted window-shaped structure materials according to sawing and milling processing requirements; The generation module is configured to generate a processing program file that can be recognized by the upper function of the device according to the agreed format.
9. A computer-readable storage medium storing a plurality of instructions, characterized in that: The instructions are suitable for being loaded by a processor of a terminal device and executing the method according to claim 1 .
10. A terminal device, comprising a processor and a computer-readable storage medium, wherein the processor is used to implement each instruction; and the computer-readable storage medium is used to store multiple instructions, characterized in that: The instructions are suitable for being loaded by a processor and executing the method as claimed in claim 1 .
Citation Information
Patent Citations
Method for discharge and processing production scheduling integration optimization of metal structure components
CN104570997A
Method and system for realizing dynamic production scheduling in energetic material production process
CN111062535A
Processing typesetting method, operation control device, numerical control system and storage medium
CN116400645A
Genetic algorithm-based calculation method and device for optimized material breakage of reinforcing steel bars
CN116468147A
Two-dimensional irregular part layout method and system based on contour matching
CN117807873A
Cited By
Method for rapidly optimizing panel furniture typesetting waste division
CN120975331A