An optimization method for medium and high speed cam mechanisms
By using polynomial line type and Fourier line type piecewise curve models combined with ant colony algorithm to optimize the motion law of the cam mechanism, the problem of insufficient single type optimization in the existing technology is solved, and higher motion law fit and control accuracy are achieved. , reducing peak acceleration and jump.
Patent Information
- Application Number
- CN202111494510.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-12-08
AI Technical Summary
Existing cam mechanism optimization technology is limited to parameter optimization of a single type of curve, resulting in insufficient local fit of the motion law, control accuracy and force conditions that are not optimal, and depends on the description method of the follower's motion law, and the optimization effect Not significant enough.
A segmented curve model composed of polynomial line type and Fourier line type is used to describe the motion law of the cam mechanism, and is optimized through the ant colony algorithm, adaptively adjusting the curve parameters and combination methods, and transforming it into an optimal passing point selection problem to achieve optimization.
It improves the fit between the curve characteristics of the motion law and the motion characteristics of the follower, and reduces the peak acceleration and overall jump. The optimization process does not rely on design experience, is fast, has stable effects, and has the advantage of parallel computing.
Smart Images

Figure CN114398727B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of mechanical design, and in particular to an optimization method for a medium- and high-speed cam mechanism. Background Art
[0002] In the field of mechanical manufacturing, generating periodic motion that meets timing requirements is a common and basic design requirement. There are two methods to generate periodic motion that meets timing requirements: electrical control method and cam mechanism method. Compared with the electrical control method, the cam mechanism method has good synchronization and reliability, and low manufacturing cost, so the cam mechanism is widely used in mechanical manufacturing. High control accuracy, small peak driving force and long service life are the core demands of cam mechanism design. Therefore, the optimization of the cam mechanism motion law curve is the basic technology for continuous innovation of mechanical manufacturing enterprises.
[0003] In the prior art, most of the general cam mechanism optimization technologies are limited to the parameter optimization of a single type of curve and the algorithm improvement of problem solving, which is easily limited by the overall characteristics of the curve. Although the curve characteristics of the single-line cam mechanism follower motion law are highly consistent with the expected motion characteristics of the follower most of the time, the local consistency between the two is insufficient, which easily leads to the cam mechanism's operating speed, control accuracy, and the force conditions between the cam and the follower not reaching the optimal state. In addition, although the algorithm improvement of problem solving can optimize the cam mechanism's operating conditions to a certain extent, it is highly dependent on the quality of the description method of the cam mechanism follower motion law, and the optimization effect is often not significant enough. Summary of the invention
[0004] The purpose of the present invention is to provide an optimization method for a medium-to-high speed cam mechanism to solve one or more technical problems existing in the prior art and at least provide a beneficial choice or create conditions.
[0005] The solution of the present invention to solve the technical problem is to provide an optimization method for a medium-high speed cam mechanism, which is applied to the lift or return part of the motion law of the medium-high speed cam mechanism, wherein the medium-high speed range of the cam mechanism is 30-1000r / min, and includes:
[0006] According to the expected motion control requirements, M functional constraints are obtained, and a solution set space is generated through the M functional constraints;
[0007] A polynomial line type and a Fourier line type are used to form a piecewise curve model, and the motion law of the follower of the cam mechanism is described by the piecewise curve model;
[0008] According to the solution set space, the motion law of the follower of the cam mechanism is optimized by using an ant colony algorithm;
[0009] Determine the number of iterations that the ant colony algorithm satisfies, and output the optimal motion law of the follower of the cam mechanism.
[0010] Further, generating a solution set space through the M functional constraints specifically includes:
[0011] Constructing a polynomial cam mechanism follower motion law curve according to the M functional constraints;
[0012] The polynomial cam mechanism follower motion law curve is moved up and down by Z optimization units respectively, and the first area is abandoned to construct the second area;
[0013] In the second area, displacement points are uniformly selected at a certain scale to form an advantage-seeking set.
[0014] Further, the optimizing the motion law of the follower of the cam mechanism by using an ant colony algorithm according to the solution space specifically includes:
[0015] Selecting an optimal displacement point from the advantage-seeking set, forming an optimal displacement point set according to the selected optimal displacement points, and selecting each segmented curve description method through the segmented curve model;
[0016] Generate a walking path by using the optimal displacement point set and the description methods of each segmented curve, and optimize the motion law of the follower of the cam mechanism according to the walking path;
[0017] Under medium and high speed operating conditions, the performance requirements of the cam mechanism are obtained, and an evaluation model is established according to the performance requirements;
[0018] Inputting the optimized cam mechanism follower motion law into the evaluation model to obtain a score value of the optimized cam mechanism follower motion law;
[0019] The optimal walking path of this generation is saved, and pheromones are added to the set of advantage-seeking points and the set of description modes of each segmented curve according to the score value.
[0020] Further, the generating of the walking path by using the optimal displacement point set and the description of each segmented curve, and optimizing the motion law of the cam mechanism follower according to the walking path specifically include:
[0021] Generate the walking path of each ant by using the optimal displacement point set and the segmented curve description method;
[0022] Substituting the M functional constraints and the walking path of each ant into the piecewise curve model to obtain the motion law of the follower of the cam mechanism;
[0023] According to the expected motion control requirements, the restriction conditions are obtained, and the motion laws of the cam mechanism follower that do not meet the restriction conditions are eliminated to obtain the optimized motion law of the cam mechanism follower.
[0024] Furthermore, the analytical expression of the piecewise curve model includes: polynomial linear piecewise basis function, Fourier linear piecewise basis function, unit displacement function of polynomial linear piecewise and unit displacement function of Fourier linear piecewise.
[0025] Furthermore, the method for solving the unit displacement function of the Fourier linear segmentation includes:
[0026] The angular velocity ω value in the unit displacement function of the Fourier linear segment is given;
[0027] Input the given angular velocity ω value into the unit displacement function of the Fourier linear segmentation to obtain the corresponding remaining parameters to be determined and the jump deviation value of the corresponding initial point;
[0028] When all given angular velocity ω values obtain the corresponding remaining parameters to be determined and the corresponding jump deviation value, the optimal angular velocity ω value and the corresponding remaining parameters to be determined are output.
[0029] Furthermore, the method for solving the unit displacement function of the Fourier linear segment also includes: when the jump deviation value of the corresponding initial point is greater than or equal to 1, the segmented curve where the initial point is located is described by the unit displacement function of the polynomial linear segment.
[0030] Furthermore, each segment of the segmented curve model is limited by a linearly independent equality constraint condition, and the linearly independent equality constraint condition includes: the M functional constraints and the walking path.
[0031] Furthermore, the function value, first-order derivative value and second-order derivative value of the initial point of each segment of the segmented curve model are equal to the function value, first-order derivative value and second-order derivative value of the end point of the previous segment;
[0032] The deviation value between the third-order derivative value of the initial point of each segment of the segmented curve model and the third-order derivative value of the end point of the previous segment is less than 1.
[0033] The beneficial effects of the present invention are as follows: the present invention adopts a segmented curve composed of a polynomial line type and a Fourier line type to describe the motion law of the cam mechanism, so that the motion law description model has richer curve characteristics and flexibility. Compared with the single type of motion law description model in the prior art, the segmented curve model can adaptively adjust the curve parameters and curve combination methods according to the motion characteristics of the cam mechanism follower, improve the fit between the curve characteristics and the motion characteristics of the follower, and make the optimized cam mechanism have lower peak acceleration and overall jump. The curve parameter optimization problem is converted into an optimal waypoint selection problem, and the optimization problem is solved in combination with the ant colony algorithm. The cluster-type intelligent optimization algorithm is used to solve the optimization problem of the motion law of the cam mechanism follower, so that the solution process has the advantages of not relying on design experience, fast solution speed, stable solution effect and parallel calculation. This optimization method can also be used to optimize the design of cam mechanisms that meet other performance requirements by changing the evaluation model, providing a highly portable, simple and efficient cam mechanism motion law optimization method. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a flow chart of an optimization method for a medium-to-high speed cam mechanism provided by an embodiment of the present invention;
[0035] Figure 2 is a flow chart of an optimization method for a medium-to-high speed cam mechanism provided by another embodiment of the present invention;
[0036] Figure 3 is a flow chart of an optimization method for a medium-to-high speed cam mechanism provided by another embodiment of the present invention;
[0037] Figure 4 is a flow chart of an optimization method for a medium-to-high speed cam mechanism provided by another embodiment of the present invention;
[0038] Figure 5 The present invention provides a flow chart for solving the undetermined parameters of the unit displacement function of Fourier segmentation for a medium-to-high speed cam mechanism. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and cannot be understood as limiting the present invention.
[0040] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0041] In the description of the present invention, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution.
[0042] Since the motion law of the far rest and near rest stages is a horizontal straight line, the optimization design in the optimization method for medium and high speed cam mechanisms only targets the lift part or return part in the motion law, wherein the medium and high speed value range of the cam mechanism is 30-1000r / min.
[0043] Reference Figure 1 In some embodiments of the present invention, an optimization method for a medium-to-high speed cam mechanism includes:
[0044] Step S100, acquiring M functional constraints according to expected motion control requirements, and generating a solution set space through the M functional constraints;
[0045] In this embodiment, M functional constraints are obtained according to the control requirements of the expected cam mechanism motion, and a solution set space is constructed according to the M functional constraints.
[0046] It should be understood by those skilled in the art that the M functional constraints may be displacement values, velocity values, acceleration values, and jump values that a given cam mechanism follower needs to satisfy. The functional constraints may also be other motion parameters that a given cam mechanism follower needs to satisfy, which are not specifically limited in this embodiment and will not be described in detail.
[0047] Step S200, using a polynomial line type and a Fourier line type to form a piecewise curve model, and using the piecewise curve model to describe the motion law of the follower of the cam mechanism;
[0048] In this embodiment, two line types are used to form a piecewise curve model, and the piecewise curve model is used to describe the motion law of the follower of the cam mechanism.
[0049] It should be noted that in this embodiment, the polynomial line type is a seventh-order polynomial line type, and a piecewise curve model composed of a seventh-order polynomial line type and a Fourier line type is used to describe the motion law of the cam mechanism follower. In this embodiment, other polynomial line types can be used for description, which will not be repeated here.
[0050] Step S300, optimizing the motion law of the follower of the cam mechanism by using an ant colony algorithm according to the solution set space;
[0051] Step S400, determining that the ant colony algorithm satisfies the number of iterations, and outputting the optimal motion law of the follower of the cam mechanism.
[0052] In this embodiment, according to the expected motion control requirements, M functional constraints of the cam mechanism follower are obtained, and a solution set space is generated through the obtained M functional constraints. A segmented curve model is composed of a seventh-order polynomial line type and a Fourier line type, and the segmented curve model is used to describe the motion law of the cam mechanism follower. According to the solution set space, the motion law of the cam mechanism follower described by the segmented curve model composed of the seventh-order polynomial line type and the Fourier line type is optimized by the ant colony algorithm. After the cyclic optimization, it is determined that when the ant colony algorithm meets the number of iterations, the optimal motion law of the cam mechanism follower is output. Compared with the single type of motion law description model used in the prior art, the segmented curve model can adaptively adjust the curve parameters and the curve combination method according to the motion characteristics of the cam mechanism follower, improve the fit between the curve characteristics and the motion characteristics of the follower, and make the optimized cam mechanism have lower peak acceleration and overall jump. In addition, the curve parameter optimization problem is transformed into the optimal path point selection problem, and the ant colony algorithm is used to solve the optimization problem, so that the solution process has the advantages of no dependence on design experience, fast solution speed, stable solution effect and parallel computing.
[0053] Reference Figure 2 , Figure 2 yes Figure 1 FIG. 1 is a flowchart of an embodiment of a detailed process of step S100 in FIG. 1 , wherein step S100 includes but is not limited to step S110, step S120 and step S130. In some embodiments of the present invention, generating a solution set space through the M functional constraints specifically includes:
[0054] Step S110, constructing a polynomial cam mechanism follower motion law curve according to M functional constraints;
[0055] In this embodiment, the given M functional constraints are used to solve the analytical expression of the motion law of the polynomial cam mechanism follower, and the polynomial cam mechanism follower motion law curve is drawn according to the analytical expression of the motion law of the polynomial cam mechanism follower.
[0056] Among them, the analytical formula of the motion law of the follower of the polynomial cam mechanism is:
[0057] ,
[0058] It should be noted that the analytical expression of the motion law of the follower of the polynomial cam mechanism is is the cam angle value, H represents the stroke height, which can be the amplitude of the polynomial cam mechanism follower motion law curve or the maximum displacement value, a i is the coefficient to be determined; The order of depends on the number of linearly independent constraints in the M functional constraints. The given M functional constraints are used to solve the above polynomial cam mechanism follower motion law analytical expression, so as to construct the polynomial cam mechanism follower motion law curve according to the analytical expression.
[0059] For example, when the M functional constraints are velocity value, acceleration value and jump value, the above functional constraints are used to solve the analytical expression of the motion law of the follower of the polynomial cam mechanism, and the coefficient a is to be determined. i The solution is as follows:
[0060] The analytical formula of the polynomial follower motion law speed is:
[0061] ,
[0062] in, δ is the cam spindle speed. According to the polynomial follower motion law velocity analytical expression, the acceleration analytical expression and the jump analytical expression are also obtained. The remaining analytical expressions are not repeated here. According to the above analytical expressions, the unknown coefficients are obtained through matrix transformation, so as to solve the polynomial cam mechanism follower motion law analytical expression and draw the polynomial cam mechanism follower motion law curve.
[0063] Step S120, the polynomial cam mechanism follower motion law curve is moved up and down by Z optimization units respectively, and the first area is discarded to construct the second area;
[0064] In this embodiment, the polynomial cam mechanism follower motion law curve is taken as the center, the curve is moved up or down by Z optimization units, the first area is abandoned, and the second area is constructed by the upwardly moved curve, the downwardly moved curve and the abandoned first area. Among them, the value range of Z is the optimization range, and its optimization range can be set to: zero to stroke height, that is, the value range of Z is: zero to stroke height; the first area is: the area where the displacement value is less than zero and the displacement value is greater than the stroke height, and the second area is the feasible domain of the polynomial cam mechanism follower motion law curve that meets the functional constraints. In other words, taking the polynomial cam mechanism follower motion law curve as the center, the curve is moved up or down by Z units, the value range of Z is zero to stroke height, and the area where the displacement value is less than zero and the displacement value is greater than the stroke height is abandoned to construct a feasible domain.
[0065] Step S130, uniformly selecting displacement points at a certain scale in the second area to form an advantage-seeking set;
[0066] In this embodiment, displacement points are uniformly selected at a certain scale in the second region to form an optimal point set. That is, for each angle value, a certain number of uniformly distributed displacement value points are selected in the feasible domain to form an optimal point set. If fine optimization is required, more points are selected, and if rough optimization is required, fewer points are selected. However, the larger the number of points, the larger the optional space for solving the problem, and the more difficult it is to solve. Therefore, the recommended value of the number of points is 20 to 100 displacement value points.
[0067] In some embodiments of the present invention, a polynomial cam mechanism follower motion law curve is constructed using M functional constraints of the cam mechanism, and a feasible domain is generated around the curve under certain conditions. Displacement points are uniformly taken from the feasible domain at a certain scale to form an optimal search set, thereby providing a solution set space for the ant colony algorithm to optimize the motion law of the cam mechanism follower.
[0068] Reference Figure 3 , Figure 3 yes Figure 1 The flowchart of an embodiment of the detailed process of step S300 in the embodiment of the present invention includes but is not limited to step S310, step S320, step S330, step S340 and step S350. In some embodiments of the present invention, according to the solution set space, the ant colony algorithm is used to optimize the motion law of the cam mechanism follower, which specifically includes:
[0069] Step S310, selecting an optimal displacement point from the advantage-seeking set, forming an optimal displacement point set according to the selected optimal displacement points, and selecting each piecewise curve description method through the piecewise curve model;
[0070] In this embodiment, the optimal displacement point is randomly selected from the advantage set, and at most one optimal displacement point is selected for each corner, and the selected optimal displacement points constitute the optimal displacement point set. When the movement time occupied by each segment of the curve is equal, and the last segment of the curve does not require an optimal displacement point, the optimal displacement points can be evenly distributed in the feasible domain outside the last segment of the curve. The segmented curve model provides a selectable description method, and each segment of the curve independently selects a suitable description method. Each segmented curve can be selected as a polynomial linear description method or a Fourier linear description method.
[0071] It should be noted that the calculation formula for the optimal number of displacement points λ is:
[0072] λ=I (number of segments of the segmented curve model)×8-M (functional constraint)-(I-1)×4, the selection of the optimal displacement point and the selection of the description method of each segmented curve are carried out simultaneously.
[0073] Step S320, generating a walking path by using the optimal displacement point set and each segmented curve description method, and optimizing the motion law of the cam mechanism follower according to the walking path;
[0074] In this embodiment, a travel path is generated according to the optimal displacement point set provided by the solution set space and the description of each segmented curve provided by the segmented curve model, and the motion law of the follower of the cam mechanism is optimized according to the travel path.
[0075] Step S330, obtaining the performance requirements of the cam mechanism under medium and high speed operating conditions, and establishing an evaluation model according to the performance requirements;
[0076] In this embodiment, when the cam mechanism is operating at a medium to high speed, the performance requirements of the cam mechanism are obtained, and an overall jump minimization evaluation model is established according to the performance requirements of the cam mechanism.
[0077] Under the high-speed operation condition of the cam mechanism, the performance requirements include: peak acceleration, follower motion control accuracy and service life. In other words, the motion law of the cam mechanism has the advantages of accurately passing through the expected control point, small peak acceleration and small acceleration fluctuation. During the operation of the cam mechanism, the peak acceleration and acceleration fluctuation of the follower can be described as the minimization problem of the area between the jump image of the follower motion law within the cycle and the time axis, that is, the overall jump minimization problem, and the overall jump minimization evaluation model is established. Considering the case where the jump value is less than zero, the objective function can be described as the minimum integral of the square of the jump within the motion cycle. The analytical expression of the objective function is:
[0078] ,
[0079] Those skilled in the art will appreciate that the overall jump minimization model is used in this embodiment, and other evaluation models may be selected and will not be described in detail in this embodiment. Therefore, the type of evaluation model is not a limitation of this implementation.
[0080] Step S340, inputting the optimized cam mechanism follower motion law into the evaluation model to obtain a score value of the optimized cam mechanism follower motion law;
[0081] Step S350, save the optimal walking path of this generation, and add pheromones to the set of advantage search points and the set of segment curve description methods according to the score value.
[0082] In this embodiment, pheromones are added to the advantage-seeking set and the curve description method set according to the score value. The paths with low scores release more pheromones and accumulate faster, while the paths with low scores accumulate slower. Moreover, pheromones will evaporate to a certain extent over time. As pheromones accumulate, the ant colony will tend to choose the path with high pheromone concentration. After multiple cycles of optimization, the number of iterations is reached, and the path with the highest pheromone concentration can be output, thereby outputting the motion law of the cam mechanism follower with the highest pheromone concentration. When the rotation angle is When the ant chooses the displacement point y r The probability is:
[0083] ,
[0084] in, and Respectively represent the turning angle Time r The pheromone concentration and expected value of the point, the initial values of the pheromone concentration matrix and the expected value matrix are set to 1 matrix. α and β represent the pheromone heuristic factor and the expected value heuristic factor respectively, the pheromone heuristic factor is set to 1, and the expected heuristic factor is set to 2; R represents the turning angle The number of optional displacement value points.
[0085] Pheromones are updated according to the following formula:
[0086] ,
[0087] Among them, ρ represents the pheromone volatilization coefficient of each iteration, and the pheromone evaporation coefficient is set to 0.01. In order to avoid the ant colony algorithm search from stagnating too early and enable the ants to search for new solutions as much as possible in the initial stage, the top 50 ants in each generation of ants are selected to add different amounts of pheromones, with more pheromones added to the top ants and no pheromones added to the ants ranked after 50.
[0088] In some embodiments of the present invention, a walking path is generated by an optimal displacement point set and each segmented curve description method, and the motion law of the cam mechanism follower is optimized according to the walking path to obtain the optimized motion law of the cam mechanism follower. Under the condition of high-speed operation of the cam mechanism, the performance requirements of the cam mechanism are obtained, and the overall jump minimization evaluation model of the cam mechanism is obtained according to the performance requirements. The optimized motion law of the cam mechanism follower is substituted into the overall jump minimization evaluation model to obtain the score value of the optimized motion law of the cam mechanism follower. According to the score value, the optimal walking path of this generation is saved, and pheromones are added to the set of the optimal search set and the description method of each segment curve in the solution set space. More information is obtained for the top-ranked walking path, and no pheromones are added to the lower-ranked path. As the pheromones accumulate, the ant colony tends to select the path with high pheromone concentration. After multiple cycles of optimization, the number of iterations is reached, and the path with the highest pheromone concentration can be output, thereby outputting the optimal motion law of the cam mechanism follower.
[0089] The ant colony algorithm is used to optimize the motion law of the cam mechanism follower, which has the advantages of no reliance on design experience, fast solution speed, stable solution effect and parallel calculation in the solution process. An overall jump minimization evaluation model is established, and the walking path with a high evaluation value has a lower peak acceleration and overall jump, that is, it can reduce the surface contact force and contact fluctuation between the cam mechanism and the roller, and at the same time improve the control accuracy and service life of the cam mechanism follower movement.
[0090] Reference Figure 4 , in some embodiments of the present invention, Figure 4 yes Figure 3 The flowchart of an embodiment of the detailed process of step S310 in the embodiment of the invention includes but is not limited to step S311, step S312 and step S313. The walking path is generated by the optimal displacement point set and each segmented curve description method, and the movement law of the cam mechanism follower is optimized according to the walking path, which specifically includes:
[0091] Step S311, generating a walking path for each ant by using an optimal displacement point set and each segmented curve description method;
[0092] In this embodiment, the walking path of the ant is described as the description of the optimal displacement points and segmented curves selected by the ant from the feasible domain, and the walking path of each ant is randomly generated. The walking path of the ant can be regarded as the optimization constraint on the motion law of the follower of the cam mechanism, and each walking path contains N optimization constraints.
[0093] It should be noted that the walking path is the number of optimal displacement points plus the number of segments of the segmented curve, that is, N (optimization constraint) = λ (the number of optimal displacement points) + I (the number of segments of the segmented curve).
[0094] Step S312: Substitute the M functional constraints and the walking path of each ant into the piecewise curve model to obtain the motion law of the follower of the cam mechanism.
[0095] In this embodiment, M functional constraints and the walking path of each ant are substituted into a piecewise curve model composed of a seventh-order polynomial line type and a Fourier line type, and the piecewise curve model at this time is used to describe the motion law of the cam mechanism follower.
[0096] Step S313, according to the expected motion control requirements, the restriction conditions are obtained, and the motion laws of the cam mechanism follower that do not meet the restriction conditions are eliminated to obtain the optimized motion law of the cam mechanism follower.
[0097] In this embodiment, according to the expected motion control requirements, the obtained constraint conditions can be the constraint conditions that the follower motion law optimization space should meet, such as: allowable pressure angle limitation or cam size limitation. When the obtained cam mechanism follower motion law does not meet the constraint conditions of the expected motion control requirements, the cam mechanism follower motion law that does not meet the constraint conditions is eliminated, and the remaining cam mechanism follower motion laws are input into the overall jump minimization evaluation model, and the remaining cam mechanism follower motion laws are scored.
[0098] In some embodiments of the present invention, the M functional constraints and the walking path of each ant are substituted into a segmented curve model composed of a seventh-order polynomial line type and a Fourier line type, and the motion law of the cam mechanism follower is described by the model, and the motion law of the cam mechanism follower is optimized by an ant colony algorithm to obtain the optimized motion law of the cam mechanism follower, which is substituted into the overall jump minimization evaluation model, and after multiple cycles of optimization, the number of iterations is determined to be satisfied, and the optimal motion law of the cam mechanism follower is output. The present invention uses a segmented curve composed of a seventh-order polynomial line type and a Fourier line type to describe the motion law of the cam mechanism, so that the motion law description model has richer curve characteristics and flexibility. The ant colony algorithm is combined to achieve the solution of the optimization problem, so that the solution process has the advantages of not relying on design experience, fast solution speed, stable solution effect and parallel calculation. This optimization method can also be used to optimize the design of cam mechanisms that meet other performance requirements by changing the evaluation model, providing a highly portable, simple and efficient cam mechanism motion law optimization method.
[0099] It should be noted that when the ant colony algorithm does not meet the number of iterations, the optimal walking path of the previous generation will replace the walking path of the first ant of this generation. In other words, when the ant colony algorithm is completed once and the walking path with the highest pheromone concentration is obtained, but the number of iterations has not been reached, the optimal path of the previous generation will be inherited to the path generation of this generation, and the walking path of the first ant of this generation will be replaced by the optimal walking path of the previous generation to complete the information update.
[0100] The number of iterations is usually set to 800 times, and the number of ants in the ant colony is usually set to: λ (the number of optimal displacement points)×100. The number of iterations is not specifically limited in this embodiment.
[0101] In some embodiments of the present invention, the analytical expression of the piecewise curve model includes: polynomial linear piecewise basis function, Fourier linear piecewise basis function, polynomial linear piecewise unit displacement function and Fourier linear piecewise unit displacement function. In other words, the analytical expression of the piecewise curve model includes: seventh-order polynomial piecewise basis function, Fourier piecewise basis function, seventh-order polynomial piecewise unit displacement function and Fourier piecewise unit displacement function. Then the analytical expression of the piecewise curve model is:
[0102] ,
[0103] Where I represents the number of curve segments, Indicates that the follower of the cam mechanism rotates at an angle of The displacement function when represents the seventh-order polynomial piecewise basis function of the i-th segment curve, represents the Fourier piecewise basis function of the i-th segment of the curve, It means that the i-th curve is when the cam rotates at an angle of The seventh-order polynomial piecewise unit displacement function when , It means that the i-th curve is when the cam rotates at an angle of The unit displacement function of the Fourier segment at .
[0104] It should be noted that the rule for selecting the number of curve segments I follows that the curve performance solution result is no longer optimized when the number of curve segments is increased; the objective function of the above-mentioned overall jump minimization evaluation model can be described by: polynomial linear segment basis function, Fourier linear segment basis function, polynomial linear segment unit displacement function and Fourier linear segment unit displacement function. The objective function can be approximated as the cumulative sum of J minimal segments:
[0105]
[0106] In some embodiments of the present invention, each segment of the segmented curve model is limited by linear independent equation constraints, and the linear independent equation constraints include: M functional constraints and N optimization constraints. Each segment of the segmented curve is limited by linear independent equation constraints. When the constraints are insufficient, the missing constraints are supplemented by the optimization constraints.
[0107] Reference Figure 5 In some embodiments of the present invention, the method for solving the unit displacement function of the Fourier linear segmentation includes:
[0108] The angular velocity ω value in the unit displacement function of the Fourier linear segment is given; and the given angular velocity ω value is input into the unit displacement function of the Fourier linear segment to obtain the corresponding remaining parameters to be determined and the corresponding jump deviation value of the initial point; when all the given angular velocity ω values obtain the corresponding remaining parameters to be determined and the corresponding jump deviation value, the optimal angular velocity ω value and the corresponding remaining parameters to be determined are output.
[0109] In other words, the analytical expression of the unit displacement function of Fourier segmentation is:
[0110]
[0111] Α2=[a0a1b1....b3] 1×7
[0112] , where the undetermined parameters in the analytical expression are ω, a0, a1, b1, a2, b2, a3, b3. In order to facilitate the solution of the undetermined parameters in the Fourier segmented unit displacement function, the undetermined parameter ω value is given, and the given ω value is substituted into the Fourier segmented unit displacement function. The corresponding undetermined parameters a0, a1, b1, a2, b2, a3, b3 are solved by matrix transformation, and then the jump deviation value at the initial point of the segmented curve where the given ω value is located is calculated. After all the corresponding undetermined parameters and corresponding jump deviation values of the given ω value are solved, the optimal ω value and the corresponding undetermined parameters are output. When the ω value at this time is not the last ω value, when the jump deviation is small, the ω value and the corresponding undetermined parameters are recorded at this time, otherwise the undetermined parameters are not recorded. For example: given the undetermined parameter ω value, 100 ω values are uniformly generated in the interval [0,10] i value, where i = 1, 2, 3, ..., 100, so that the parameters can be solved by matrix transformation, and the ω with the smallest jump value deviation at the initial point of the segment is taken i The value is required, through this ω i The other design parameters a0, a1, b1, a2, b2, a3, b3 and the unknown parameters under the constraints of the linearly independent equations assumed to be this value are obtained.
[0113] It should be noted that when the jump deviation value of the corresponding initial point is greater than or equal to 1, the segmented curve where the initial point is located is described by the unit displacement function of the polynomial linear segment. In other words, when the jump deviation of the obtained Fourier curve is greater than or equal to 1, the segmented curve is described by the unit displacement function of the seventh-order polynomial linear segment.
[0114] In some embodiments of the present invention, the function value, first-order derivative value and second-order derivative value of the initial point of each segment of the segmented curve model are equal to the function value, first-order derivative value and second-order derivative value of the end point of the previous segment; the deviation value between the third-order derivative value of the initial point of each segment of the segmented curve model and the third-order derivative value of the end point of the previous segment is less than 1.
[0115] In the present invention, according to the expected motion control requirements of the cam structure, M functional constraints are obtained, a polynomial cam mechanism follower motion law curve is constructed through the M functional constraints, and a second region is constructed according to the polynomial cam mechanism follower motion law curve, and an advantage-seeking set is formed according to the second region;
[0116] According to the solution set space constructed by M functional constraints, that is, the second region and the optimal search set constructed by M functional constraints, the ant colony algorithm is used to set parameters to optimize the description of the motion law of the cam mechanism follower using the piecewise curve model composed of the seventh-order polynomial line type and the Fourier line type, select the optimal displacement point set from the optimal search set and select each piecewise curve description method from the piecewise curve model, generate the walking path of each ant through the optimal displacement point set and each piecewise curve description method, substitute the M functional constraints and the walking path of each ant into the piecewise curve model composed of the seventh-order polynomial line type and the Fourier line type, obtain the motion law of the cam mechanism follower, obtain the restriction conditions according to the expected motion control requirements of the cam structure, and eliminate the motion law of the cam mechanism follower that does not meet the restriction conditions;
[0117] The remaining motion laws of the cam mechanism follower are input into the evaluation model, that is, the optimized motion law of the cam mechanism follower is input into the evaluation model to obtain the corresponding score value, and the optimal walking path of this generation is saved. According to the score value, pheromones are added to the advantage set and each segmented curve description method until the ant colony algorithm meets the number of iterations and outputs the optimal motion law of the cam mechanism follower.
[0118] The preferred embodiments of the present invention are described in detail above, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. An optimization method for a medium-high speed cam mechanism, applied to the lift or return part of the motion law of the medium-high speed cam mechanism, wherein the medium-high speed range of the cam mechanism is 30-1000r / min, and characterized in that: include: According to the expected motion control requirements, M functional constraints are obtained, and a solution set space is generated through the M functional constraints; A polynomial line type and a Fourier line type are used to form a piecewise curve model, and the motion law of the follower of the cam mechanism is described by the piecewise curve model; According to the solution set space, the motion law of the follower of the cam mechanism is optimized by using an ant colony algorithm; Determine that the ant colony algorithm satisfies the number of iterations, and output the optimal motion law of the follower of the cam mechanism; The analytical expression of the piecewise curve model includes a polynomial linear piecewise basis function, a Fourier linear piecewise basis function, a unit displacement function of a polynomial linear piecewise and a unit displacement function of a Fourier linear piecewise. The analytical expression of the piecewise curve model is: , Where I represents the number of curve segments, It represents the displacement function of the follower of the cam mechanism when the cam rotates at an angle of φ. represents the seventh-order polynomial piecewise basis function of the i-th segment curve, represents the Fourier piecewise basis function of the i-th segment of the curve, It represents the unit displacement function of the seventh-order polynomial segment of the i-th curve when the cam rotates at an angle of φ. represents the unit displacement function of the Fourier segment of the i-th curve when the cam rotates at an angle of φ, and H represents the stroke height; The method for solving the unit displacement function of the Fourier linear segmentation includes: The angular velocity ω value in the unit displacement function of the Fourier linear segment is given; Input the given angular velocity ω value into the unit displacement function of the Fourier linear segmentation to obtain the corresponding remaining parameters to be determined and the jump deviation value of the corresponding initial point; When all given angular velocity ω values obtain the corresponding remaining parameters to be determined and the corresponding jump deviation value, the optimal angular velocity ω value and the corresponding remaining parameters to be determined are output.
2. The optimization method for a medium-to-high speed cam mechanism according to claim 1, characterized in that: Generating a solution set space through the M functional constraints specifically includes: Constructing a polynomial cam mechanism follower motion law curve according to the M functional constraints; The polynomial cam mechanism follower motion law curve is moved up and down by Z optimization units respectively, and the first area is abandoned to construct the second area; In the second area, displacement points are uniformly selected at a certain scale to form an advantage-seeking set.
3. The optimization method for a medium-to-high speed cam mechanism according to claim 2, characterized in that: The optimizing the motion law of the follower of the cam mechanism by using the ant colony algorithm according to the solution set space specifically includes: Selecting an optimal displacement point from the advantage-seeking set, forming an optimal displacement point set according to the selected optimal displacement points, and selecting each segmented curve description method through the segmented curve model; Generate a walking path by using the optimal displacement point set and the description methods of each segmented curve, and optimize the motion law of the follower of the cam mechanism according to the walking path; Under medium and high speed operating conditions, the performance requirements of the cam mechanism are obtained, and an evaluation model is established according to the performance requirements; Inputting the optimized cam mechanism follower motion law into the evaluation model to obtain a score value of the optimized cam mechanism follower motion law; The optimal walking path of this generation is saved, and pheromones are added to the set of advantage-seeking points and the set of description modes of each segmented curve according to the score value.
4. The optimization method for a medium-to-high speed cam mechanism according to claim 3, characterized in that: Generating a walking path by using the optimal displacement point set and the description of each segmented curve, and optimizing the motion law of the cam mechanism follower according to the walking path specifically includes: Generate the walking path of each ant by using the optimal displacement point set and the segmented curve description method; Substituting the M functional constraints and the walking path of each ant into the piecewise curve model to obtain the motion law of the follower of the cam mechanism; According to the expected motion control requirements, the restriction conditions are obtained, and the motion laws of the cam mechanism follower that do not meet the restriction conditions are eliminated to obtain the optimized motion law of the cam mechanism follower.
5. The optimization method for a medium-to-high speed cam mechanism according to claim 1, characterized in that: The method for solving the unit displacement function of the Fourier linear segment also includes: when the jump deviation value of the corresponding initial point is greater than or equal to 1, the segmented curve where the initial point is located is described by the unit displacement function of the polynomial linear segment.
6. The optimization method for a medium-to-high speed cam mechanism according to claim 3, characterized in that: Each segment of the segmented curve model is limited by linearly independent equation constraints, and the linearly independent equation constraints include: the M functional constraints and the walking path.
7. The optimization method for a medium-to-high speed cam mechanism according to claim 6, characterized in that: The function value, first-order derivative value and second-order derivative value of the initial point of each segment of the piecewise curve model are equal to the function value, first-order derivative value and second-order derivative value of the end point of the previous segment; The deviation value between the third-order derivative value of the initial point of each segment of the segmented curve model and the third-order derivative value of the end point of the previous segment is less than 1.
