A balanced optimization method, apparatus, device, medium and product
Patent Information
- Application Number
- CN202610960469.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-30
- Publication Date
- 2026-09-25
AI Technical Summary
[0004]本发明提供了一种平衡优化方法、装置、设备、介质及产品,以解决多绣花机机头联动工况下的动平衡优化问题
[0009]根据本发明的另一方面,提供了一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序在被处理器执行时实现本发明任一实施例所述的方法。
Smart Images

Figure CN122818643A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of dynamics technology, and in particular to a method, apparatus, equipment, medium, and product for balancing optimization. Background Technology
[0002] As the main working structure of an embroidery machine, the number of embroidery machine heads is increasing with rising demands. During operation, all embroidery machine heads are driven by the same drive shaft. The more embroidery machine heads there are, the greater the resonance effect becomes. Vibrations are transmitted to the main beam of the embroidery machine, resulting in significant vibrations throughout the machine and affecting its stability.
[0003] Existing methods for dynamic balancing analysis and optimization of computerized embroidery machine heads are mostly limited to analyzing local mechanisms of a single head, relying on adjustments to a single structure to achieve dynamic balancing optimization. This approach has a narrow analytical scope and low efficiency, making it difficult to adapt to the dynamic balancing analysis needs of multi-head machine units operating in tandem. Summary of the Invention
[0004] This invention provides a method, apparatus, equipment, medium, and product for balancing optimization, in order to solve the dynamic balancing optimization problem under the working conditions of multiple embroidery machine heads working in tandem.
[0005] According to one aspect of the present invention, a balance optimization method is provided, comprising: Obtain a model script and a set of balance parameters. The model script includes a script file for at least one dynamic model of an embroidery machine head. The set of balance parameters includes parameters for balance blocks, and the balance blocks include balance blocks used to balance the embroidery machine head. By combining the model script and the equilibrium parameter set, the dynamics solver is driven to conduct experiments and determine the experimental results; Based on the optimization objective items in the test results, a set of balance parameters is selected from the test results, wherein the optimization objective items are the objective items in the test results used to optimize the balance block; The balance block is designed based on the balance parameter set and the spatial position of the embroidery machine head.
[0006] According to another aspect of the present invention, a balance optimization apparatus is provided, comprising: An acquisition module is used to acquire a model script and a set of balance parameters. The model script includes a script file of at least one dynamic model of an embroidery machine head. The set of balance parameters includes parameters of balance blocks, and the balance blocks include balance blocks used to balance the embroidery machine head. The determination module is used to combine the model script and the equilibrium parameter set to drive the dynamic solver to conduct experiments and determine the experimental results. The selection module is used to select a set of balance parameters from the test results based on the optimization target items in the test results, wherein the optimization target items are the target items in the test results used to optimize the balance block; The design module is used to design the balance block based on the balance parameter set and the spatial position of the embroidery machine head.
[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method described in any embodiment of the present invention.
[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the method described in any embodiment of the present invention.
[0009] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the method described in any embodiment of the present invention.
[0010] The technical solution of this invention involves acquiring a model script and a set of balance parameters. The model script includes a script file for the dynamic model of at least one embroidery machine head. The set of balance parameters includes parameters for balance blocks, and the balance blocks include balance blocks used to balance the embroidery machine head. The model script and the set of balance parameters are combined to drive a dynamic solver to conduct experiments and determine the experimental results. Based on the optimization objective items in the experimental results, a set of balance parameters is selected from the experimental results. The optimization objective items are the objective items used to optimize the balance blocks in the experimental results. The balance blocks are designed based on the set of balance parameters and the spatial position of the embroidery machine head. This technical solution converts the dynamic model of the embroidery machine head into a script form through the model script, facilitating subsequent processing by the dynamic solver and improving the efficiency of dynamic balancing analysis of the embroidery machine head. Furthermore, the model script can include dynamic models of multiple embroidery machine heads, supporting batch dynamic balancing analysis of multiple embroidery machine heads and further improving the efficiency of dynamic balancing analysis.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a structural schematic diagram of a multi-head computerized embroidery machine provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of an embroidery machine head provided in an embodiment of the present invention; Figure 3 A flowchart of a balance optimization method provided in Embodiment 1 of the present invention; Figure 4 This is a flowchart of a balance optimization method provided in an embodiment of the present invention; Figure 5 This is a flowchart of a balance optimization method provided in Embodiment 2 of the present invention; Figure 6 This is a flowchart of a method for obtaining a model script provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of a balance optimization device provided in Embodiment 3 of the present invention; Figure 8 A schematic diagram of an electronic device that can be used to implement embodiments of the present invention is shown. Detailed Implementation
[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0015] It should be noted that the terms "comprising" and "having" and any variations thereof in the specification, claims and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such processes, methods, products or devices.
[0016] In one example Figure 1This is a structural schematic diagram of a multi-head computerized embroidery machine provided in an embodiment of the present invention. Figure 1 Taking a 6-head computerized embroidery machine as an example, its head distribution is as follows: Figure 1 As shown, six needle heads 102 are equidistantly mounted on the drive shaft 101. When the drive shaft 101 rotates, it drives the drive components of each needle head 102 to move synchronously, converting the reciprocating rotational motion of the mechanism into the up-and-down reciprocating motion of the needle bar and presser foot. The more needle heads there are, the greater the resonance effect, and the vibration is transmitted to the main beam of the embroidery machine, resulting in large vibrations of the entire embroidery machine and affecting its stability.
[0017] In one example Figure 2 This is a schematic diagram of the structure of an embroidery machine head according to an embodiment of the present invention. The diagram includes an eccentric wheel 1, an eccentric connecting rod 2, a thread take-up cam 3, a track component 4, an iron cam 5, a balance block 6, a three-eye connecting rod 7, a counterweight swing rod 8, a presser foot drive short connecting rod 9, a lever connecting rod 10, a presser foot drive short connecting rod 11, a presser foot guide rail 12, a presser foot drive 13, a driver guide shaft 14, a drive rocker arm crank 15, a needle bar guide rail 16, a needle bar drive 17, a needle bar 18, an upper dead pad 19, a needle bar connecting pin 20, a presser foot spring 21, a presser foot sleeve 22, a presser foot 23, a needle 24, a gasket 25, a needle bar spring 26, a thread take-up shaft 27, a cam crank 28, a thread take-up crank 29, a thread take-up tooth 30, a thread take-up lever 31, and a thread take-up lever shaft 32. The reciprocating motion of rotating mechanisms (such as eccentric wheel 1, thread take-up cam 3, iron cam 5, etc.), needle bar mechanisms, and presser foot drive mechanisms generates periodic unbalanced inertial forces. Therefore, a balance block needs to be designed for the drive shaft to balance the reciprocating inertial forces of these mechanisms using the centrifugal force of the balance block, thereby reducing the stress on the drive shaft. The balance block can be a balance block used to balance the inertial forces of the drive shaft.
[0018] Example 1 Figure 3 This is a flowchart of a balancing optimization method provided in Embodiment 1 of the present invention. This embodiment is applicable to the dynamic balancing analysis of an embroidery machine head. The method can be executed by a balancing optimization device, which can be implemented in hardware and / or software and can be configured in an electronic device. For example, the electronic device can be a computer, workstation, or server. Figure 3 As shown, the method includes: S110. Obtain the model script and the balance parameter set. The model script includes a script file of the dynamic model of at least one embroidery machine head. The balance parameter set includes parameters of the balance block. The balance block includes a balance block used to balance the embroidery machine head.
[0019] In this embodiment, the model script can be a model of the embroidery machine head in the form of a script file. The model script can include the identifiers and corresponding coordinates of the parts in the model. The parts can be components in the embroidery machine head model that can be used for dynamic balancing analysis, such as eccentric wheels, thread-taking cams, and / or iron cams. The coordinates can be the spatial coordinates of a specific point on the part. For example, the coordinates can be the coordinates of a specific point on the part in simulation software, which can be software used to build the model of the embroidery machine head. The balance parameter set can be a set of parameters obtained through Design of Experiments (DOE). The balance parameter set can be generated by the design of experiments and can describe the dynamic characteristics of the balance block and the dynamic characteristics of the embroidery machine head. For example, the parameters in the balance parameter set include, but are not limited to, the unbalanced mass of the balance block, the coordinates of the center of mass of the balance block, and the components of the inertial force on the drive shaft along different directions. The balance parameter set can include multiple sets of parameter combinations, each of which can characterize a corresponding optimization scheme. The optimization scheme can be a scheme of configuring a balance block with a specific mass and center of mass position on the drive shaft of the embroidery machine head. The balance parameter set can be represented as a table, where each row corresponds to an optimization scheme and each column corresponds to a parameter in the balance parameter set.
[0020] Specifically, the model of the embroidery machine head is obtained, imported into simulation software, and parts irrelevant to the dynamic balancing analysis are deleted. The coordinates of specific points on the parts are determined, and the part identifiers and coordinates of specific points on the parts are written into a script file to obtain the model script. Through experimental design, parameters describing the dynamic characteristics of the balance block and the embroidery machine head are determined, and initial values of the parameters are set to obtain the balance parameter set.
[0021] For example, the balance parameter set may include parameters of balance blocks at multiple preset positions in the embroidery machine head, such as the mass, centroid coordinates, or equivalent eccentricity and phase angle of the balance block at each position; each installation position corresponds to a predefined node or rigid body attachment point in the dynamic model, and evaluation and optimization of multi-plane or multi-point counterweight schemes can be achieved by assigning values respectively.
[0022] S120. Combining the model script and the equilibrium parameter set, drive the dynamics solver to conduct experiments and determine the experimental results.
[0023] In this embodiment, the dynamics solver can be a simulation program used to solve the motion equations of the embroidery machine head. The dynamics solver can be a dynamics solver applying the Finite Element Method (FEM). The dynamics solver can be integrated into a simulation platform. The simulation platform can be a platform integrating software for dynamic balancing optimization. The experimental results can be the output of the dynamics solver. The experimental results can include the results after optimizing the parameters in the equilibrium parameter set. The experimental results can include multiple sets of optimized parameter combinations.
[0024] Specifically, the model script and equilibrium parameter set are input into the dynamics solver to perform simulation calculations, simulate the dynamic state of the embroidery machine head in actual operation, optimize the values of each parameter in the equilibrium parameter set, and output the optimized experimental results.
[0025] S130. Based on the optimization target item in the test results, select a set of balance parameters from the test results, wherein the optimization target item is the target item in the test results used to optimize the balance block.
[0026] In this embodiment, the optimization objective can be a specific item from the test results. For example, the optimization objective could be the root mean square value of the components of the inertial force on the drive shaft along different directions. The optimal parameter combination from the test results can be determined based on the optimization objective. The balance parameter set can be a combination of parameters selected from the test results. The balance parameter set may include the unbalanced mass of the balance block, the coordinates of its center of mass, the radius of rotation, and the installation angle, etc.
[0027] Specifically, for each parameter combination in the experimental results, the weighted sum of the optimization objective terms in each parameter combination is determined, and the parameter combination with the largest weighted sum is determined as the balanced parameter group.
[0028] S140. Design the balance block according to the balance parameter set and the spatial position of the embroidery machine head.
[0029] In this embodiment, the spatial location can be the location of the embroidery machine head in three-dimensional space. The spatial location can be the location of the embroidery machine head model in simulation software, or the location of the embroidery machine head in actual physical space.
[0030] Specifically, check whether the balance parameter set meets the preset indicators. If it does, design a balance block based on the balance parameter set and the spatial position of the embroidery machine head.
[0031] For example, the design of the balance block based on the balance parameter set and the spatial position of the embroidery machine head can be as follows: determine the mass of the balance block based on the unbalanced mass in the balance parameter set, determine the position of the balance block on the drive shaft based on the centroid coordinates in the balance parameter set and the spatial position of the embroidery machine head, and determine the material of the balance block based on the mass and centroid coordinates, etc.
[0032] The technical solution of this invention involves acquiring a model script and a set of balance parameters. The model script includes a script file for the dynamic model of at least one embroidery machine head. The set of balance parameters includes parameters for balance blocks, and the balance blocks include balance blocks used to balance the embroidery machine head. The model script and the set of balance parameters are combined to drive a dynamic solver to conduct experiments and determine the experimental results. Based on the optimization objective items in the experimental results, a set of balance parameters is selected from the experimental results. The optimization objective items are the objective items used to optimize the balance blocks in the experimental results. The balance blocks are designed based on the set of balance parameters and the spatial position of the embroidery machine head. This technical solution converts the dynamic model of the embroidery machine head into a script form through the model script, facilitating subsequent processing by the dynamic solver and improving the efficiency of dynamic balancing analysis of the embroidery machine head. Furthermore, the model script can include dynamic models of multiple embroidery machine heads, supporting batch dynamic balancing analysis of multiple embroidery machine heads and further improving the efficiency of dynamic balancing analysis.
[0033] In one embodiment, selecting a set of equilibrium parameters from the experimental results based on the optimization objective item in the experimental results includes: S1301. Determine the target value for each candidate parameter group in the test results, wherein the target value includes the statistical value of the optimization target item.
[0034] In this embodiment, the candidate parameter group can be any combination of parameters in the experimental results. The experimental results include multiple candidate parameter groups. The optimal candidate parameter group can be selected based on the optimization objective item in each candidate parameter group. The candidate parameter group can be represented as a row of parameter combinations in the experimental results. The target value can be the statistical value of the optimization objective item in the candidate parameter group. For example, the target value can be the mean, root mean square value, and / or median of the optimization objective item. The target value can be set according to the needs of dynamic balance optimization, or it can be determined according to the number of embroidery machine heads; this invention does not impose any limitations on this.
[0035] Specifically, the optimization objective item in each candidate parameter group is determined, and the statistical value of the optimization objective item is determined as the target value of the corresponding candidate parameter group.
[0036] S1302. Determine the weighted sum of the target values corresponding to each candidate parameter group.
[0037] In this embodiment, the weighted sum can be the sum of the products of each objective value and its corresponding weight. The weights can be pre-assigned weights to each optimization objective item in the experimental results. The weights can be determined based on the business scenario. The business scenario can be the actual application scenario of an embroidery machine head.
[0038] For example, if the vertical vibration of the drive shaft has a more significant impact on the overall machine vibration in the business scenario, the component of the vertical inertial force of the drive shaft can be given the largest weight; if the business scenario indicates that the vibration sensitivity of the embroidery machine varies in different directions, the weight can be allocated according to the reciprocal of the allowable limit inertial force of the drive shaft in each direction; or, if there are pre-set specifications or standards in the business scenario, the target value can be allocated the corresponding weight according to the specifications or standards.
[0039] Specifically, the weights corresponding to the optimization targets are determined based on the business scenario. For each candidate parameter group, the target value of the optimization target in the candidate parameter group is multiplied by the corresponding weight, and the resulting multiplications are accumulated to obtain a weighted sum.
[0040] S1303. The candidate parameter group with the largest weighted sum is determined as the balanced parameter group.
[0041] Specifically, the weighted sum of each candidate parameter group is compared, and the candidate parameter group with the largest weighted sum is determined as the balanced parameter group.
[0042] In one embodiment, the optimization objective includes the vertical inertial force of the drive shaft and the lateral inertial force of the drive shaft, and the objective value includes the root mean square value, minimum value, and / or average value of the optimization objective.
[0043] In this embodiment, the vertical inertial force can be the inertial force with a vertical component along the drive shaft. The lateral inertial force can be the inertial force with a horizontal component along the drive shaft. The vertical and lateral inertial forces can be dynamic components that vary with time and are obtained by a dynamic solver.
[0044] For example, in simulation software, if the axis of the drive shaft is in the X direction, then the vertical inertial force can be the inertial force component along the positive z-axis of the drive shaft, and the lateral inertial force can be the inertial force component along the positive y-axis of the drive shaft.
[0045] Specifically, the optimization target items may include the vertical inertial force of the drive shaft and the lateral inertial force of the drive shaft, and the target value may be the statistical value of the optimization target item, that is, the root mean square value, minimum value and / or average value of the optimization target item.
[0046] In one embodiment, the method is implemented on a co-simulation platform, and the data flow in the co-simulation platform includes: A1. Import the 3D model of the embroidery machine head into the simulation software to obtain the model script.
[0047] In this embodiment, the co-simulation platform can be a platform integrating multiple software programs. For example, the co-simulation platform may integrate simulation software, experimental design software, a dynamics solver, software for importing scripts, and / or software for analyzing or processing experimental results. The three-dimensional model can be a three-dimensional model of an embroidery machine head. The three-dimensional model may include models of multiple embroidery machine heads. The three-dimensional model can be obtained through scanning, and this invention is not limited thereto.
[0048] Specifically, the data flow in the co-simulation platform includes: the 3D model of the embroidery machine head as input, the model script output by the simulation software after processing, and the set of equilibrium parameters generated by the experimental design.
[0049] A2. Input the model script and the equilibrium parameter set generated by the experimental design into the dynamic solver to obtain the equilibrium parameter set.
[0050] Specifically, the data flow in the co-simulation platform includes: after outputting the model script, the model script and the equilibrium parameter set generated by the experimental design are used as inputs, processed in the dynamic solver, and the experimental results are output. The experimental results are then analyzed to obtain the equilibrium parameter set.
[0051] In one embodiment, Figure 4 This is a flowchart of a balance optimization method provided by an embodiment of the present invention. Based on a multi-head dynamic model (i.e., a model script including multiple embroidery machine heads) and a balance parameter set obtained from experimental design, the parameters are input into a dynamic solver for experimentation. The experimental results are determined, and the optimal solution (i.e., the balance parameter set) in the experimental results is determined according to the optimization objective. It is then determined whether the balance parameter set meets the preset indicators. If it does, a dynamic balance optimization scheme is generated based on the balance parameter set, and a balance block is designed based on the dynamic balance optimization scheme.
[0052] Example 2 Figure 5 This is a flowchart of a balancing optimization method provided in Embodiment 2 of the present invention. This embodiment is an optimization based on any of the above embodiments, and mainly includes a detailed description of the process of obtaining the model script. It should be noted that technical details not described in detail in this embodiment can be found in any of the above embodiments. Figure 5 As shown, the method includes: S210. Obtain the 3D model and balance parameter set of the embroidery machine head.
[0053] Specifically, the three-dimensional model of the embroidery machine head is accessed through a specific path via a co-simulation platform. The three-dimensional model is then imported into the co-simulation platform, where an experimental design is performed to generate a set of equilibrium parameters.
[0054] S220. Import the three-dimensional model into simulation software, re-identify the parts in the three-dimensional model, and obtain the head model file. The parts include the dynamic parts in the embroidery machine head.
[0055] In this embodiment, the nose cone model file can be a file that includes identifiers of parts in the 3D model. The nose cone model file can be a text-formatted file. The identifier can be a unique identifier for a part or a mechanism composed of multiple specific parts. For example, the identifier can be the pinyin of the name of a part or the pinyin of the name of a mechanism. The part can be a dynamic part in the 3D model. For example, the part can be a movable part in the 3D model.
[0056] Specifically, the 3D model is imported into the simulation software, only the dynamic parts in the 3D model are kept, the parts are renamed, the obtained identifiers are written into a text file, and the simulation software exports the nose model file.
[0057] S230. Create the fixed points and rotation center points of the part in the simulation software and export them as a node information file.
[0058] In this embodiment, the fixed point can be a part or a mechanism composed of multiple specific parts. No displacement or rotation occurs at the fixed point. The rotation center point can be a rotatable part or a mechanism composed of multiple specific parts. The rotation center point can be located at the mechanical rotation center. The node information file can be a file recording information about the fixed point and the rotation center point. The node information file can be a file in FEM format. The node information file includes, but is not limited to, the coordinates and names of the fixed point and the rotation center point.
[0059] Specifically, in the simulation software, fixed points and rotation center points are created for the part, and the information of the fixed points and rotation center points is exported as a node information file.
[0060] S240. Write the nose cone model file and the node information file into a script file to obtain the model script.
[0061] Specifically, the contents of the nose model file and the node information file are written into the corresponding locations in the script file to obtain the model script.
[0062] S250. Combining the model script and the equilibrium parameter set, drive the dynamics solver to conduct experiments and determine the experimental results.
[0063] S260. Based on the optimization target items in the test results, select a set of balance parameters from the test results, wherein the optimization target items are the target items in the test results used to optimize the balance block.
[0064] S270. Design the balance block according to the balance parameter set and the spatial position of the embroidery machine head.
[0065] The technical solution of this invention involves: acquiring a three-dimensional model of the embroidery machine head; importing the three-dimensional model into simulation software, re-identifying the parts in the three-dimensional model to obtain a machine head model file, wherein the parts include the dynamic parts in the embroidery machine head; creating fixed points and rotation center points of the parts in the simulation software and exporting them as node information files; writing the machine head model file and the node information file into a script file to obtain a model script; combining the model script and the balance parameter set to drive a dynamic solver to conduct experiments and determine the experimental results; selecting a balance parameter set from the experimental results based on the optimization target items in the experimental results, wherein the optimization target items are the target items used to optimize the balance block in the experimental results; and designing the balance block based on the balance parameter set and the spatial position of the embroidery machine head. The technical solution of this invention, by uniformly creating fixed points and rotation center points in simulation software and exporting them as node information files, clarifies the fixed constraint positions of the machine head and the rotation centers of each rotating component, ensuring the consistency of the dynamic model and the uniformity of the coordinate system. By combining the model management capabilities of the simulation software with script files, the dynamic modeling of the multi-head embroidery machine head can be quickly realized, saving dynamic modeling time.
[0066] In one embodiment, writing the nose cone model file and the node information file into a script file includes: S2401. Write the address of the nose cone model file into the script file.
[0067] Specifically, the address of the head unit model file stored in the electronic device is read and written into the corresponding location in the script file.
[0068] S2402. Write the coordinates of the fixed point and the rotation center point in the node information file into the corresponding positions in the script file.
[0069] Specifically, copy the coordinates of the fixed point and rotation center point from the node information file and write the coordinates into the corresponding positions in the script file.
[0070] For example, Figure 6This is a flowchart illustrating a method for obtaining a model script according to an embodiment of the present invention. The 3D model is imported into simulation software for processing. The mechanism, composed of multiple specific parts, is renamed, and a headstock model file is exported. Fixed points and rotation center points (denoted as nodes) of the mechanism are established in the simulation software, and a node information file in FEM format is exported. The address of the headstock model file is written into a script file, and the coordinates of the nodes are copied into the script file to obtain the model script.
[0071] The present invention will be described by way of example below: Existing methods for dynamic balancing analysis and optimization of computerized embroidery machine heads are mostly limited to analyzing local mechanisms of a single head, relying on adjustments to a single structure to achieve dynamic balancing optimization. This approach has a narrow analytical scope, low efficiency, significant randomness, and strong subjectivity, making it difficult to adapt to the dynamic balancing analysis needs of multi-head machine units operating in tandem. This invention proposes a script-based method for building an integrated dynamic model of multi-head computerized embroidery machine heads and improves the technical path for analyzing and optimizing the dynamic balancing of computerized embroidery machine heads. This enables dynamic balancing calculation and optimization control of multi-head machine units operating in embroidery, effectively improving work efficiency and ensuring the accuracy of optimization results.
[0072] like Figure 6 As shown, the 3D model of the embroidery machine head is imported into the simulation software for processing. The coordinate system is adjusted (the drive shaft axis is defined as X-axis, Z-axis as vertical, and Y-axis as lateral). Irrelevant parts (i.e., non-kinematic parts) are deleted, and the parts are renamed to ensure accurate recognition by the dynamics software (i.e., dynamics solver). Fixed points and rotation centers (nodes) of the moving parts are created, and the 3D model is exported in xmt_txt format. The coordinates of the nodes are exported as fem files and opened with a text file. The coordinates are copied into the corresponding marker point positions in the script file and written to the xmt_txt format 3D model file address. The completed script file is then imported into the dynamics software to establish the dynamics model of the embroidery machine head.
[0073] like Figure 4As shown, the method is a multi-objective integrated optimization method based on co-simulation platform and dynamic software. It can build a dynamic platform for the embroidery machine head based on the co-simulation platform and the integrated dynamic software solver, perform Design of Experiments (DOE), drive the analysis script of a specific dynamic solver to execute the analysis, and use the parameters in the output result file (i.e., the experimental results) as the output parameters of the general components in the co-simulation platform to output the experimental results. Then, the optimization objective (i.e., the optimization target item) is set, with the root mean square values of the vertical and lateral inertial forces of the drive shaft of the embroidery machine head structure set as the optimization objective. Through multi-objective analysis, the optimal dynamic model unbalanced mass m0 and centroid coordinates (x0, y0, z0) information are obtained, i.e., the optimal dynamic balance solution. After obtaining the optimal solution for the balance block mass and centroid coordinates, the balance block design can be easily carried out based on this and the space of the machine head, greatly improving the optimization efficiency of the machine head dynamic balance. After completing the design of a single machine head, the technical route can be repeated to continue the dynamic balance analysis and optimization work of multiple machine heads. This can effectively analyze and predict the excitation of the drive shaft under multi-machine head linkage conditions and make improvements. Finally, manual verification can be performed, which involves using dynamic simulation to verify the designed model, ensuring that the performance meets the standards and completing the closed-loop design process.
[0074] Compared with traditional nose dynamics analysis methods, the new method has the following advantages: The overall motion mechanism of the computer-controlled embroidery machine head was considered, as well as the dynamic model of a multi-head embroidery machine head. By combining the model management capabilities of simulation software with script files, the dynamic modeling of the multi-head embroidery machine head can be quickly achieved, saving modeling time. Precise information on the design balance block, including mass, rotation radius, and installation angle, can be obtained. Extensive numerical experiments can be conducted through a co-simulation platform without manual intervention, yielding high accuracy and quickly identifying key influencing factors of dynamic balance, saving analysis and optimization time. The entire process, from experimental design and simulation calculation to result analysis, is streamlined. Structural design is based on the output optimization results, leading to clearer design objectives and reducing the workload of 3D modeling.
[0075] In one example, the data flow in the co-simulation platform includes: designing experiments for the mass and center of mass of the unbalanced mass of the balance block or other drive shafts requiring optimization; writing the experimental design data (i.e., the balance parameter set) into the process file of the dynamic software solver by calling the dynamic solver and running the program to obtain the analysis result file of the current experiment (i.e., the experimental results); introducing a script to write an analysis program to process the dynamic analysis result file, obtaining and outputting the target values such as the root mean square values, minimum values, and average values of the vertical and lateral forces on the drive shaft; and selecting the optimal parameter set according to the set weights. This allows for a very intuitive and efficient evaluation of the experimental results and selection of the ideal experimental group for scheme design and verification.
[0076] Example 3 Figure 7 This is a schematic diagram of a balance optimization device provided in Embodiment 3 of the present invention. Figure 7 As shown, the device includes: The acquisition module 710 is used to acquire a model script and a balance parameter set. The model script includes a script file of at least one dynamic model of an embroidery machine head. The balance parameter set includes parameters of a balance block. The balance block includes a balance block used to balance the embroidery machine head. The determination module 720 is used to combine the model script and the equilibrium parameter set to drive the dynamic solver to conduct experiments and determine the experimental results. The selection module 730 is used to select a set of balance parameters from the test results based on the optimization target items in the test results, wherein the optimization target items are the target items in the test results used to optimize the balance block; Design module 740 is used to design the balance block according to the balance parameter set and the spatial position of the embroidery machine head.
[0077] The technical solution of this invention involves an acquisition module that acquires a model script and a set of balance parameters. The model script includes a script file for the dynamic model of at least one embroidery machine head. The set of balance parameters includes parameters for balance blocks, and the balance blocks include balance blocks used to balance the embroidery machine head. A determination module combines the model script and the set of balance parameters to drive a dynamic solver to conduct experiments and determine the experimental results. A selection module selects a set of balance parameters from the experimental results based on optimization target items, where the optimization target items are the target items used to optimize the balance blocks in the experimental results. A design module designs the balance blocks based on the set of balance parameters and the spatial position of the embroidery machine head. This technical solution converts the dynamic model of the embroidery machine head into a script form through the model script, facilitating subsequent processing by the dynamic solver and improving the efficiency of dynamic balancing analysis of the embroidery machine head. Furthermore, the model script can include dynamic models of multiple embroidery machine heads, supporting batch dynamic balancing analysis of multiple embroidery machine heads and further improving the efficiency of dynamic balancing analysis.
[0078] In one embodiment, the acquisition module 710 further includes: The acquisition unit is used to acquire the three-dimensional model of the embroidery machine head; The identification unit is used to import the three-dimensional model into the simulation software, re-identify the parts in the three-dimensional model, and obtain the head model file, wherein the parts include the dynamic parts in the embroidery machine head; A creation unit is used to create the fixed points and rotation center points of the part in the simulation software and export them as a node information file; The writing unit is used to write the head model file and the node information file into a script file to obtain the model script.
[0079] In one embodiment, the writing unit is specifically used for: Write the address of the nose cone model file into the script file; Write the coordinates of the fixed point and the rotation center point from the node information file into the corresponding positions in the script file.
[0080] In one embodiment, module 730 is selected and is specifically used for: Determine the target value for each candidate parameter group in the experimental results, wherein the target value includes the statistical value of the optimization objective item; Determine the weighted sum of the target values corresponding to each of the candidate parameter groups; The candidate parameter group with the largest weighted sum is determined as the balanced parameter group.
[0081] In one embodiment, the optimization objective includes the vertical inertial force of the drive shaft and the lateral inertial force of the drive shaft, and the objective value includes the root mean square value, minimum value, and / or average value of the optimization objective.
[0082] In one embodiment, the method is implemented on a co-simulation platform, and the data flow in the co-simulation platform includes: The three-dimensional model of the embroidery machine head is imported into the simulation software as input to obtain the model script; The model script and the equilibrium parameter set generated by the experimental design are input into the dynamic solver to obtain the equilibrium parameter set.
[0083] The balance optimization device provided in this embodiment of the invention can execute a balance optimization method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0084] Example 4 Figure 8A schematic diagram of an electronic device that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0085] like Figure 8 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0086] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0087] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the methods proposed in this invention.
[0088] In some embodiments, the method proposed in this invention can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the method proposed in this invention by any other suitable means (e.g., by means of firmware).
[0089] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard parts (ASSPs), systems-on-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0090] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0091] In the context of this invention, a computer-readable storage medium stores computer instructions that are used to cause a processor to execute and implement the method provided by this invention.
[0092] The present invention also provides a computer program product comprising a computer program that, when executed by a processor, implements the method provided according to embodiments of the present invention.
[0093] Computer-readable storage media can be tangible media that may contain or store computer programs for use by or in conjunction with an instruction execution system, apparatus, or device. Computer-readable storage media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0094] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device for displaying information to the user, such as a cathode ray tube (CRT) or a liquid crystal display (LCD); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0095] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0096] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system. It addresses the shortcomings of traditional physical hosts and Virtual Private Server (VPS) services, such as high management difficulty and weak business scalability.
[0097] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0098] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A balance optimization method, characterized in that, include: Obtain a model script and a set of balance parameters. The model script includes a script file for at least one dynamic model of an embroidery machine head. The set of balance parameters includes parameters for balance blocks, and the balance blocks include balance blocks used to balance the embroidery machine head. By combining the model script and the equilibrium parameter set, the dynamics solver is driven to conduct experiments and determine the experimental results; Based on the optimization objective items in the test results, a set of balance parameters is selected from the test results, wherein the optimization objective items are the objective items in the test results used to optimize the balance block; The balance block is designed based on the balance parameter set and the spatial position of the embroidery machine head.
2. The method according to claim 1, characterized in that, The script for obtaining the model includes: Obtain a 3D model of the embroidery machine head; The three-dimensional model is imported into simulation software, and the parts in the three-dimensional model are re-identified to obtain the head model file. The parts include the dynamic parts in the embroidery machine head. The fixed points and rotation center points of the part are created in the simulation software and exported as a node information file; Write the nose cone model file and the node information file into a script file to obtain the model script.
3. The method according to claim 2, characterized in that, The step of writing the nose cone model file and the node information file into the script file includes: Write the address of the nose cone model file into the script file; Write the coordinates of the fixed point and the rotation center point from the node information file into the corresponding positions in the script file.
4. The method according to claim 1, characterized in that, The step of selecting a set of equilibrium parameters from the experimental results based on the optimization objective item in the experimental results includes: Determine the target value for each candidate parameter group in the experimental results, wherein the target value includes the statistical value of the optimization objective item; Determine the weighted sum of the target values corresponding to each of the candidate parameter groups; The candidate parameter group with the largest weighted sum is determined as the balanced parameter group.
5. The method according to claim 4, characterized in that, The optimization objective includes the vertical inertial force of the drive shaft and the lateral inertial force of the drive shaft, and the objective value includes the root mean square value, minimum value and / or average value of the optimization objective.
6. The method according to any one of claims 1-5, characterized in that, The method is implemented on a co-simulation platform, and the data flow in the co-simulation platform includes: The three-dimensional model of the embroidery machine head is imported into the simulation software as input to obtain the model script; The model script and the equilibrium parameter set generated by the experimental design are input into the dynamic solver to obtain the equilibrium parameter set.
7. A balancing optimization device, characterized in that, include: An acquisition module is used to acquire a model script and a set of balance parameters. The model script includes a script file of at least one dynamic model of an embroidery machine head. The set of balance parameters includes parameters of balance blocks, and the balance blocks include balance blocks used to balance the embroidery machine head. The determination module is used to combine the model script and the equilibrium parameter set to drive the dynamic solver to conduct experiments and determine the experimental results. The selection module is used to select a set of balance parameters from the test results based on the optimization target items in the test results, wherein the optimization target items are the target items in the test results used to optimize the balance block; The design module is used to design the balance block based on the balance parameter set and the spatial position of the embroidery machine head.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the method of any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method according to any one of claims 1-6.