A power distribution system design method based on a CAD platform
By automatically drawing cable paths and selecting the optimal path on the CAD platform, the problem of low cable drawing efficiency in existing tools is solved, enabling efficient and accurate cable design and engineering quantity statistics.
Patent Information
- Application Number
- CN202511344964.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-19
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2045-09-19
AI Technical Summary
Existing CAD tools lack intelligence in cable drawing and quantity surveying, resulting in low drawing efficiency, high error rates, and difficulty in meeting the demand for efficient and accurate cable drawing.
By reading the grid lines and power consumption point information on the CAD platform, the optimal cable tray location and load center are calculated, the distribution box is generated, and the power distribution path is automatically drawn. The optimal path is selected, and the final power distribution system diagram and bill of materials are generated.
It enables automatic drawing and selection of cable paths, reducing manual workload and time costs, and improving the accuracy and efficiency of design, especially significantly reducing the error rate in complex designs with multiple power points.
Smart Images

Figure CN120832741B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electrical design, in particular, especially relates to a power distribution system design method based on a CAD platform. BACKGROUND
[0002] In building electrical design, the drawing of cables is a tedious and important work. The traditional manual drawing method has problems of low efficiency, easy to make mistakes, difficult to count the engineering quantity, and when there are many power points, the connection and statistical work become complex. Although the existing CAD tools can provide basic drawing functions, they lack intelligent cable drawing, path selection and automatic statistical functions, and it is difficult to meet the efficient and accurate cable drawing requirements.
[0003] For the above problems in the related art, there is no effective solution at present. SUMMARY
[0004] The main purpose of the present application is to provide a power distribution system design method based on a CAD platform, to at least solve the problem of drawing electrical diagrams and counting engineering quantities in the related art, which consumes a lot of manpower and time.
[0005] In order to achieve the above purpose, according to one aspect of the present application, a power distribution system design method based on a CAD platform is provided. The method comprises: reading the grid and power points in the CAD to obtain the grid coordinates and power point information, calculating the best bridge location, and generating the bridge at the best bridge location in the CAD, wherein the power point information includes power point coordinates, power and name; reading the bridge in the CAD to obtain bridge information, calculating the load center of the power point according to the bridge information and the power point information, and generating the distribution box in the CAD according to the load center, wherein the bridge information includes bridge endpoint coordinates and bridge specifications; reading the bridge in the CAD to decompose the bridge into point coordinates and line segments, wherein the point coordinates are the coordinates of the bridge nodes, the line segments are the line segments between the bridge nodes, and the bridge nodes are the start point, end point and inflection point of the bridge; reading the distribution box in the CAD to obtain the distribution box information, generating all distribution paths from the distribution box to the power point and calculating the length of the distribution path according to the distribution box information and the power point information, wherein the distribution box information includes distribution box coordinates and distribution box name; selecting a best path in all distribution paths and generating the best path in the CAD to obtain the final power distribution system diagram, cable length and main material list.
[0006] Optionally, when the bridge is arranged east-west, and the weighted sum of the distance from each power point to the bridge is the minimum, the endpoint coordinates of the best bridge location are determined according to the formula wherein, a minimum value of a weighted sum of distances from each power consumption point to the bridge, a number of the power consumption point, a power of the power consumption point, a longitudinal coordinate of the power consumption point, a value of a transverse coordinate of a power consumption point with a minimum transverse coordinate among all power consumption points, a value of a transverse coordinate of a power consumption point with a maximum transverse coordinate among all power consumption points, a number of the power consumption points; when the bridge is arranged in a north-south direction and a weighted sum of distances from each power consumption point to the bridge is a minimum, the formula is an end point coordinate of the optimal bridge position is determined as and wherein, a transverse coordinate of the power consumption point, a value of a longitudinal coordinate of a power consumption point with a minimum longitudinal coordinate among all power consumption points, a value of a longitudinal coordinate of a power consumption point with a maximum longitudinal coordinate among all power consumption points.
[0007] Optionally, a preset number of power consumption points are randomly determined as cluster centers, and each power consumption point is divided into a same cluster with a cluster center closest to the power consumption point.
[0008] Optionally, a sum of Euclidean distances from each power consumption point in a cluster to a corresponding cluster center is calculated to obtain a cluster distance, a cluster center corresponding to a minimum cluster distance is determined as a position of a distribution box, and a calculation formula is , a number of power consumption points in the cluster, a transverse coordinate of the power consumption point, a longitudinal coordinate of the power consumption point, a coordinate of the distribution box.
[0009] Optionally, a Manhattan distance from each power consumption point to a corresponding cluster center of the power consumption point is calculated, a calculation formula is when the bridge position is in an east-west direction, and a calculation formula is when the bridge position is in a north-south direction, wherein, a Manhattan distance, a transverse coordinate of the power consumption point, a longitudinal coordinate of the power consumption point, a transverse coordinate of the distribution box, a longitudinal coordinate of the distribution box, a transverse coordinate of the bridge node, a longitudinal coordinate of the bridge node; when a weighted sum of distances from each power consumption point to the bridge is a minimum, a distribution box position corresponding to a Manhattan distance corresponding to the power consumption point is determined as a load center, and a calculation formula is wherein, a minimum value of a weighted sum of distances from each power consumption point to the bridge, power of the power point.
[0010] Optionally, neighbor nodes of each distribution box and each bridge node are acquired, wherein the neighbor nodes are bridge nodes connected to the distribution box or the bridge node through a line segment and the power point coordinates; in step S601, one neighbor node of all the distribution boxes and each bridge node is randomly selected until the power point coordinates corresponding to the distribution box are connected to obtain a distribution path; step S601 is repeatedly executed until all the distribution paths and the path lengths are acquired.
[0011] According to another aspect of the present application, a CAD platform-based power distribution system design device is provided. The device comprises: a first reading unit configured to read a grid and power points in CAD to obtain grid coordinates and power point information, calculate optimal bridge positions, and generate bridges in CAD at the optimal bridge positions, wherein the power point information comprises power point coordinates, power, and names; a second reading unit configured to read the bridges in CAD to obtain bridge information, calculate load centers of the power points according to the bridge information and the power point information, and generate distribution boxes in CAD according to the load centers, wherein the bridge information comprises bridge endpoint coordinates and bridge specifications; a third reading unit configured to read the bridges in CAD and decompose the bridges into point coordinates and line segments, wherein the point coordinates are coordinates of bridge nodes, the line segments are line segments between the bridge nodes, and the bridge nodes are start points, end points, and inflection points of the bridges; a fourth reading unit configured to read the distribution boxes in CAD to obtain distribution box information, generate all distribution paths from the distribution boxes to the power points according to the distribution box information and the power point information, and calculate lengths of the distribution paths, wherein the distribution box information comprises distribution box coordinates and distribution box names; and a generating unit configured to select an optimal path from all the distribution paths and generate the optimal path in CAD to obtain a final power distribution system diagram, cable lengths, and a main material list.
[0012] To achieve the above object, according to another aspect of the present application, a computer readable storage medium is provided, the computer readable storage medium comprising a stored program, wherein the program performs any one of the above-mentioned CAD platform-based power distribution system design methods.
[0013] According to another aspect of the present application, an electronic device is provided, comprising one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs comprise a CAD platform-based power distribution system design method for performing any one of the above-mentioned methods.
[0014] By the present application, the following steps are adopted: reading the axis network and power points in CAD to obtain the axis network coordinates and power point information, calculating the optimal bridge position, generating the bridge at the optimal bridge position in CAD, wherein the power point information comprises power point coordinates, power and name; reading the bridge in CAD to obtain bridge information, calculating the load center of the power point according to the bridge information and the power point information, and generating the distribution box in CAD according to the load center, wherein the bridge information comprises bridge endpoint coordinates and bridge specifications; reading the bridge in CAD to decompose the bridge into point coordinates and line segments, wherein the point coordinates are the coordinates of the bridge nodes, the line segments are the line segments between the bridge nodes, and the bridge nodes are the start point, end point and inflection point of the bridge; reading the distribution box in CAD to obtain distribution box information, generating all distribution paths from the distribution box to the power point and calculating the length of the distribution path according to the distribution box information and the power point information, wherein the distribution box information comprises distribution box coordinates and distribution box name; selecting an optimal path in all distribution paths, and generating the optimal path in CAD to obtain the final power distribution system diagram, cable length and main material list, solving the problem of consuming a large amount of manpower and time in drawing electrical diagrams and statistical engineering quantities in the related art, and thereby achieving the effect of reducing manual workload and time cost. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the specific embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0016] Figure 1 is a flowchart of a power distribution system design method based on a CAD platform according to an embodiment of the present application;
[0017] Figure 2 is a structural block diagram of a power distribution system design device based on a CAD platform according to an embodiment of the present application. DETAILED DESCRIPTION
[0018] It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict. The present application will be described in detail below with reference to the drawings and in combination with the embodiments.
[0019] In order to make the personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person of ordinary skill in the art without creative labor should belong to the protection scope of the present application.
[0020] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0021] The technical scheme in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application.
[0022] In the present embodiment, a CAD platform-based power distribution system design method running on a mobile terminal, a computer terminal or the like is provided. It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical sequence is shown in the flowchart, in some cases, the steps shown or described herein can be executed in a different order.
[0023] Figure 1 is a flowchart of a CAD platform-based power distribution system design method according to an embodiment of the present application. As shown in Figure 1 , the method comprises the following steps:
[0024] Step S101, reading the grid and power points in CAD, obtaining the grid coordinates and power point information, calculating the optimal bridge position, generating the bridge in the optimal bridge position in CAD, wherein the power point information includes power point coordinates, power and name;
[0025] Specifically, the user boxes the grid and power point tiles of the building. Then the coordinates of the grid, the coordinates, power, name and the like of the power point are read from the inside of the CAD. The appropriate coordinates of each point can be determined according to the grid.
[0026] In step S102, the bridge is read in CAD to obtain bridge information, the load center of the power consumption point is calculated according to the bridge information and the power consumption point information, and the distribution box is generated in CAD according to the load center, wherein the bridge information includes bridge endpoint coordinates and bridge specifications.
[0027] Specifically, the load center of the power consumption point is calculated in batches by using the cluster algorithm and the point regression algorithm, and the distribution box entity is generated on the side of the nearest column.
[0028] In step S103, the bridge is read in CAD, and the bridge is disassembled into point coordinates and line segments, wherein the point coordinates are the coordinates of the bridge nodes, the line segments are the line segments between the bridge nodes, and the bridge nodes are the start point, end point and inflection point of the bridge.
[0029] Specifically, the entity of the bridge is read from CAD, and the arrangement information of the bridge is disassembled into a set of point coordinates and line segments, and the bridge between every two bridge nodes is regarded as a line segment.
[0030] In step S104, the distribution box is read in CAD to obtain distribution box information, and all distribution paths from the distribution box to the power consumption point are generated according to the distribution box information and the power consumption point information, and the length of the distribution path is calculated, wherein the distribution box information includes distribution box coordinates and distribution box name.
[0031] Specifically, the distance between each point and the end point and the last node is calculated point by point, and finally the shortest distance from the start point to the end point is calculated.
[0032] In step S105, a best path is selected from all the distribution paths, and the best path is generated in CAD to obtain the final distribution system diagram, cable length and main material list.
[0033] Specifically, the user can select the best path from all the generated distribution paths, or directly select the shortest distribution path as the best path, or the user can draw it by himself.
[0034] Through the embodiment, the automatic drawing and multiple path selection of the cable path are realized, the workload and time cost of manual drawing are reduced, especially in the complex design of multiple power consumption points, the advantage is more obvious, the connection point coordinates, path selection and information statistics are automatically calculated, the error rate caused by manual operation is reduced, and the design accuracy is improved.
[0035] In an optional embodiment, when the bridge is arranged east-west, and the weighted sum of the distance from each power consumption point to the bridge is the minimum, the best bridge position is determined according to the formula The endpoint coordinates of the best bridge position are And Wherein, is the minimum value of the weighted sum of the distance from each power consumption point to the bridge. is the number of the power consumption point, is the power of the power consumption point, is the ordinate of the power consumption point, is the value of the abscissa of the power consumption point with the minimum abscissa among all the power consumption points, is the value of the abscissa of the power consumption point with the maximum abscissa among all the power consumption points, is the number of the power consumption points; when the bridge is arranged in the east-west direction or the north-south direction, and the weighted sum of the distances from each power consumption point to the bridge is the minimum, the optimal bridge position is determined according to the formula the end point coordinates of the optimal bridge position are and wherein, is the abscissa of the power consumption point, is the value of the ordinate of the power consumption point with the minimum ordinate among all the power consumption points, is the value of the ordinate of the power consumption point with the maximum ordinate among all the power consumption points.
[0036] Specifically, the bridge is arranged in the east-west direction or the north-south direction. The distance between each power consumption point and the bridge is calculated by a linear regression algorithm. Finally, the line with the minimum variance is obtained as the bridge position. The distance from the bridge to the power consumption point is minimized, thereby saving space and materials in actual laying. The laying difficulty of the short-distance cable is lower, and the line loss heating is reduced, thereby reducing the probability of two types of faults and indirectly improving the stability of the power supply system. The cable path is short and direct, and in the later maintenance (such as troubleshooting and cable replacement), there is no need to trace a long detour path, thereby shortening the maintenance time.
[0037] In an alternative embodiment, a preset number of power consumption points are randomly determined as cluster centers, and each power consumption point is divided into the same cluster with the cluster center closest to it.
[0038] Specifically, the division of the cluster can reduce the calculation pressure. In the selection of the load center, each cluster can be selected, and the calculation is more rapid and accurate.
[0039] In an alternative embodiment, the sum of the Euclidean distances from each power consumption point in the cluster to the corresponding cluster center is calculated to obtain the cluster distance. The cluster center corresponding to the minimum cluster distance is determined as the position of the distribution box, and the calculation formula is , is the number of the power consumption points in the cluster, is the abscissa of the power consumption point, is the ordinate of the power consumption point, is the coordinate of the distribution box.
[0040] Specifically, this is through the cluster algorithm to calculate the load center to determine the distribution box coordinates. Distribution box as cluster center, its capacity can be designed according to the total power in the cluster (∑Pi): avoid "big box small use" (such as use 200A distribution box with 50A load, waste equipment cost) or "small box big use" (such as use 100A distribution box with 150A load, overload trip risk); can be targeted configuration protection device (such as leakage protector, overcurrent relay), and protection parameters and cluster load matching (such as high power cluster configuration high rated current circuit breaker), improve the safety of power supply.
[0041] In an alternative embodiment, the Manhattan distance of each power point to the cluster center corresponding to the power point is calculated, and when the bridge position is east-west, the calculation formula is , and when the bridge position is north-south, the calculation formula is , wherein is the Manhattan distance, is the horizontal coordinate of the power point, is the vertical coordinate of the power point, is the horizontal coordinate of the distribution box, is the vertical coordinate of the distribution box, is the horizontal coordinate of the bridge node, is the vertical coordinate of the bridge node; when the weighted sum of the distance from each power point to the bridge is the minimum, the distribution box position corresponding to the Manhattan distance corresponding to the power point is determined as the load center, and the calculation formula is , wherein is the minimum value of the weighted sum of the distance from each power point to the bridge, is the power of the power point.
[0042] Specifically, this is through the point regression algorithm to calculate the load center to determine the distribution box coordinates. The core advantage of this method is to replace the ideal straight-line distance with the Manhattan distance (Di), which is more in line with the actual wiring constraints of building power distribution system. In practical engineering, cables need to be arranged along walls, bridges, floors / ceiling, etc. "right angle path", and the calculation formula of Di (such as under the east-west bridge) exactly simulates the right angle wiring path of "power point→bridge→distribution box", avoiding the deviation of ideal distance and actual path. At the same time, the model is weighted by (power of power point), so that high-power power points (core load) have higher influence weight on the load center. The load center corresponding to the calculation of after weighting can preferentially meet the "short-distance power distribution demand" of core load, and the positioning accuracy is much higher than that of "non-weighted / equal-weighted" calculation method.
[0043] In an alternative embodiment, the neighbor nodes of each distribution box and each bridge node are acquired, wherein the neighbor nodes are the bridge nodes and power consumption point coordinates connected to the distribution box or the bridge node through a line segment; in step S601, one neighbor node of each distribution box and each bridge node is randomly selected until the power distribution path is obtained by connecting to the power consumption point coordinates corresponding to the distribution box; and step S601 is repeatedly executed until all power distribution paths and path lengths are acquired.
[0044] Specifically, the routing algorithm is used to randomly select a neighbor node from the distribution box, and then select a neighbor node through the bridge node until the power consumption point is connected. By repeating the selection, each feasible route can be selected, and finally the best path is confirmed according to the user's demand. In order to avoid waste of computing power, the node connected back should not be selected when selecting the neighbor node.
[0045] The application realizes automatic drawing of cable paths and multiple path selection, reduces the workload and time cost of manual drawing, and the advantage is more obvious especially in complex design of multiple power consumption points. By automatically calculating the connection point coordinates, path selection and information statistics, the error rate caused by manual operation is reduced, and the accuracy of the design is improved. During drawing, a data list and related tables are automatically generated, and appropriate circuit breakers, cables and other specifications can be automatically selected according to electrical information, which provides more scientific and accurate basis for designers and avoids problems caused by improper specification selection.
[0046] The embodiment of the application also provides a power distribution system design device based on a CAD platform. It should be noted that the power distribution system design device based on the CAD platform can be used to execute the power distribution system design method based on the CAD platform. The device is used to realize the above-mentioned embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the device described in the following embodiments is preferably realized in software, hardware or a combination of software and hardware is also possible and is conceived.
[0047] The following describes a power distribution system design device based on a CAD platform provided by the embodiment of the application.
[0048] Figure 2 is a structural block diagram of a power distribution system design device based on a CAD platform according to the embodiment of the application. As Figure 2As shown, the device includes: a first reading unit 201, used to read the grid lines and power consumption points in CAD, obtain the grid line coordinates and power consumption point information, calculate the optimal cable tray position, and generate the cable tray at the optimal cable tray position in CAD, wherein the power consumption point information includes the coordinates, power, and name of the power consumption point; a second reading unit 202, used to read the cable tray in CAD, obtain the cable tray information, calculate the load center of the power consumption point based on the cable tray information and the power consumption point information, and generate the distribution box in CAD based on the load center, wherein the cable tray information includes the coordinates of the cable tray endpoints and the cable tray specifications; a third reading unit 203, used to read the cable tray in CAD, and generate the distribution box based on the load center. The cable tray is disassembled into point coordinates and line segments. Point coordinates are the coordinates of the cable tray nodes, and line segments are the line segments between the cable tray nodes. The cable tray nodes are the starting point, ending point, and turning point of the cable tray. The fourth reading unit 204 is used to read the distribution box information from the CAD, generate all power distribution paths from the distribution box to the power consumption point based on the distribution box information and the power consumption point information, and calculate the length of the power distribution path. The distribution box information includes the distribution box coordinates and the distribution box name. The generation unit 205 is used to select the best path among all power distribution paths and generate the best path in the CAD to obtain the final power distribution system diagram, cable length, and main material list.
[0049] In an optional embodiment, the first reading unit 201 includes: a first determining subunit, configured to, when the cable tray is arranged in an east-west direction and the weighted sum of the distances from each power consumption point to the cable tray is minimized, determine the value of the cable tray based on the formula... The endpoint coordinates for determining the optimal cable tray location are: as well as ,in, The minimum value of the weighted sum of the distances from each power consumption point to the cable tray. The number of the electricity point. The power of the power point. The vertical coordinate of the power consumption point is... This represents the x-coordinate of the power consumption point with the smallest x-coordinate among all power consumption points. This represents the x-coordinate value of the power consumption point with the largest x-coordinate among all power consumption points. The first is the number of power consumption points; the second is to determine the sub-unit, used when the cable tray is arranged in a north-south direction and the weighted sum of the distances from each power consumption point to the cable tray is minimized, according to the formula. The endpoint coordinates for determining the optimal cable tray location are: as well as ,in, The x-coordinate of the power consumption point is... This represents the ordinate value of the power consumption point with the smallest ordinate among all power consumption points. This represents the value of the ordinate of the power consumption point with the largest ordinate among all power consumption points.
[0050] In an alternative embodiment, the second reading unit 202 comprises a third determining subunit configured to randomly determine a preset number of power consumption points as cluster centers, and each power consumption point is divided into a same cluster with its nearest cluster center.
[0051] In an alternative embodiment, the second reading unit 202 comprises a first calculating subunit configured to calculate a sum of Euclidean distances from each power consumption point in a cluster to its corresponding cluster center to obtain a cluster distance, and determine a cluster center corresponding to a minimum cluster distance as a position of a distribution box, and a calculation formula is , wherein, n is a number of power consumption points in a cluster, is an abscissa of a power consumption point, is an ordinate of a power consumption point, is a coordinate of a distribution box.
[0052] In an alternative embodiment, the second reading unit 202 comprises a second calculating subunit configured to calculate a Manhattan distance from each power consumption point to a cluster center corresponding to the power consumption point, and a calculation formula is when a bridge position is east-west, when a bridge position is south-north, wherein, is a Manhattan distance, is an abscissa of a power consumption point, is an ordinate of a power consumption point, is an abscissa of a distribution box, is an ordinate of a distribution box, is an abscissa of a bridge node, is an ordinate of a bridge node; and a third calculating subunit configured to determine a distribution box position corresponding to a Manhattan distance of each power consumption point as a load center when a weighted sum of distances from each power consumption point to a bridge is minimum, and a calculation formula is wherein, is a minimum value of the weighted sum of distances from each power consumption point to a bridge, is a power of a power consumption point.
[0053] In an alternative embodiment, the fourth reading unit 204 comprises an obtaining subunit configured to obtain neighbor nodes of each distribution box and each bridge node, wherein the neighbor nodes are bridge nodes and power consumption point coordinates connected to the distribution box or the bridge node through line segments; a selecting subunit configured to select one neighbor node of all distribution boxes and each bridge node in step S601 until a power distribution path is obtained by connecting to power consumption point coordinates corresponding to the distribution box; and an executing subunit configured to repeatedly execute step S601 until all power distribution paths and path lengths are obtained.
[0054] The CAD platform-based power distribution system design device comprises a processor and a memory, the units are stored in the memory as program units, and the corresponding functions are realized by executing the program units stored in the memory by the processor.
[0055] The processor comprises a core, and the core retrieves the corresponding program units from the memory.
[0056] The memory can comprise a non-permanent memory in a computer readable medium, a random access memory (RAM) and / or a non-volatile memory such as a read-only memory (ROM) or a flash memory (flash RAM), and the memory comprises at least one memory chip.
[0057] The embodiment of the application provides a computer readable storage medium comprising a stored program, wherein the program controls a device where the computer readable storage medium is located to execute the CAD platform-based power distribution system design method when the program is running.
[0058] Specifically, the CAD platform-based power distribution system design method comprises the following steps.
[0059] In step S101, the axis network and the power consumption point are read in CAD to obtain the axis network coordinates and the power consumption point information, the optimal bridge position is calculated, the bridge position in CAD is generated, and the bridge is generated, wherein the power consumption point information comprises power consumption point coordinates, power and name.
[0060] Specifically, the user selects the axis network and the power consumption point block of the building. Then the coordinates of the axis network, the coordinates, power, name and the like of the power consumption point are read from the CAD. The appropriate coordinates of each point can be determined according to the axis network.
[0061] In step S102, the bridge is read in CAD to obtain the bridge information, the load center of the power consumption point is calculated according to the bridge information and the power consumption point information, and the power distribution box is generated in CAD according to the load center, wherein the bridge information comprises bridge endpoint coordinates and bridge specifications.
[0062] Specifically, the cluster algorithm and the point regression algorithm are used to calculate the load center of the power consumption point in batches, and the power distribution box entity is generated on the side of the nearest column.
[0063] In step S103, the bridge is read in CAD, and the bridge is disassembled into point coordinates and line segments, wherein the point coordinates are the coordinates of the bridge nodes, the line segments are the line segments between the bridge nodes, and the bridge nodes are the start point, end point and inflection point of the bridge.
[0064] Specifically, the entity of the bridge is read from the CAD, and the arrangement information of the bridge is disassembled into point coordinates and a set of line segments, and the bridge between each two bridge nodes is taken as a line segment.
[0065] In step S104, the distribution box information is read from the CAD to obtain the distribution box information, and all distribution paths from the distribution box to the power consumption points are generated and the lengths of the distribution paths are calculated according to the distribution box information and the power consumption point information, wherein the distribution box information includes the distribution box coordinates and the distribution box name.
[0066] Specifically, the distance between each point and the terminal point and the distance between each point and the previous node are calculated point by point, and finally the shortest distance from the starting point to the terminal point is calculated.
[0067] In step S105, a best path is selected from all the distribution paths, and the best path is generated in the CAD to obtain the final distribution system diagram, the cable length and the main material list.
[0068] Specifically, the user can select the best path from all the generated distribution paths, or directly select the shortest distribution path as the best path, or the user can draw it by himself.
[0069] Optionally, when the bridge is arranged east-west, and the weighted sum of the distances from each power consumption point to the bridge is the minimum, the end point coordinates of the best bridge position are determined according to the formula and wherein, is the minimum value of the weighted sum of the distances from each power consumption point to the bridge, is the number of the power consumption point, is the power of the power consumption point, is the longitudinal coordinate of the power consumption point, is the value of the transverse coordinate of the power consumption point with the minimum transverse coordinate among all the power consumption points, is the value of the transverse coordinate of the power consumption point with the maximum transverse coordinate among all the power consumption points, is the number of the power consumption points; when the bridge is arranged north-south, and the weighted sum of the distances from each power consumption point to the bridge is the minimum, the end point coordinates of the best bridge position are determined according to the formula and wherein, is the transverse coordinate of the power consumption point, is the value of the longitudinal coordinate of the power consumption point with the minimum longitudinal coordinate among all the power consumption points, is the value of the longitudinal coordinate of the power consumption point with the maximum longitudinal coordinate among all the power consumption points.
[0070] Optionally, a preset number of power consumption points are randomly determined as cluster centers, and each power consumption point is divided into the same cluster with the cluster center closest to it.
[0071] Optionally, the sum of the Euclidean distances of each power consumption point in the cluster to the corresponding cluster center is calculated to obtain a cluster distance, and the cluster center corresponding to the minimum cluster distance is determined as the position of the distribution box, and the calculation formula is is the number of power consumption points in the cluster, is the horizontal coordinate of the power consumption point, is the vertical coordinate of the power consumption point, is the coordinate of the distribution box.
[0072] Optionally, the Manhattan distance of each power consumption point to the corresponding cluster center of the power consumption point is calculated, and when the bridge position is east-west, the calculation formula is , and when the bridge position is north-south, the calculation formula is , wherein, is the Manhattan distance, is the horizontal coordinate of the power consumption point, is the vertical coordinate of the power consumption point, is the horizontal coordinate of the distribution box, is the vertical coordinate of the distribution box, is the horizontal coordinate of the bridge node, is the vertical coordinate of the bridge node; when the weighted sum of the distance of each power consumption point to the bridge is the minimum, the distribution box position corresponding to the Manhattan distance corresponding thereto is determined as the load center, and the calculation formula is , wherein, is the minimum value of the weighted sum of the distance of each power consumption point to the bridge, is the power of the power consumption point.
[0073] Optionally, the neighbor nodes of each distribution box and each bridge node are obtained, wherein the neighbor nodes are the bridge nodes and power consumption point coordinates connected between the distribution box or the bridge node through a line segment; in step S601, one neighbor node of each distribution box and each bridge node is randomly selected until the power distribution path is obtained by connecting to the power consumption point coordinates corresponding to the distribution box; and the step S601 is repeatedly executed until all power distribution paths and path lengths are obtained.
[0074] An embodiment of the application provides a processor used for running a program, wherein the processor is used for running the CAD platform-based power distribution system design method.
[0075] Specifically, a CAD platform-based power distribution system design method comprises the following steps:
[0076] Step S101, reading the grid and power points in CAD to obtain the grid coordinates and power point information, calculating the optimal bridge location, and generating the bridge in CAD at the optimal bridge location, wherein the power point information includes power point coordinates, power, and name;
[0077] Specifically, the user boxes the grid and power point tiles of the building. Then the coordinates of the grid, the coordinates, power, name, and the like of the power point are read from the CAD. The appropriate coordinates of other points can be determined according to the grid.
[0078] Step S102, reading the bridge in CAD to obtain the bridge information, calculating the load center of the power point according to the bridge information and the power point information, and generating the distribution box in CAD according to the load center, wherein the bridge information includes bridge endpoint coordinates and bridge specifications;
[0079] Specifically, the load center of the power point is calculated in batches by using the clustering algorithm and the point regression algorithm, and the distribution box entity is generated on the side of the nearest column.
[0080] Step S103, reading the bridge in CAD to disassemble the bridge into point coordinates and line segments, wherein the point coordinates are the coordinates of the bridge nodes, the line segments are the line segments between the bridge nodes, and the bridge nodes are the start point, end point, and inflection point of the bridge;
[0081] Specifically, the entity of the bridge is read from the CAD, and the arrangement information of the bridge is disassembled into a set of point coordinates and line segments. The bridge between every two bridge nodes is regarded as a line segment.
[0082] Step S104, reading the distribution box in CAD to obtain the distribution box information, generating all distribution paths from the distribution box to the power point and calculating the length of the distribution path according to the distribution box information and the power point information, wherein the distribution box information includes the distribution box coordinates and the distribution box name;
[0083] Specifically, the distance between each point and the end point and the previous node is calculated point by point, and finally the shortest distance from the start point to the end point is calculated.
[0084] Step S105, selecting an optimal path in all distribution paths and generating the optimal path in CAD to obtain the final distribution system diagram, cable length, and main material list.
[0085] Specifically, the user can select the optimal path in all generated distribution paths, or directly select the shortest distribution path as the optimal path, or the user can draw it by himself.
[0086] Optionally, when the bridge is arranged east-west and the weighted sum of the distances from each power point to the bridge is the minimum, the optimal bridge location is determined according to the formula The endpoint coordinates of the optimal bridge location are and wherein, is the minimum value of the weighted sum of the distance from each power point to the bridge, is the number of the power point, is the power of the power point, is the ordinate of the power point, is the value of the abscissa of the power point with the minimum abscissa among all the power points, is the value of the abscissa of the power point with the maximum abscissa among all the power points, is the number of the power points; when the bridge is arranged in the north-south direction and the weighted sum of the distance from each power point to the bridge is the minimum, the end point coordinates of the optimal bridge position are determined according to the formula and wherein, is the abscissa of the power point, is the value of the ordinate of the power point with the minimum ordinate among all the power points, is the value of the ordinate of the power point with the maximum ordinate among all the power points.
[0087] Optionally, a preset number of power points are randomly determined as cluster centers, and each power point is divided into the same cluster with the cluster center closest to the power point.
[0088] Optionally, the sum of the Euclidean distances from each power point in a cluster to the corresponding cluster center is calculated to obtain a cluster distance, and the cluster center corresponding to the minimum cluster distance is determined as the position of the distribution box, and the calculation formula is , is the number of the power points in the cluster, is the abscissa of the power point, is the ordinate of the power point, is the coordinate of the distribution box.
[0089] Optionally, the Manhattan distance from each power point to the corresponding cluster center of the power point is calculated, and the calculation formula is when the bridge position is in the east-west direction, and the calculation formula is wherein, is the Manhattan distance, is the abscissa of the power point, is the ordinate of the power point, is the abscissa of the distribution box, is the ordinate of the distribution box, is the abscissa of the bridge node, is the ordinate of the bridge node; when the weighted sum of the distance from each power point to the bridge is the minimum, the distribution box position corresponding to the Manhattan distance is determined as the load center, and the calculation formula is wherein, is the minimum value of the weighted sum of the distance from each power point to the bridge, is the power of the power point.
[0090] Optionally, the neighbor nodes of each distribution box and each bridge node are acquired, wherein the neighbor nodes are the bridge nodes and the power point coordinates connected by line segments between the distribution box or the bridge node; in step S601, one neighbor node of all the distribution boxes and each bridge node is randomly selected until the power point coordinates corresponding to the distribution box are connected to obtain a power distribution path; step S601 is repeatedly executed until all the power distribution paths and the path lengths are acquired.
[0091] The embodiment of the present application provides a device, the device comprising a processor, a memory and a program stored on the memory and executable on the processor, wherein the processor implements at least the following steps when executing the program: reading a grid and a power point in CAD to obtain grid coordinates and power point information, calculating an optimal bridge position, and generating a bridge at the optimal bridge position in CAD, wherein the power point information comprises power point coordinates, power and name; reading the bridge in CAD to obtain bridge information, calculating a load center of the power point according to the bridge information and the power point information, and generating a distribution box in CAD according to the load center, wherein the bridge information comprises bridge endpoint coordinates and bridge specifications; reading the bridge in CAD to disassemble the bridge into point coordinates and line segments, wherein the point coordinates are coordinates of bridge nodes, the line segments are line segments between the bridge nodes, and the bridge nodes are start points, end points and inflection points of the bridge; reading the distribution box in CAD to obtain distribution box information, generating all power distribution paths from the distribution box to the power point and calculating the lengths of the power distribution paths according to the distribution box information and the power point information; selecting an optimal path in all the power distribution paths, and generating the optimal path in CAD to obtain a final power distribution system diagram, cable length and a main material list. The device in the present application can be a server, a PC, a PAD, a mobile phone and the like.
[0092] Optionally, when the bridge is arranged in the east-west direction, and the weighted sum of the distance from each power point to the bridge is the minimum value, the optimal bridge position is determined according to the formula The endpoint coordinates of the optimal bridge position are and wherein, is the minimum value of the weighted sum of the distance from each power point to the bridge, is the number of the power point, is the power of the power point, is the longitudinal coordinate of the power point, is the value of the transverse coordinate of the power point with the minimum transverse coordinate among all the power points, a value of a horizontal coordinate of a power consumption point with the largest horizontal coordinate among all power consumption points, a number of power consumption points; when the bridge is arranged in the north-south direction and a weighted sum of distances of each power consumption point to the bridge is the smallest, the formula is an end point coordinate of the optimal bridge position is and wherein, a horizontal coordinate of a power consumption point, a value of a vertical coordinate of a power consumption point with the smallest vertical coordinate among all power consumption points, a value of a vertical coordinate of a power consumption point with the largest vertical coordinate among all power consumption points.
[0093] Optionally, a preset number of power consumption points are randomly determined as cluster centers, and each power consumption point is divided into a same cluster with a cluster center closest to the power consumption point.
[0094] Optionally, a sum of Euclidean distances of each power consumption point in a cluster to a corresponding cluster center is calculated to obtain a cluster distance, a cluster center corresponding to a minimum cluster distance is determined as a position of a distribution box, and a calculation formula is , a number of power consumption points in the cluster, a horizontal coordinate of a power consumption point, a vertical coordinate of a power consumption point, a coordinate of the distribution box.
[0095] Optionally, a Manhattan distance of each power consumption point to a corresponding cluster center of the power consumption point is calculated, a calculation formula is when the bridge position is in the east-west direction, and a calculation formula is wherein, a Manhattan distance, a horizontal coordinate of a power consumption point, a vertical coordinate of a power consumption point, a horizontal coordinate of the distribution box, a vertical coordinate of the distribution box, a horizontal coordinate of a bridge node, a vertical coordinate of the bridge node; when a weighted sum of distances of each power consumption point to the bridge is the smallest, a distribution box position corresponding to a Manhattan distance of the power consumption point is determined as a load center, and a calculation formula is wherein, a minimum value of the weighted sum of distances of each power consumption point to the bridge, a power of the power consumption point.
[0096] Optionally, the neighbor nodes of each power distribution box and each bridge node are acquired, wherein the neighbor nodes are the bridge nodes and the power consumption point coordinates connected with the power distribution box or the bridge node through line segments; in step S601, one neighbor node of all the power distribution boxes and each bridge node is randomly selected until the power consumption point coordinates corresponding to the power distribution box are connected to obtain a power distribution path; step S601 is repeatedly executed until all the power distribution paths and the path lengths are acquired.
[0097] The application also provides a computer program product adapted to execute the program of initializing at least the following method steps when executed on a data processing device: reading the axis network and the power consumption points in CAD to obtain the axis network coordinates and the power consumption point information, calculating the optimal bridge position, generating the bridge at the optimal bridge position in CAD, wherein the power consumption point information comprises the power consumption point coordinates, the power and the name; reading the bridge in CAD to obtain the bridge information, calculating the load center of the power consumption point according to the bridge information and the power consumption point information, and generating the power distribution box in CAD according to the load center, wherein the bridge information comprises the bridge endpoint coordinates and the bridge specifications; reading the bridge in CAD to disassemble the bridge into point coordinates and line segments, wherein the point coordinates are the coordinates of the bridge nodes, the line segments are the line segments between the bridge nodes, and the bridge nodes are the start point, the end point and the inflection point of the bridge; reading the power distribution box in CAD to obtain the power distribution box information, generating all the power distribution paths from the power distribution box to the power consumption points and calculating the lengths of the power distribution paths according to the power distribution box information and the power consumption point information; selecting an optimal path in all the power distribution paths and generating the optimal path in CAD to obtain the final power distribution system diagram, the cable length and the main material list.
[0098] Optionally, when the bridge is arranged in the east-west direction and the weighted sum of the distances from each power consumption point to the bridge is the minimum, the endpoint coordinates of the optimal bridge position are determined according to the formula Optionally, when the bridge is arranged in the east-west direction and the weighted sum of the distances from each power consumption point to the bridge is the minimum, the endpoint coordinates of the optimal bridge position are determined according to the formula and wherein, is the minimum value of the weighted sum of the distances from each power consumption point to the bridge, is the number of the power consumption point, is the power of the power consumption point, is the longitudinal coordinate of the power consumption point, is the value of the transverse coordinate of the power consumption point with the minimum transverse coordinate among all the power consumption points, is the value of the transverse coordinate of the power consumption point with the maximum transverse coordinate among all the power consumption points, is the number of the power consumption points; when the bridge is arranged in the south-north direction and the weighted sum of the distances from each power consumption point to the bridge is the minimum, the endpoint coordinates of the optimal bridge position are determined according to the formula Optionally, when the bridge is arranged in the east-west direction and the weighted sum of the distances from each power consumption point to the bridge is the minimum, the endpoint coordinates of the optimal bridge position are determined according to the formula and wherein, a horizontal coordinate of the power consumption point, a value of a vertical coordinate of the power consumption point with the minimum vertical coordinate among all power consumption points, a value of a vertical coordinate of the power consumption point with the maximum vertical coordinate among all power consumption points.
[0099] Optionally, a preset number of power consumption points are randomly determined as cluster centers, and each power consumption point is divided into a same cluster with the cluster center closest to the power consumption point.
[0100] Optionally, a sum of Euclidean distances of each power consumption point in a cluster to the corresponding cluster center is calculated to obtain a cluster distance, and a cluster center corresponding to the minimum cluster distance is determined as the position of the distribution box, and the calculation formula is , a number of power consumption points in the cluster, a horizontal coordinate of the power consumption point, a vertical coordinate of the power consumption point, a coordinate of the distribution box.
[0101] Optionally, a Manhattan distance of each power consumption point to the corresponding cluster center is calculated, and when the bridge position is east-west, the calculation formula is and when the bridge position is south-north, the calculation formula is wherein, a Manhattan distance, a horizontal coordinate of the power consumption point, a vertical coordinate of the power consumption point, a horizontal coordinate of the distribution box, a vertical coordinate of the distribution box, a horizontal coordinate of the bridge node, a vertical coordinate of the bridge node; when a weighted sum of distances of each power consumption point to the bridge is the minimum, a distribution box position corresponding to the Manhattan distance corresponding to the power consumption point is determined as the load center, and the calculation formula is wherein, a minimum value of the weighted sum of distances of each power consumption point to the bridge, a power of the power consumption point.
[0102] Optionally, neighbor nodes of each distribution box and each bridge node are obtained, wherein the neighbor nodes are bridge nodes and power consumption point coordinates connected between the distribution box or the bridge node through a line segment; in step S601, one neighbor node of all distribution boxes and each bridge node is randomly selected until the power consumption point coordinate corresponding to the distribution box is connected to obtain a power distribution path; step S601 is repeatedly executed until all power distribution paths and path lengths are obtained.
[0103] It should be apparent to those skilled in the art that the modules or steps of the application described above can be implemented with a general purpose computer, and can be centralized in a single computer or distributed among a network of computers, and can be implemented with program code executable by a computer, and thus can be stored in a storage device and executed by a computer, and in some cases, the steps shown or described can be executed in a different order than shown or described, or can be implemented as separate integrated circuit modules or as a single integrated circuit module, and thus the application is not limited to any particular combination of hardware and software.
[0104] Those skilled in the art will appreciate that embodiments of the application can be devised for a method, a system, or a computer program product. Accordingly, the application can be embodied in the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code.
[0105] The present application is described herein with reference to the flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.
[0106] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.
[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart illustrations and / or block diagrams.Figure 1 one or more processes and / or blocks Figure 1 the steps of a function specified in one or more processes or blocks.
[0108] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0109] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) about which the computer stores information about the operating environment. This memory is an example of computer readable media. The memory can also include non-volatile memory, such as read only memory (ROM), electrically programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), flash memory, or other memory technologies.
[0110] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically programmable read only memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer readable media does not include transitory media such as modulated data signals and carriers.
[0111] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not only include those elements, but can also include other elements not expressly listed or inherent to such process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.
[0112] The above description is only preferred embodiments of the present application and is not intended to limit the present application. Those skilled in the art can make various modifications and changes to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A power distribution system design method based on a CAD platform, characterized in that, include: Read the grid lines and power consumption points in CAD to obtain grid line coordinates and power consumption point information, calculate the optimal cable tray location, and generate the cable tray at the optimal cable tray location in CAD. The power consumption point information includes the coordinates, power, and name of the power consumption point. The cable tray is read in CAD to obtain cable tray information. The load center of the power consumption point is calculated based on the cable tray information and the power consumption point information. The distribution box is generated in CAD based on the load center. The cable tray information includes the coordinates of the cable tray endpoints and the cable tray specifications. The cable tray is read in CAD and decomposed into point coordinates and line segments. The point coordinates are the coordinates of the cable tray nodes, and the line segments are the line segments between the cable tray nodes. The cable tray nodes are the start point, end point, and inflection point of the cable tray. The distribution box information is obtained by reading the distribution box in CAD. Based on the distribution box information and the power consumption point information, all power distribution paths from the distribution box to the power consumption point are generated and the length of the power distribution path is calculated. The distribution box information includes the distribution box coordinates and the distribution box name. Select the optimal path from all the power distribution paths and generate the optimal path in CAD to obtain the final power distribution system diagram, cable length, and bill of materials.
2. The method according to claim 1, characterized in that, Read the grid lines and power supply points in CAD to obtain the grid coordinates and power supply point information, calculate the optimal cable tray location, and generate the cable tray at the optimal location in CAD, including: When the cable tray is arranged in an east-west direction, and the weighted sum of the distances from each power consumption point to the cable tray is minimized, according to the formula... The endpoint coordinates of the optimal cable tray location are determined as follows: as well as ,in, The minimum value of the weighted sum of the distances from each power consumption point to the cable tray. The number of the power consumption point. The power of the power consumption point. Let be the ordinate of the power consumption point. The x-coordinate value is the value of the x-coordinate of the power consumption point with the smallest x-coordinate among all the power consumption points. The x-coordinate value is the value of the x-coordinate of the power consumption point with the largest x-coordinate among all the power consumption points. The number of the power consumption points; When the cable tray is arranged in a north-south direction, and the weighted sum of the distances from each power consumption point to the cable tray is minimized, according to the formula... The endpoint coordinates of the optimal cable tray location are determined as follows: as well as ,in, Let x be the x-coordinate of the point of electricity consumption. The value of the ordinate of the power consumption point with the smallest ordinate among all the power consumption points. The value of the ordinate of the power consumption point with the largest ordinate among all the power consumption points.
3. The method according to claim 1, characterized in that, The cable tray is read in CAD to obtain cable tray information. Based on the cable tray information and the power consumption point information, the load center of the power consumption point is calculated. Based on the load center, a distribution box is generated in CAD, including: A preset number of power consumption points are randomly selected as cluster centers, and each power consumption point is assigned to the same cluster as the nearest cluster center.
4. The method according to claim 3, characterized in that, The cable tray is read in CAD to obtain cable tray information. Based on the cable tray information and the power consumption point information, the load center of the power consumption point is calculated. Based on the load center, a distribution box is generated in CAD, including: Calculate the sum of the Euclidean distances from each power consumption point in the cluster to its corresponding cluster center to obtain the cluster distance. Determine the location of the distribution box based on the cluster center corresponding to the minimum cluster distance. The calculation formula is as follows: , The number of power consumption points in the cluster. Let x be the x-coordinate of the point of electricity consumption. Let be the ordinate of the power consumption point. Let be the coordinates of the distribution box.
5. The method according to claim 3, characterized in that, The cable tray is read in CAD to obtain cable tray information. Based on the cable tray information and the power consumption point information, the load center of the power consumption point is calculated. Based on the load center, a distribution box is generated in CAD, including: Calculate the Manhattan distance from each power consumption point to the corresponding cluster center. When the cable tray is located in an east-west direction, the calculation formula is as follows: When the cable tray is oriented north-south, the calculation formula is as follows: ,in, The Manhattan distance, Let x be the x-coordinate of the point of electricity consumption. Let be the ordinate of the power consumption point. Let x be the x-coordinate of the distribution box. Let be the ordinate of the distribution box. Let x be the x-coordinate of the cable tray node. Let be the ordinate of the cable tray node; When the weighted sum of the distances from each power consumption point to the cable tray is minimized, the location of the distribution box corresponding to the Manhattan distance is determined as the load center. The calculation formula is as follows: ,in, The minimum value of the weighted sum of the distances from each power consumption point to the cable tray. The power of the power consumption point is denoted as .
6. The method according to claim 1, characterized in that, The distribution box information is read from the CAD file. Based on the distribution box information and the power consumption point information, all power distribution paths from the distribution box to the power consumption point are generated, and the length of each power distribution path is calculated. Obtain the neighbor nodes of each of the distribution boxes and each of the cable tray nodes, wherein the neighbor nodes are the cable tray nodes connected to the distribution boxes or the cable tray nodes by line segments and the coordinates of the power consumption points; Step S601: Randomly select a neighboring node for all the distribution boxes and each cable tray node until the power consumption point coordinates corresponding to the distribution box are connected to obtain the power distribution path; Repeat step S601 until all the power distribution paths and path lengths are obtained.
7. A power distribution system design device based on a CAD platform, characterized in that, include: The first reading unit is used to read the grid lines and power consumption points in CAD, obtain the grid line coordinates and power consumption point information, calculate the optimal cable tray position, and generate the cable tray at the optimal cable tray position in CAD. The power consumption point information includes the power consumption point coordinates, power, and name. The second reading unit is used to read the cable tray in CAD to obtain cable tray information, calculate the load center of the power consumption point based on the cable tray information and the power consumption point information, and generate a distribution box in CAD based on the load center. The cable tray information includes the cable tray end coordinates and cable tray specifications. The third reading unit is used to read the cable tray in CAD, and disassemble the cable tray into point coordinates and line segments, wherein the point coordinates are the coordinates of the cable tray nodes, the line segments are the line segments between the cable tray nodes, and the cable tray nodes are the starting point, ending point and inflection point of the cable tray. The fourth reading unit is used to read the distribution box information from the CAD, generate all power distribution paths from the distribution box to the power consumption point based on the distribution box information and the power consumption point information, and calculate the length of the power distribution path. The distribution box information includes the distribution box coordinates and the distribution box name. The generation unit is used to select an optimal path from all the power distribution paths and generate the optimal path in CAD to obtain the final power distribution system diagram, cable length, and bill of materials.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform a power distribution system design method based on a CAD platform as described in any one of claims 1 to 6.
9. An electronic device, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including methods for performing a power distribution system design method based on a CAD platform as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Power distribution network automatic wiring method based on shortest path of multiple necessary points
CN110765563A
Power system looped network diagram optimal path automatic generation method and system
CN112446113A