Feeder arrangement optimization method and system based on mixed integer programming model
Through the mixed integer planning model, multiple constraints in feeder layout optimization are processed, and high-quality feeder layout solutions are generated within a limited time, solving the problem that the existing technology is difficult to deal with a large number of constraints.
Patent Information
- Application Number
- CN202411124808.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-11-05
AI Technical Summary
The prior art is difficult to deal with multiple constraints within a limited time and find feasible optimization solutions for feeder arrangement, especially in large-size feeder distribution, multiple feeder rack distribution, multiple substrate sequential allocation and manual teaching coordinates. In the case of slot distribution limitation, it is difficult to generate high-quality feeder arrangements.
Using a hybrid integer programming model, linearizes mathematical expressions by creating two-dimensional arrays and filling zero-one decision variables, adding constraints and objective functions, to minimize the mounting movement distance and maximize the co-sucking element Number, perform model calculation to complete layout optimization.
The arrangement optimization problem under the superposition of multiple constraints is effectively dealt with, ensuring the effectiveness and rapid solution of the algorithm, and generating high-quality feeder arrangement solutions.
Smart Images

Figure CN118898232A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chip placement machine placement optimization, and in particular to a feeder arrangement optimization method and system based on a mixed integer programming model. Background Art
[0002] A placement machine is a device used for automatic placement of electronic components. Its main function is to take out electronic components from the component library and accurately place them on the printed circuit board (PCB). The performance and efficiency of the placement machine directly affect the production quality and efficiency of electronic products. The placement machine feeder is an important part of the placement machine. Its main function is to take out electronic components from the material belt and accurately send them to the feeding position. The design and layout of the placement machine feeder directly affect the performance and efficiency of the placement machine.
[0003] The feeder arrangement problem is a sub-problem of the placement optimization problem. In actual production scenarios, the feeder arrangement optimization problem needs to comprehensively consider all constraints to generate a feasible solution. The feasibility of the solution is only a basic requirement. On this basis, it is also necessary to minimize the movement path of the placement and increase the number of simultaneous pickups. Currently, the public literature and materials often only discuss the feeder arrangement problem under ideal conditions. The allocation of large-size feeders, the allocation of multiple feeder racks, the sequential allocation of multiple substrates, the manual teaching coordinates and the manual slot allocation restrictions are not fully considered. If the above constraints are fully considered, whether it is a conventional algorithm or a heuristic algorithm, how to generate a feasible solution is already difficult to handle, and it is even more difficult to ensure the high quality of the solution on this basis. Summary of the invention
[0004] In order to solve the problems in the prior art, the present invention provides a feeder arrangement optimization method and system based on a mixed integer programming model.
[0005] In order to achieve the above-mentioned object, the first aspect of the present invention provides a feeder arrangement optimization method based on a mixed integer programming model, wherein the method is solved based on the mixed integer programming model, and comprises the following steps: Create a two-dimensional array of size F*S and fill it with zero and one decision variables p ij , p ij Indicates the number i Is the feeder occupied by j slots, F is the number of feeders, S is the total number of feeding slots; Add to the model the p ij The constraints expressed; Adding an objective function to the model based on constraints to minimize the placement moving distance and maximize the number of components that are simultaneously picked up; Perform model calculations, obtain the minimum value of the objective function within the preset model solution time, and complete the arrangement optimization.
[0006] A second aspect of the present invention provides a feeder arrangement optimization system based on a mixed integer programming model, comprising: Create a module for creating a mixed integer programming model and creating a two-dimensional array of size F*S and filling it with zero and one decision variables p ij , p ij Indicates the number i Is the feeder occupied by j slots, F is the number of feeders, S is the total number of feeding slots; Constraint module, used to add p ij The constraints expressed; An objective function module, used for adding an objective function to the model based on constraint conditions to minimize the placement moving distance and maximize the number of components that can be simultaneously sucked; The calculation module is used to perform calculations based on the mixed integer programming model, obtain the minimum value of the objective function within the preset model solution time, and complete the arrangement optimization.
[0007] A third aspect of the present invention provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned method of the present application.
[0008] Through the above technical scheme, the present invention is based on a mixed integer programming model, all constraints and implementation goals in the feeder arrangement optimization problem are quantified through mathematical expressions, and mathematical means are used for linearization processing, which effectively handles the arrangement optimization problem under the superposition of multiple constraints, ensures the effectiveness of the algorithm, and overcomes the problem that the prior art cannot quickly process a large number of constraints and find feasible solutions within a limited time.
[0009] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings: Figure 1 It is a schematic diagram of the arrangement optimization process of an embodiment of the present invention. DETAILED DESCRIPTION
[0011] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0012] The solution described in the present invention is an algorithm submodule of the placement optimization software, which mainly solves the problem of feeder arrangement optimization.
[0013] A first aspect of an embodiment of the present invention provides a feeder arrangement optimization method based on a mixed integer programming model, wherein the method is solved based on a mixed integer programming model (hereinafter referred to as the model), such as Figure 1 As shown, the following steps are included: S1. Create a two-dimensional array of size F*S and fill it with zero and one decision variables p ij , p ij Indicates the number i Is the feeder occupied by j slots, F is the number of feeders, and S is the total number of feeding slots; the optimization objective is set to minimize the objective function value, and auxiliary parameters such as model solution time and strategy are set.
[0014] Appropriate decision variables enable fine control of the allocation relationship between each feeder and each slot. p ij Indicates whether feeder i occupies slot j. This means that in the algorithm, on the one hand, by adding constraints p ij = 0 means that the feeder is not assigned to the corresponding slot. On the other hand, you can add constraints p ij = 1 makes the feeder only allocated to the corresponding slot. Based on the above zero-one decision variables, the allocation feasible domain of the feeder can be easily controlled by processing different allocation modes, conditions and data.
[0015] S2. Add to the model p ij The constraints expressed; Further, step S2 includes the following process: S21, add constraint 1, the allocated station, illegal station, non-enabled feeder rack, and large-size feeder cross-slot interference station cannot be allocated: p ij = 0, if the position j Constraints not met Note: In the above formula, the judgment that the station j does not meet the constraints is calculated by the algorithm and will not be repeated here.
[0016] S22, add constraint 2, all feeders will and can only be assigned once .
[0017] S23, add constraint 3, all stations can only be assigned once .
[0018] S24. Add constraint 4. The extra station occupied by the large-size feeder will not conflict with other feeders.
[0019] First, the final arrangement of the feeder slot i It can be expressed as follows: .
[0020] Based on the above zero-one decision variables, the slots and coordinates of the feeder allocation can be indirectly obtained during the modeling process.
[0021] The constraint is imposed on a large feeder that occupies more than 1 slot. Assume that the feeder is i 1 feeder, then its starting slot is slot i1 , the end slot is slot i1 + width i1 -1. The station positions of all other feeders are either greater than the end slot of the feeder or less than the start slot of the feeder. Assuming that the sequence numbers of other feeders are i 2 , expressed as constraints as follows:
[0022] There is a logical OR in this constraint, and by introducing M (a very large number, which can be 1000 in this model), two zero-one auxiliary variables u 1 i1 , u 2 i1 , to linearize the formula, the linearized formula is as follows:
[0023] in, width i1 Indicates the number of slots occupied by the feeder numbered i1. p i1j Indicates whether the feeder numbered i1 is inserted into slot j, which is the zero-one decision variable defined initially. p i2jIndicates whether the feeder numbered i2 is inserted into slot j. u 1 i1 represents a zero-one auxiliary variable introduced for linearization, u 2 i1 represents another zero-one auxiliary variable introduced for linearization, and M represents a sufficiently large value for linear relaxation.
[0024] S25. Add constraint 5 to further constrain the allocatable range (the set of slots that can be allocated) of each feeder for different allocation strategies: p ij = 1, if the limit is to be allocated only to slot j p ij = 0, if the restriction is not assigned to slot j The constraints are calculated by the allocation model and algorithm and will not be described here.
[0025] It is worth noting that the order of adding constraints includes but is not limited to the order of the above steps, and the order can be changed at will.
[0026] S3, adding an objective function to the model based on the constraint conditions to minimize the placement moving distance and maximize the number of components with the same suction; Further, step S3 includes the following process: S31, add objective function 1, minimize the placement moving distance. After further decomposition, this objective can be simplified to minimize the sum of the distances of all feeder installation positions from the PCB center position multiplied by the number of placements.
[0027] Based on the zero-one decision variable and the slot coordinate matrix of the feeder rack, the final slot coordinates of the feeder can be expressed as:
[0028] in, setPos i Indicates the number i The X coordinate of the slot where the feeder is located is calculated by the machine parameters.
[0029] Objective function 1 can be expressed as:
[0030] Where pcbX represents the average X coordinate of the mounting point on the substrate.
[0031] Since the formula has an absolute value term, it needs to be linearized and an intermediate variable introduced. target 1 i Linearize the above equation:
[0032] in, , setPos i Indicates the X coordinate of the slot where the feeder number i is located, count i Indicates the number of components that the feeder numbered i needs to mount.
[0033] S32, add objective function 2 to maximize the number of components with the same suction. This goal can be indirectly promoted by minimizing the distance between components with the same suction. It is known that components with the same label can theoretically be assigned to the same group, that is, they can be sucked together. In the data preprocessing stage, the feeders are additionally grouped according to the label, and the number of components in the group is sorted in descending order. The objective function can be further simplified to minimize the sum of the distance between the feeders in all label groups multiplied by the number of placements:
[0034] Since there is an absolute value term in the formula, by introducing the intermediate variable target 2 i Linearize the above equation:
[0035] Where, li represents the feeder with serial number i in the lth label group, F l Indicates that the lth tag group contains F l A feeder, pos l1 Indicates the X coordinate of the installation position of the first feeder in the lth label group, pos li Indicates the X coordinate of the installation position of the i-th feeder in the l-th label group.
[0036] Based on the slot slot i The formula expression can not only take into account the slot interference constraint of the feeder, but also design and obtain the above objective function. The constraint conditions are combined with the objective function to achieve the arrangement optimization under complex constraints. The present invention selects the above zero-one decision variables, uses clever modeling ideas and linearization techniques, and makes the model highly scalable, which can consider the complex constraints faced in almost all practical situations.
[0037] S4. Perform model calculations, obtain the minimum value of the objective function within the preset model solution time, and complete the arrangement optimization.
[0038] At this point, the constraints of the model have been added, the objective function has been designed and solved, and the model can accurately control the slots that each feeder can allocate, thereby realizing various feeder allocation modes. In addition, the objective function takes into account the minimization of the placement moving distance and the maximization of the number of components that can be sucked together, so that the model calculation result is a high-quality solution to the feeder arrangement optimization problem.
[0039] The technical solution of the present invention designs a mixed integer programming model for solving, quantifies all constraints and objective functions in the feeder arrangement optimization problem through mathematical expressions, uses mathematical means to perform linear processing, and finally models it into code and embeds it into the algorithm, and calls the solver to obtain the optimal solution to the problem.
[0040] Based on the same inventive concept, a second aspect of an embodiment of the present invention provides a feeder arrangement optimization system based on a mixed integer programming model, comprising: Create a module for creating a mixed integer programming model and creating a two-dimensional array of size F*S and filling it with zero and one decision variables p ij , p ij Indicates the number i Is the feeder occupied by j slots, F is the number of feeders, S is the total number of feeding slots; Constraint module, used to add p ij The constraints expressed; An objective function module, used for adding an objective function to the model based on constraint conditions to minimize the placement moving distance and maximize the number of components that can be simultaneously sucked; The calculation module is used to perform calculations based on the mixed integer programming model, obtain the minimum value of the objective function within the preset model solution time, and complete the arrangement optimization.
[0041] Based on the same inventive concept, a third aspect of an embodiment of the present invention provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned method of the present application.
[0042] In summary, the present invention is based on a mixed integer programming model, all constraints and implementation goals in the feeder arrangement optimization problem are quantified through mathematical expressions, and mathematical means are used for linearization processing, which effectively handles the arrangement optimization problem under the superposition of multiple constraints, ensures the effectiveness of the algorithm, and overcomes the problem that the prior art cannot quickly process a large number of constraints and find feasible solutions within a limited time.
[0043] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity, or apparatus.
[0044] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A feeder arrangement optimization method based on a mixed integer programming model, characterized in that: The following steps are involved: Create a two-dimensional array of size F*S and fill it with zero and one decision variables p ij , p ij Indicates the number i Is the feeder occupied by j slots, F is the number of feeders, S is the total number of feeding slots; Add to the model the p ij The constraints expressed; Adding an objective function to the model based on constraints to minimize the placement moving distance and maximize the number of components that are simultaneously picked up; Perform model calculations, obtain the minimum value of the objective function within the preset model solution time, and complete the arrangement optimization.
2. The method according to claim 1, characterized in that The constraints include: all feeders will and can only be allocated once, all stations can only be allocated once at most, allocated stations cannot be allocated, illegal stations cannot be allocated, non-enabled feeder rack stations cannot be allocated, large-sized feeders interfering across slots cannot be allocated, additional stations occupied by large-sized feeders will not conflict with other feeders, or the allocatable range of each feeder is further constrained according to different allocation strategies. One or more of the following; the large-sized feeder is a feeder that occupies more than 1 slot.
3. The method according to claim 2, characterized in that All the feeders will be allocated only once, expressed as: 。 4. The method according to claim 2, characterized in that: All the stations can be allocated at most once, expressed as: 。 5. The method according to claim 2, characterized in that: The allocated station cannot be allocated, the illegal station cannot be allocated, and the non-enabled feeder rack station cannot be allocated, all of which are indicated as p ij = 0, refers to the station j The constraints are not met.
6. The method according to claim 2, characterized in that The additional station occupied by the large-size feeder will not conflict with other feeders, which is expressed as: ,in, width i1 Indicates the number of slots occupied by the feeder numbered i1. p i1j Indicates whether the feeder numbered i1 is inserted into slot j, which is the zero-one decision variable defined initially. p i2j Indicates whether the feeder numbered i2 is inserted into slot j. u 1 i1 represents a zero-one auxiliary variable introduced for linearization, u 2 i1 represents another zero-one auxiliary variable introduced for linearization, and M represents a sufficiently large value for linear relaxation.
7. The method according to claim 2, characterized in that The allocation range of each feeder is further constrained according to different allocation strategies, which is expressed as: p ij = 1, if the limit is to be allocated only to slot j p ij = 0, if the restriction is not assigned to slot j.
8. The method according to any one of claims 1 to 7, characterized in that: The objective function of minimizing the placement moving distance is: , introduce the intermediate variable target1 i After linearization, it is expressed as: ,in, , setPos i Indicates the X coordinate of the slot where the feeder number i is located, pcbX indicates the average X coordinate of the mounting point on the substrate, count i Indicates the number of components that the feeder numbered i needs to mount.
9. The method according to claim 8, characterized in that The function for maximizing the number of co-attracting elements is: , introduce the intermediate variable target2 li After linearization, it is expressed as: ,in, In the data preprocessing stage, the feeders are grouped according to the labels, and the number of components in the group is arranged in descending order. Li represents the feeder with the serial number i in the lth label group. F l Indicates that the lth tag group contains F l A feeder, POS l1 Indicates the X coordinate of the installation position of the first feeder in the lth label group, POS li Indicates the X coordinate of the installation position of the i-th feeder in the l-th label group.
10. A feeder arrangement optimization system based on a mixed integer programming model, characterized in that: include: Create a module for creating a mixed integer programming model and creating a two-dimensional array of size F*S and filling it with zero and one decision variables p ij , p ij Indicates the number i Is the feeder occupied by j slots, F is the number of feeders, S is the total number of feeding slots; Constraint module, used to add p ij The constraints expressed; An objective function module, used for adding an objective function to the model based on constraint conditions to minimize the placement moving distance and maximize the number of components that can be simultaneously sucked; The calculation module is used to perform calculations based on the mixed integer programming model, obtain the minimum value of the objective function within the preset model solution time, and complete the arrangement optimization.
11. A machine-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the method of any one of claims 1 to 9 of the present application.
Citation Information
Cited By
Chip mounter suction nozzle initial distribution method and system, and storage medium
CN120974938A
Patch placement machine nozzle initial dispensing method and system, storage medium
CN120974938B
