Copper bar path automatic generation method and device, electronic equipment and readable storage medium

The copper busbar path generation method employs genetic algorithms to automate the design process, optimizing path configurations and reducing waste by leveraging safety distances and spatial constraints, addressing the inefficiencies of manual design in electrical systems.

CN119692053APending Publication Date: 2025-03-25SUZHOU RONGDI SOFTWARE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411883418.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

Current methods for designing copper busbar paths in high and low-pressure electrical systems rely heavily on manual expertise, leading to inefficiencies and excessive material waste due to the lack of automated design tools, especially in confined spaces without 3D design capabilities.

Method used

A copper busbar path generation method utilizing genetic algorithms, which involves generating initial populations of busbar paths, performing genetic crossover and mutation operations, and evaluating their adaptability to determine the optimal path configuration, thereby automating the design process and minimizing human error and material usage.

Benefits of technology

This approach enables rapid and efficient generation of copper busbar paths, reducing material waste and improving design efficiency by leveraging genetic algorithms to optimize path configurations based on safety distances, obstacle avoidance, and spatial constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119692053A_ABST
    Figure CN119692053A_ABST
Patent Text Reader

Abstract

The invention provides a copper bar path automatic generation method and device, electronic equipment and a readable storage medium, and relates to the field of electrical assembly. Firstly, path design basic information is acquired; based on the path design basic information, generating a plurality of initial copper bar path groups from the initial end copper bar group to the tail end copper bar group; genetic cross processing is carried out on every two initial copper bar path groups to obtain at least two sub-generation copper bar path groups; heritable variation processing is carried out on each initial copper bar path group to obtain at least one sub-generation copper bar path group; and finally, taking all the initial copper bar path groups and all the child copper bar path groups as to-be-determined copper bar path groups, and after the fitness of each to-be-determined copper bar path group is calculated, taking the to-be-determined copper bar path group with the highest fitness as a target copper bar path group. The thought of the genetic algorithm is adopted, rapid and automatic generation of the copper bar path is achieved, and waste of manpower and material resources caused by manual design of the copper bar path is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electrical assembly, and in particular to a method, a device, an electronic device and a readable storage medium for automatically generating a copper busbar path. Background Art

[0002] Copper busbar, also known as copper busbar or copper busbar, is made of copper and is a long conductor with a rectangular or chamfered (rounded) rectangular cross-section (rounded copper busbars are generally used to avoid tip discharge). It plays the role of transmitting current and connecting electrical equipment in the circuit.

[0003] When copper busbars are used as key components to connect power distribution cabinets and bus ducts in high and low voltage complete sets, it is necessary to design the installation path of the copper busbars. At present, the copper busbar path design is mainly done by engineers relying on personal experience to draw manually, which is time-consuming and laborious. In addition, due to the small space, in the absence of 3D design, designers generally choose conservative paths for connection in order to ensure that the distance is met, resulting in a large amount of copper busbar waste. Summary of the invention

[0004] The object of the present invention is to provide a method, device, electronic device and readable storage medium for automatically generating a copper busbar path, so as to improve the problems existing in the prior art.

[0005] The embodiments of the present invention can be implemented as follows:

[0006] In a first aspect, the present invention provides a method for automatically generating a copper busbar path, which is applied to electronic equipment, and the method comprises:

[0007] Obtain basic information for route design;

[0008] Based on the path design basic information, an initial population is generated, wherein the initial population includes a plurality of initial copper busbar path groups from the starting copper busbar group to the ending copper busbar group;

[0009] Performing genetic crossover processing on every two initial copper bar path groups among the multiple initial copper bar path groups to obtain at least two offspring copper bar path groups;

[0010] Performing genetic variation processing on each of the initial copper bar path groups to obtain at least one offspring copper bar path group;

[0011] All of the initial copper busbar path groups and all of the descendant copper busbar path groups are taken as pending copper busbar path groups, and after calculating the fitness of each of the pending copper busbar path groups, the pending copper busbar path group with the highest fitness is taken as the target copper busbar path group.

[0012] Optionally, the path design basic information includes color attributes corresponding to each of the multiple electrical phases, a preset safety distance, and copper bar posture data, copper bar position data, and copper bar size data corresponding to each color attribute;

[0013] The step of generating an initial population based on the path design basic information includes:

[0014] Fully arranging the color attributes corresponding to the plurality of electrical phases to obtain a plurality of color traversal orders;

[0015] For each of the color traversal sequences, based on the preset safety distance and the copper busbar posture data, copper busbar position data and copper busbar size data corresponding to the various color attributes, the copper busbar path between the starting copper busbar and the ending copper busbar corresponding to each color attribute in the color traversal sequence is determined in turn to obtain an initial copper busbar path group corresponding to the color traversal sequence.

[0016] Optionally, the electronic device maintains a preset path library, and the path library contains a plurality of preset paths;

[0017] The step of sequentially determining the copper bus path between the starting copper bus and the ending copper bus corresponding to each color attribute in the color traversal sequence based on the preset safety distance and the copper bus posture data, copper bus position data and copper bus size data corresponding to the various color attributes comprises:

[0018] For each color attribute in the color traversal order, determine the current obstacle information corresponding to the color attribute;

[0019] Determine an initial extension direction based on the starting copper bar posture in the copper bar size data corresponding to the color attribute and current obstacle information;

[0020] Based on the current obstacle information corresponding to the color attribute and the center coordinates of the starting copper bar and the center coordinates of the ending copper bar in the copper bar position data, searching the target preset path adapted to the initial extension direction from the path library;

[0021] Based on the preset safety distance and the current obstacle information corresponding to the color attribute, the starting copper bar size and the ending copper bar size in the copper bar size data, and the starting copper bar center coordinates and the ending copper bar center coordinates in the copper bar position data, the target preset path is adjusted to obtain the copper bar path from the starting copper bar to the ending copper bar corresponding to the color attribute.

[0022] Optionally, the initial copper bar path group includes copper bar paths from the starting copper bar to the ending copper bar corresponding to a plurality of electrical phases; the copper bar path includes at least one copper bar assembly;

[0023] The step of performing genetic crossover processing on every two initial copper bar path groups among the multiple initial copper bar path groups to obtain at least two offspring copper bar path groups comprises:

[0024] For every two initial copper bar path groups among the multiple initial copper bar path groups, one of the initial copper bar path groups is used as a first initial copper bar path group, and the other initial copper bar path group is used as a second initial copper bar path group;

[0025] For any first copper bar path in the first initial copper bar path group, find a second copper bar path to be crossed from the second initial copper bar path group, which has a copper bar assembly that is not completely the same as that used by the first copper bar path;

[0026] Exchanging components of the first copper bar path in the first initial copper bar path group and the second copper bar path to be crossed in the second initial copper bar path group, and if the components are exchanged, two sub-generation copper bar path groups are obtained;

[0027] Each of the first copper bar paths in the first initial copper bar path group is traversed to obtain at least two offspring copper bar path groups after genetic crossover processing is performed between the first initial copper bar path group and the second initial copper bar path group.

[0028] Optionally, the step of exchanging components of the first copper bar path in the first initial copper bar path group and the second copper bar path to be crossed in the second initial copper bar path group, and obtaining two child copper bar path groups if the components are exchanged, includes:

[0029] Acquire an initial extension direction of the first copper bar path in the first initial copper bar path group and an initial extension direction of the second copper bar path to be crossed in the second initial copper bar path group;

[0030] If the two initial extension directions are consistent, the first copper bar path in the first initial copper bar path group is replaced with the copper bar used by the second copper bar path to be crossed and an obstacle avoidance adjustment is performed, and the second copper bar path to be crossed in the second initial copper bar path group is replaced with the copper bar used by the first copper bar path and an obstacle avoidance adjustment is performed;

[0031] If the obstacle avoidance adjustments are successful twice and the two replaced copper busbar paths are connected between their respective starting copper busbars and ending copper busbars, the replaced first initial copper busbar path group and the replaced second initial copper busbar path group are both used as child copper busbar path groups.

[0032] Optionally, the electronic device maintains a preset path library, the path library comprising a plurality of preset paths and a plurality of variation rules corresponding to a first type of copper bar assembly whose length remains unchanged after variation and a plurality of variation rules corresponding to a second type of copper bar assembly whose length is variable after variation; the preset path comprises at least one copper bar assembly, the copper bar assembly being a first type of copper bar assembly or a second type of copper bar assembly or a non-variable third type of copper bar assembly;

[0033] The step of performing genetic variation processing on each of the initial copper bar path groups to obtain at least one offspring copper bar path group comprises:

[0034] Filter out a variable copper bar path group including the second type copper bar assembly from all the initial copper bar path groups;

[0035] For each of the variable copper bar path groups, determining each type-one copper bar assembly and each type-two copper bar assembly in the variable copper bar path group;

[0036] The length of each of the first type of copper busbar components in the variable copper busbar path group is adjusted according to its variation rule, and the length of each of the second type of copper busbar components in the variable copper busbar path group is adjusted according to its variation rule to obtain the child copper busbar path group.

[0037] Optionally, when in the variable copper bar path group, the first type of copper bar assembly is an L-shaped copper bar assembly and the second type of copper bar assembly is two zigzag copper bar assemblies with the same bending angle, the step of adjusting the length of each of the first type of copper bar assembly in the variable copper bar path group according to its variation rule, and adjusting the length of each of the second type of copper bar assembly in the variable copper bar path group according to its variation rule to obtain the child copper bar path group includes:

[0038] Acquire a first bending position and a second bending position of a zigzag copper busbar assembly in the variable copper busbar path group;

[0039] Calculating a first distance between the first bending position and a first terminal of the zigzag copper busbar assembly, and calculating a second distance between the second bending position and a second terminal of the zigzag copper busbar assembly;

[0040] If the first distance is smaller than the second distance and the L-shaped copper bar assembly does not exist in the space surrounded by the bending direction of the copper bar at the first bending position, the bending position of each L-shaped copper bar assembly in the variable copper bar path group is moved away from the first bending position;

[0041] The first bending position of the zigzag copper busbar assembly in the variable copper busbar path group is moved toward the first terminal, and / or the second bending position of the zigzag copper busbar assembly in the variable copper busbar path group is moved toward the second terminal to obtain the sub-generation copper busbar path group.

[0042] Optionally, the to-be-determined copper busbar path group includes copper busbar paths from a starting copper busbar to an end copper busbar corresponding to each of a plurality of electrical phases;

[0043] The step of calculating the fitness of each of the pending copper busbar path groups comprises:

[0044] For each of the pending copper busbar path groups, the path length of each copper busbar path in the pending copper busbar path group is calculated, and the sum of all path lengths is calculated to obtain the total length of the copper busbar;

[0045] Counting the number of bends of each copper busbar path in the pending copper busbar path group, and calculating the sum of all the bends to obtain the total number of bends;

[0046] Determine each bending angle in each copper bus path in the pending copper bus path group, and calculate an average bending angle based on all bending angles;

[0047] The total length of the copper busbar, the total number of bends, and the average bending angle are standardized and then weighted summed to obtain the fitness of the pending copper busbar path group.

[0048] In a second aspect, the present invention provides a copper busbar path automatic generation device, which is applied to electronic equipment, and the method includes:

[0049] Data acquisition module, used to obtain basic information of path design;

[0050] An initial generation module, used to generate an initial population based on the path design basic information, wherein the initial population includes a plurality of initial copper busbar path groups from the starting copper busbar group to the ending copper busbar group;

[0051] A crossover module, used for performing genetic crossover processing on every two initial copper bar path groups among the multiple initial copper bar path groups to obtain at least two offspring copper bar path groups;

[0052] A mutation module, used for performing genetic mutation processing on each of the initial copper bar path groups to obtain at least one offspring copper bar path group;

[0053] The fitness evaluation module is used to take all the initial copper bar path groups and all the descendant copper bar path groups as pending copper bar path groups, and after calculating the fitness of each pending copper bar path group, take the pending copper bar path group with the highest fitness as the target copper bar path group.

[0054] In a third aspect, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory stores a software program, and when the electronic device is running, the processor executes the software program to implement the method for automatically generating a copper busbar path as described in the first aspect above.

[0055] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for automatically generating a copper busbar path as described in the first aspect.

[0056] Compared with the prior art, the embodiments of the present invention provide a method, device, electronic device and readable storage medium for automatically generating a copper bar path. First, basic information of path design is obtained; then, based on the basic information of path design, an initial population is generated, and the initial population includes multiple initial copper bar path groups from the starting copper bar group to the end copper bar group; then, each two initial copper bar path groups in the multiple initial copper bar path groups are subjected to genetic crossover processing to obtain at least two offspring copper bar path groups; then, each initial copper bar path group is subjected to genetic variation processing to obtain at least one offspring copper bar path group; finally, all initial copper bar path groups and all offspring copper bar path groups are used as pending copper bar path groups, and after calculating the fitness of each pending copper bar path group, the pending copper bar path group with the highest fitness is used as the target copper bar path group. The present invention adopts the idea of ​​genetic algorithm to realize the rapid and automatic generation of copper bar paths, and avoids the waste of manpower and material resources caused by artificial copper bar path design. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0058] Figure 1 A schematic flow chart of a method for automatically generating a copper busbar path provided in an embodiment of the present invention.

[0059] Figure 2 A schematic diagram of the positions of a starting copper busbar group and an ending copper busbar group provided in an embodiment of the present invention.

[0060] Figure 3 This is a diagram showing an example of the content of basic information for path design provided in an embodiment of the present invention.

[0061] Figure 4 A schematic diagram of a copper busbar posture provided in an embodiment of the present invention.

[0062] Figure 5 A schematic diagram of a preset path provided by an embodiment of the present invention.

[0063] Figure 6 A schematic diagram of two initial copper bus path groups for genetic crossover processing provided in an embodiment of the present invention.

[0064] Figure 7 A two-dimensional projection schematic diagram of a U-shaped copper busbar assembly provided in an embodiment of the present invention.

[0065] Figure 8 A schematic diagram of a variable copper bus path group for genetic variation processing provided in an embodiment of the present invention.

[0066] Fig. 9 A schematic diagram of a variable copper bus path group for completing genetic variation processing provided by an embodiment of the present invention.

[0067] Fig.10 A schematic structural diagram of a copper busbar path automatic generation device provided in an embodiment of the present invention.

[0068] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0070] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0071] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0072] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.

[0073] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.

[0074] Here, the key words or key terms involved in the present invention are first introduced:

[0075] 1. Electrical phase: Copper bars of different colors represent different electrical phases, that is, different electrical phases correspond to different color attributes, which can be divided into the following 5 types:

[0076] (1) Phase A: refers to the first phase in a three-phase AC system, indicated in yellow;

[0077] (2) Phase B: refers to the first phase in a three-phase AC system, represented by green:

[0078] (3) Phase C: refers to the first phase in a three-phase AC system, indicated in red;

[0079] (4) N: stands for neutral line, which is a conductor in a three-phase four-wire (or five-wire) system, usually connected to the center point of the system. In the case of balanced load, no current flows through the neutral line; usually represented by blue or white;

[0080] (5) PE: stands for Protective Earth, which is a safety measure used to ground the metal casing or other accessible parts of electrical equipment to prevent the risk of electric shock due to insulation failure. It is usually represented by yellow and green stripes or light green.

[0081] 2. Copper bar group: Copper bar groups usually include 3 to 5 colors of copper bars. Among them, the 3-color copper bar group includes yellow copper bar, green copper bar and red copper bar; the 4-color copper bar group includes yellow copper bar, green copper bar, red copper bar and blue copper bar; the 5-color copper bar group includes yellow copper bar, green copper bar, red copper bar, blue copper bar and light green copper bar.

[0082] The copper busbar path automatic generation method provided by the embodiment of the present invention can be applied to electronic devices, such as laptop computers, personal computers, servers and other computing devices. The method adopts the idea of ​​genetic algorithm and can automatically generate a copper busbar path group from the copper busbar group of the bus duct (hereinafter referred to as the starting copper busbar group) to the copper busbar group extending from the top of the distribution cabinet (hereinafter referred to as the terminal copper busbar group). The implementation process of the method is described in detail below.

[0083] Please refer to Figure 1 , Figure 1 A schematic flow chart of a method for automatically generating a copper busbar path provided in an embodiment of the present invention, the method comprising the following steps S101 to S105.

[0084] S101. Obtain basic information for path design.

[0085] In this embodiment, it is necessary to design a path from the starting copper busbar group to the ending copper busbar group, and it is necessary to first obtain basic information for path design, which includes electrical property data, preset safety distance, search space range, posture information, position information, and size information.

[0086] The starting copper bar group and the ending copper bar group respectively include a plurality of starting copper bars and ending copper bars corresponding to the electrical phases. For example, see Figure 2 , Figure 2 There are 5 electrical phases in the system. The corresponding relationship between the electrical phases and color attributes of the start copper busbar group and the end copper busbar group is as follows:

[0087]

[0088] This example is only an example and is not intended to be limiting.

[0089] S102: Generate an initial population based on basic path design information.

[0090] In this embodiment, the initial population may include a plurality of initial copper bar path groups from the starting copper bar group to the ending copper bar group. Each initial copper bar path group includes a plurality of copper bar paths from the starting copper bar to the ending copper bar corresponding to each other electrically, and the copper bar path may include at least one copper bar assembly.

[0091] S103, performing genetic crossover processing on every two initial copper bar path groups among the multiple initial copper bar path groups to obtain at least two offspring copper bar path groups.

[0092] In this embodiment, after successfully completing a genetic crossover process, two initial copper bar path groups will obtain two offspring copper bar path groups, and the two parts of the crossover "genes" are: the copper bar component used in a copper bar path in one initial copper bar path group, and the copper bar component used in a copper bar path in another initial copper bar path group, that is, the essence of the genetic crossover process is: the two copper bar paths belonging to the two initial copper bar path groups support the mutual exchange of copper bar components used.

[0093] S104, performing genetic variation processing on each initial copper busbar path group to obtain at least one offspring copper busbar path group.

[0094] In this embodiment, if an initial copper bar path group is successfully genetically modified, a descendant copper bar path group will be obtained, and the mutated "gene" is: the bending position, bending angle and copper bar length data of at least one copper bar component in the initial copper bar path group. That is, the essence of the genetic modification process is: the bending position movement, bending angle change and copper bar length data change of at least one copper bar component in the initial copper bar path group.

[0095] S105, taking all the initial copper bus path groups and all the descendant copper bus path groups as pending copper bus path groups, and after calculating the fitness of each pending copper bus path group, taking the pending copper bus path group with the highest fitness as the target copper bus path group.

[0096] In this embodiment, the fitness may be represented by an evaluation score determined by evaluating at least one of the copper bar usage, the number of copper bar bending times, and the copper bar bending angle of the copper bar path group to be determined.

[0097] The method for automatically generating a copper bar path provided by an embodiment of the present invention comprises the following steps: first, obtaining basic information of path design; then, based on the basic information of path design, generating multiple initial copper bar path groups from the starting copper bar group to the terminal copper bar group; then performing genetic crossover processing on each two initial copper bar path groups to obtain at least two offspring copper bar path groups; then performing genetic variation processing on each initial copper bar path group to obtain at least one offspring copper bar path group; finally, taking all initial copper bar path groups and all offspring copper bar path groups as pending copper bar path groups, and after calculating the fitness of each pending copper bar path group, taking the pending copper bar path group with the highest fitness as the target copper bar path group. The present invention adopts the idea of ​​genetic algorithm, realizes the rapid and automatic generation of copper bar paths, and avoids the waste of manpower and material resources caused by artificial copper bar path design.

[0098] Optionally, since the starting copper busbar group and the ending copper busbar group are usually located in a complex electrical equipment (such as a distribution cabinet) layout scenario, the specific content or meaning of each item of information in the path design basic information is as follows:

[0099] (1) Electrical attribute data: including the color attributes corresponding to various electrical phases:

[0100] (2) Preset safety distance: reflects the minimum distance between two copper bars to avoid: short circuit caused by the shedding of the insulation layer of the copper bar, heat accumulation, electromagnetic interference between the copper bars, etc.

[0101] (3) Search space scope: Ensure that the copper busbar path group finally generated does not exceed the range of copper busbar routing that can be supported in the electrical equipment layout scenario;

[0102] (4) Posture information: including the copper bar posture data corresponding to each color attribute, the copper bar posture data including the starting copper bar posture and the ending copper bar posture; and the copper bar posture refers to the placement posture of the copper bar in three-dimensional space;

[0103] (5) Position information: including the copper bar position data corresponding to each color attribute, and the copper bar position data includes the center coordinates of the starting copper bar and the center coordinates of the ending copper bar;

[0104] (6) Size information: includes the copper bar size data corresponding to each color attribute, and the copper bar size data includes the starting copper bar size and the ending copper bar size. The size here includes width, thickness and length.

[0105] For optional examples, see Figure 3 , Figure 3 This is a diagram showing an example of the content of basic information for path design provided in an embodiment of the present invention. Figure 3 In the starting posture set and the end posture set in , each copper bar posture is represented as "103", combined with Figure 4 , "103" means that the copper bar as a whole is parallel to the XOY plane. Similarly, if the copper bar posture of a copper bar is expressed as "013", it means that the copper bar is parallel to the YOZ plane.

[0106] Figure 3 , Figure 4 The above is only an example and is not intended to be limiting.

[0107] Next, the implementation process of the above step 102 is introduced.

[0108] Optionally, the process of "generating an initial population based on basic information of path design" in the above step 102 may include the following sub-steps S1021 to S1022.

[0109] S1021. Arrange all color attributes corresponding to the various electrical phases to obtain various color traversal sequences.

[0110] In this embodiment, if there are n electrically corresponding color attributes in the starting copper bar group and the ending copper bar group, that is, if all n color attributes are arranged, n! (n factorial) color traversal orders will be obtained. For example, if there are 3 color attributes, there are 6 color traversal orders. This example is only an example and is not limited here.

[0111] S1022. For each color traversal sequence, based on the preset safety distance and the copper busbar posture data, copper busbar position data and copper busbar size data corresponding to various color attributes, determine in turn the copper busbar path between the starting copper busbar and the ending copper busbar corresponding to each color attribute in the color traversal sequence, and obtain an initial copper busbar path group corresponding to the color traversal sequence.

[0112] In this embodiment, the color traversal order determines the order of generating copper busbar paths of multiple color attributes, because different color traversal orders can generate different initial copper busbar path groups, ensuring population diversity. Figure 2, if a color traversal is sorted as: green, yellow, blue, red, light green, then the following will be generated in sequence: green copper bar path, yellow copper bar path, blue copper bar path, red copper bar path, light green copper bar path. This example is only an example and is not limited here.

[0113] Optionally, the electronic device maintains a preset path library, which includes a plurality of preset paths; a preset path includes at least one copper busbar assembly. According to the shape classification, the copper busbar assembly may include but is not limited to: L-shaped copper busbar assembly (bending times is 1 and bending angle is 90°), U-shaped copper busbar assembly, I-shaped copper busbar assembly (also known as straight busbar) and zigzag copper busbar assembly (bending times is 2 and two bending angles are the same), etc.

[0114] Among them, the preset path in the path library only provides a combination of copper bus paths. When the preset path is used in an actual scenario, the length, bending angle, bending position, etc. of the preset path can be adjusted.

[0115] For example, see Figure 5 , Figure 5 A schematic diagram of a preset path provided in an embodiment of the present invention. The preset path is formed by connecting an L-shaped copper busbar assembly and a zigzag copper busbar assembly. Among them: the bending position of the L-shaped copper busbar assembly is variable, that is, the size of d1 and d2 is variable; the two bending positions of the zigzag copper busbar assembly are variable and the bending angle θ is variable (usually 180°>θ≥90°), which will cause the size of d3, d4, and d5 to change.

[0116] Figure 5 The example shown is just an example of a preset path and is not limited here.

[0117] Therefore, the process in step S1022 of "determining in sequence the copper bus path between the starting copper bus and the ending copper bus corresponding to each color attribute in the color traversal order based on the preset safety distance and the copper bus posture data, copper bus position data and copper bus size data corresponding to various color attributes" may include the following sub-steps S10221 to S10224.

[0118] S10221. For each color attribute in the color traversal order, determine the current obstacle information corresponding to the color attribute;

[0119] In this embodiment, for a color attribute in a color traversal sequence, the current obstacle information corresponding to the color attribute can be divided into three parts: environmental obstacle information, the starting copper busbar group and the ending copper busbar group, and the generated copper busbar path corresponding to the color traversal sequence.

[0120] For example, combined with Figure 2, assuming that the color traversal order is: green, yellow, blue, red, light green, and the green copper busbar path and the yellow copper busbar path have been generated, the current obstacle information when the blue copper busbar path needs to be generated next includes: environmental obstacle information, the starting copper busbar group and the ending copper busbar group, the green copper busbar path and the yellow copper busbar path. This example is only for example and is not limited here.

[0121] S10222. Determine an initial extension direction based on the posture of the starting copper busbar in the copper busbar size data corresponding to the color attribute and current obstacle information.

[0122] In this embodiment, the initial extension direction represents the routing direction of the copper busbar that is in contact with the starting copper busbar.

[0123] For example, combined with Figure 2 For the starting copper bar A1, based on its corresponding starting copper bar posture (assuming it is "103"), three extendable directions can be determined starting from the connection center point M (usually the extension direction completely away from the end copper bar is not considered): the positive direction of the X axis, the negative direction of the X axis, and the square direction of the Z axis. Then, the extendable direction without obstacles within a fixed distance (for example, 14 or 20) from the connection center point M can be used as the initial extension direction. If there are no obstacles within the fixed distance pointed to by the three extendable directions, one extendable direction can be randomly selected as the initial extension direction.

[0124] This example is only an example and is not intended to be limiting.

[0125] S10223. Based on the current obstacle information corresponding to the color attribute and the center coordinates of the starting copper bar and the center coordinates of the ending copper bar in the copper bar position data, a target preset path matching the initial extension direction is searched from the path library.

[0126] In this embodiment, based on the current obstacle information corresponding to the initial extension direction and color attributes, a path planning algorithm can be used to first determine a wiring path between the center coordinates of the starting copper busbar and the center coordinates of the ending copper busbar, and then an adapted target preset path can be found from the path library based on the wiring path.

[0127] S10224. Based on the preset safety distance and current obstacle information corresponding to the color attribute, the starting copper busbar size and the ending copper busbar size in the copper busbar size data, and the starting copper busbar center coordinates and the ending copper busbar center coordinates in the copper busbar position data, the target preset path is adjusted to obtain the copper busbar path from the starting copper busbar to the ending copper busbar corresponding to the color attribute.

[0128] In this embodiment, based on the preset safety distance and the current obstacle information corresponding to the color attribute, the starting copper busbar size and the ending copper busbar size in the copper busbar size data, and the starting copper busbar center coordinates and the ending copper busbar center coordinates in the copper busbar position data, the target preset path is adjusted to obtain the copper busbar path from the starting copper busbar to the ending copper busbar corresponding to the color attribute, which can ensure that: the thickness and width of the obtained copper busbar path meet the requirements and can be connected between the starting copper busbar and the ending copper busbar, and the distance between any part of the copper busbar path and other copper busbars or environmental devices is greater than or equal to the preset safety distance.

[0129] Next, the implementation process of the above step S103 is introduced.

[0130] Optionally, the process of "performing genetic crossover processing on every two initial copper bar path groups in the multiple initial copper bar path groups to obtain at least two offspring copper bar path groups" in the above step S103 may include the following sub-steps S1031 to S1034.

[0131] S1031. For every two initial copper bar path groups among the multiple initial copper bar path groups, use one of the initial copper bar path groups as a first initial copper bar path group, and use the other initial copper bar path group as a second initial copper bar path group.

[0132] S1032: for any first copper bus path in the first initial copper bus path group, find a second copper bus path to be crossed from the second initial copper bus path group, the second copper bus path having a copper bus component that is not completely the same as that used by the first copper bus path.

[0133] In this embodiment, it is meaningless to cross two copper bar paths that use exactly the same copper bar components. Therefore, for any first copper bar path in the first initial copper bar path group, it is necessary to find a second copper bar path to be crossed that is not exactly the same as the copper bar component used by the first copper bar path. The first copper bar path is crossed with each of the second copper bar paths to be crossed to generate new offspring. S1033, the first copper bar path in the first initial copper bar path group is subjected to genetic crossover processing with the second copper bar path to be crossed in the second initial copper bar path group. If the genetic crossover processing is successful, two offspring copper bar path groups are obtained.

[0134] S1034, traversing each first copper bar path in the first initial copper bar path group, and obtaining at least two offspring copper bar path groups after genetic crossover processing is performed between the first initial copper bar path group and the second initial copper bar path group.

[0135] In this embodiment, steps S1032 to S1033 are performed for each first copper bar path in the first initial copper bar path group, so as to implement the genetic crossover processing between the first initial copper bar path group and the second initial copper bar path group.

[0136] In step S1033, whether the components can be exchanged successfully between the two copper busbar paths needs to consider whether the initial extension directions are consistent and whether there will be no overlap or conflict with other copper busbars or environmental obstacles after the intersection.

[0137] Therefore, for any found second copper busbar path to be crossed, the sub-steps of step S1033 may include:

[0138] S10331, obtaining an initial extension direction of the first copper bar path in the first initial copper bar path group and an initial extension direction of the second copper bar path to be crossed in the second initial copper bar path group;

[0139] S10332. If the two initial extension directions are consistent, the first copper bar path in the first initial copper bar path group is replaced with the copper bar used by the second copper bar path to be crossed and an obstacle avoidance adjustment is performed, and the second copper bar path to be crossed in the second initial copper bar path group is replaced with the copper bar used by the first copper bar path and an obstacle avoidance adjustment is performed;

[0140] S10333. If the two obstacle avoidance adjustments are successful and the two replaced copper busbar paths are connected between their respective starting copper busbars and ending copper busbars, the replaced first initial copper busbar path group and the replaced second initial copper busbar path group are both used as child copper busbar path groups.

[0141] For optional examples, please visit Figure 6 The first initial copper bus path group (referred to as set S1) and the second initial copper bus path group (referred to as set S2), for the green copper bus path in set S1, the copper bus paths to be crossed that are not completely the same as the copper bus components used by it include the yellow copper bus path, the green copper bus path, and the light green copper bus path in set S2. Among these three, only the first two have the same initial extension direction as the blue copper bus path in set S1.

[0142] So, combined Figure 6 , take the replacement of copper busbar components between the green copper busbar path in set S1 and the yellow copper busbar path in set 2 as an example:

[0143] (1) Replacement process in set S1: The green copper busbar path in set S1 needs to be replaced with two L-shaped copper busbar assemblies. According to its initial extension direction, after the replacement, it is inevitable that there will be an overlap conflict between the L-shaped copper busbar assembly connected to the yellow end copper busbar in the yellow copper busbar path;

[0144] (2) Replacement process in set S2: The yellow copper busbar path in set S2 needs to be replaced with an I-type copper busbar component + an L-type copper busbar component. It can be clearly seen that after the replacement, the overlapping conflict with the L-type copper busbar component in the blue copper busbar path cannot be avoided, and the overlapping conflict with the L-type copper busbar component in the green copper busbar path cannot be avoided;

[0145] Since both sets S1 and S2 will have overlapping conflicts after replacement, the copper busbar components cannot be replaced between the blue copper busbar path in set S1 and the yellow copper busbar path in set 2 to generate a child copper busbar path group.

[0146] Please continue to combine Figure 6 , taking the replacement of copper busbar components between the green copper busbar path in set S1 and the green copper busbar path in set 2 as an example:

[0147] (1) In set S1: the green copper busbar path in set S1 needs to be replaced with a zigzag copper busbar assembly plus an L-shaped copper busbar assembly. According to its initial extension direction, after the replacement, it can maintain a preset safe distance with other copper busbars and will not overlap or conflict.

[0148] (2) In set S2: The green copper busbar path in set S2 needs to be replaced with an I-type copper busbar assembly plus an L-type copper busbar assembly. According to its initial extension direction, after the replacement, it can maintain a preset safety distance with other copper buses and no overlapping conflict will occur.

[0149] Since there will be no overlapping conflict between sets S1 and S2 after replacement, the copper busbar components can be replaced between the green copper busbar paths in set S1 and the green copper busbar paths in set 2 to generate two child copper busbar path groups.

[0150] The above examples are merely illustrative and are not intended to be limiting.

[0151] Next, the implementation process of the above step S104 is introduced.

[0152] Optionally, the path library may also include multiple variation rules corresponding to a type I copper busbar assembly whose length remains unchanged after variation and multiple variation rules corresponding to a type II copper busbar assembly whose length is variable after variation. According to whether it is variable (variation means: changing at least one of the length, bending position and bending angle of the copper busbar assembly without changing the basic shape), a copper busbar assembly may be: a type I copper busbar assembly, a type II copper busbar assembly, or a type III copper busbar assembly that cannot be varied.

[0153] Among them, the variation rules of different type I copper busbar assemblies are different, and the variation rules of different type II copper busbar assemblies are also different.

[0154] For example, combined with Figure 5 The L-type copper bar assembly is a type I copper bar assembly (the length remains unchanged after variation), the zigzag copper bar assembly is a type II copper bar assembly (the length can be changed after variation), the I-type copper bar assembly is a type III copper bar assembly, and the U-type copper bar assembly is also a type II copper bar assembly.

[0155] Combination Figure 5 The variation rule of the L-shaped copper busbar assembly can be: changing the distance d1 or the distance d2; the variation rule of the zigzag copper busbar assembly can be: only changing the bending angle θ, and / or changing the size of at least one of the distances d3, d4, and d5. Figure 7 For the U-shaped copper busbar assembly, the variation rule may be: changing the height h, and / or changing the radius r.

[0156] Therefore, the process of "performing genetic variation processing on each initial copper busbar path group to obtain at least one offspring copper busbar path group" in the above step S104 may include the following sub-steps S1041 to S103.

[0157] S1041. Filter out a variable copper bus path group including a second type copper bus assembly from all initial copper bus path groups.

[0158] S1042. For each variable copper busbar path group, determine each Class I copper busbar assembly and each Class II copper busbar assembly in the variable copper busbar path group.

[0159] S1043. Adjust the length of each Class I copper busbar component in the variable copper busbar path group according to its variation rule, and adjust the length of each Class II copper busbar component in the variable copper busbar path group according to its variation rule, to obtain a child copper busbar path group.

[0160] In this embodiment, for each variable copper busbar path group, steps S1042 and S1043 are executed to implement genetic variation processing for each variable copper busbar path group.

[0161] Taking the variable copper bus path group as an example: the first type of copper bus assembly is an L-shaped copper bus assembly, and the second type of copper bus assembly is a zigzag copper bus assembly with two same bending angles, the sub-steps of step S1043 may include S10431 to S10434.

[0162] S10431, obtaining a first bending position and a second bending position of a zigzag copper busbar assembly in a variable copper busbar path group;

[0163] S10432, calculating a first distance between the first bending position and the first terminal of the zigzag copper busbar assembly, and calculating a second distance between the second bending position and the second terminal of the zigzag copper busbar assembly;

[0164] S10433. If the first distance is smaller than the second distance and there is no L-shaped copper bar assembly in the space surrounded by the bending direction of the copper bar at the first bending position, move the bending position of each L-shaped copper bar assembly in the variable copper bar path group away from the first bending position;

[0165] S10434. Move the first bending position of the zigzag copper busbar assembly in the variable copper busbar path group toward the first terminal, and / or move the second bending position of the zigzag copper busbar assembly in the variable copper busbar path group toward the second terminal, to obtain a daughter copper busbar path group.

[0166] In the optional example, combine Figure 8 The variable copper busbar path group shown in the figure has a first type of copper busbar assembly consisting of two red L-shaped copper busbar assemblies and two yellow L-shaped copper busbar assemblies, and a second type of copper busbar assembly consisting of a green zigzag copper busbar assembly.

[0167] Figure 8 In the embodiment, the first bending position A and the second bending position B of the zigzag copper busbar assembly, the first distance between the first bending position A and the first terminal of the zigzag copper busbar assembly is d1, the second distance between the second bending position B and the second terminal of the zigzag copper busbar assembly is d2, and there is no L-shaped copper busbar assembly in the space surrounded by the bending direction of the first bending position A, so the variation process is as follows (when varying, ensure that the spacing distance between the copper busbars does not exceed the preset safety distance):

[0168] (1) On the basis of ensuring that the path length of the red copper busbar remains unchanged, d3 can be appropriately increased and d4 can be correspondingly reduced, so that Figure 8 The connection point of the two red L-shaped copper busbar assemblies is moved upward, that is, the bending position of the two red L-shaped copper busbar assemblies is moved to the side away from the first bending position A; at the same time, on the basis of ensuring that the path length of the yellow copper busbar path remains unchanged, d5 can be appropriately increased and d6 can be correspondingly reduced, so that Figure 8 The connection point of the two yellow L-shaped copper busbar assemblies is moved upward, that is, the bending position of the two yellow L-shaped copper busbar assemblies is moved to the side away from the first bending position A;

[0169] (2) Since d1 is already small, d1 is not changed, and only d2 is reduced so that the second bending position B of the zigzag copper busbar assembly moves toward the direction of the second terminal.

[0170] exist Figure 8 Based on Fig. 9 , assuming Figure 8 After the mutation, the joints of the two red L-shaped copper busbar components are raised to Fig. 9 The height z1 in the middle, and the two yellow L-shaped copper busbar components are raised to the joint Fig. 9The second bending position of the zigzag copper busbar assembly changes to B'. This variation will keep the path lengths of the red copper busbar path and the yellow copper busbar path unchanged, but reduce the path length of the green copper busbar path. At the same time, the bending angle of the green zigzag copper busbar assembly also becomes smaller, which can reduce the processing difficulty.

[0171] The above is just an example and is not intended to be limiting.

[0172] In an optional implementation, for all pending copper bus path groups in S105, some of the pending copper bus path groups may exceed the search space range. Therefore, before calculating the fitness of each pending copper bus path group, it is necessary to delete each illegal copper bus path group that exceeds the search space range from all pending copper bus path groups.

[0173] In an optional implementation, the following constraints may be considered when determining the target copper busbar path group from each pending copper busbar path group:

[0174] (1) Minimize the total length of the copper busbar to reduce material costs;

[0175] (2 The total number of bends should not be too many, and the bending angle should not be too large to meet the actual processing technology and mechanical strength requirements.

[0176] Therefore, the sub-step of "calculating the fitness of each pending copper busbar path group" in the above step S105 may include S1051 to S1053.

[0177] S1051. For each pending copper busbar path group, calculate the path length of each copper busbar path in the pending copper busbar path group, and calculate the sum of all path lengths to obtain the total length of the copper busbar.

[0178] S1052: Count the number of bends of each copper busbar path in the pending copper busbar path group, and calculate the sum of all the bends to obtain a total number of bends.

[0179] S1053: Determine each bending angle in each copper bus path in the pending copper bus path group, and calculate an average bending angle based on all bending angles.

[0180] S1054: standardize the total length of the copper busbar, the total number of bends, and the average bending angle, and then perform weighted summation to obtain the fitness of the pending copper busbar path group.

[0181] In this embodiment, the total length of the copper bar, the total number of bends, and the average bending angle have different dimensions, so they need to be standardized to eliminate the dimensions before weighted summation can be performed. Optionally, the weight coefficient of the weighting can be set based on actual conditions. For example, if it is necessary to minimize the consumption of the copper bar, the weight coefficients of the total length of the copper bar, the total number of bends, and the average bending angle can be 80%, 10%, and 10%, respectively. This example is only an example and is not limited here.

[0182] by Figure 6 Take the set S1 as an example: the sum of the path lengths of the blue copper bar path, the yellow copper bar path, the green copper bar path, the red copper bar path and the light green copper bar path is the total length of the copper bar; and the number of bends of the blue copper bar path, the yellow copper bar path, the green copper bar path, the red copper bar path and the light green copper bar path is: 1, 2, 1, 2, 2, so the total number of bends is 8; and the bending angle of each bending part is 90°, so the average bending angle is 90°. This example is only an example and is not limited here.

[0183] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0184] The present invention adopts a genetic algorithm to realize the automatic generation of copper busbar paths, and uses a path library in the process of generating an initial population. When generating each copper busbar path of each initial copper busbar path group in the initial population, it is necessary to consider information such as the safety distance between the copper busbars, the copper busbar posture, the copper busbar position, and the copper busbar size, and realizes the rapid automatic generation of the copper busbar path based on a number of preset paths and obstacle information in the path library; the three-dimensional layout problem of the copper busbar is solved under a fully automatic framework, the design efficiency is improved, and the errors caused by operational errors are reduced due to reduced human intervention;

[0185] The present invention performs genetic crossover processing and genetic variation processing on the initial population respectively. In the process of genetic crossover processing, the copper bar components used by the two copper bar paths belonging to the two initial copper bar path groups are exchanged, and obstacle avoidance adjustment is performed after the exchange to ensure that there is no overlapping conflict in the obtained offspring copper bar path group; and in the process of genetic variation, at least one of the length data, bending angle, and bending radius of each first-class copper bar component and each second-class copper bar component in the variable copper bar path group including the second-class copper bar component is adjusted to obtain the offspring copper bar path group. And in the process of genetic variation, it is also possible to make the copper bar length used by the offspring copper bar path group lower than the variable copper bar path group as its parent; that is, the genetic crossover processing and genetic variation processing take into account spatial conflict detection and path optimization at the same time, ensuring the feasibility and safety of the copper bar layout in space;

[0186] When evaluating the fitness of each pending copper busbar path group, the present invention takes into account three aspects: copper busbar length, number of bending times and bending angle, to ensure that the copper busbar of the target copper busbar path finally determined uses less material to reduce the overall material cost, and has a small number of bending times and a large bending angle to meet the actual processing technology and mechanical strength requirements.

[0187] In order to execute the corresponding steps in the above method embodiment and various possible implementation modes, an implementation method of a copper busbar path automatic generation device is provided below.

[0188] See also Fig.10 , Fig.10 The schematic diagram of the structure of the copper busbar path automatic generation device provided by the embodiment of the present invention is shown. The copper busbar path automatic generation device 200 comprises: a data acquisition module 210, an initial generation module 220, a cross module 230, a variation module 240 and a fitness evaluation module 250.

[0189] Data acquisition module 210, used to acquire basic information of path design;

[0190] The initial generation module 220 is used to generate an initial population based on the path design basic information, where the initial population includes a plurality of initial copper busbar path groups from the starting copper busbar group to the ending copper busbar group;

[0191] A crossover module 230 is used to perform genetic crossover processing on every two initial copper bar path groups in the multiple initial copper bar path groups to obtain at least two offspring copper bar path groups;

[0192] A mutation module 240 is used to perform genetic mutation processing on each initial copper bar path group to obtain at least one offspring copper bar path group;

[0193] The fitness evaluation module 250 is used to take all initial copper bus path groups and all descendant copper bus path groups as pending copper bus path groups, and after calculating the fitness of each pending copper bus path group, take the pending copper bus path group with the highest fitness as the target copper bus path group.

[0194] Optionally, the initial generation module 220 is used to implement the above step S102 and its sub-steps, the crossover module 230 is used to implement the above step S103 and its sub-steps, the mutation module 240 is used to implement the above step S104 and its sub-steps, and the fitness evaluation module 250 is used to implement the above step S1052 and its sub-steps.

[0195] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the copper busbar path automatic generation device 200 described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0196] See also Fig.11 , Fig.11 The electronic device 300 includes a processor 310 , a memory 320 , and a bus 330 , wherein the processor 310 is connected to the memory 320 via the bus 330 .

[0197] The memory 320 may be used to store software programs, for example, software programs corresponding to the copper busbar path automatic generation device 200 provided in the embodiment of the present invention. The processor 310 executes various functional applications and data processing to implement the copper busbar path automatic generation method provided in the embodiment of the present invention by running the software programs stored in the memory 320.

[0198] Among them, the memory 320 can be but is not limited to: RAM (Random Access Memory), ROM (Read Only Memory), FLASH (Flash Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electric Erasable Programmable Read-Only Memory), etc.

[0199] The processor 310 may be an integrated circuit chip with signal processing capability. The processor 310 may be a general-purpose processor, including: CPU (Central Processing Unit), NP (Network Processor), etc.; it may also be: DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0200] Understandably, Fig.11 The structure shown is for illustration only. The electronic device 300 may also include Fig.11 More or fewer components as shown, or with Fig.11 Different configurations shown. Fig.11Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0201] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for automatically generating a copper bus path disclosed in the above embodiment is implemented. The computer-readable storage medium can be, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a PROM, an EPROM, an EEPROM, a FLASH disk, or an optical disk.

[0202] In summary, the embodiments of the present invention provide a method, device, electronic device and readable storage medium for automatically generating a copper bar path. First, basic information of path design is obtained; then, based on the basic information of path design, an initial population is generated, and the initial population includes multiple initial copper bar path groups from the starting copper bar group to the end copper bar group; then, each two initial copper bar path groups in the multiple initial copper bar path groups are subjected to genetic crossover processing to obtain at least two offspring copper bar path groups; then, each initial copper bar path group is subjected to genetic variation processing to obtain at least one offspring copper bar path group; finally, all initial copper bar path groups and all offspring copper bar path groups are used as pending copper bar path groups, and after calculating the fitness of each pending copper bar path group, the pending copper bar path group with the highest fitness is used as the target copper bar path group. The present invention adopts the idea of ​​genetic algorithm to realize the rapid and automatic generation of copper bar paths, avoiding the waste of manpower and material resources caused by artificial copper bar path design.

[0203] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for automatically generating a copper busbar path, characterized in that: Applied to electronic equipment, the method comprises: Obtain basic information for route design; Based on the path design basic information, an initial population is generated, wherein the initial population includes a plurality of initial copper busbar path groups from the starting copper busbar group to the ending copper busbar group; Performing genetic crossover processing on every two initial copper bar path groups among the multiple initial copper bar path groups to obtain at least two offspring copper bar path groups; Performing genetic variation processing on each of the initial copper bar path groups to obtain at least one offspring copper bar path group; All of the initial copper busbar path groups and all of the descendant copper busbar path groups are taken as pending copper busbar path groups, and after calculating the fitness of each of the pending copper busbar path groups, the pending copper busbar path group with the highest fitness is taken as the target copper busbar path group.

2. The method according to claim 1, characterized in that The basic information of the path design includes the color attributes corresponding to the various electrical phases, the preset safety distance, and the copper bar posture data, copper bar position data, and copper bar size data corresponding to each color attribute; The step of generating an initial population based on the path design basic information includes: Fully arranging the color attributes corresponding to the plurality of electrical phases to obtain a plurality of color traversal orders; For each of the color traversal sequences, based on the preset safety distance and the copper busbar posture data, copper busbar position data and copper busbar size data corresponding to the various color attributes, the copper busbar path between the starting copper busbar and the ending copper busbar corresponding to each color attribute in the color traversal sequence is determined in turn to obtain an initial copper busbar path group corresponding to the color traversal sequence.

3. The method according to claim 2, characterized in that The electronic device maintains a preset path library, and the path library contains a plurality of preset paths; The step of sequentially determining the copper bus path between the starting copper bus and the ending copper bus corresponding to each color attribute in the color traversal sequence based on the preset safety distance and the copper bus posture data, copper bus position data and copper bus size data corresponding to the various color attributes comprises: For each color attribute in the color traversal order, determine the current obstacle information corresponding to the color attribute; Determine an initial extension direction based on the starting copper bar posture in the copper bar size data corresponding to the color attribute and current obstacle information; Based on the current obstacle information corresponding to the color attribute and the center coordinates of the starting copper bar and the center coordinates of the ending copper bar in the copper bar position data, searching the target preset path adapted to the initial extension direction from the path library; Based on the preset safety distance and the current obstacle information corresponding to the color attribute, the starting copper bar size and the ending copper bar size in the copper bar size data, and the starting copper bar center coordinates and the ending copper bar center coordinates in the copper bar position data, the target preset path is adjusted to obtain the copper bar path from the starting copper bar to the ending copper bar corresponding to the color attribute.

4. The method according to claim 1, characterized in that: The initial copper bar path group includes copper bar paths from the starting copper bar to the end copper bar corresponding to a plurality of electrical phases; the copper bar path includes at least one copper bar assembly; The step of performing genetic crossover processing on every two initial copper bar path groups among the multiple initial copper bar path groups to obtain at least two offspring copper bar path groups comprises: For every two initial copper bar path groups among the multiple initial copper bar path groups, one of the initial copper bar path groups is used as a first initial copper bar path group, and the other initial copper bar path group is used as a second initial copper bar path group; For any first copper bar path in the first initial copper bar path group, find a second copper bar path to be crossed from the second initial copper bar path group, which has a copper bar assembly that is not completely the same as that used by the first copper bar path; Exchanging components of the first copper bar path in the first initial copper bar path group and the second copper bar path to be crossed in the second initial copper bar path group, and if the components are exchanged, two sub-generation copper bar path groups are obtained; Each of the first copper bar paths in the first initial copper bar path group is traversed to obtain at least two offspring copper bar path groups after genetic crossover processing is performed between the first initial copper bar path group and the second initial copper bar path group.

5. The method according to claim 4, characterized in that The step of exchanging components of the first copper bar path in the first initial copper bar path group and the second copper bar path to be crossed in the second initial copper bar path group, and obtaining two child copper bar path groups if the components are exchanged, includes: Acquire an initial extension direction of the first copper bar path in the first initial copper bar path group and an initial extension direction of the second copper bar path to be crossed in the second initial copper bar path group; If the two initial extension directions are consistent, the first copper bar path in the first initial copper bar path group is replaced with the copper bar used by the second copper bar path to be crossed and an obstacle avoidance adjustment is performed, and the second copper bar path to be crossed in the second initial copper bar path group is replaced with the copper bar used by the first copper bar path and an obstacle avoidance adjustment is performed; If the obstacle avoidance adjustments are successful twice and the two replaced copper busbar paths are connected between their respective starting copper busbars and ending copper busbars, the replaced first initial copper busbar path group and the replaced second initial copper busbar path group are both used as child copper busbar path groups.

6. The method according to claim 1, characterized in that The electronic device maintains a preset path library, which includes a plurality of preset paths and a plurality of variation rules corresponding to a first type of copper bar assembly whose length remains unchanged after variation and a plurality of variation rules corresponding to a second type of copper bar assembly whose length is variable after variation; the preset path includes at least one copper bar assembly, which is a first type of copper bar assembly, a second type of copper bar assembly, or a third type of copper bar assembly that cannot be varied; The step of performing genetic variation processing on each of the initial copper bar path groups to obtain at least one offspring copper bar path group comprises: Filter out a variable copper bar path group including the second type copper bar assembly from all the initial copper bar path groups; For each of the variable copper bar path groups, determining each type-one copper bar assembly and each type-two copper bar assembly in the variable copper bar path group; The length of each of the first type of copper busbar components in the variable copper busbar path group is adjusted according to its variation rule, and the length of each of the second type of copper busbar components in the variable copper busbar path group is adjusted according to its variation rule to obtain the child copper busbar path group.

7. The method according to claim 6, characterized in that When, in the variable copper bar path group, the first type of copper bar assembly is an L-shaped copper bar assembly, and the second type of copper bar assembly is two zigzag copper bar assemblies with the same bending angle, the step of adjusting the length of each of the first type of copper bar assembly in the variable copper bar path group according to its variation rule, and adjusting the length of each of the second type of copper bar assembly in the variable copper bar path group according to its variation rule to obtain the child copper bar path group includes: Acquire a first bending position and a second bending position of a zigzag copper busbar assembly in the variable copper busbar path group; Calculating a first distance between the first bending position and a first terminal of the zigzag copper busbar assembly, and calculating a second distance between the second bending position and a second terminal of the zigzag copper busbar assembly; If the first distance is smaller than the second distance and the L-shaped copper bar assembly does not exist in the space surrounded by the bending direction of the copper bar at the first bending position, the bending position of each L-shaped copper bar assembly in the variable copper bar path group is moved away from the first bending position; The first bending position of the zigzag copper busbar assembly in the variable copper busbar path group is moved toward the first terminal, and / or the second bending position of the zigzag copper busbar assembly in the variable copper busbar path group is moved toward the second terminal to obtain the sub-generation copper busbar path group.

8. The method according to claim 1, characterized in that The to-be-determined copper busbar path group includes copper busbar paths from the starting copper busbar to the ending copper busbar corresponding to a plurality of electrical phases; The step of calculating the fitness of each of the pending copper busbar path groups comprises: For each of the pending copper busbar path groups, the path length of each copper busbar path in the pending copper busbar path group is calculated, and the sum of all path lengths is calculated to obtain the total length of the copper busbar; Counting the number of bends of each copper busbar path in the pending copper busbar path group, and calculating the sum of all the bends to obtain the total number of bends; Determine each bending angle in each copper bus path in the pending copper bus path group, and calculate an average bending angle based on all bending angles; The total length of the copper busbar, the total number of bends, and the average bending angle are standardized and then weighted summed to obtain the fitness of the pending copper busbar path group.

9. A copper busbar path automatic generation device, characterized in that: Applied to electronic equipment, the method comprises: Data acquisition module, used to obtain basic information of path design; An initial generation module, used to generate an initial population based on the path design basic information, wherein the initial population includes a plurality of initial copper busbar path groups from the starting copper busbar group to the ending copper busbar group; A crossover module, used for performing genetic crossover processing on every two initial copper bar path groups among the multiple initial copper bar path groups to obtain at least two offspring copper bar path groups; A mutation module, used for performing genetic mutation processing on each of the initial copper bar path groups to obtain at least one offspring copper bar path group; The fitness evaluation module is used to take all the initial copper bar path groups and all the descendant copper bar path groups as pending copper bar path groups, and after calculating the fitness of each pending copper bar path group, take the pending copper bar path group with the highest fitness as the target copper bar path group.

10. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores a software program, and when the electronic device is running, the processor executes the software program to implement the method for automatically generating a copper busbar path according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for automatically generating a copper busbar path according to any one of claims 1 to 8 is implemented.