PCBA processing component layout optimization method and system
Optimizing PCB component layout through artificial bee colony algorithm solves the problems of low efficiency and high experience requirements of traditional layout, realizes automated layout, and improves the satisfaction of SMT production process and product quality.
Patent Information
- Application Number
- CN202410490959.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-04-23
AI Technical Summary
Traditional PCB layout and wiring efficiency is low, requires high experience, and is difficult to meet the SMT production process requirements, resulting in product quality problems.
The artificial bee colony algorithm is used to automatically optimize the component layout by setting the objective function and constraint conditions, including uniform distribution of heating components, combination of similar types of components and shortening of connections. The optimal solution is obtained using the bee-hunting and following bee search algorithms. .
It improves the automation efficiency of PCBA processing component layout, reduces the workload and experience requirements of design engineers, and meets the needs of SMT production process.
Smart Images

Figure CN118297025B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of PCB design, and in particular to a method and system for optimizing the layout of components for PCBA processing. Background Art
[0002] When designing PCB, the basic principles of PCB design must be followed, and the requirements of anti-interference design must be met to ensure the best performance of the circuit. The general requirements of traditional PCB layout and wiring are that the total connection is as short as possible, the key signal line is short; the heat generation software is evenly distributed on the PCB board to prevent the temperature of a certain area of the PCB from being too high; some space is left around the components to be tested for later testing, etc. When actually performing PCBA processing, PCB design engineers must also understand the basic SMT process characteristics, and design the layout of PCBA processing components according to different process requirements. The layout should meet the requirements of the SMT production process to avoid product quality problems caused by the design. Therefore, the traditional manual PCB layout and wiring is not only inefficient, but also requires a high level of layout and wiring experience. Therefore, there is an urgent need for an automatic layout method for PCBA processing components that meets the requirements of the SMT production process and improves layout efficiency. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a PCBA processing component layout optimization method and system, which can reduce the workload of PCB component layout and meet the SMT production process requirements.
[0004] On the one hand, an embodiment of the present invention provides a method for optimizing the layout of components for PCBA processing, comprising the following steps: S100, setting a plurality of variables according to the number of types of all components of a target circuit board, wherein each variable corresponds to the center position coordinates of each component; S200, setting an objective function according to component layout requirements, wherein the component layout requirements include: (1) the distribution of heat-generating components is as uniform as possible; (2) components of similar types are placed together as much as possible; (3) the total connection is as short as possible, and the key signal line is short; the objective function is:
[0005]
[0006] Among them, ω1, ω2, ω3 are weights, L represents the width of the circuit board, d min It represents the smallest distance among the heating elements, and m represents the number of distances among all heating elements. represents the value of the i1th distance, d represents the average value of the distances between all heating components, and n represents the number of distances between all similar components. represents the value of the i2th distance, d' represents the average distance between all similar components, c1 and c2 are control parameters, l represents the total connection length of the circuit board, and l k Indicates the length of the key signal line of the circuit board; S300, sets constraints according to the types of components; S400, uses the several variables as vector dimensions, initializes the nectar source based on the artificial bee colony algorithm according to the constraints, calculates the fitness of each nectar source based on the objective function, determines the initial honey bee population according to the fitness, and updates the nectar source through honey bees and follower bees searching until the stop requirement is met and the optimal solution is output; S500, outputs the component layout result on the interactive interface based on the optimal solution, and adjusts the components based on user operations to obtain the final circuit board component layout.
[0007] The PCBA processing component layout optimization method of the embodiment of the present invention includes at least the following beneficial effects: the embodiment of the present invention sets constraints and objective functions according to layout requirements, solves the optimal solution as the component layout result based on the artificial bee colony algorithm, realizes the automatic layout of the PCBA processing component layout, improves work efficiency, reduces the workload of design engineers and reduces the experience requirements for design engineers.
[0008] According to some embodiments of the present invention, the constraints include: each component should maintain a certain distance, and the arrangement of the components in the X and Y directions should not exceed the length and width of the circuit board; a certain maintenance gap should be left around large components; power components should be placed at the edge of the circuit board; and valuable components should not be placed in the high stress area of the circuit board.
[0009] According to some embodiments of the present invention, step S400 includes: S410, initializing the total number of bees to N, where the number of bees is The number of follower bees is The vector dimension of each individual bee is D, S = R D For the bee individual search space, let X = X1, X2, ..., X N represents the honey bee population, where X i ∈S(1≤i≤N e ) represents the honey bee individual, X(0) represents the initial honey bee population, X(n) represents the nth generation honey bee population, and F represents the fitness of the solution; S420, when n=0, randomly generate N feasible solutions in the solution space:
[0010]
[0011] in, are the maximum and minimum values of X in the jth dimension, respectively. The fitness values of each solution vector are calculated respectively, and the better N eThe solution is used as the initial honey bee population X(0); S430, for the honey bee population X(n) in the nth step, each honey bee is asked to find a new honey source near the honey source, that is, each solution is updated, and the update formula is as follows:
[0012]
[0013] Where j∈1,2,...,D; k∈1,2,...,N e , and k≠i; j, k are both randomly generated numbers, is a random number between [-1,1]; S440, the solution is updated by using the greedy selection operator. When the fitness value of the new solution searched by the honey bee is greater than or equal to the fitness value of the original solution, the new solution is used to replace the original solution; S450, each follower bee uses a roulette selection mechanism according to the size of its own fitness value to let the follower bee search for new nectar sources around it. The formula for the selection probability is as follows:
[0014]
[0015] S460, record the updated optimal solution X best And the corresponding parameters; S470, when the fitness value of the solution searched by the honey bees near a nectar source does not improve the number of times Bas exceeds the threshold Limit, the honey bees are randomly initialized again, and the formula is as follows:
[0016]
[0017] S480. When the termination condition is met, stop the calculation and output the corresponding parameters of the optimal solution.
[0018] According to some embodiments of the present invention, step S500 includes: obtaining the center position coordinates of components of various types, and assigning position coordinates to each component according to the number and size of each type of components, including: assigning position coordinates to each passive component according to the center position coordinates of the passive components, the size and number of each type of passive components, so that all passive components are parallel to each other, and the long axis of the passive components is perpendicular to the preset movement direction along the conveyor belt of the welding machine during circuit board processing.
[0019] According to some embodiments of the present invention, step S500 includes: outputting component layout results to an interactive interface according to position coordinates and connection relationships of each component; and adjusting component positions in response to a user drag operation.
[0020] Another aspect of the present invention provides a PCBA processing component layout optimization system, including: a first module, used to set a number of variables according to the number of types of all components of a target circuit board, wherein each variable corresponds to the center position coordinates of each component; a second module, used to set an objective function according to component layout requirements, wherein the component layout requirements include: (1) the distribution of heat-generating components is as uniform as possible; (2) components of similar types are placed together as much as possible; (3) the total connection is as short as possible, and the key signal line is short; the objective function is:
[0021]
[0022] Among them, ω1, ω2, ω3 are weights, L represents the width of the circuit board, d min It represents the smallest distance among the heating elements, and m represents the number of distances among all heating elements. represents the value of the i1th distance, d represents the average value of the distances between all heating components, and n represents the number of distances between all similar components. represents the value of the i2th distance, d' represents the average distance between all similar components, c1 and c2 are control parameters, l represents the total connection length of the circuit board, and l k Indicates the length of the key signal line of the circuit board; the third module is used to set constraints according to the type of components; the fourth module is used to use the several variables as vector dimensions, initialize the honey source based on the artificial bee colony algorithm according to the constraints, calculate the fitness of each honey source based on the objective function, determine the initial honey bee population according to the fitness, and update the honey source through honey bees and follower bees until the stop requirement is met to output the optimal solution; the fifth module is used to output the component layout result on the interactive interface based on the optimal solution, and adjust the components based on user operations to obtain the final circuit board component layout.
[0023] The PCBA processing component layout optimization system of the embodiment of the present invention includes at least the following beneficial effects: the embodiment of the present invention sets constraints and objective functions according to layout requirements, solves the optimal solution as the component layout result based on the artificial bee colony algorithm, realizes the automatic layout of PCBA processing component layout, improves work efficiency, reduces the workload of design engineers and reduces the experience requirements for design engineers.
[0024] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0026] Figure 1 A schematic diagram of a method according to an embodiment of the present invention;
[0027] Figure 2 The module schematic block diagram of the system according to the embodiment of the present invention.
[0028] Reference numerals:
[0029] The first module 100 , the second module 200 , the third module 300 , the fourth module 400 , and the fifth module 500 . DETAILED DESCRIPTION
[0030] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0031] In the description of the present invention, "several" means one or more, "more" means two or more, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0032] The layout of PCBA processing components should meet the requirements of SMT production process. Since product quality problems caused by design are difficult to overcome in production, PCB design engineers should understand the basic SMT process characteristics and design the layout of PCBA processing components according to different process requirements. Correct design can minimize welding defects. The following points should be considered when laying out PCBA processing components:
[0033] 1. The distribution of components on the PCB should be as uniform as possible. Large-mass components have a large heat capacity during reflow soldering. Therefore, too concentrated layout can easily cause low local temperature and lead to cold soldering.
[0034] 2. Leave a certain amount of maintenance space around large components (leave enough space for the heating head of the SMD rework equipment to operate).
[0035] 3. Power components should be evenly placed on the edge of the PCB or in a ventilated position inside the chassis.
[0036] 4. Do not place valuable components at the corners or edges of the PCB, or near connectors, mounting holes, slots, panel cuts, notches and corners. These locations are high stress areas of the PCB and can easily cause cracking of solder joints and components.
[0037] 5. Direction of wave soldering components. All polar surface mount components should be placed in the same direction when possible. When arranging the direction of components, the following points should be achieved as much as possible: a. All passive components should be parallel to each other; b. All small-profile ICs should be perpendicular to the long axis of the passive components; c. The long axis of the passive components should be perpendicular to the direction of movement of the board along the conveyor belt of the wave soldering machine.
[0038] 6. Consider the direction of mounting components. Components of similar types should be arranged on the board in the same direction to make mounting, inspection and soldering of components easier. Also, similar component types should be grounded together as much as possible.
[0039] Swarm intelligence is a branch of artificial intelligence. It is a method of realizing artificial intelligence by simulating the behavior of a certain biological group in nature. That is, it is a method of completing complex tasks through a large number of individuals, performing simple behaviors and information interactions on each individual.
[0040] The basic principle of artificial bee colony algorithm: Artificial bee colony algorithm is a swarm intelligence algorithm that simulates the honey-collecting behavior of bees. It is very simple, robust and a swarm-based random optimization algorithm.
[0041] (1) Honey source: The location of each honey source represents a possible solution to the problem. The quality of the honey source corresponds to the quality (or fitness) of the corresponding solution, which depends on many factors.
[0042] (2) Collecting bees: Collecting bees are connected to the nectar source. They can share the information about the nectar source they are collecting with other bees through wagging dance. Some collecting bees become leading bees.
[0043] (3) Worker bees: These are bees that are searching for nectar sources to collect. They are divided into scout bees and follower bees. Scout bees are mainly responsible for searching for new nectar sources, while follower bees find nectar sources by sharing information with collecting bees in the nest.
[0044] The specific implementation steps of the artificial bee colony algorithm are as follows:
[0045] Step 1: Initialize the bee population;
[0046] Step 2: According to the fitness of each bee, the bees are divided into collecting bees and following bees;
[0047] Step 3: For each honey bee, continue to collect honey near the original honey source. If other honey sources with higher fitness are found, the original honey source will be replaced;
[0048] Step 4: For each follower bee, it searches near its nectar source with a probability proportional to the fitness of the nectar source. If it finds another nectar source with a higher fitness, the follower bee becomes a collector bee and replaces the original nectar source.
[0049] Step 5: If the number of searches near a nectar source exceeds a certain threshold, the nectar source is abandoned and randomly initialized again;
[0050] Step 6: Record the best nectar source and go to step 2 until the termination condition is met.
[0051] Reference Figure 1 The PCBA processing component layout optimization method of the embodiment of the present invention comprises the following steps:
[0052] S100. According to the number of types of all components of the target circuit board, a number of variables are set, wherein each variable corresponds to the center position coordinates of each component.
[0053] S200, setting the objective function according to the component layout requirements. The component layout requirements of this embodiment include: (1) the distribution of heat-generating components is as uniform as possible; (2) components of similar types are placed together as much as possible; (3) the total connection is as short as possible, and the key signal line is short; Among them, the objective function set according to the component layout requirements of this embodiment is:
[0054]
[0055] Among them, ω1, ω2, ω3 are weights, L represents the width of the circuit board, d min It represents the smallest distance among the heating elements, and m represents the number of distances among all heating elements. represents the value of the i1th distance, d represents the average value of the distances between all heating components, and n represents the number of distances between all similar components. represents the value of the i2th distance, d' represents the average distance between all similar components, c1 and c2 are control parameters, l represents the total connection length of the circuit board, and l k Indicates the length of the key signal line of the circuit board. The smaller the objective function of this embodiment, the better, and the weight and control parameters are preset and adjusted according to the actual situation.
[0056] S300, setting constraints according to component types.
[0057] S400, taking several variables as vector dimensions, initializing the nectar source based on the artificial bee colony algorithm according to the constraints, calculating the fitness of each nectar source based on the objective function, determining the initial honey bee population according to the fitness, and updating the nectar source through the honey bees and follower bees searching until the stop requirement is met and the optimal solution is output.
[0058] S500: Outputting component layout results on an interactive interface based on the optimal solution, and adjusting the components based on user operations to obtain a final circuit board component layout.
[0059] In some embodiments, the constraints include: each component should maintain a certain distance, and the arrangement of components in the X and Y directions should not exceed the length and width of the circuit board; a certain maintenance gap is left around large components; power components should be placed at the edge of the circuit board; and expensive components are not placed in the high stress area of the circuit board. Among them, the maintenance gap value and the edge position of the circuit board in this embodiment are preset values, and the high stress area in this embodiment is a preset range, corresponding to the corners, edges of the PCB, or near connectors, mounting holes, slots, cuts, notches and corners of the panel.
[0060] In some embodiments, step S400 includes: S410, initializing the total number of bees to N, where the number of bees is The number of follower bees is The vector dimension of each individual bee is D, S = R D For the bee individual search space, let X = X1, X2, ..., X N represents the honey bee population, where X i ∈S(1≤i≤N e ) represents individual honey bees, X(0) represents the initial honey bee population, X(n) represents the nth generation of honey bee population, and F represents the fitness of the solution.
[0061] S420, when n=0, randomly generate N feasible solutions in the solution space:
[0062]
[0063] in, are the maximum and minimum values of X in the jth dimension, respectively. The fitness values of each solution vector are calculated respectively, and the better N e The solution is used as the initial bee population X(0).
[0064] S430, for the honey bee population X(n) in step n, let each honey bee find a new honey source near the honey source, that is, update each solution, and the update formula is as follows:
[0065]
[0066] Where j∈1,2,...,D; k∈1,2,...,N e , and k≠i; j, k are both randomly generated numbers, is a random number between [-1,1].
[0067] S440, using a greedy selection operator to update the solution, when the fitness value of the new solution searched by the honey bees is greater than or equal to the fitness value of the original solution, the new solution replaces the original solution.
[0068] S450, each follower bee uses a roulette selection mechanism according to its own fitness value to search for new nectar sources around it. The formula for selection probability is as follows:
[0069]
[0070] S460, record the updated optimal solution X best and the corresponding parameters.
[0071] S470, when the fitness value of the solution searched by the honey bees near a certain nectar source does not improve the number of times Bas exceeds the threshold Limit, the honey bees are randomly initialized again, and the formula is as follows:
[0072]
[0073] S480. When the termination condition is met, stop the calculation and output the corresponding parameters of the optimal solution.
[0074] In some embodiments, step S500 includes: obtaining the center position coordinates of components of various types, and assigning position coordinates to each component according to the number and size of each type of component, including: assigning position coordinates to each passive component according to the center position coordinates of the passive component, the size and number of each type of passive component, so that all passive components are parallel to each other, and the long axis of the passive component is perpendicular to the preset movement direction along the conveyor belt of the welding machine during circuit board processing.
[0075] In some embodiments, step S500 includes: outputting component layout results to an interactive interface based on the position coordinates and connection relationships of each component; and adjusting the position of the component in response to a user drag operation.
[0076] Corresponding to the above-mentioned embodiments, the present invention also provides system embodiments. As for the system embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments.
[0077] Reference Figure 2 The embodiment of the present invention provides a PCBA processing component layout optimization system, including:
[0078] The first module 100 is used to set a number of variables according to the number of types of all components of the target circuit board, wherein each variable corresponds to the center position coordinates of each component.
[0079] The second module 200 is used to set an objective function according to the component layout requirements. The component layout requirements include: (1) the distribution of heat-generating components is as uniform as possible; (2) components of similar types are placed together as much as possible; (3) the total connection is as short as possible, and the key signal line is short. The objective function is:
[0080]
[0081] Among them, ω1, ω2, ω3 are weights, L represents the width of the circuit board, d min It represents the smallest distance among the heating elements, and m represents the number of distances among all heating elements. represents the value of the i1th distance, d represents the average value of the distances between all heating components, and n represents the number of distances between all similar components. represents the value of the i2th distance, d' represents the average distance between all similar components, c1 and c2 are control parameters, l represents the total connection length of the circuit board, and l k Indicates the length of the critical signal line of the circuit board.
[0082] The third module 300 is used to set constraint conditions according to component types.
[0083] The fourth module 400 is used to use several variables as vector dimensions, initialize the nectar source based on the artificial bee colony algorithm according to the constraints, calculate the fitness of each nectar source based on the objective function, determine the initial honey bee population according to the fitness, and update the nectar source through the honey bees and follower bees search until the stop requirement is met to output the optimal solution.
[0084] The fifth module 500 is used to output the component layout result on the interactive interface based on the optimal solution, and adjust the components based on the user operation to obtain the final circuit board component layout.
[0085] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.
[0086] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0087] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A PCBA processing component layout optimization method, characterized in that: The following steps are involved: S100, setting a number of variables according to the number of types of all components of the target circuit board, wherein each variable corresponds to the center position coordinates of each component; S200, setting an objective function according to the component layout requirements, wherein the component layout requirements include: (1) the distribution of heat-generating components is as uniform as possible; (2) components of similar types are placed together as much as possible; (3) the total connection is as short as possible, and the key signal line is short; the objective function is: Among them, ω1, ω2, ω3 are weights, L represents the width of the circuit board, d min It represents the smallest distance among the heating elements, and m represents the number of distances among all heating elements. represents the value of the i1th distance, d represents the average value of the distances between all heating components, and n represents the number of distances between all similar components. represents the value of the i2th distance, d' represents the average distance between all similar components, c1 and c2 are control parameters, l represents the total connection length of the circuit board, and l k Indicates the length of the key signal line of the circuit board; S300, setting constraints according to component types; S400, using the several variables as vector dimensions, initializing the nectar source based on the artificial bee colony algorithm according to the constraint conditions, calculating the fitness of each nectar source based on the objective function, determining the initial honey bee population according to the fitness, and updating the nectar source through honey bees and follower bees searching until the optimal solution is output when the stop requirement is met; initializing the nectar source based on the artificial bee colony algorithm according to the constraint conditions includes: when generating a feasible solution in the solution space, determining the value range of each vector dimension of the individual bees based on the constraint conditions; S500: outputting component layout results on an interactive interface based on the optimal solution, and adjusting components based on user operations to obtain a final circuit board component layout.
2. The PCBA processing component layout optimization method according to claim 1, characterized in that: The constraints include: Each component should maintain a certain distance, and the arrangement of components in the X and Y directions should not exceed the length and width of the circuit board; A certain amount of maintenance space is left around large components; Power components should be placed at the edge of the circuit board; Valuable components are not placed in high stress areas of the circuit board.
3. The PCBA processing component layout optimization method according to claim 1, characterized in that: Step S400 includes: S410, initialize the total number of bees to N, where the number of bees collecting is The number of follower bees is The vector dimension of each individual bee is D, S = R D For the bee individual search space, let X = X1, X2, ..., X N represents the honey bee population, where X i ∈S, where 1≤i≤N e , represents individual bees, X(0) represents the initial bee population, X(n) represents the nth generation bee population, and F represents the fitness of the solution; S420, when n=0, randomly generate N feasible solutions in the solution space: in, are the maximum and minimum values of X in the jth dimension, respectively. The fitness values of each solution vector are calculated respectively, and the better N e The solution is used as the initial honey bee population X(0); S430, for the honey bee population X(n) in step n, let each honey bee find a new honey source near the honey source, that is, update each solution, and the update formula is as follows: Where j∈1,2,...,D; k∈1,2,...,N e , and k≠i; j, k are both randomly generated numbers, is a random number between [-1,1]; S440, using a greedy selection operator to update the solution, when the fitness value of the new solution searched by the bees is greater than or equal to the fitness value of the original solution, the new solution is used to replace the original solution; S450, each follower bee uses a roulette selection mechanism according to its own fitness value to search for new nectar sources around it. The formula for selection probability is as follows: S460, record the updated optimal solution X best And the corresponding parameters; S470, when the fitness value of the solution searched by the honey bees near a certain nectar source does not improve the number of times Bas exceeds the threshold Limit, the honey bees are randomly initialized again, and the formula is as follows: S480. When the termination condition is met, stop the calculation and output the corresponding parameters of the optimal solution.
4. The PCBA processing component layout optimization method according to claim 1, characterized in that: Step S500 includes: Get the center position coordinates of each type of component, and assign position coordinates to each component according to the number and size of each type of component, including: According to the center position coordinates of the passive components, the size and quantity of various passive components, position coordinates are assigned to each passive component, so that all passive components are parallel to each other, and the long axis of the passive component is perpendicular to the preset movement direction along the welding machine conveyor belt during circuit board processing.
5. The PCBA processing component layout optimization method according to claim 1, characterized in that: Step S500 includes: According to the position coordinates and connection relationship of each component, the component layout results are output to the interactive interface; In response to the user's dragging operation, the position of the component is adjusted.
6. A PCBA processing component layout optimization system, characterized in that: include: The first module is used to set a number of variables according to the number of types of all components of the target circuit board, wherein each variable corresponds to the center position coordinates of each component; The second module is used to set the objective function according to the component layout requirements, wherein the component layout requirements include: (1) the distribution of heat-generating components is as uniform as possible; (2) components of similar types are placed together as much as possible; (3) the total connection is as short as possible, and the key signal line is short; the objective function is: Among them, ω1, ω2, ω3 are weights, L represents the width of the circuit board, d min It represents the smallest distance among the heating elements, and m represents the number of distances among all heating elements. represents the value of the i1th distance, d represents the average value of the distances between all heating components, and n represents the number of distances between all similar components. represents the value of the i2th distance, d' represents the average distance between all similar components, c1 and c2 are control parameters, l represents the total connection length of the circuit board, and l k Indicates the length of the key signal line of the circuit board; The third module is used to set constraints according to the types of components; The fourth module is used to use the several variables as vector dimensions, initialize the nectar source based on the artificial bee colony algorithm according to the constraint conditions, calculate the fitness of each nectar source based on the objective function, determine the initial honey bee population according to the fitness, and update the nectar source through honey bees and follower bees until the stop requirement is met and the optimal solution is output; initializing the nectar source based on the artificial bee colony algorithm according to the constraint conditions includes: when generating a feasible solution in the solution space, determining the value range of each vector dimension of the individual bee based on the constraint conditions; The fifth module is used to output the component layout result on the interactive interface based on the optimal solution, and adjust the components based on the user operation to obtain the final circuit board component layout.
