CN116502473A - Wire harness electromagnetic compatibility optimization method and device, electronic equipment and storage medium - Google Patents
Wire harness electromagnetic compatibility optimization method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116502473A CN116502473A CN202310765097.4A CN202310765097A CN116502473A CN 116502473 A CN116502473 A CN 116502473A CN 202310765097 A CN202310765097 A CN 202310765097A CN 116502473 A CN116502473 A CN 116502473A
- Authority
- CN
- China
- Prior art keywords
- optimized
- optimization
- scheme
- wire harness
- optimization scheme
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000005457 optimization Methods 0.000 title claims abstract description 255
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000008569 process Effects 0.000 claims abstract description 16
- 238000004590 computer program Methods 0.000 claims description 12
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000003754 machining Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 abstract description 12
- 238000004891 communication Methods 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/02—Reliability analysis or reliability optimisation; Failure analysis, e.g. worst case scenario performance, failure mode and effects analysis [FMEA]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Factory Administration (AREA)
Abstract
The invention provides a method, a device, electronic equipment and a storage medium for optimizing electromagnetic compatibility of a wire harness, and relates to the technical field of reliability optimization, wherein the method comprises the following steps: generating a to-be-optimized set comprising a plurality of optimization schemes based on the feasible current range of each to-be-optimized wire harness; performing iterative optimization on the set to be optimized, dividing the set to be optimized in each iterative optimization process to obtain a plurality of scheme pairs, updating the optimization schemes in the scheme pairs based on the fitness values corresponding to the optimization schemes in each scheme pair, wherein the fitness values reflect the electromagnetic interference degree among the wire harnesses to be optimized in the optimization schemes; and taking the set to be optimized when the iteration times reach the preset times as a target set, taking the optimization scheme with the optimal fitness value corresponding to the target set as a target optimization scheme, and setting the current value of each wire harness to be optimized based on the target optimization scheme. The invention can reduce electromagnetic interference between wire harnesses in equipment and improve processing reliability.
Description
Technical Field
The present invention relates to the field of reliability optimization technologies, and in particular, to a method and apparatus for optimizing electromagnetic compatibility of a wire harness, an electronic device, and a storage medium.
Background
The complexity of the multi-axis precision machining equipment is high, the number of the wire harnesses is very high, the wire harnesses relate to power wire harnesses and signal wire harnesses, along with the increase of the wire harnesses, electromagnetic interference among all signal wire harnesses based on EtherCAT (Ethernet control automation technology) bus architecture is increased, and the electromagnetic interference can possibly cause the problems of transmission delay of data packets transmitted through the signal wire harnesses, instantaneous errors of a communication system, loss of the data packets, inconsistent sending and arrival sequences and the like, so that the machining reliability of the equipment is affected.
Disclosure of Invention
The invention provides a method, a device, electronic equipment and a storage medium for optimizing electromagnetic compatibility of wire harnesses, which are used for solving the defect that the processing reliability of equipment is affected by the increase of electromagnetic interference between the wire harnesses in multi-axis precision processing equipment in the prior art, and realizing the reduction of the electromagnetic interference between the wire harnesses so as to improve the processing reliability of the equipment.
The invention provides a method for optimizing electromagnetic compatibility of a wire harness, which comprises the following steps:
generating a to-be-optimized set based on a feasible current range of each to-be-optimized wire harness, wherein the to-be-optimized set comprises a plurality of optimization schemes, each optimization scheme comprises current values of each to-be-optimized wire harness in a scheduling period, the feasible current range reflects a maximum value and a minimum value of current which can be transmitted by the to-be-optimized wire harness, and the current value of each to-be-optimized wire harness in each optimization scheme does not exceed the feasible current range corresponding to the to-be-optimized wire harness;
performing iterative optimization on the set to be optimized, and dividing the set to be optimized in each iterative optimization process to obtain a plurality of scheme pairs, wherein each scheme pair comprises two optimization schemes, and updating the optimization schemes in each scheme pair based on fitness values corresponding to the two optimization schemes in each scheme pair, wherein the fitness values corresponding to the optimization schemes reflect the electromagnetic interference degree between the wire harnesses to be optimized in the optimization schemes;
and taking the set to be optimized when the iteration times reach the preset times as a target set, taking the optimization scheme with the optimal fitness value corresponding to the target set as a target optimization scheme, and setting the current value of each wire harness to be optimized in the scheduling period based on the target optimization scheme.
According to the method for optimizing the electromagnetic compatibility of the wire harness, the method for updating the optimization schemes in each scheme pair based on the fitness values corresponding to the two optimization schemes in each scheme pair comprises the following steps:
taking the optimization scheme with the worse adaptability value corresponding to the scheme pair as a first optimization scheme, and taking the other optimization scheme in the scheme pair as a second optimization scheme;
updating the first optimization scheme.
According to the method for optimizing the electromagnetic compatibility of the wire harness, the to-be-optimized set is divided to obtain a plurality of scheme pairs, and the method comprises the following steps:
if the current iteration number does not exceed the preset threshold, the data difference rate between the two optimization schemes included in at least M scheme pairs in the plurality of scheme pairs reaches a preset difference rate, wherein M is not less than half of the total number of the optimization schemes included in the set to be optimized;
if the current iteration times exceed the preset threshold, randomly dividing the set to be optimized to obtain the scheme pairs;
wherein the preset threshold is not less than half of the preset times.
According to the method for optimizing the electromagnetic compatibility of the wire harness, the calculation formula of the fitness value is as follows:
;
wherein,,representing said fitness value,/->For the number of wire harnesses to be optimized, +.>For the j-th random number corresponding to the wire harness to be optimized,/for>,/>,/>Is a random number +.>Is a constant value, and is used for the treatment of the skin,for the number of current iterations, +.>For said preset number of times>,/>And->Respectively representing current values of the ith wire harness to be optimized and the jth wire harness to be optimized in the optimization scheme in the dispatching period, +.>For the duration of the scheduling period, +.>For the Euclidean distance between the ith and jth wire harnesses to be optimized,is constant.
According to the method for optimizing the electromagnetic compatibility of the wire harness, the updating of the first optimizing scheme comprises the following steps:
updating the current value of each wire harness to be optimized in the first optimization scheme according to the current updating step length of the first optimization scheme;
updating the updating step length corresponding to the first optimization scheme according to the second optimization scheme;
wherein the update step length in the set to be optimized is initialized when the set to be optimized is generated.
According to the method for optimizing the electromagnetic compatibility of the wire harness, the updating step length corresponding to the first optimizing scheme is updated according to the second optimizing scheme, and the method comprises the following steps:
acquiring a first difference value between the first optimization scheme and the second optimization scheme and a second difference value between the average value of all the optimization schemes in the set to be optimized and the first optimization scheme;
updating the updating step length corresponding to the first optimization scheme according to the first difference value and the second difference value.
According to the method for optimizing the electromagnetic compatibility of the wire harness, after the first optimizing scheme is updated, the method further comprises the following steps:
determining whether the current value of each wire harness to be optimized in the updated first optimization scheme exceeds the feasible current range;
and deleting the first optimization scheme when the current value of the wire harness to be optimized in the first optimization scheme exceeds the feasible current range, and randomly generating a new optimization scheme to be added into the set to be optimized.
The invention also provides a device for optimizing the electromagnetic compatibility of the wire harness, which comprises the following components:
the system comprises a set generation module, a calculation module and a calculation module, wherein the set generation module is used for generating a set to be optimized based on the feasible current range of each wire harness to be optimized, the set to be optimized comprises a plurality of optimization schemes, each optimization scheme comprises current values of each wire harness to be optimized in a scheduling period, the feasible current range reflects the maximum value and the minimum value of the current which can be transmitted by the wire harness to be optimized, and the current value of each wire harness to be optimized in each optimization scheme does not exceed the feasible current range corresponding to the wire harness to be optimized;
the iterative optimization module is used for carrying out iterative optimization on the set to be optimized, dividing the set to be optimized in each iterative optimization process to obtain a plurality of scheme pairs, wherein each scheme pair comprises two optimization schemes, and updating the optimization schemes in each scheme pair based on the fitness values corresponding to the two optimization schemes in each scheme pair, wherein the fitness values corresponding to the optimization schemes reflect the electromagnetic interference degree between the wire harnesses to be optimized in the optimization schemes;
the setting module is used for taking the set to be optimized when the iteration times reach the preset times as a target set, taking the optimization scheme with the optimal fitness value corresponding to the target set as a target optimization scheme, and setting the current value of each wire harness to be optimized in the dispatching time period based on the target optimization scheme.
The invention also provides electronic equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for optimizing the electromagnetic compatibility of the wire harness according to any one of the above methods when executing the computer program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of optimizing electromagnetic compatibility of a wire harness as described in any one of the above.
According to the method, the device, the electronic equipment and the storage medium for optimizing the electromagnetic compatibility of the wire harnesses, the to-be-optimized set comprising a plurality of optimization schemes is randomly generated, the electromagnetic interference degree among the wire harnesses to be optimized is used as a fitness value, schemes in the to-be-optimized set are updated in each iteration based on the fitness value, the search of the optimization scheme with lower electromagnetic interference degree is realized based on multiple iterations, the optimization scheme with the optimal fitness value in the latest to-be-optimized set is used as a target optimization scheme after the iteration times are enough, and the current value of each wire harness to be optimized in a scheduling period is set based on the target optimization scheme, so that the electromagnetic interference among the wire harnesses is reduced, and the processing reliability of the processing equipment is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a method for optimizing electromagnetic compatibility of a wire harness provided by the invention;
fig. 2 is a schematic structural view of the wire harness electromagnetic compatibility optimizing apparatus provided by the present invention;
fig. 3 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The complexity of the multi-axis precision machining equipment is high, the number of the wire harnesses is very high, the wire harnesses relate to power wire harnesses and signal wire harnesses, along with the increase of the wire harnesses, electromagnetic interference among all signal wire harnesses based on EtherCAT (Ethernet control automation technology) bus architecture is increased, and the electromagnetic interference can possibly cause the problems of transmission delay of data packets transmitted through the signal wire harnesses, instantaneous errors of a communication system, loss of the data packets, inconsistent sending and arrival sequences and the like, so that the machining reliability of the equipment is affected.
In order to solve the defects, the invention provides a method and a device for optimizing electromagnetic compatibility of wire harnesses, electronic equipment and a storage medium, and aims to achieve the technical effects of reducing electromagnetic interference between the wire harnesses and improving processing reliability of processing equipment.
The method for optimizing the electromagnetic compatibility of the wire harness provided by the invention can be executed by independent electronic equipment, such as a computer, a mobile terminal, a wearable device and the like, or can be executed by modularized electronic equipment integrated on processing equipment, such as a controller of the processing equipment and the like.
The method for optimizing the electromagnetic compatibility of the wire harness provided by the invention is described below with reference to fig. 1, and as shown in fig. 1, the method for optimizing the electromagnetic compatibility of the wire harness provided by the invention comprises the following steps:
s110, generating a to-be-optimized set based on a feasible current range of each to-be-optimized wire harness, wherein the to-be-optimized set comprises a plurality of optimization schemes, each optimization scheme comprises current values of each to-be-optimized wire harness in a scheduling period, the feasible current range reflects the maximum value and the minimum value of current which can be transmitted by the to-be-optimized wire harness, and the current value of each to-be-optimized wire harness in each optimization scheme does not exceed the feasible current range corresponding to the to-be-optimized wire harness.
The feasible current range of the wire harness to be optimized is determined based on the model of the wire harness to be optimized and the transmission function of the wire harness to be optimized, and the transmission function of the wire harness to be optimized reflects the object transmitted by the wire harness to be optimized. The feasible current range of the wire harness to be optimized comprises the maximum value and the minimum value of the current which can be transmitted by the wire harness to be optimized. In the generated set to be optimized, the current value of each wire harness to be optimized in each optimization scheme does not exceed the feasible current range corresponding to the wire harness to be optimized, that is, the current value of each wire harness to be optimized in the optimization scheme cannot be lower than the minimum value of the current transmittable by the wire harness to be optimized, and cannot exceed the maximum value of the current transmittable by the wire harness to be optimized.
In the process of generating the set to be optimized, a plurality of optimization schemes can be randomly generated, so that in the process of optimizing the set to be optimized, diversified schemes can be judged as much as possible, in the process of generating the set to be optimized, a plurality of candidate sets can be randomly generated first, the candidate sets also meet the feasible current range of each wire harness to be optimized, then the discrete degree of each optimization scheme in each candidate set is calculated, and the candidate set with the highest discrete degree is selected as the set to be optimized.
Referring again to fig. 1, the method for optimizing electromagnetic compatibility of a wire harness provided by the invention further comprises the following steps:
s120, performing iterative optimization on the set to be optimized, dividing the set to be optimized in each iterative optimization process to obtain a plurality of scheme pairs, wherein each scheme pair comprises two optimization schemes, and updating the optimization schemes in each scheme pair based on fitness values corresponding to the two optimization schemes in each scheme pair, wherein the fitness values corresponding to the optimization schemes reflect the electromagnetic interference degree between the wire harnesses to be optimized in the optimization schemes;
s130, taking the set to be optimized when the iteration times reach the preset times as a target set, taking the optimization scheme with the optimal fitness value corresponding to the target set as a target optimization scheme, and setting the current value of each wire harness to be optimized in the dispatching time period based on the target optimization scheme.
In the method provided by the invention, iteration optimization is carried out on the randomly generated set to be optimized, all the optimization schemes in the set to be optimized are combined in pairs in each iteration optimization to obtain a plurality of scheme pairs, and two optimization schemes in each scheme pair are compared based on corresponding fitness values to update the optimization scheme with poor fitness. That is, specifically, the updating the optimization schemes in each of the scheme pairs based on the fitness values corresponding to the two optimization schemes in the scheme pairs includes:
taking the optimization scheme with the worse adaptability value corresponding to the scheme pair as a first optimization scheme, and taking the other optimization scheme in the scheme pair as a second optimization scheme;
updating the first optimization scheme.
As described above, the fitness value reflects the degree of electromagnetic interference between the respective wire harnesses to be optimized in the optimization scheme. The calculation formula of the fitness value is as follows:
;
wherein,,representing said fitness value,/->For the number of wire harnesses to be optimized, +.>For the j-th random number corresponding to the wire harness to be optimized,/for>,/>,/>In the form of a random number,,/>is constant (I)>For the number of current iterations, +.>For said preset number of times>,/>And->Respectively representing current values of the ith wire harness to be optimized and the jth wire harness to be optimized in the optimization scheme in the dispatching period, +.>For the duration of the scheduling period, +.>For the Euclidean distance between the ith wire harness to be optimized and the jth wire harness to be optimized,/for the length of the wire harness to be optimized>Is constant (I)>Is a small value to prevent the denominator from being 0.
It will be appreciated that when the fitness value is calculated using the above equation, the smaller the fitness value, the better the fitness value, and conversely the worse the fitness value.
In the calculation formula of the fitness value, in order to not lose generality, a random number with a value between 0 and 1 is set, so that electromagnetic interference Cheng Duguo of one wire harness to be optimized in the optimization scheme is prevented from being strong, the influence on the whole fitness value is excessive, and the electromagnetic interference degree of other wire harnesses to be optimized is not considered.
In order to make the iterative optimization process more efficient, more schemes with differences can be judged and compared, and the optimization process is prevented from being limited to a smaller range, in the method provided by the invention, the set to be optimized is divided to obtain a plurality of scheme pairs, including:
if the current iteration times do not exceed a preset threshold, dividing the set to be optimized to obtain scheme pairs, wherein the data difference rate between the two optimized schemes in at least N scheme pairs reaches a preset difference rate;
if the current iteration times exceed the preset threshold, randomly dividing the set to be optimized to obtain the scheme pairs;
wherein the preset threshold is not less than half of the preset times.
The data difference rate reflects the difference of data between the two optimization schemes, that is, in the initial stage of iteration, two optimization schemes with larger mutual difference are compared as much as possible, and compared with two optimization schemes with smaller difference, and then only one scheme is updated. After comparing two optimization schemes with larger difference, one of the two optimization schemes is updated, so that the optimization can be continuously performed on a plurality of schemes with larger difference, the optimization range is ensured, and the possibility that the more optimal scheme is found is improved. In the later stage of iteration, since screening of large categories (an optimization scheme with smaller data phase difference can be regarded as a category) is performed in the early stage, the difference between two optimization schemes compared with each other can not be limited at this time, comparison in the categories can be realized, and finer optimization is realized.
The updating the first optimization scheme comprises the following steps:
updating the current value of each wire harness to be optimized in the first optimization scheme according to the current updating step length of the first optimization scheme;
updating the updating step length corresponding to the first optimization scheme according to the second optimization scheme;
wherein the update step length in the set to be optimized is initialized when the set to be optimized is generated.
Initializing an update step length for each optimization scheme in the set to be optimized at the beginning of iteration, wherein the update step length corresponding to the optimization scheme is a vector, a value in the vector corresponds to the update amount of each current value of the wire harness to be optimized, when the optimization scheme is determined to be the first optimization scheme, the current value in the optimization scheme is updated according to the current update step length, and after the current value is updated, the update step length of the optimization scheme is updated.
The updating step length corresponding to the first optimization scheme according to the second optimization scheme comprises the following steps:
acquiring a first difference value between the first optimization scheme and the second optimization scheme and a second difference value between the average value of all the optimization schemes in the set to be optimized and the first optimization scheme;
updating the updating step length corresponding to the first optimization scheme according to the first difference value and the second difference value.
If the update step in the process of updating the optimization schemes is just to refer to the values of other optimization schemes in the scheme pair, each optimization scheme may be updated in the same direction, so that the optimizing range is not wide enough. In the method provided by the invention, in order to enable the update rate of the first optimization scheme in each iteration to be in a reasonable range, the average value of all the optimization schemes in the set to be optimized is considered in addition to the value of the optimization scheme which is better than the update rate, so that more reasonable update step length can be determined, and the accuracy of the optimization result is improved.
In a possible implementation manner, the updating the update step size corresponding to the first optimization scheme according to the first difference value and the second difference value includes:
and carrying out weighted summation on the first difference value and the second difference value to obtain a weighted summation result, and obtaining an update step length corresponding to a first optimization scheme based on the weighted summation result.
The weight value for performing weighted summation on the first difference value and the second difference value may be preset through experiments. Further, the obtaining the update step based on the weighted sum result includes:
if the current iteration times do not exceed the preset threshold, directly taking the weighted summation result as an update step length corresponding to a first optimization scheme;
if the current iteration times exceed the preset threshold, the weighted summation result is reduced to obtain an update step length corresponding to the first optimization scheme.
In the early stage of iteration, the updating step length can be larger, so that the optimizing range can be conveniently expanded, and in the later stage of iteration, the updating step length is smaller, so that finer optimizing can be realized.
In the process of updating the optimization scheme, the feasibility of the updated scheme is ensured, so that the method provided by the invention further comprises the following steps after the first optimization scheme is updated:
determining whether the current value of each wire harness to be optimized in the updated first optimization scheme exceeds the feasible current range;
and deleting the first optimization scheme when the current value of the wire harness to be optimized in the first optimization scheme exceeds the feasible current range, and randomly generating a new optimization scheme to be added into the set to be optimized.
That is, when the current value of each wire harness to be optimized in the updated first optimization scheme exceeds the feasible current range, the first optimization scheme is updated to be a randomly newly generated optimization scheme. It will be appreciated that the new optimization scheme generated at random also needs to meet the feasible current range.
In summary, according to the method for optimizing the electromagnetic compatibility of the wire harness, the to-be-optimized set comprising a plurality of optimization schemes is randomly generated, the scheme in the to-be-optimized set is updated in each iteration based on the fitness value by taking the electromagnetic interference degree between the wire harnesses to be optimized as the fitness value, the optimization scheme with lower electromagnetic interference degree is searched based on multiple iterations, the optimization scheme with the optimal fitness value in the latest to-be-optimized set is taken as the target optimization scheme after the iteration times are enough, and the current value of each wire harness to be optimized in the scheduling period is set based on the target optimization scheme, so that the technical effects of reducing electromagnetic interference between the wire harnesses and improving the processing reliability of processing equipment are achieved.
The wire harness electromagnetic compatibility optimizing device provided by the invention is described below, and the wire harness electromagnetic compatibility optimizing device and the wire harness electromagnetic compatibility optimizing method described above can be correspondingly referred to each other. As shown in fig. 2, the electromagnetic compatibility optimizing apparatus for a wire harness provided by the present invention includes:
the set generating module 210 is configured to generate a set to be optimized based on a feasible current range of each wire harness to be optimized, where the set to be optimized includes a plurality of optimization schemes, each optimization scheme includes a current value of each wire harness to be optimized in a scheduling period, the feasible current range reflects a maximum value and a minimum value of a current transmittable by the wire harness to be optimized, and a current value of each wire harness to be optimized in each optimization scheme does not exceed the feasible current range corresponding to the wire harness to be optimized;
the iterative optimization module 220 is configured to perform iterative optimization on the set to be optimized, divide the set to be optimized in each iterative optimization process, and obtain a plurality of solution pairs, where each solution pair includes two optimization solutions, and update the optimization solutions in each solution pair based on fitness values corresponding to the two optimization solutions in each solution pair, where the fitness values corresponding to the optimization solutions reflect electromagnetic interference degrees between the wire harnesses to be optimized in the optimization solutions;
the setting module 230 is configured to set, as a target set, the set to be optimized when the iteration number reaches a preset number, and set, as a target optimization scheme, the optimization scheme with the optimal fitness value corresponding to the target set, and set current values of each wire harness to be optimized in the scheduling period based on the target optimization scheme.
Fig. 3 illustrates a physical schematic diagram of an electronic device, as shown in fig. 3, where the electronic device may include: processor 310, communication interface (Communications Interface) 320, memory 330 and communication bus 340, wherein processor 310, communication interface 320, memory 330 accomplish communication with each other through communication bus 340. The processor 310 may invoke logic instructions in the memory 330 to perform a method of optimizing electromagnetic compatibility of a wiring harness, the method comprising: generating a to-be-optimized set based on a feasible current range of each to-be-optimized wire harness, wherein the to-be-optimized set comprises a plurality of optimization schemes, each optimization scheme comprises current values of each to-be-optimized wire harness in a scheduling period, the feasible current range reflects a maximum value and a minimum value of current which can be transmitted by the to-be-optimized wire harness, and the current value of each to-be-optimized wire harness in each optimization scheme does not exceed the feasible current range corresponding to the to-be-optimized wire harness;
performing iterative optimization on the set to be optimized, and dividing the set to be optimized in each iterative optimization process to obtain a plurality of scheme pairs, wherein each scheme pair comprises two optimization schemes, and updating the optimization schemes in each scheme pair based on fitness values corresponding to the two optimization schemes in each scheme pair, wherein the fitness values corresponding to the optimization schemes reflect the electromagnetic interference degree between the wire harnesses to be optimized in the optimization schemes;
and taking the set to be optimized when the iteration times reach the preset times as a target set, taking the optimization scheme with the optimal fitness value corresponding to the target set as a target optimization scheme, and setting the current value of each wire harness to be optimized in the scheduling period based on the target optimization scheme.
Further, the logic instructions in the memory 330 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of executing the method for optimizing electromagnetic compatibility of a wire harness provided by the above methods, the method comprising: generating a to-be-optimized set based on a feasible current range of each to-be-optimized wire harness, wherein the to-be-optimized set comprises a plurality of optimization schemes, each optimization scheme comprises current values of each to-be-optimized wire harness in a scheduling period, the feasible current range reflects a maximum value and a minimum value of current which can be transmitted by the to-be-optimized wire harness, and the current value of each to-be-optimized wire harness in each optimization scheme does not exceed the feasible current range corresponding to the to-be-optimized wire harness;
performing iterative optimization on the set to be optimized, and dividing the set to be optimized in each iterative optimization process to obtain a plurality of scheme pairs, wherein each scheme pair comprises two optimization schemes, and updating the optimization schemes in each scheme pair based on fitness values corresponding to the two optimization schemes in each scheme pair, wherein the fitness values corresponding to the optimization schemes reflect the electromagnetic interference degree between the wire harnesses to be optimized in the optimization schemes;
and taking the set to be optimized when the iteration times reach the preset times as a target set, taking the optimization scheme with the optimal fitness value corresponding to the target set as a target optimization scheme, and setting the current value of each wire harness to be optimized in the scheduling period based on the target optimization scheme.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for optimizing electromagnetic compatibility of a wire harness, comprising:
generating a to-be-optimized set based on a feasible current range of each to-be-optimized wire harness, wherein the to-be-optimized set comprises a plurality of optimization schemes, each optimization scheme comprises current values of each to-be-optimized wire harness in a scheduling period, the feasible current range reflects a maximum value and a minimum value of current which can be transmitted by the to-be-optimized wire harness, and the current value of each to-be-optimized wire harness in each optimization scheme does not exceed the feasible current range corresponding to the to-be-optimized wire harness;
performing iterative optimization on the set to be optimized, and dividing the set to be optimized in each iterative optimization process to obtain a plurality of scheme pairs, wherein each scheme pair comprises two optimization schemes, and updating the optimization schemes in each scheme pair based on fitness values corresponding to the two optimization schemes in each scheme pair, wherein the fitness values corresponding to the optimization schemes reflect the electromagnetic interference degree between the wire harnesses to be optimized in the optimization schemes;
and taking the set to be optimized when the iteration times reach the preset times as a target set, taking the optimization scheme with the optimal fitness value corresponding to the target set as a target optimization scheme, and setting the current value of each wire harness to be optimized in the scheduling period based on the target optimization scheme.
2. The wire harness electromagnetic compatibility optimization method according to claim 1, wherein the updating the optimization schemes in each of the scheme pairs based on fitness values corresponding to the two optimization schemes includes:
taking the optimization scheme with the worse adaptability value corresponding to the scheme pair as a first optimization scheme, and taking the other optimization scheme in the scheme pair as a second optimization scheme;
updating the first optimization scheme.
3. The method for optimizing electromagnetic compatibility of a wire harness according to claim 2, wherein the dividing the set to be optimized to obtain a plurality of scheme pairs includes:
if the current iteration number does not exceed the preset threshold, the data difference rate between the two optimization schemes included in at least M scheme pairs in the plurality of scheme pairs reaches a preset difference rate, wherein M is not less than half of the total number of the optimization schemes included in the set to be optimized;
if the current iteration times exceed the preset threshold, randomly dividing the set to be optimized to obtain the scheme pairs;
wherein the preset threshold is not less than half of the preset times.
4. The wire harness electromagnetic compatibility optimization method according to claim 1, wherein the fitness value is calculated by the formula:
;
wherein,,representing said fitness value,/->For the number of wire harnesses to be optimized, +.>For the j-th random number corresponding to the wire harness to be optimized,/for>,/>,/>Is a random number +.>Is constant (I)>For the number of current iterations, +.>For said preset number of times>,/>And->Respectively representing current values of the ith wire harness to be optimized and the jth wire harness to be optimized in the optimization scheme in the dispatching period, +.>For the duration of the scheduling period, +.>For the Euclidean distance between the ith wire harness to be optimized and the jth wire harness to be optimized,/for the length of the wire harness to be optimized>Is constant.
5. The wire harness electromagnetic compatibility optimization method of claim 2, wherein the updating the first optimization scheme comprises:
updating the current value of each wire harness to be optimized in the first optimization scheme according to the current updating step length of the first optimization scheme;
updating the updating step length corresponding to the first optimization scheme according to the second optimization scheme;
wherein the update step length in the set to be optimized is initialized when the set to be optimized is generated.
6. The method for optimizing electromagnetic compatibility of a wire harness according to claim 5, wherein the updating the update step corresponding to the first optimization scheme according to the second optimization scheme includes:
acquiring a first difference value between the first optimization scheme and the second optimization scheme and a second difference value between the average value of all the optimization schemes in the set to be optimized and the first optimization scheme;
updating the updating step length corresponding to the first optimization scheme according to the first difference value and the second difference value.
7. The wire harness electromagnetic compatibility optimization method according to claim 2, characterized by further comprising, after the updating of the first optimization scheme:
determining whether the current value of each wire harness to be optimized in the updated first optimization scheme exceeds the feasible current range;
and deleting the first optimization scheme when the current value of the wire harness to be optimized in the first optimization scheme exceeds the feasible current range, and randomly generating a new optimization scheme to be added into the set to be optimized.
8. The utility model provides a pencil electromagnetic compatibility optimizing apparatus towards multiaxis precision machining equipment which characterized in that includes:
the system comprises a set generation module, a calculation module and a calculation module, wherein the set generation module is used for generating a set to be optimized based on the feasible current range of each wire harness to be optimized, the set to be optimized comprises a plurality of optimization schemes, each optimization scheme comprises current values of each wire harness to be optimized in a scheduling period, the feasible current range reflects the maximum value and the minimum value of the current which can be transmitted by the wire harness to be optimized, and the current value of each wire harness to be optimized in each optimization scheme does not exceed the feasible current range corresponding to the wire harness to be optimized;
the iterative optimization module is used for carrying out iterative optimization on the set to be optimized, dividing the set to be optimized in each iterative optimization process to obtain a plurality of scheme pairs, wherein each scheme pair comprises two optimization schemes, and updating the optimization schemes in each scheme pair based on the fitness values corresponding to the two optimization schemes in each scheme pair, wherein the fitness values corresponding to the optimization schemes reflect the electromagnetic interference degree between the wire harnesses to be optimized in the optimization schemes;
the setting module is used for taking the set to be optimized when the iteration times reach the preset times as a target set, taking the optimization scheme with the optimal fitness value corresponding to the target set as a target optimization scheme, and setting the current value of each wire harness to be optimized in the dispatching time period based on the target optimization scheme.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of optimizing electromagnetic compatibility of a wire harness according to any one of claims 1 to 7 when the computer program is executed by the processor.
10. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the wire harness electromagnetic compatibility optimization method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310765097.4A CN116502473B (en) | 2023-06-27 | 2023-06-27 | Wire harness electromagnetic compatibility optimization method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310765097.4A CN116502473B (en) | 2023-06-27 | 2023-06-27 | Wire harness electromagnetic compatibility optimization method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116502473A true CN116502473A (en) | 2023-07-28 |
CN116502473B CN116502473B (en) | 2024-01-12 |
Family
ID=87321644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310765097.4A Active CN116502473B (en) | 2023-06-27 | 2023-06-27 | Wire harness electromagnetic compatibility optimization method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116502473B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105260785A (en) * | 2015-08-24 | 2016-01-20 | 屈迟文 | Logistic distribution vehicle path optimizing method based on improved Cuckoo algorithm |
CN106484512A (en) * | 2016-10-08 | 2017-03-08 | 电子科技大学 | The dispatching method of computing unit |
CN111159858A (en) * | 2019-12-12 | 2020-05-15 | 中国汽车工程研究院股份有限公司 | Complete vehicle anti-interference analysis method and system |
CN113255061A (en) * | 2021-05-28 | 2021-08-13 | 中汽研(天津)汽车工程研究院有限公司 | Automobile electromagnetic compatibility low-voltage wire harness coupling simulation method |
CN115204525A (en) * | 2022-09-14 | 2022-10-18 | 中科航迈数控软件(深圳)有限公司 | Processing task scheduling method, device, terminal and storage medium |
US20220373380A1 (en) * | 2021-05-19 | 2022-11-24 | The Boeing Company | Resistive wire wiring shield to prevent electromagnetic interference |
CN116223962A (en) * | 2023-05-08 | 2023-06-06 | 中科航迈数控软件(深圳)有限公司 | Method, device, equipment and medium for predicting electromagnetic compatibility of wire harness |
WO2023207619A1 (en) * | 2022-04-29 | 2023-11-02 | 宁德时代新能源科技股份有限公司 | Battery, electric device, and secondary utilization method for wire harness of battery |
-
2023
- 2023-06-27 CN CN202310765097.4A patent/CN116502473B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105260785A (en) * | 2015-08-24 | 2016-01-20 | 屈迟文 | Logistic distribution vehicle path optimizing method based on improved Cuckoo algorithm |
CN106484512A (en) * | 2016-10-08 | 2017-03-08 | 电子科技大学 | The dispatching method of computing unit |
CN111159858A (en) * | 2019-12-12 | 2020-05-15 | 中国汽车工程研究院股份有限公司 | Complete vehicle anti-interference analysis method and system |
US20220373380A1 (en) * | 2021-05-19 | 2022-11-24 | The Boeing Company | Resistive wire wiring shield to prevent electromagnetic interference |
CN113255061A (en) * | 2021-05-28 | 2021-08-13 | 中汽研(天津)汽车工程研究院有限公司 | Automobile electromagnetic compatibility low-voltage wire harness coupling simulation method |
WO2023207619A1 (en) * | 2022-04-29 | 2023-11-02 | 宁德时代新能源科技股份有限公司 | Battery, electric device, and secondary utilization method for wire harness of battery |
CN115204525A (en) * | 2022-09-14 | 2022-10-18 | 中科航迈数控软件(深圳)有限公司 | Processing task scheduling method, device, terminal and storage medium |
CN116223962A (en) * | 2023-05-08 | 2023-06-06 | 中科航迈数控软件(深圳)有限公司 | Method, device, equipment and medium for predicting electromagnetic compatibility of wire harness |
Non-Patent Citations (2)
Title |
---|
孙金泉: "轮式装载机电磁兼容设计探讨", 《工程机械》, pages 68 - 70 * |
王亚坤: "汽车线束电磁兼容设计规范及故障案例分析", 《汽车电器》, pages 62 - 64 * |
Also Published As
Publication number | Publication date |
---|---|
CN116502473B (en) | 2024-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108053119B (en) | Improved particle swarm optimization method for solving scheduling problem of zero-waiting line shop | |
CN111445007A (en) | Training method and system for resisting generation of neural network | |
CN111695696A (en) | Method and device for model training based on federal learning | |
CN112686383B (en) | Method, system and device for reducing distributed random gradient of communication parallelism | |
CN114281521B (en) | Method, system, equipment and medium for optimizing deep learning heterogeneous resource communication efficiency | |
WO2016110262A1 (en) | System and method for adaptive back-off time determination | |
US11564101B2 (en) | Method and system for handling network intrusion | |
CN114186671A (en) | Large-batch decentralized distributed image classifier training method and system | |
CN116502473B (en) | Wire harness electromagnetic compatibility optimization method and device, electronic equipment and storage medium | |
CN112749403B (en) | Edge data encryption method suitable for edge Internet of things agent device | |
CN116911403B (en) | Federal learning server and client integrated training method and related equipment | |
CN116339242B (en) | Free-form surface cutter path generation method and related equipment | |
CN116581786A (en) | Switching method of voltage oscillation suppression device of distributed power grid | |
CN114972695B (en) | Point cloud generation method and device, electronic equipment and storage medium | |
CN115149873B (en) | Servo motor set control method based on neural network model and related equipment | |
CN116664972A (en) | Image generation method, device, computing equipment and storage medium | |
CN113950059B (en) | Unmanned aerial vehicle relay auxiliary user task unloading method and system | |
CN114492787A (en) | Adaptive neural network training method, electronic device, medium, and program product | |
CN108289326B (en) | Unmanned system equipment communication method, system, equipment and computer medium | |
CN113963433B (en) | Motion search method, motion search device, electronic equipment and storage medium | |
CN114336600B (en) | Power control method and device, mobile terminal and storage medium | |
CN115687428B (en) | Out-of-order data delay water line dynamic self-adaptive generation method, system and equipment | |
CN111797634B (en) | Document segmentation method and device | |
CN111368974B (en) | FSMN data processing method, device, medium and equipment | |
CN118133936A (en) | Distributed random non-smooth optimization method based on smoothing and momentum technology |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |