Electrical element deployment scheme determination method and device, equipment and storage medium
By generating and optimizing the electrical component deployment plan based on size and component information in the electrical control cabinet, the problem of inaccurate manual deployment costs is solved, and the economic optimization of the electrical control cabinet is achieved.
Patent Information
- Application Number
- CN202411020326.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-12
AI Technical Summary
In the prior art, when deploying electrical components in electrical control cabinets through manual experience, it is impossible to accurately determine the component deployment plan with the lowest deployment cost, which poses safety risks and increases the deployment cost.
By randomly generating component deployment plans based on the size information of the electrical control cabinet and the information of the components to be deployed, the component deployment plans are randomly generated, and the pre-built objective function is used for optimization processing, the cost of each deployment plan is calculated, and the target component deployment plans corresponding to the minimum deployment cost is determined. .
It realizes the automatic determination of component deployment solutions with the lowest deployment cost while meeting the normal operation of the electrical control cabinet, and improves the economical optimization of component deployment of the electrical control cabinet.
Smart Images

Figure CN118940631A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of component layout planning of an electrical control cabinet, and in particular to a method, device, equipment and storage medium for determining an electrical component deployment plan. Background Art
[0002] There are many factors to consider when deploying electrical components in an electrical control cabinet to ensure the stability and economy of the system.
[0003] At present, when deploying electrical components in electrical control cabinets, only the "intricate" wires connecting the components are considered, and wiring optimization is performed based on experience or with the help of wiring software. There is often a certain degree of experience and arbitrariness in the layout of electrical components. Unreasonable layout plans not only pose safety hazards, but also increase the deployment cost of electrical control cabinets when deploying electrical components.
[0004] In order to solve the above problems, it is necessary to improve the method for determining the electrical component deployment plan. Summary of the invention
[0005] The present invention provides a method, device, equipment and storage medium for determining an electrical component deployment plan to solve the problem in the prior art that when electrical components in an electrical control cabinet are deployed through manual experience, it is impossible to accurately determine the component deployment plan with the lowest deployment cost.
[0006] In a first aspect, an embodiment of the present invention provides a method for determining an electrical component deployment solution, comprising:
[0007] Determine at least one component deployment scheme corresponding to the electrical control cabinet according to component deployment information of at least one component to be deployed in the electrical control cabinet; wherein the component to be deployed is an electrical component to be deployed in the electrical control cabinet;
[0008] Determine the deployment cost corresponding to each component deployment plan based on the pre-built objective function;
[0009] According to the deployment costs of the component deployment plans, the component deployment plan corresponding to the minimum deployment cost is used as the target component deployment plan corresponding to the electrical control cabinet.
[0010] In a second aspect, an embodiment of the present invention further provides a device for determining an electrical component deployment scheme, including:
[0011] A deployment scheme determination module, used to determine at least one component deployment scheme corresponding to the electrical control cabinet according to component deployment information of at least one component to be deployed in the electrical control cabinet; wherein the component to be deployed is an electrical component to be deployed in the electrical control cabinet;
[0012] A deployment cost determination module, used to determine the deployment cost corresponding to each component deployment plan based on a pre-built objective function;
[0013] The target deployment scheme determination module is used to use the component deployment scheme corresponding to the minimum deployment cost as the target component deployment scheme corresponding to the electrical control cabinet according to the deployment costs of the component deployment schemes.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, including:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for determining the electrical component deployment plan described in any embodiment of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining the electrical component deployment plan described in any embodiment of the present invention when executed.
[0019] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a method for determining an electrical component deployment scheme as described in any one of the embodiments of the present invention.
[0020] The technical solution of the embodiment of the present invention determines at least one component deployment scheme corresponding to the electrical control cabinet according to the component deployment information of at least one component to be deployed in the electrical control cabinet; wherein the component to be deployed is an electrical component to be deployed in the electrical control cabinet; based on the pre-constructed objective function, the deployment cost corresponding to each component deployment scheme is determined; according to the deployment cost of each component deployment scheme, the component deployment scheme corresponding to the minimum deployment cost is used as the target component deployment scheme corresponding to the electrical control cabinet. This technical solution randomly generates at least one component deployment scheme through the size information of the electrical control cabinet and the deployment information of at least one component to be deployed, and optimizes each component deployment scheme, and then calculates the deployment cost of each optimized component deployment scheme through the pre-set objective function, so as to use the component deployment scheme corresponding to the minimum component deployment cost from at least one deployment cost as the target component deployment scheme. In this process, it is only necessary to clarify the size information of the electrical control cabinet and the component size information and component deployment information of each component to be deployed, so as to automatically determine the target component deployment scheme with the minimum deployment cost corresponding to the electrical control cabinet. The present invention solves the problem in the prior art that when deploying electrical components in an electrical control cabinet through manual experience, it is impossible to accurately determine the component deployment plan with the lowest deployment cost, thereby achieving the effect of using the component deployment plan with the lowest deployment cost as the target component deployment plan under the premise of satisfying the normal operation of the electrical control cabinet, thereby improving the economic optimality of the component deployment of the electrical control cabinet.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a flow chart of a method for determining an electrical component deployment solution provided according to Embodiment 1 of the present invention;
[0024] Figure 2 is a flow chart of a method for determining an electrical component deployment solution provided according to Embodiment 2 of the present invention;
[0025] Figure 3 is a structural schematic diagram of a device for determining an electrical component deployment scheme provided according to Embodiment 3 of the present invention;
[0026] Figure 4 It is a structural schematic diagram of an electronic device for implementing a method for determining an electrical component deployment scheme according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only an embodiment of a part of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention. The acquisition, transmission, storage, use, and processing of data in the technical scheme of this application are in compliance with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of this application, certain software, components, or models that already exist in the industry may be mentioned. They should be considered as exemplary. Their purpose is only to illustrate the feasibility of the implementation of the technical scheme of this application, but it does not mean that the applicant has or will necessarily use the scheme.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0029] Embodiment 1
[0030] Figure 1 A flowchart of a method for determining an electrical component deployment scheme is provided for the first embodiment of the present invention. This embodiment can be applied to the case where at least one component deployment scheme is automatically determined based on size information of an electrical control cabinet and component deployment information of at least one electrical component to be deployed in the electrical control cabinet, and the component deployment scheme corresponding to the minimum deployment cost is used as the target component deployment scheme of the electrical control cabinet. The method can be executed by a device for determining an electrical component deployment scheme. The device for determining an electrical component deployment scheme can be implemented in the form of hardware and / or software. The device for determining an electrical component deployment scheme can be configured in a computing device that can execute the method for determining an electrical component deployment scheme.
[0031] like Figure 1 As shown, the method includes:
[0032] S110. Determine at least one component deployment scheme corresponding to the electrical control cabinet according to component deployment information of at least one component to be deployed in the electrical control cabinet.
[0033] Among them, the electrical control cabinet is an important electrical equipment in modern industry and is widely used in the industrial field. The electrical control cabinet is a device that assembles switchgear, measuring instruments, protective electrical appliances and auxiliary equipment in a closed or semi-closed metal cabinet or on a screen according to the electrical wiring requirements, and its layout should meet the requirements for normal operation of the power system. The components to be deployed are electrical components to be deployed in the electrical control cabinet. For example, the components to be deployed can be common electrical components such as switches, power supplies, relays, leakage protectors, incoming terminals, transfer terminals, outgoing terminals, grounding terminals, inverters, and programmable logic controllers (PLCs). Component deployment information refers to the deployment information of the components to be deployed in the electrical control cabinet, such as component deployment position, component size information, safety spacing information between components to be deployed, and connection relationships between components. The component deployment plan refers to the component layout information of at least one component to be deployed in the electrical control cabinet.
[0034] In practical applications, when deploying electrical components in electrical control cabinets, multiple factors need to be considered to ensure the stability and economy of the system. For example, the layout of electrical components should be based on their thermal characteristics and electromagnetic compatibility requirements, and modular design can improve the convenience of maintenance. In other words, when deploying electrical components in electrical control cabinets, not only the rationality of component deployment should be considered, but also the deployment cost of the entire deployment process.
[0035] Based on this, the technical solution takes into account that the electrical control cabinet and the components to be deployed usually have certain sizes, and because the component types, component sizes and connection relationships between the components to be deployed are different, different component deployment schemes can be used when deploying at least one component to be deployed in the electrical control cabinet, provided that all components to be deployed are deployed in the electrical control cabinet and the normal operation of the electrical control cabinet is guaranteed. Furthermore, since the deployment costs of different component deployment schemes will also be different, considering the economic efficiency of the deployment of the electrical control cabinet, the technical solution can determine the optimal component deployment scheme corresponding to the electrical control cabinet based on the deployment cost of the component deployment scheme. For example, the component deployment scheme with the lowest deployment cost is used as the target component deployment scheme of the electrical control cabinet, so as to reasonably plan the component layout information of the electrical control cabinet based on the component deployment information of each component to be deployed in the target component deployment scheme.
[0036] S120: Determine the deployment cost corresponding to each component deployment plan based on the pre-built objective function.
[0037] In the present technical solution, the objective function refers to a function used to calculate the cost according to the deployment information of each component to be deployed in the component deployment solution.
[0038] In practical applications, it is sufficient to ensure that at least one component to be deployed in the electrical control cabinet can be fully deployed in the control cabinet and the normal operation of the electrical control cabinet is ensured. At present, when designing an electrical control cabinet, the components to be deployed are laid out based on experience and the connection relationship between the components to be deployed. However, this deployment method not only has safety risks, but also does not take into account the deployment cost of the electrical control cabinet.
[0039] Based on this, in order to ensure the economic optimality of the electrical control cabinet while satisfying the normal operation of the electrical control cabinet, the technical scheme can use a pre-constructed objective function to perform cost calculation on at least one component deployment scheme of the electrical control cabinet, and obtain the deployment cost of each component deployment scheme to determine the target component deployment scheme from at least one component deployment scheme.
[0040] Optionally, based on a pre-constructed objective function, the deployment cost corresponding to each component deployment plan is determined, including: for each component deployment plan, the target vector corresponding to the current component deployment plan is input into a preset initial function, and the initial function is constrained based on at least one function constraint condition to obtain the objective function; based on the objective function, the deployment cost corresponding to the current component deployment plan is determined.
[0041] In order to facilitate determination of the deployment cost corresponding to the component deployment plan in the present technical solution, the component deployment plan may be represented in a vector manner.
[0042] The target vector can be understood as the vector after the current component deployment plan is vectorized. The initial function can be understood as the cost calculation function without conditional constraints. In this technical solution, the initial function needs to be constrained according to the component layout characteristics in the electrical control cabinet to obtain the target function.
[0043] In a specific example, the current component deployment plan can be vectorized by real number coding to generate a set of real number vectors of length m (i.e., target vectors). Each vector element in the target vector can represent the deployment position of a component to be deployed in the electrical control cabinet, and its value range is (1, r max +1), where r max Indicates the maximum number of rows of electrical components in the electrical control cabinet, obtained based on the size information of the electrical control cabinet and the components to be deployed. max =3 means that the maximum number of rows that can be used to deploy electrical components in the electrical control cabinet is 3.
[0044] The integer part of the elements in the target vector represents the number of rows in which the corresponding components to be deployed are laid out; the components to be deployed that are laid out in the same row are placed from left to right one by one according to the decimal part of the corresponding elements, which can be used to represent the order of deployment positions of the components to be deployed in the same row.
[0045] In this technical solution, the preset initial function can be expressed by the following formula:
[0046]
[0047] Among them, Min F represents the deployment cost corresponding to the current component deployment plan, m represents the number of components to be deployed in the current component deployment plan, i and j are used to represent different components to be deployed, and c ij represents the cost per unit length of the connection line between the ith component to be deployed and the ith component to be deployed, l ij represents the length of the connection line between the ith component to be deployed and the ith component to be deployed, e ij represents the connection relationship between the ith component to be deployed and the th component to be deployed, s represents the manufacturing cost per unit area of the electrical control cabinet, W represents the width of the electrical control cabinet, and H represents the height of the electrical control cabinet.
[0048] Among them, e ij The value of e is 0 or 1. ij =1 indicates that there is a connection relationship between the i-th component to be deployed and the ,th component to be deployed, e ij =0 indicates that there is no connection relationship between the i-th component to be deployed and the i-th component to be deployed.
[0049] On this basis, the initial function is constrained based on at least one function constraint, and the at least one function constraint includes: a width constraint corresponding to the electrical control cabinet, a height constraint corresponding to the electrical control cabinet, a connection length constraint between electrical components, a maximum layout width constraint, a maximum layout height constraint, a constraint on the completeness of electrical component deployment, and a safety interval constraint between adjacent electrical components in the same row.
[0050] In this technical solution, at least one function constraint is as follows:
[0051] (1) The width constraint corresponding to the electrical control cabinet can be expressed by the following formula:
[0052]
[0053] Where W represents the width of the electrical control cabinet, x i represents the centroid abscissa of the i-th component to be deployed, w irepresents the width of the i-th component to be deployed, and a represents the deployment interval between two adjacent rows of components to be deployed in the electrical control cabinet.
[0054] (2) The height constraint condition corresponding to the electrical control cabinet can be expressed by the following formula:
[0055]
[0056] Where H represents the height of the electrical control cabinet, a represents the deployment interval between two adjacent rows of components to be deployed in the electrical control cabinet, and r max represents the total number of deployment rows in the electrical control cabinet, k represents the deployment row number of the component to be deployed in the electrical control cabinet, and hi represents the deployment depth of the component to be deployed in the electrical control cabinet.
[0057] Among them, q ik Indicates whether the component to be deployed is deployed in the kth row, q ik =1 means the component to be deployed is deployed in the kth row, q ik =0 indicates that the component to be deployed is deployed in the kth row.
[0058] (3) The wiring length constraint between electrical components can be expressed by the following formula:
[0059] l ij =|x i -x j |+|y i -y j |
[0060] Among them, l ij represents the length of the connection line between the i-th component to be deployed and the j-th component to be deployed, x i represents the centroid abscissa of the ith component to be deployed, x j represents the centroid abscissa of the jth component to be deployed, y i represents the centroid abscissa of the jth component to be deployed, y j Represents the horizontal coordinate of the center of mass of the jth component to be deployed.
[0061] (4) The maximum layout width constraint can be expressed by the following formula:
[0062]
[0063] Where a represents the deployment interval between two adjacent rows of components to be deployed in the electrical control cabinet, and W i Indicates the deployment depth of the components to be deployed in the electrical control cabinet, y i represents the centroid abscissa of the jth component to be deployed, W maxIndicates the maximum layout width of the electrical control cabinet, and m indicates the number of components to be deployed in the current component deployment plan.
[0064] (5) The maximum layout height constraint can be expressed by the following formula:
[0065]
[0066] Where a represents the deployment interval between two adjacent rows of components to be deployed in the electrical control cabinet, and h i Indicates the deployment depth of the components to be deployed in the electrical control cabinet, y i represents the centroid abscissa of the jth component to be deployed, H max Indicates the maximum layout width of the electrical control cabinet, and m indicates the number of components to be deployed in the current component deployment plan.
[0067] (6) The constraint condition of electrical component deployment completeness can be expressed by the following formula:
[0068]
[0069] Among them, q ik Indicates whether the i-th component to be deployed is deployed in the k-th row, q ik =1 means that the i-th component to be deployed is deployed in the k-th row, q ik =0 indicates that the i-th component to be deployed is deployed in the k-th row.
[0070] Among them, r max represents the total number of deployment rows in the electrical control cabinet, k represents the deployment row number of the component to be deployed in the electrical control cabinet, and m represents the number of components to be deployed in the current component deployment plan.
[0071] (7) The safety interval constraint between adjacent electrical components in the same row can be expressed by the following formula:
[0072]
[0073] Where Wi represents the width of the i-th component to be deployed, Wj represents the width of the j-th component to be deployed, and x i represents the centroid abscissa of the ith component to be deployed, x j represents the centroid abscissa of the jth component to be deployed, r max represents the total number of deployment rows in the electrical control cabinet, k represents the deployment row number of the component to be deployed in the electrical control cabinet, and m represents the number of components to be deployed in the current component deployment plan.
[0074] Among them, q ik Indicates whether the i-th component to be deployed is deployed in the k-th row, q ik=1 means that the i-th component to be deployed is deployed in the k-th row, q ik =0 indicates that the i-th component to be deployed is deployed in the k-th row.
[0075] Among them, q jk Indicates whether the jth component to be deployed is deployed in the kth row, q jk =1 means that the jth component to be deployed is deployed in the kth row, q jk =0 means that the jth component to be deployed is deployed in the kth row.
[0076] On the basis of the above, the target vector corresponding to the current component deployment plan is calculated based on the objective function to obtain the deployment cost corresponding to the current component deployment plan.
[0077] S130. According to the deployment costs of the component deployment plans, the component deployment plan corresponding to the minimum deployment cost is used as the target component deployment plan corresponding to the electrical control cabinet.
[0078] In practical applications, there may be multiple component deployment schemes corresponding to the electrical control cabinet. The deployment costs corresponding to each component deployment scheme are calculated in a similar manner, and the component deployment scheme corresponding to the minimum deployment cost is used as the target deployment scheme corresponding to the electrical control cabinet, so as to perform component deployment based on the deployment information of each component to be deployed in the target deployment scheme.
[0079] The technical solution of the embodiment of the present invention determines at least one component deployment scheme corresponding to the electrical control cabinet according to the component deployment information of at least one component to be deployed in the electrical control cabinet; wherein the component to be deployed is an electrical component to be deployed in the electrical control cabinet; based on the pre-constructed objective function, the deployment cost corresponding to each component deployment scheme is determined; according to the deployment cost of each component deployment scheme, the component deployment scheme corresponding to the minimum deployment cost is used as the target component deployment scheme corresponding to the electrical control cabinet. This technical solution randomly generates at least one component deployment scheme through the size information of the electrical control cabinet and the deployment information of at least one component to be deployed, and optimizes each component deployment scheme, and then calculates the deployment cost of each optimized component deployment scheme through the pre-set objective function, so as to use the component deployment scheme corresponding to the minimum component deployment cost from at least one deployment cost as the target component deployment scheme. In this process, it is only necessary to clarify the size information of the electrical control cabinet and the component size information and component deployment information of each component to be deployed, so as to automatically determine the target component deployment scheme with the minimum deployment cost corresponding to the electrical control cabinet. The present invention solves the problem in the prior art that when deploying electrical components in an electrical control cabinet through manual experience, it is impossible to accurately determine the component deployment plan with the lowest deployment cost, thereby achieving the effect of using the component deployment plan with the lowest deployment cost as the target component deployment plan under the premise of satisfying the normal operation of the electrical control cabinet, thereby improving the economic optimality of the component deployment of the electrical control cabinet.
[0080] Embodiment 2
[0081] Figure 2 A flowchart of a method for determining an electrical component deployment scheme provided in Embodiment 2 of the present invention, optionally, refining at least one component deployment scheme corresponding to the electrical control cabinet based on component deployment information of at least one component to be deployed in the electrical control cabinet.
[0082] like Figure 2 As shown, the method includes:
[0083] S210: Determine maximum height information of the electrical control cabinet that can be used to deploy components to be deployed, according to the control cabinet size information of the electrical control cabinet.
[0084] The maximum height information refers to the maximum height of the deployment space in the electrical control cabinet used to carry the components to be deployed.
[0085] In practical applications, due to the size limitation of the electrical control cabinet, when deploying electrical components, the deployment height of the components to be deployed in the longitudinal direction needs to be less than the maximum height information of the electrical control cabinet to ensure that all the components to be deployed can be successfully installed in the electrical control cabinet.
[0086] S220: Determine the maximum number of deployment rows for deploying the components to be deployed in the electrical control cabinet according to the maximum height information and the component size information corresponding to each component to be deployed.
[0087] For example, according to the control cabinet size information of the electrical control cabinet and the component size information of the components to be deployed, at most 3 rows of components to be deployed can be deployed in the electrical control cabinet, and the maximum number of deployment rows is 3.
[0088] S230: Determine at least one component deployment scheme corresponding to the electrical control cabinet according to the maximum number of deployment rows and component association information of the components to be deployed.
[0089] The component-related information includes component size information and component deployment position information.
[0090] In practical applications, at least one component deployment scheme corresponding to the electrical control cabinet is determined according to the maximum number of deployment rows and component association information of the components to be deployed, including: based on a real number coding algorithm, vector encoding the maximum number of deployment rows and component association information of the components to be deployed to obtain at least one group of vectors to be used; population optimization is performed on at least one group of vectors to be used to obtain at least one group of target vectors, so as to characterize at least one component deployment scheme corresponding to the electrical control cabinet based on the at least one group of target vectors.
[0091] The vector to be used refers to a real number vector generated according to the deployment information of at least one component to be deployed.
[0092] In this technical solution, in order to determine the best component deployment solution corresponding to the electrical control cabinet, at least one feasible component deployment solution can be randomly set first, for example, 100 component deployment solutions are randomly generated, and these 100 component deployment solutions are respectively vector-encoded based on the real number coding algorithm to obtain the vectors to be used corresponding to each component deployment solution. Furthermore, by iteratively optimizing the 100 vectors to be used, an equal number of target vectors are obtained.
[0093] That is, the vector to be used is a real number vector obtained based on the initially randomly generated component deployment solution, and the target vector is a real number vector corresponding to a component deployment solution with a more reasonable layout obtained after iterative optimization of the vector to be used. The target vector can be used to calculate the corresponding deployment cost, and the target component deployment cost can be determined from the component deployment cost corresponding to the target vector according to each deployment cost.
[0094] In practical applications, the process of obtaining a target vector based on at least one set of vectors to be used is as follows:
[0095] Performing population optimization on at least one group of vectors to be used to obtain at least one group of target vectors, so as to characterize at least one component deployment scheme corresponding to the electrical control cabinet based on the at least one group of target vectors, including: determining at least two vector individuals from at least one group of vectors to be used, and performing population iterative optimization on the at least two vector individuals to obtain at least one group of target vectors.
[0096] The number of target vectors is equal to the number of vectors to be used, and the at least two vector individuals include a target vector individual and an experimental vector individual. The target vector individual can be understood as a vector individual obtained by iterative optimization according to the experimental vector individual during the population iteration process, and the experimental vector individual can be understood as a vector individual used as an iteration reference benchmark during the population iteration process. Each group of vector individuals to be used can be regarded as a vector individual.
[0097] In a specific example, at least one component deployment scheme is obtained by a random generation method, and Npop vectors (i.e., at least one set of vectors to be used) are constructed to characterize each component deployment scheme. On this basis, a differential mutation algorithm is used to iteratively optimize at least one set of vectors to be used, and the maximum number of iterations Gmax, the mutation factor f, and the crossover probability CR are set, wherein the mutation factor and the crossover probability are used to adjust the calculation amplitude in the population iterative optimization process.
[0098] Furthermore, three vector individuals are randomly selected from the population, and two of them are used to perturb another vector individual, thereby obtaining a mutant individual vector. Specifically, differential mutation specifically randomly selects three vector individuals x corresponding to the vectors to be used from the population r1 , x r2 , x r3 , and generate the mutation vector individual v based on the following formula i :
[0099] v i =x r1 +f·(x r2 -x r3 )
[0100] Among them, v i represents the mutation vector individual, x r1 , x r2 , x r3 Respectively represent three random vector individuals in at least one group of vectors to be used.
[0101] Furthermore, a crossover operation is performed on each vector individual and the corresponding generated mutation vector individual, and the mutation vector individual is selected according to a certain probability for each element of each vector individual to generate the offspring individual x by the following formula: i ′:
[0102]
[0103] Among them, x ij ′ represents the jth element of the offspring individual; v ij represents the jth element of the mutation vector individual; x ij Represents the vector individual x i The j-th element of .
[0104] Optionally, population iterative optimization is performed on at least two vector individuals to obtain at least one set of target vectors, including: constraint checking the target vector individuals and the experimental vector individuals based on pre-set vector individual constraint conditions, and determining the vector individuals to be used in the next iteration process according to the vector constraint degree of each vector individual; iterative optimization processing is performed on the vector individuals to be used in the next iteration process until the maximum number of iterations is reached to obtain at least one set of target vectors.
[0105] Based on the above example, in each iterative optimization process of at least one set of vectors to be used, it is necessary to determine whether each vector individual satisfies the corresponding constraint condition, wherein the constraint condition of the vector individual is the same as the constraint condition of the objective function.
[0106] Specifically, the feasibility principle is adopted to select better vector individuals from the original individuals and sub-band individuals as the vector individuals in the next iteration process.
[0107] The feasibility principle is specifically as follows:
[0108] (1) If both the target vector individual and the experimental vector individual do not satisfy the vector individual constraint conditions, the vector individual with the smaller constraint violation will be used as the vector individual in the next iteration process;
[0109] (2) If any one of the target vector individual and the experimental vector individual satisfies the vector individual constraint condition, and the other does not, the vector individual that satisfies the vector individual constraint condition will be used as the vector individual in the next iteration process;
[0110] (3) If both the target vector individual and the experimental vector individual satisfy the vector individual constraint conditions, the vector individual with the lowest deployment cost corresponding to the component deployment scheme corresponding to the vector individual is used as the vector individual in the next iteration process.
[0111] S240: Determine the deployment cost corresponding to each component deployment plan based on the pre-built objective function.
[0112] S250. According to the deployment costs of the component deployment plans, the component deployment plan corresponding to the minimum deployment cost is used as the target component deployment plan corresponding to the electrical control cabinet.
[0113] In a specific example, the electrical control cabinet is a machine tool electrical control cabinet, whose maximum allowable width is 1000 mm and maximum allowable height is 1500 mm. The electrical control cabinet includes 11 components M1-M2 to be deployed. 11 , the size of each to-be-deployed component is shown in Table 1, the number of connecting lines between the to-be-deployed components is shown in Table 2, the unit length cost of the connecting lines between the to-be-deployed components is shown in Table 3, and the safety distance between the to-be-deployed components is shown in Table 4:
[0114] Table 1 Component dimensions of components to be deployed
[0115]
[0116]
[0117] Table 2 Number of connection lines between components to be deployed
[0118] Components to be deployed <![CDATA[M1]]> <![CDATA[M2]]> <![CDATA[M3]]> <![CDATA[M4]]> <![CDATA[M5]]> <![CDATA[M6]]> <![CDATA[M7]]> <![CDATA[M8]]> <![CDATA[M9]]> <![CDATA[M 10 ]]> <![CDATA[M 11 ]]> <![CDATA[M1]]> 0 0 0 0 0 9 0 0 0 1 0 <![CDATA[M2]]> 0 0 1 0 0 0 1 0 1 0 0 <![CDATA[M3]]> 0 1 0 6 2 1 5 5 0 2 4 <![CDATA[M4]]> 0 0 6 0 0 0 0 0 6 0 2 <![CDATA[M5]]> 2 0 0 2 0 0 0 4 1 2 0 <![CDATA[M6]]> 9 0 0 1 0 0 10 0 2 0 0 <![CDATA[M7]]> 0 0 5 0 4 13 0 0 9 0 3 <![CDATA[M8]]> 0 0 5 6 2 0 0 0 0 0 1 <![CDATA[M9]]> 0 0 2 0 1 2 9 0 0 3 3 <![CDATA[M 10 ]]> 1 1 0 0 2 0 0 0 3 0 0 <![CDATA[M 11 ]]> 0 0 4 2 0 0 3 1 0 3 0
[0119] Table 3 Cost per unit length of connecting wires between components to be deployed (yuan / m)
[0120] Components to be deployed <![CDATA[M1]]> <![CDATA[M2]]> <![CDATA[M3]]> <![CDATA[M4]]> <![CDATA[M5]]> <![CDATA[M6]]> <![CDATA[M7]]> <![CDATA[M8]]> <![CDATA[M9]]> <![CDATA[M 10 ]]> <![CDATA[M 11 ]]> <![CDATA[M1]]> 0 0 0 0 0 4 0 0 0 2 0 <![CDATA[M2]]> 0 0 2 0 0 0 2 0 2 0 0 <![CDATA[M3]]> 0 3 0 4 4 4 1.5 1.5 0 4 2 <![CDATA[M4]]> 0 0 1 0 0 0 0 0 1 0 3 <![CDATA[M5]]> 2 0 0 4 0 0 0 1 1 1 0 <![CDATA[M6]]> 1 0 0 1 0 0 1 0 1 0 0 <![CDATA[M7]]> 0 0 1.5 0 2 1 0 0 1 0 1.5 <![CDATA[M8]]> 0 0 1 1 3 0 0 0 0 0 4 <![CDATA[M9]]> 0 0 3 0 4 2 1 0 0 1.5 1.5 <![CDATA[M 10 ]]> 4 4 0 0 2 0 0 0 1.5 0 0 <![CDATA[M 11 ]]> 0 0 1.5 2 0 0 1.5 4 0 1 0
[0121] Table 4 Safety distance between components to be deployed (mm)
[0122]
[0123]
[0124] Based on the above example, at least one component deployment scheme corresponding to the electrical control cabinet is randomly generated, and the vectors to be used corresponding to each component deployment scheme are obtained based on the real number coding algorithm. Further, at least one set of vectors to be used is iteratively optimized, and the population size is set to Npop = 100, the maximum number of iterations Gmax = 200, the mutation factor f = 0.5, the crossover probability CR = 0.8, and 100 sets of target vectors equal to the number of vectors to be used are obtained by differential mutation method.
[0125] Furthermore, based on the objective function, the deployment costs of the component deployment schemes corresponding to the 100 groups of target vectors are calculated respectively, and the component deployment scheme corresponding to the minimum deployment cost is used as the target component deployment scheme corresponding to the electrical control cabinet. The target component deployment scheme is shown in Table 5:
[0126] Table 5 Target component deployment plan
[0127]
[0128] It can be seen from Table 5 that in the target component deployment scheme corresponding to the electrical control cabinet, the components to be deployed M1-M 11 The maximum number of rows in the electrical control cabinet is 2. In the order of top-to-bottom and left-to-right deployment, the components to be deployed in the first row include M6-M 11 -M7-M 10 -M3, the components to be deployed in the second row include M1-M8-M4-M5-M9-M2, the layout width of the electrical control cabinet is 915mm, the layout height is 670mm, the box cost of the electrical control cabinet is 306.52 yuan, the wire cost of the connecting wires between the components to be deployed is 82.68 yuan, and the deployment cost of deploying all the components to be deployed in the electrical control cabinet is 389.20 yuan.
[0129] The technical solution of the embodiment of the present invention determines at least one component deployment scheme corresponding to the electrical control cabinet according to the component deployment information of at least one component to be deployed in the electrical control cabinet; wherein the component to be deployed is an electrical component to be deployed in the electrical control cabinet; based on the pre-constructed objective function, the deployment cost corresponding to each component deployment scheme is determined; according to the deployment cost of each component deployment scheme, the component deployment scheme corresponding to the minimum deployment cost is used as the target component deployment scheme corresponding to the electrical control cabinet. This technical solution randomly generates at least one component deployment scheme through the size information of the electrical control cabinet and the deployment information of at least one component to be deployed, and optimizes each component deployment scheme, and then calculates the deployment cost of each optimized component deployment scheme through the pre-set objective function, so as to use the component deployment scheme corresponding to the minimum component deployment cost from at least one deployment cost as the target component deployment scheme. In this process, it is only necessary to clarify the size information of the electrical control cabinet and the component size information and component deployment information of each component to be deployed, so as to automatically determine the target component deployment scheme with the minimum deployment cost corresponding to the electrical control cabinet. The present invention solves the problem in the prior art that when deploying electrical components in an electrical control cabinet through manual experience, it is impossible to accurately determine the component deployment plan with the lowest deployment cost, thereby achieving the effect of using the component deployment plan with the lowest deployment cost as the target component deployment plan under the premise of satisfying the normal operation of the electrical control cabinet, thereby improving the economic optimality of the component deployment of the electrical control cabinet.
[0130] Embodiment 3
[0131] Figure 3 This is a schematic diagram of a structure of a device for determining an electrical component deployment scheme provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a deployment plan determination module 310, a deployment cost determination module 320 and a target deployment plan determination module 330.
[0132] The deployment scheme determination module 310 is used to determine at least one component deployment scheme corresponding to the electrical control cabinet according to the component deployment information of at least one component to be deployed in the electrical control cabinet; wherein the component to be deployed is an electrical component to be deployed in the electrical control cabinet;
[0133] A deployment cost determination module 320, for determining the deployment cost corresponding to each component deployment scheme based on a pre-built objective function;
[0134] The target deployment scheme determination module 330 is used to use the component deployment scheme corresponding to the minimum deployment cost as the target component deployment scheme corresponding to the electrical control cabinet according to the deployment costs of each component deployment scheme.
[0135] The technical solution of the embodiment of the present invention determines at least one component deployment scheme corresponding to the electrical control cabinet according to the component deployment information of at least one component to be deployed in the electrical control cabinet; wherein the component to be deployed is an electrical component to be deployed in the electrical control cabinet; based on the pre-constructed objective function, the deployment cost corresponding to each component deployment scheme is determined; according to the deployment cost of each component deployment scheme, the component deployment scheme corresponding to the minimum deployment cost is used as the target component deployment scheme corresponding to the electrical control cabinet. This technical solution randomly generates at least one component deployment scheme through the size information of the electrical control cabinet and the deployment information of at least one component to be deployed, and optimizes each component deployment scheme, and then calculates the deployment cost of each optimized component deployment scheme through the pre-set objective function, so as to use the component deployment scheme corresponding to the minimum component deployment cost from at least one deployment cost as the target component deployment scheme. In this process, it is only necessary to clarify the size information of the electrical control cabinet and the component size information and component deployment information of each component to be deployed, so as to automatically determine the target component deployment scheme with the minimum deployment cost corresponding to the electrical control cabinet. The present invention solves the problem in the prior art that when deploying electrical components in an electrical control cabinet through manual experience, it is impossible to accurately determine the component deployment plan with the lowest deployment cost, thereby achieving the effect of using the component deployment plan with the lowest deployment cost as the target component deployment plan under the premise of satisfying the normal operation of the electrical control cabinet, thereby improving the economic optimality of the component deployment of the electrical control cabinet.
[0136] Optionally, the deployment scheme determination module includes: a height determination submodule, used to determine maximum height information that can be used to deploy the to-be-deployed components in the electrical control cabinet according to the control cabinet size information of the electrical control cabinet;
[0137] A row number determination submodule, used to determine the maximum number of deployment rows for deploying the components to be deployed in the electrical control cabinet according to the maximum height information and the component size information corresponding to each component to be deployed;
[0138] The deployment scheme determination submodule is used to determine at least one component deployment scheme corresponding to the electrical control cabinet according to the maximum number of deployment rows and component association information of the components to be deployed; wherein the component association information includes component size information and component deployment position information.
[0139] Optionally, the deployment scheme determination submodule includes: a to-be-used vector determination unit, configured to perform vector encoding on the maximum number of deployment rows and component association information of the to-be-deployed components based on a real number encoding algorithm to obtain at least one set of to-be-used vectors;
[0140] The deployment scheme determination unit is used to perform population optimization on at least one group of vectors to be used to obtain at least one group of target vectors, so as to characterize at least one component deployment scheme corresponding to the electrical control cabinet based on the at least one group of target vectors.
[0141] Optionally, the deployment plan determination unit includes: a target vector determination subunit, used to determine at least two vector individuals from at least one group of vectors to be used, and perform population iterative optimization on the at least two vector individuals to obtain at least one group of target vectors; wherein the number of target vectors is equal to the number of vectors to be used, and the at least two vector individuals include a target vector individual and an experimental vector individual.
[0142] The deployment scheme determination subunit is used to characterize at least one component deployment scheme corresponding to the electrical control cabinet based on at least one set of target vectors.
[0143] Optionally, a deployment scheme determines a subunit, which is used to perform constraint checks on target vector individuals and experimental vector individuals based on pre-set vector individual constraint conditions, and determine vector individuals to be used in the next iteration process according to the vector constraint degree of each vector individual; iteratively optimize the vector individuals to be used in the next iteration process until the maximum number of iterations is reached, and obtain at least one set of target vectors.
[0144] Optionally, the deployment cost determination module includes: an objective function determination submodule, for inputting the target vector corresponding to the current component deployment scheme into a preset initial function for each component deployment scheme, and constraining the initial function based on at least one function constraint condition to obtain an objective function;
[0145] The deployment cost determination submodule is used to determine the deployment cost corresponding to the current component deployment plan based on the objective function.
[0146] Optionally, at least one function constraint includes: a width constraint corresponding to the electrical control cabinet, a height constraint corresponding to the electrical control cabinet, a connection length constraint between electrical components, a maximum layout width constraint, a maximum layout height constraint, a constraint on the completeness of electrical component deployment, and a safety spacing constraint between adjacent electrical components in the same row.
[0147] The apparatus for determining an electrical component deployment scheme provided in an embodiment of the present invention can execute the method for determining an electrical component deployment scheme provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0148] Embodiment 4
[0149] Figure 4 A schematic diagram of the structure of an electronic device 10 of an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0150] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0151] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0152] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for determining an electrical component deployment scheme.
[0153] In some embodiments, the method for determining the electrical component deployment scheme may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for determining the electrical component deployment scheme described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for determining the electrical component deployment scheme in any other appropriate manner (e.g., by means of firmware).
[0154] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0155] The computer program for implementing the method for determining the electrical component deployment scheme of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0156] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0157] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0158] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0159] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0160] Embodiment 5
[0161] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a method for determining an electrical component deployment scheme as provided in any embodiment of the present application.
[0162] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0163] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0164] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for determining an electrical component deployment scheme, characterized in that: include: Determine at least one component deployment scheme corresponding to the electrical control cabinet according to component deployment information of at least one component to be deployed in the electrical control cabinet; wherein the component to be deployed is an electrical component to be deployed in the electrical control cabinet; Determine the deployment cost corresponding to each component deployment plan based on the pre-built objective function; According to the deployment costs of the component deployment plans, the component deployment plan corresponding to the minimum deployment cost is used as the target component deployment plan corresponding to the electrical control cabinet.
2. The method according to claim 1, characterized in that: The determining, according to component deployment information of at least one component to be deployed in the electrical control cabinet, at least one component deployment scheme corresponding to the electrical control cabinet comprises: Determine, according to the control cabinet size information of the electrical control cabinet, the maximum height information that can be used to deploy the components to be deployed in the electrical control cabinet; Determine the maximum number of deployment rows for deploying the components to be deployed in the electrical control cabinet according to the maximum height information and the component size information corresponding to each component to be deployed; At least one component deployment scheme corresponding to the electrical control cabinet is determined according to the maximum number of deployment rows and the component association information of the to-be-deployed components; wherein the component association information includes component size information and component deployment position information.
3. The method according to claim 2, characterized in that The determining, according to the maximum number of deployment rows and the component association information of the components to be deployed, at least one component deployment scheme corresponding to the electrical control cabinet comprises: Based on a real number coding algorithm, vector coding is performed on the maximum number of deployment rows and the component association information of the components to be deployed to obtain at least one set of vectors to be used; Population optimization is performed on at least one group of the vectors to be used to obtain at least one group of target vectors, so as to characterize at least one component deployment scheme corresponding to the electrical control cabinet based on the at least one group of target vectors.
4. The method according to claim 3, characterized in that The performing population optimization on at least one group of the vectors to be used to obtain at least one group of target vectors, so as to characterize at least one component deployment scheme corresponding to the electrical control cabinet based on the at least one group of the target vectors, comprises: Determine at least two vector individuals from at least one group of vectors to be used, and perform population iterative optimization on at least the two vector individuals to obtain at least one group of target vectors; wherein the number of the target vectors is equal to the number of the vectors to be used, and the at least two vector individuals include a target vector individual and an experimental vector individual; At least one component deployment solution corresponding to the electrical control cabinet is characterized based on at least one set of the target vectors.
5. The method according to claim 4, characterized in that The performing population iterative optimization on at least the two vector individuals to obtain at least one set of target vectors includes: Based on the preset vector individual constraint conditions, the target vector individual and the experimental vector individual are subjected to constraint verification, and the vector individual to be used in the next iteration process is determined according to the vector constraint degree of each vector individual; The individual vectors to be used in the next iteration process are iteratively optimized until the maximum number of iterations is reached, and at least one set of target vectors is obtained.
6. The method according to claim 1, characterized in that The step of determining the deployment cost corresponding to each component deployment solution based on the pre-built objective function includes: For each component deployment scheme, inputting a target vector corresponding to the current component deployment scheme into a preset initial function, and constraining the initial function based on at least one function constraint condition to obtain a target function; Based on the objective function, a deployment cost corresponding to the current component deployment solution is determined.
7. The method according to claim 6, characterized in that The at least one function constraint condition includes: a width constraint condition corresponding to the electrical control cabinet, a height constraint condition corresponding to the electrical control cabinet, a connection length constraint condition between electrical components, a maximum layout width constraint condition, a maximum layout height constraint condition, a constraint condition on the completeness of electrical component deployment, and a safety interval constraint condition between adjacent electrical components in the same row.
8. A device for determining an electrical component deployment scheme, characterized in that: include: A deployment scheme determination module, used to determine at least one component deployment scheme corresponding to the electrical control cabinet according to component deployment information of at least one component to be deployed in the electrical control cabinet; wherein the component to be deployed is an electrical component to be deployed in the electrical control cabinet; A deployment cost determination module, used to determine the deployment cost corresponding to each component deployment plan based on a pre-built objective function; The target deployment scheme determination module is used to use the component deployment scheme corresponding to the minimum deployment cost as the target component deployment scheme corresponding to the electrical control cabinet according to the deployment costs of the component deployment schemes.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method for determining the electrical component deployment scheme according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining the electrical component deployment plan according to any one of claims 1 to 7 when executed.
