CN111967093B - Balance layout method and device for excavator, electronic equipment and storage medium - Google Patents

Balance layout method and device for excavator, electronic equipment and storage medium Download PDF

Info

Publication number
CN111967093B
CN111967093B CN202010826369.3A CN202010826369A CN111967093B CN 111967093 B CN111967093 B CN 111967093B CN 202010826369 A CN202010826369 A CN 202010826369A CN 111967093 B CN111967093 B CN 111967093B
Authority
CN
China
Prior art keywords
vector
excavator
weight
initial population
components
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.)
Active
Application number
CN202010826369.3A
Other languages
Chinese (zh)
Other versions
CN111967093A (en
Inventor
刘硕杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Sany Heavy Machinery Co Ltd
Original Assignee
Shanghai Sany Heavy Machinery Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Sany Heavy Machinery Co Ltd filed Critical Shanghai Sany Heavy Machinery Co Ltd
Priority to CN202010826369.3A priority Critical patent/CN111967093B/en
Publication of CN111967093A publication Critical patent/CN111967093A/en
Application granted granted Critical
Publication of CN111967093B publication Critical patent/CN111967093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention provides a balance layout method and device of an excavator, electronic equipment and a storage medium, and relates to the field of excavators. The method randomly generates an initial population, each vector in the initial population comprises a centroid coordinate value and a counterweight weight corresponding to each of a plurality of components, selecting, cross calculating and mutation calculating the initial population according to the coordinate values of the mass center corresponding to the multiple components, the weights of the multiple components and the position of the rotation center of the excavator to obtain a new generation population, carrying out selection operation, cross calculation and variation operation on the new generation group cycle until the obtained fitness mean error and the fitness maximum error of a plurality of new generation groups are all smaller than a first preset value, and then selecting an optimal vector from the last generation group, and obtaining the optimal coordinate distribution value and the optimal weight distribution value of the counterweight corresponding to each of the plurality of components according to the optimal vector, so that the optimal balance layout design of the excavator is realized, and the balance calculation efficiency of the excavator is improved.

Description

Balance layout method and device for excavator, electronic equipment and storage medium
Technical Field
The invention relates to the field of excavators, in particular to a balance layout method and device of an excavator, electronic equipment and a storage medium.
Background
At present, the implementation mode of the balance layout of the excavator is mainly to manually calculate the layout balance of each component after each component of the excavator is preliminarily laid out, and if the balance is found to be unbalanced, the balance weight needs to be finely adjusted and the balance is recalculated. The layout design mode is quite heavy in work, the positions of the obtained parts are not necessarily the optimal positions, and meanwhile, the balance requirements of the front and back and the left and right of the excavator cannot be met simultaneously only by adjusting the balance weight.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for balancing layout of an excavator, an electronic device, and a storage medium, which are capable of obtaining an optimal position of each component of the excavator and an optimal weight of a counterweight, and implementing an optimal balancing layout design of the excavator.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a balance layout method for an excavator, which is applied to an electronic device, where the electronic device stores, in advance, a center-of-mass position adjustment range corresponding to each of multiple components of the excavator, a weight of each of the other components except a counterweight in the multiple components, and a position of a center of rotation of the excavator; the method comprises the following steps:
randomly generating an initial population, the initial population comprising a first preset number of vectors, each vector comprising a centroid coordinate value and a counterweight weight corresponding to each of the plurality of components; the coordinate value of the center of mass of each part is in the corresponding adjustment range of the position of the center of mass;
selecting the initial population according to the coordinate values of the center of mass corresponding to each of the plurality of components, the weight of each of the plurality of components and the position of the gyration center of the excavator so as to select a first target vector from the initial population;
performing cross calculation and mutation operation on the rest vectors except the first target vector in the initial population to obtain a second target vector;
obtaining a new generation group according to the first target vector and the second target vector, and circularly performing selection operation, cross calculation and variation operation on the obtained new generation group until the fitness mean error and the fitness maximum error of the obtained multiple new generation groups are smaller than a first preset value;
and selecting an optimal vector from the last generation group of the plurality of new generation groups, and obtaining the optimal coordinate distribution value corresponding to each of the plurality of components and the optimal weight distribution value of the balance weight according to the optimal vector.
In an alternative embodiment, the selecting the initial population according to the coordinate values of the center of mass corresponding to each of the plurality of components, the weight of each of the plurality of components, and the position of the center of gyration of the excavator to select the first target vector from the initial population includes:
respectively calculating the probability value of each vector inherited to the next generation group according to the mass center coordinate values corresponding to the components, the weights of the components and the rotation center position of the excavator;
selecting a first target vector from the initial population according to the probability value of each vector inherited to the next generation population.
In an alternative embodiment, the selecting a first target vector from the initial population according to the probability value of each vector being inherited to the next generation population comprises:
determining a probability interval corresponding to each vector according to the probability value of each vector inherited to the next generation group;
randomly generating a random number between 0 and 1, and determining the number of times each vector is selected according to the number of times the random number appears in each probability interval;
and selecting a second preset number of vectors as the first target vector according to the number of times of selecting each vector.
In an alternative embodiment, each component has a corresponding reference number, the centroid coordinate values include a centroid abscissa and a centroid ordinate, the swing center position includes a swing center abscissa and a swing center ordinate, and the calculating the probability value of each vector being inherited to the next generation group according to the centroid coordinate values corresponding to each of the plurality of components, the respective weights of the plurality of components, and the swing center position of the excavator respectively includes:
according to the formula F ═ 1/(aP) X |+|P Ymin |+|P Ymax I) calculating the fitness of each vector, and calculating the sum of the fitness of all vectors in the initial population according to the fitness of each vector; wherein a is a preset balance coefficient, P X =∑9.8×G i ×(X i -X 0 ),P Ymin =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×(Y m -Y 0 ),P Ymax =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×[f(Y m )-Y 0 ],G i Denotes the weight of the part denoted by i, X i The abscissa of the center of mass, X, of the component denoted by the reference number i 0 Representing the abscissa, Y, of the centre of rotation 0 Representing the ordinate, G, of the centre of revolution m Representing the weight, Y, of the working device in said plurality of parts m A centroid ordinate, f (Y), representing the fully retracted state of the working device m ) Ordinate of mass, G, representing the working device in a fully extended state j Denotes the weight, Y, of a part denoted by j of the plurality of parts except the working device j A centroid ordinate representing a part of the plurality of parts, denoted by reference numeral j, other than the working device;
according to formula F k Calculating the probability value of each vector inherited to the next generation group by the/sigma F; wherein F k And F is the fitness of the kth vector, and is the sum of the fitness of all vectors in the initial population.
In an alternative embodiment, the performing the cross-computing and mutation operations on the remaining vectors in the initial population except for the first target vector to obtain a second target vector includes:
carrying out pairwise random pairing on the other vectors except the first target vector in the initial population;
performing cross calculation on the paired vectors to obtain a first intermediate vector;
performing variation operation on the first intermediate vector to randomly select a new centroid coordinate value and a new counterweight weight from the peripheries of the centroid coordinate value and the counterweight weight of each component in the first intermediate vector respectively, and updating the centroid coordinate value and the counterweight weight of each component in the first intermediate vector into the new centroid coordinate value and the new counterweight weight to obtain a second intermediate vector;
and when the coordinate value of the center of mass of each component in the second intermediate vector and the weight of the counterweight meet a second preset condition, determining the second intermediate vector as a second target vector.
In an alternative embodiment, when the coordinate value of the centroid of each component in the second intermediate vector and the weight of the counterweight meet a second preset condition, determining the second intermediate vector as a second target vector includes:
when the coordinate values of the mass centers of all the components in the second intermediate vector are all in the corresponding mass center position adjusting range, and 2(| P) Ymin |-|P Ymax |)/(|P Ymin |+|P Ymax If the value is less than a second preset value, determining the second intermediate vector as a second target vector; wherein, P Ymin =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×(Y m -Y 0 ),P Ymax =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×[f(Y m )-Y 0 ],Y 0 Representing the ordinate of the centre of rotation, G m Representing the weight, Y, of the working device in said plurality of parts m A centroid ordinate, f (Y), representing the fully retracted state of the working device m ) Ordinate of mass, G, representing the working device in a fully extended state j Denotes the weight of a part denoted by j, Y, of the plurality of parts excluding the working device j Represents the ordinate of the mass center of the part, denoted by the reference j, of the plurality of parts, excluding the working device.
In an alternative embodiment, the selecting the optimal vector from the last generation population of the plurality of new generation populations comprises:
calculating the probability value of each vector inherited from the last generation group to the next generation group;
and determining the vector with the maximum probability value as the optimal vector.
In a second aspect, an embodiment of the present invention provides a balance layout device for an excavator, which is applied to an electronic device, where the electronic device stores, in advance, a center-of-mass position adjustment range corresponding to each of a plurality of components of the excavator, a weight of each of the other components except for a counterweight in the plurality of components, and a swing center position of the excavator; the device comprises:
an initial population generating module for randomly generating an initial population, wherein the initial population comprises a first preset number of vectors, and each vector comprises a centroid coordinate value and a counterweight weight corresponding to each of the plurality of components; the coordinate value of the center of mass of each part is in the corresponding adjustment range of the position of the center of mass;
the calculation module is used for selecting the initial population according to the mass center coordinate values corresponding to the components, the weights of the components and the rotation center position of the excavator so as to select a first target vector from the initial population; performing cross calculation and mutation operation on the other vectors except the first target vector in the initial population to obtain a second target vector;
the calculation module is further used for obtaining a new generation group according to the first target vector and the second target vector, and performing selection operation, cross calculation and mutation operation on the obtained new generation group in a circulating manner until the fitness mean error and the fitness maximum error of the obtained multiple new generation groups are smaller than a first preset value;
and the acquisition module is used for selecting an optimal vector from the last generation group of the plurality of new generation groups and obtaining the optimal coordinate distribution value corresponding to each of the plurality of parts and the optimal weight distribution value of the counterweight according to the optimal vector.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores a computer program capable of being executed by the processor, and when the computer program is executed by the processor, the electronic device implements the method according to any one of the foregoing embodiments.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method according to any one of the foregoing embodiments.
The balance layout method, the balance layout device, the electronic equipment and the storage medium of the excavator provided by the embodiment of the invention have the advantages that an initial population is randomly generated, the initial population comprises a first preset number of vectors, each vector comprises a centroid coordinate value and a counterweight weight which correspond to a plurality of components, the centroid coordinate value of each component is in a corresponding centroid position adjusting range, the initial population is selected according to the centroid coordinate value which corresponds to each component, the weight of each component and the rotation center position of the excavator, so that a first target vector is selected from the initial population, the other vectors except the first target vector in the initial population are subjected to cross calculation and variation operation to obtain a second target vector, a new generation population is obtained according to the first target vector and the second target vector, and the obtained new generation population is circularly subjected to the selection operation, And performing cross calculation and variation operation until the obtained fitness mean error and the fitness maximum error of the plurality of new generation groups are smaller than a first preset value, selecting an optimal vector from the last generation group of the plurality of new generation groups, and obtaining optimal coordinate distribution values and optimal weight distribution values of the balance weights corresponding to the plurality of parts according to the optimal vector. Therefore, the optimal coordinate distribution value of each component of the excavator and the optimal weight distribution value of the balance weight can be obtained only by determining the mass center position adjusting range, the weight and the rotation center position of each component of the excavator, so that the optimal balance layout design of the excavator is realized; meanwhile, the whole balance calculation process does not need human participation, so that the balance calculation efficiency of the excavator is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a block diagram of an electronic device provided by an embodiment of the invention;
FIG. 2 is a flow chart illustrating a balancing layout method of an excavator according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating the sub-steps of step S202 in FIG. 2;
FIG. 4 is a flow chart illustrating the sub-steps of step S203 in FIG. 2;
fig. 5 is a functional block diagram of a balancing layout apparatus of an excavator according to an embodiment of the present invention.
Icon: 100-an electronic device; 110-a memory; 120-a processor; 130-a communication module; 500-balanced layout of excavator; 510-initial population generation module; 520-a calculation module; 530-obtaining module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 is a block diagram of an electronic device 100 according to an embodiment of the invention. The electronic device 100 may be a Personal Computer (PC) device, and the electronic device 100 may obtain an optimal coordinate distribution value of each component of the excavator and an optimal weight distribution value of the counterweight according to a given rotation center position of the excavator, a center of mass position adjustment range of each component, a weight, and other parameters, thereby implementing an optimal balance layout design of the excavator and improving a balance calculation efficiency of the excavator. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, the processor 120, and the communication module 130 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 110 is used to store programs or data. The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 120 is used to read/write data or programs stored in the memory 110 and perform corresponding functions. For example, the processor 120 may implement the balanced layout method of the excavator disclosed by the embodiment of the present invention by executing the computer program stored in the memory 110.
The communication module 130 is used for establishing a communication connection between the electronic device 100 and other communication terminals through a network, and for transceiving data through the network.
It should be understood that the configuration shown in fig. 1 is merely a schematic diagram of the configuration of the electronic device 100, and that the electronic device 100 may include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 120, the method for balancing and arranging the excavator disclosed by the embodiment of the present invention can be implemented.
Fig. 2 is a schematic flow chart of a balanced layout method of an excavator according to an embodiment of the present invention. It should be noted that, the balancing layout method of the excavator according to the embodiment of the present invention is not limited by fig. 2 and the following specific sequence, and it should be understood that, in other embodiments, the sequence of some steps in the balancing layout method of the excavator according to the embodiment of the present invention may be interchanged according to actual needs, or some steps in the balancing layout method of the excavator may be omitted or deleted. The balance layout method of the excavator can be applied to the electronic device 100 shown in fig. 1, and the center-of-mass position adjustment ranges corresponding to each of the plurality of components of the excavator, the respective weights of the other components except the counterweight in the plurality of components, and the rotation center position of the excavator are stored in advance in the electronic device 100, and the specific process shown in fig. 2 will be described in detail below.
Step S201, randomly generating an initial population, wherein the initial population comprises a first preset number of vectors, and each vector comprises a mass center coordinate value and a counterweight weight which correspond to a plurality of components; the mass center coordinate value of each part is in the corresponding mass center position adjusting range.
Taking an electric hydraulic excavator as an example, only the changed parts are considered, considering that only the positions or weights of some parts of the electric hydraulic excavator change, and some parts do not change. Wherein, in the part that changes, the position all can change, and except that the weight of counter weight is adjustable, the weight of other parts is all certain. Therefore, in the present embodiment, the center-of-mass position adjustment range corresponding to each of the plurality of components of the excavator, the weight of each of the remaining components of the plurality of components excluding the counterweight, and the swing center position of the excavator may be determined in advance, and these data may be stored in the electronic apparatus 100.
When the electronic device 100 randomly generates the initial population, the centroid coordinate values corresponding to the components in each vector should be within the corresponding centroid position adjustment range, and in order to obtain the result as soon as possible, a range may be set in advance for the weight of the counterweight in the electronic device 100, so that the weight of the counterweight in each randomly generated vector is also within the set counterweight weight range.
In the present embodiment, it is assumed that each component has a corresponding reference numeral, and the centroid coordinate value corresponding to each component includes a centroid abscissa and a centroid ordinate, and the vector may be expressed as M ═ X (X) 1 ,X 2 ,……,X i ,Y 1 ,Y 2 ,……,Y i G), wherein X i The abscissa of the mass of the part denoted by i, Y i The ordinate of the mass center of the part denoted by i is indicated, and G denotes the counterweight weight. It should be noted that, since the working device of the excavator has two states of contraction and expansion, when the working device is included in the plurality of components, the centroid ordinate of the working device may be the centroid ordinate in the fully contracted state or the fully expanded state, and there is a certain functional relationship between the centroid ordinate in the fully contracted state and the centroid ordinate in the fully expanded state. In this embodiment, the centroid ordinate of the working device is taken as the centroid ordinate in the fully retracted state for explanation, and then the centroid ordinate of the working device in the fully retracted state can be represented as Y m The centroid ordinate of the fully retracted working device may be represented as f (Y) m )。
In the present embodiment, the weight of the component denoted by reference numeral i may be denoted as G i The adjustment range of the center of mass position corresponding to the component marked with the reference number i can be expressed as the maximum allowable X-axis distance X of the center of mass imax Minimum allowable X-axis distance X of center of mass imin Centroid permissible maximum Y-axis distance Y imax Permissible minimum Y-axis distance Y of center of mass imin . Wherein, the working device of the excavatorThe corresponding center of mass position adjusting range comprises a center of mass position adjusting range in a full-contraction state and a center of mass position adjusting range in a full-extension state. Wherein, the adjustment range of the center of mass position in the full-shrinkage state can be expressed as the allowable maximum X-axis distance X of the center of mass 1 imax Minimum allowable X-axis distance X of center of mass 1 imin Centroid permissible maximum Y-axis distance Y 1 imax Permissible minimum Y-axis distance Y of center of mass 1 imin (ii) a The adjustment range of the center of mass position in the fully extended state can be expressed as the allowable maximum X-axis distance X of the center of mass 2 imax Minimum allowable X-axis distance X of center of mass 2 imin Center of mass allowed maximum Y-axis distance Y 2 imax Permissible minimum Y-axis distance Y of center of mass 2 imin
In one example, assuming that the plurality of components include 8 components including a heat sink, a motor and a main pump, a hydraulic oil tank, a battery pack, a counterweight, a PDU (Power Distribution Unit), an AFE (Active Front End Unit), and a working device, and that the corresponding reference numeral of the heat sink is 1, the corresponding reference numeral of the motor and the main pump is 2, the corresponding reference numeral of the hydraulic oil tank is 3, the corresponding reference numeral of the battery pack is 4, the corresponding reference numeral of the counterweight is 5, the corresponding reference numeral of the PDU is 6, the corresponding reference numeral of the AFE is 7, and the corresponding reference numeral of the working device is 8, the centroid coordinate value of the heat sink may be represented as (X is an X-coordinate value of the centroid of the heat sink) 1 ,Y 1 ) The centroid coordinate values of the motor and the main pump may be expressed as (X) 2 ,Y 2 ) The centroid coordinate value of the hydraulic oil tank can be expressed as (X) 3 ,Y 3 ) The centroid coordinate value of the battery pack may be expressed as (X) 4 ,Y 4 ) The centroid coordinate value of the counterweight can be represented as (X) 5 ,Y 5 ) The centroid coordinate value of the PDU may be represented as (X) 6 ,Y 6 ) The centroid coordinate value of the AFE can be expressed as (X) 7 ,Y 7 ) The centroid coordinate value of the working device may be expressed as (X) 8 ,Y 8 ) Wherein Y is 8 The ordinate of the center of mass representing the working device in the fully retracted state may be represented as f (Y) 8 ). Assume that the first predetermined number is10, i.e., 10 vectors are included in the initial population randomly generated by the electronic device 100, the 10 vectors can be respectively represented as M 1 、M 2 、M 3 、M 4 、M 5 、M 6 、M 7 、M 8 、M 9 、M 10
And step S202, selecting the initial population according to the coordinate values of the mass center corresponding to each of the plurality of components, the weight of each of the plurality of components and the rotation center position of the excavator, so as to select a first target vector from the initial population.
In this embodiment, by performing a selection operation on the initial population, a first target vector can be selected from the initial population for direct placement into the next generation population.
Optionally, referring to fig. 3, the step S202 may include the following sub-steps:
and a substep S2021 of calculating probability values of each vector inherited to the next generation group according to the coordinate values of the mass centers corresponding to the components, the weights of the components and the rotation center position of the excavator respectively.
In the present embodiment, the position of the center of gyration can be set to include the abscissa X of the center of gyration 0 And the ordinate Y of the centre of rotation 0 The electronic device 100 may set 1/(a | P) according to the formula F X |+|P Ymin |+|P Ymax |) calculating the fitness of each vector, calculating the sum of the fitness of all vectors in the initial population according to the fitness of each vector, and calculating the fitness of all vectors in the initial population according to a formula F k Calculating the probability value of each vector inherited to the next generation group; wherein a is a preset balance coefficient, P X =∑9.8×G i ×(X i -X 0 ),P Ymin =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×(Y m -Y 0 ),P Ymax =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×[f(Y m )-Y 0 ],G i Denotes the weight of the part denoted by i, X i The abscissa of the mass of the part denoted by i, X 0 Representing the abscissa of the centre of rotation, Y 0 Indicating longitudinal seating of centre of gyrationLabel, G m Indicating the weight of the working device in a plurality of parts, Y m Ordinate of mass, f (Y), representing the working device in a fully retracted state m ) Ordinate of mass, G, representing the working device in a fully extended state j Denotes the weight, Y, of a part denoted by j of the plurality of parts excluding the working device j Denotes the centroid ordinate, F, of a part of the plurality of parts, denoted by the reference number j, with the exception of the working device k The fitness of the kth vector is obtained, and sigma F is the sum of the fitness of all vectors in the initial population.
Taking the multiple components as a radiator (reference numeral 1), a motor and a main pump (reference numeral 2), a hydraulic oil tank (reference numeral 3), a battery pack (reference numeral 4), a counterweight (reference numeral 5), a PDU (reference numeral 6), an AFE (reference numeral 7), and a working device (reference numeral 8), respectively, as an example, the formula P X =∑9.8×G i ×(X i -X 0 ) The value of i in (1) to (8) and a formula P Ymin =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×(Y m -Y 0 ) And P Ymax =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×[f(Y m )-Y 0 ]Wherein j is 1-7 and m is 8.
In the embodiment, considering that the deviation of the actual gravity center and the centre of gyration of each component in the left-right direction is generally small, and in order to prevent neglect in the calculation process, a balance coefficient a is introduced, and the balance optimization objective function of the excavator is defined as P ═ a | P X |+|P Ymin |+|P Ymax 1/(a | P) |) if F ═ 1/(a | P) X |+|P Ymin |+|P Ymax |) calculating the fitness F of each vector in the initial population as the fitness k Finally, the fitness summation sigma F of all vectors is obtained, and then the corresponding fitness F of each vector is calculated k And (E) obtaining probability values of the vector inherited to the next generation group, wherein the sum of the probabilities is 1. It should be noted that the value of the balance coefficient a may be set according to an actual situation, which is not limited in this embodiment. For example, a may take 15.
With 10 vectors (M) in the initial population 1 、M 2 、M 3 、M 4 、M 5 、M 6 、M 7 、M 8 、M 9 、M 10 ) For example, after the calculation process of the sub-step S2021, the vector M can be obtained 1 The probability value of inheritance to the next generation group is F 1 V. F, vector M 2 The probability value of inheritance to the next generation group is F 2 V. F, vector M 3 The probability value of inheritance to the next generation of population is F 3 V. F, vector M 4 The probability value of inheritance to the next generation group is F 4 V. F, vector M 5 The probability value of inheritance to the next generation group is F 5 V. F, vector M 6 The probability value of inheritance to the next generation group is F 6 V. F, vector M 7 The probability value of inheritance to the next generation group is F 7 V. F, vector M 8 The probability value of inheritance to the next generation group is F 8 V. F, vector M 9 The probability value of inheritance to the next generation group is F 9 V. F, vector M 10 The probability value of inheritance to the next generation group is F 10 /∑F。
Substep S2022 selects a first target vector from the initial population based on the probability value that each vector is inherited to the next generation population.
In this embodiment, after calculating the probability value of each vector being inherited to the next-generation group, the electronic device 100 may determine a probability interval corresponding to each vector according to the probability value of each vector being inherited to the next-generation group, randomly generate a random number between 0 and 1, determine the number of times each vector is selected according to the number of times the random number appears in each probability interval, and select a second preset number of vectors as the first target vector according to the number of times each vector is selected.
Wherein, the probability interval corresponding to each vector can be determined by calculating the cumulative probability of each vector. For example, assume vector M 1 、M 2 、M 3 、M 4 、M 5 、M 6 、M 7 、M 8 、M 9 、M 10 The probability values of inheritance to the next generation groups are 0.1, 0.15, 0.05, 0.3, 0.14, 0.1, 0.01, 0.04, 0.1 and 0.01 respectively, and then the vector M is 1 The cumulative probability of (2) is 0.1, and the corresponding probability interval is 0-0.1; vector M 2 The cumulative probability of (2) is 0.25, and the corresponding probability interval is 0.1-0.25; vector M 3 The cumulative probability of (2) is 0.3, and the corresponding probability interval is 0.25-0.3; vector M 4 The cumulative probability of (2) is 0.6, and the corresponding probability interval is 0.3-0.6; vector M 5 The cumulative probability of (2) is 0.74, and the corresponding probability interval is 0.6-0.74; vector M 6 The cumulative probability of (2) is 0.84, and the corresponding probability interval is 0.74-0.84; vector M 7 The cumulative probability of (2) is 0.85, and the corresponding probability interval is 0.84-0.85; vector M 8 The cumulative probability of (2) is 0.89, and the corresponding probability interval is 0.85-0.89; vector M 9 The cumulative probability of (2) is 0.99, and the corresponding probability interval is 0.89-0.99; vector M 10 The cumulative probability of (2) is 1, and the corresponding probability interval is 0.99-1. After the electronic device 100 generates the random number, it can be determined whether the vector is selected by determining which vector the random number is in the probability interval corresponding to, for example, if the random number is 0.57, the vector M is 4 If it is selected, the random number is 0.8, then the vector M 6 And (6) selecting. In this way, the electronic device 100 can determine the number of times each vector is selected by generating a plurality of random numbers, and according to the number of times selected, a second predetermined number (for example, 2) of vectors with the largest number of times are selected as the first target vector and directly put into the next generation group.
Step S203, performing cross calculation and mutation operation on the remaining vectors in the initial population except the first target vector to obtain a second target vector.
In this embodiment, a new vector can be obtained by performing cross calculation and mutation operation on the remaining vectors except the first target vector, so as to obtain a second target vector.
Optionally, referring to fig. 4, the step S203 may include the following sub-steps:
and a substep S2031 of randomly pairing the vectors except the first target vector in the initial population pairwise.
For example, assume vector M 1 And M 2 Is selected the most timesTwo more vectors, then vector M can be obtained 1 And M 2 Determined as a first target vector M 1 1 And M 1 2 And directly put into the next generation group. At this point M remains in the initial population 3 、M 4 、M 5 、M 6 、M 7 、M 8 、M 9 、M 10 And 4 pairs of paired vectors can be obtained by randomly pairing the 8 vectors in pairs.
And a substep S2032 of performing cross calculation on the paired vectors to obtain a first intermediate vector.
Vector M paired with one of the pairs 3 And M 4 For example, assume M 3 =(X 31 ,X 32 ,……,X 3i ,Y 31 ,Y 32 ,……,Y 3i ,G 3 ),M 4 =(X 41 ,X 42 ,……,X 4i ,Y 41 ,Y 42 ,……,Y 4i ,G 4 ) Then the following cross-over calculation can be performed: x' 31 =λX 31 +(1-λ)X 41 ,X' 3i =λX 3i +(1-λ)X 4i ,Y' 31 =λY 31 +(1-λ)Y 41 ,Y' 3i =λY 3i +(1-λ)Y 4i ,G' 3 =λG 3 +(1-λ)G 4 ,X' 41 =λX 41 +(1-λ)X 31 ,X' 4i =λX 4i +(1-λ)X 3i ,Y' 41 =λY 41 +(1-λ)Y 31 ,Y' 4i =λY 4i +(1-λ)Y 3i ,G' 4 =λG 4 +(1-λ)G 3 Wherein λ can be a random value between 0 and 1, and then a corresponding first intermediate vector M 'can be obtained' 3 =(X' 31 ,X' 32 ,……,X' 3i ,Y' 31 ,Y' 32 ,……,Y' 3i ,G' 3 ),M' 4 =(X' 41 ,X' 42 ,……,X' 4i ,Y' 41 ,Y' 42 ,……,Y' 4i ,G' 4 ). Similarly, after the vectors after other pairs are subjected to cross calculation, the corresponding first intermediate vector M 'can also be obtained' 5 、M' 6 、M' 7 、M' 8 、M' 9 、M' 10
And a substep S2033 of performing a variation operation on the first intermediate vector to randomly select a new centroid coordinate value and a new counterweight weight from the surroundings of the centroid coordinate values of the components and the counterweight weights in the first intermediate vector, and updating the centroid coordinate values and the counterweight weights of the components in the first intermediate vector to the new centroid coordinate values and the new counterweight weights to obtain a second intermediate vector.
In this embodiment, gaussian variation is performed on each first intermediate vector obtained after the cross calculation, a new centroid coordinate value and a new counterweight weight can be randomly selected from the peripheries of the centroid coordinate value and the counterweight weight of each component in the first intermediate vector based on gaussian distribution, and the new centroid coordinate value and the new counterweight weight are used to replace the old centroid coordinate value and the new counterweight weight, so as to obtain a corresponding second intermediate vector. With a first intermediate vector M' 3 =(X' 31 ,X' 32 ,……,X' 3i ,Y' 31 ,Y' 32 ,……,Y' 3i ,G' 3 ) For example, the mutation may be performed after Gaussian mutation, and the mutation may be performed at X' 31 、X' 32 、……、X' 3i 、Y' 31 、Y' 32 、……、Y' 3i 、G' 3 Randomly selects a new value to replace, thereby obtaining a corresponding second intermediate vector M " 3 =(X” 31 ,X” 32 ,……,X” 3i ,Y” 31 ,Y” 32 ,……,Y” 3i ,G” 3 )。
And a substep S2034 of determining the second intermediate vector as a second target vector when the coordinate values of the center of mass of each component in the second intermediate vector and the weight of the counterweight meet a second preset condition.
Optionally, after performing variation operation to obtain corresponding second intermediate vectors, the electronic device 100 needs to determine, for each second intermediate vector, whether the centroid coordinate values of each component are all within the corresponding centroid position adjustment range, and if the centroid coordinate values of each component are all within the corresponding centroid position adjustment range, determine 2(| P) Ymin |-|P Ymax |)/(|P Ymin |+|P Ymax If |) is less than a second preset value, when the coordinate values of the centroids of all the components in the second intermediate vector are all in the corresponding centroid position adjusting range, and 2(| P) Ymin |-|P Ymax |)/(|P Ymin |+|P Ymax |) is less than a second preset value, the second intermediate vector is determined as a second target vector. When the mass center coordinate values of all the components of the second intermediate vector do not satisfy the mass center coordinate values, the mass center coordinate values are all in the corresponding mass center position adjusting range or do not satisfy 2(| P) Ymin |-|P Ymax |)/(|P Ymin |+|P Ymax If | is less than the second preset value, the cross calculation needs to be performed again in the sub-step S2032 until the centroid coordinate values of the components in the second intermediate vectors are all within the corresponding centroid position adjustment range, and 2(| P) Ymin |-|P Ymax |)/(|P Ymin |+|P Ymax |) less than a second preset value. Wherein, P Ymin =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×(Y m -Y 0 ),P Ymax =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×[f(Y m )-Y 0 ],Y 0 Representing the ordinate of the centre of rotation, G m Indicating the weight of the working device in a plurality of parts, Y m Ordinate of mass, f (Y), representing the working device in a fully retracted state m ) Ordinate of mass, G, representing the working device in the fully extended state j Denotes the weight, Y, of a part denoted by j of the plurality of parts other than the working device j The ordinate of the mass center of the part denoted by the reference j of the plurality of parts, excluding the working device, is indicated.
For example, when the second intermediate vector M " 3 =(X” 31 ,X” 32 ,……,X” 3i ,Y” 31 ,Y” 32 ,……,Y” 3i ,G” 3 ) Satisfy that the mass center coordinate value of each part is all in the corresponding mass center position adjusting range, and 2(| P) Ymin |-|P Ymax |)/(|P Ymin |+|P Ymax |) is less than a second preset value, the second intermediate vector M " 3 Determined as a second target vector M 1 3 (ii) a In the same way, the second intermediate vector M " 4 、M” 5 、M” 6 、M” 7 、M” 8 、M” 9 、M” 10 The coordinate values of the mass centers of all the parts are all in the corresponding mass center position adjusting range, and 2(| P) Ymin |-|P Ymax |)/(|P Ymin |+|P Ymax |) is less than a second preset value, the second intermediate vector M " 4 、M” 5 、M” 6 、M” 7 、M” 8 、M” 9 、M” 10 Determined as a second target vector M 1 4 、M 1 5 、M 1 6 、M 1 7 、M 1 8 、M 1 9 、M 110
And step S204, obtaining a new generation group according to the first target vector and the second target vector, and circularly performing selection operation, cross calculation and variation operation on the obtained new generation group until the fitness mean error and the fitness maximum error of the obtained multiple new generation groups are smaller than a first preset value.
In this embodiment, the first target vector M is obtained 1 1 And M 1 2 And a second target vector M 1 3 、M 1 4 、M 1 5 、M 1 6 、M 1 7 、M 1 8 、M 1 9 、M 110 Then, M 1 1 、M 1 2 、M 1 3 、M 1 4 、M 1 5 、M 1 6 、M 1 7 、M 1 8 、M 1 9 、M 110 And (3) forming a new generation group, taking the new generation group as a new initial group, returning to the steps S202-S203 to perform selection operation, cross calculation and mutation operation in a circulating way, and obtaining a new generation group after calculation in each circulating way. For each new generation population, 1/(a | P) according to the formula F X |+|P Ymin |+|P Ymax L) can derive each vectorThe fitness of the new generation group can be obtained, the fitness mean value corresponding to the new generation group and the fitness maximum value corresponding to the new generation group can be obtained, the fitness mean value error and the fitness maximum value error can be calculated based on the fitness mean value and the fitness maximum value corresponding to each new generation group, and whether the fitness mean value and the fitness maximum value error are smaller than a first preset value or not is judged.
In an example, after a preset number of times (for example, 5 times) of loop calculation may be set, it is determined whether or not the obtained fitness mean error and the fitness maximum error of the multiple new-generation populations within 5 generations are both within 1% (that is, less than a first preset value), and if not, the steps S202 to S203 need to be returned to perform selection operation, cross calculation, and mutation operation in a loop; if yes, stopping calculation.
Step S205 selects an optimal vector from the last generation group of the plurality of new generation groups, and obtains an optimal coordinate distribution value and an optimal weight distribution value of the counterweight corresponding to each of the plurality of components according to the optimal vector.
Alternatively, the step S205 may include: and calculating the probability value of each vector inherited from the last generation group to the next generation group, and determining the vector with the maximum probability value as the optimal vector.
In this embodiment, after determining that the fitness mean error and the fitness maximum error of the plurality of new-generation groups are both smaller than the first preset value, the electronic device 100 passes through the formula F k And (e) calculating the probability value of each vector in the last generation group being inherited to the next generation group, determining the vector with the maximum probability value, further obtaining the optimal vector in the last generation group, converting the optimal vector into the centroid coordinate value and the counterweight weight of each component, and finally outputting the balance optimization result of the excavator (namely the optimal coordinate distribution value and the optimal weight distribution value of the counterweight corresponding to each of the components).
For example, assume that the optimal vector in the last generation population is M 6 2 =(X 1p ,X 2p ,……,X ip ,Y 1p ,Y 2p ,……,Y ip ,G p ) Then the optimal coordinate distribution values corresponding to each part can be obtained as(X 1p ,Y 1p )、(X 2p ,Y 2p )、……、(X ip ,Y ip ) The optimum weight distribution value of the counterweight is G p
In order to implement the above embodiments and corresponding steps in each possible mode, an implementation mode of the balancing layout device of the excavator is given below. Referring to fig. 5, a functional block diagram of a balance layout apparatus 500 of an excavator according to an embodiment of the present invention is shown. It should be noted that the basic principle and the generated technical effects of the balance layout device 500 of the excavator provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and reference may be made to the corresponding contents in the above embodiments. The balance layout device 500 of the excavator comprises an initial group generation module 510, a calculation module 520 and an acquisition module 530.
Alternatively, the modules may be stored in the memory 110 shown in fig. 1 in the form of software or Firmware (Firmware) or be fixed in an Operating System (OS) of the electronic device 100, and may be executed by the processor 120 in fig. 1. Meanwhile, data, codes of programs, and the like required to execute the above-described modules may be stored in the memory 110.
The initial population generating module 510 is configured to randomly generate an initial population, where the initial population includes a first preset number of vectors, each vector includes a centroid coordinate value and a counterweight weight corresponding to each of the plurality of components; the coordinate value of the center of mass of each component is within the corresponding adjustment range of the position of the center of mass.
It is understood that the initial population generating module 510 may perform the step S201.
The calculating module 520 is configured to perform a selecting operation on the initial population according to the coordinate values of the center of mass corresponding to each of the plurality of components, the weight of each of the plurality of components, and the position of the center of rotation of the excavator, so as to select a first target vector from the initial population; and performing cross calculation and mutation operation on the rest vectors except the first target vector in the initial population to obtain a second target vector.
Optionally, the calculating module 520 is configured to calculate a probability value of each vector being inherited to the next generation group according to the centroid coordinate values corresponding to the components, the weights of the components, and the rotation center position of the excavator, and select the first target vector from the initial group according to the probability value of each vector being inherited to the next generation group.
Optionally, the calculating module 520 is specifically configured to determine a probability interval corresponding to each vector according to a probability value that each vector is inherited to a next generation group, randomly generate a random number between 0 and 1, determine the number of times each vector is selected according to the number of times that the random number appears in each probability interval, and select a second preset number of vectors as the first target vector according to the number of times each vector is selected.
Optionally, each component has a corresponding index, the coordinates of the centroid including an abscissa of the centroid and an ordinate of the centroid, the position of the centre of rotation including an abscissa of the centre of rotation and an ordinate of the centre of rotation, the calculation module 520 being particularly adapted to calculate the value of the center of rotation from the formula F1/(a | P) X |+|P Ymin |+|P Ymax I) calculating the fitness of each vector, and calculating the sum of the fitness of all vectors in the initial population according to the fitness of each vector; wherein a is a preset balance coefficient, P X =∑9.8×G i ×(X i -X 0 ),P Ymin =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×(Y m -Y 0 ),P Ymax =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×[f(Y m )-Y 0 ],G i Denotes the weight of the part denoted by i, X i The abscissa of the center of mass, X, of the component denoted by the reference number i 0 Representing the abscissa of the centre of rotation, Y 0 Representing the ordinate of the centre of rotation, G m Indicating the weight of the working device in a plurality of parts, Y m Ordinate of mass, f (Y), representing the working device in a fully retracted state m ) Ordinate of mass, G, representing the working device in the fully extended state j Denotes the weight, Y, of a part denoted by j of the plurality of parts excluding the working device j A centroid ordinate representing a part of the plurality of parts, denoted by reference numeral j, other than the working device; and according to formula F k Calculating the probability value of each vector inherited to the next generation group by the/sigma F; wherein F k The fitness of the kth vector is obtained, and sigma F is the sum of the fitness of all vectors in the initial population.
Optionally, the calculating module 520 is configured to pair the other vectors in the initial population except for the first target vector at random two by two, cross-calculate the paired vectors to obtain a first intermediate vector, perform a variation operation on the first intermediate vector to randomly select a new centroid coordinate value and a new counterweight weight from the peripheries of the centroid coordinate value and the counterweight weight of each component in the first intermediate vector, update the centroid coordinate value and the counterweight weight of each component in the first intermediate vector to the new centroid coordinate value and the new counterweight weight to obtain a second intermediate vector, and determine the second intermediate vector as the second target vector when the centroid coordinate value and the counterweight weight of each component in the second intermediate vector meet a second preset condition.
Optionally, the calculating module 520 is specifically configured to, when the coordinate values of the centroid of each component in the second intermediate vector are all within the corresponding adjustment range of the centroid position, and 2(| P) Ymin |-|P Ymax |)/(|P Ymin |+|P Ymax |) when less than the second preset value, determining the second intermediate vector as a second target vector; wherein, P Ymin =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×(Y m -Y 0 ),P Ymax =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×[f(Y m )-Y 0 ],Y 0 Representing the ordinate of the centre of rotation, G m Indicating the weight of the working device in a plurality of parts, Y m Ordinate of mass, f (Y), representing the working device in a fully retracted state m ) Ordinate of mass, G, representing the working device in the fully extended state j Denotes the weight, Y, of a part denoted by j of the plurality of parts excluding the working device j The ordinate of the mass center of the part denoted by the reference j of the plurality of parts, excluding the working device, is indicated.
The calculating module 520 is further configured to obtain a new generation group according to the first target vector and the second target vector, and perform selection operation, cross calculation, and mutation operation on the obtained new generation group in a circulating manner until the fitness mean error and the fitness maximum error of the obtained multiple new generation groups are both smaller than a first preset value.
Optionally, the calculating module 520 is specifically configured to calculate a probability value of each vector in the last-generation group being inherited to the next-generation group, and determine the vector with the largest probability value as the optimal vector.
It is understood that the calculating module 520 can execute the steps S202, S021 to S2022, S203, S2031 to S2034, and S204.
The obtaining module 530 is configured to select an optimal vector from a last generation group of the plurality of new generation groups, and obtain an optimal coordinate distribution value and an optimal weight distribution value of the counterweight corresponding to each of the plurality of components according to the optimal vector.
It is understood that the obtaining module 530 can execute the step S205.
To sum up, the balance layout method, the balance layout device, the electronic device, and the storage medium for the excavator according to the embodiments of the present invention randomly generate an initial population, where the initial population includes a first preset number of vectors, each vector includes a centroid coordinate value and a counterweight weight corresponding to each of a plurality of components, the centroid coordinate value of each component is within a corresponding centroid position adjustment range, select the initial population according to the centroid coordinate value corresponding to each of the plurality of components, the weight of each of the plurality of components, and a rotation center position of the excavator, to select a first target vector from the initial population, perform cross calculation and mutation operation on the remaining vectors except the first target vector in the initial population to obtain a second target vector, obtain a new generation population according to the first target vector and the second target vector, and perform the above-mentioned selection operation on the obtained new generation population cyclically, And performing cross calculation and variation operation until the obtained fitness mean error and the fitness maximum error of the plurality of new generation groups are smaller than a first preset value, selecting an optimal vector from the last generation group of the plurality of new generation groups, and obtaining optimal coordinate distribution values and optimal weight distribution values of the balance weights corresponding to the plurality of parts according to the optimal vector. Therefore, the optimal coordinate distribution value of each component of the excavator and the optimal weight distribution value of the balance weight can be obtained only by determining the adjustment range of the position of the mass center of each component, the weight and the position of the rotation center of the excavator, so that the optimal balance layout design of the excavator is realized; meanwhile, the whole balance calculation process does not need human participation, so that the balance calculation efficiency of the excavator is improved.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A balance layout method of an excavator is characterized by being applied to electronic equipment, wherein the electronic equipment stores mass center position adjusting ranges corresponding to a plurality of parts of the excavator, weights of the parts except a balance weight in the parts and a rotation center position of the excavator in advance; the method comprises the following steps:
randomly generating an initial population, the initial population including a first preset number of vectors, each vector including a centroid coordinate value corresponding to each of the plurality of components and a counterweight weight corresponding to each of the plurality of components; the coordinate value of the center of mass of each part is in the corresponding adjustment range of the position of the center of mass;
selecting the initial population according to the coordinate values of the center of mass corresponding to each of the plurality of components, the weight of each of the plurality of components and the position of the gyration center of the excavator so as to select a first target vector from the initial population;
performing cross calculation and mutation operation on the rest vectors except the first target vector in the initial population to obtain a second target vector;
obtaining a new generation group according to the first target vector and the second target vector, and circularly performing selection operation, cross calculation and variation operation on the obtained new generation group until the fitness mean error and the fitness maximum error of the obtained multiple new generation groups are smaller than a first preset value;
and selecting an optimal vector from the last generation group of the plurality of new generation groups, and obtaining the optimal coordinate distribution value corresponding to each of the plurality of components and the optimal weight distribution value of the balance weight according to the optimal vector.
2. The method of claim 1, wherein said selecting said initial population from which to select a first target vector based on the centroid coordinate values corresponding to each of said plurality of components, the weight of each of said plurality of components, and the swing center position of said excavator comprises:
respectively calculating the probability value of each vector inherited to the next generation group according to the mass center coordinate values corresponding to the components, the weights of the components and the rotation center position of the excavator;
selecting a first target vector from the initial population according to the probability value of each vector inherited to the next generation population.
3. The method of claim 2, wherein selecting a first target vector from the initial population based on the probability value that each vector is inherited to the next generation population comprises:
determining a probability interval corresponding to each vector according to the probability value of each vector inherited to the next generation group;
randomly generating a random number between 0 and 1, and determining the number of times each vector is selected according to the number of times the random number appears in each probability interval;
and selecting a second preset number of vectors as the first target vector according to the number of times of selecting each vector.
4. The method of claim 2, wherein each component has a corresponding label, the centroid coordinate values comprise a centroid abscissa and a centroid ordinate, the swing center position comprises a swing center abscissa and a swing center ordinate, and the calculating the probability value of each vector inheritance to the next generation population based on the respective centroid coordinate values of the plurality of components, the respective weights of the plurality of components, and the swing center position of the excavator comprises:
according to the formula F ═ 1/(aP) X |+|P Ymin |+|P Ymax I) calculating the fitness of each vector, and calculating the sum of the fitness of all vectors in the initial population according to the fitness of each vector; wherein a is a preset balance coefficient, P X =∑9.8×G i ×(X i -X 0 ),P Ymin =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×(Y m -Y 0 ),P Ymax =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×[f(Y m )-Y 0 ],G i Denotes the weight of the part denoted by i, X i The abscissa of the mass of the part denoted by i, X 0 Representing the abscissa, Y, of the centre of rotation 0 Representing the ordinate, G, of the centre of revolution m Representing the weight, Y, of the working device in said plurality of parts m A centroid ordinate, f (Y), representing the fully retracted state of the working device m ) Ordinate of mass, G, representing the working device in a fully extended state j Denotes the weight of a part denoted by j, Y, of the plurality of parts excluding the working device j A centroid ordinate representing a part of the plurality of parts, denoted by reference numeral j, other than the working device;
according to formula F k Calculating the probability value of each vector inherited to the next generation group; wherein F k And F is the fitness of the kth vector, and is the sum of the fitness of all vectors in the initial population.
5. The method of claim 1, wherein the performing cross-computing and mutation operations on remaining vectors of the initial population except for the first target vector to obtain a second target vector comprises:
carrying out pairwise random pairing on the other vectors except the first target vector in the initial population;
performing cross calculation on the paired vectors to obtain a first intermediate vector;
performing variation operation on the first intermediate vector to randomly select a new centroid coordinate value and a new counterweight weight from the peripheries of the centroid coordinate value and the counterweight weight of each component in the first intermediate vector respectively, and updating the centroid coordinate value and the counterweight weight of each component in the first intermediate vector into the new centroid coordinate value and the new counterweight weight to obtain a second intermediate vector;
and when the mass center coordinate value and the counterweight weight of each component in the second intermediate vector meet a second preset condition, determining the second intermediate vector as a second target vector.
6. The method according to claim 5, wherein the determining the second intermediate vector as a second target vector when the centroid coordinate value and the counterweight weight of each component in the second intermediate vector meet a second preset condition comprises:
when the coordinate values of the mass centers of all the components in the second intermediate vector are all in the corresponding mass center position adjusting range, and 2(| P) Ymin |-|P Ymax |)/(|P Ymin |+|P Ymax I) when the second intermediate vector is smaller than a second preset value, determining the second intermediate vector as a second target vector; wherein, P Ymin =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×(Y m -Y 0 ),P Ymax =∑9.8×G j ×(Y j -Y 0 )+9.8×G m ×[f(Y m )-Y 0 ],Y 0 Representing the ordinate of the centre of rotation, G m Representing the weight, Y, of the working device in said plurality of parts m A centroid ordinate, f (Y), representing the fully retracted state of the working device m ) Ordinate of mass, G, representing the working device in a fully extended state j Denotes the weight of a part denoted by j, Y, of the plurality of parts excluding the working device j Represents the ordinate of the mass center of the part, denoted by the reference j, of the plurality of parts, excluding the working device.
7. The method of claim 1, wherein selecting the optimal vector from the last generation population of the plurality of new generation populations comprises:
calculating the probability value of each vector inherited from the last generation group to the next generation group;
and determining the vector with the maximum probability value as the optimal vector.
8. The balance layout device of the excavator is characterized by being applied to electronic equipment, wherein the electronic equipment stores mass center position adjusting ranges corresponding to a plurality of parts of the excavator, weights of the parts except a balance weight in the parts and a rotation center position of the excavator in advance; the device comprises:
an initial population generating module for randomly generating an initial population, the initial population including a first preset number of vectors, each vector including a centroid coordinate value corresponding to each of the plurality of components and a counterweight weight corresponding to each of the plurality of components; the coordinate value of the center of mass of each part is in the corresponding adjustment range of the position of the center of mass;
the calculation module is used for selecting the initial population according to the coordinate values of the mass center corresponding to each of the plurality of components, the weight of each of the plurality of components and the position of the rotation center of the excavator so as to select a first target vector from the initial population; performing cross calculation and mutation operation on the other vectors except the first target vector in the initial population to obtain a second target vector;
the calculation module is further used for obtaining a new generation group according to the first target vector and the second target vector, and performing selection operation, cross calculation and variation operation on the obtained new generation group in a circulating manner until the fitness mean error and the fitness maximum error of the obtained multiple new generation groups are smaller than a first preset value;
and the acquisition module is used for selecting an optimal vector from the last generation group of the plurality of new generation groups and obtaining the optimal coordinate distribution value corresponding to each of the plurality of parts and the optimal weight distribution value of the counterweight according to the optimal vector.
9. An electronic device, comprising a processor and a memory, the memory storing a computer program executable by the processor, the computer program, when executed by the processor, implementing the method according to any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202010826369.3A 2020-08-17 2020-08-17 Balance layout method and device for excavator, electronic equipment and storage medium Active CN111967093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010826369.3A CN111967093B (en) 2020-08-17 2020-08-17 Balance layout method and device for excavator, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010826369.3A CN111967093B (en) 2020-08-17 2020-08-17 Balance layout method and device for excavator, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111967093A CN111967093A (en) 2020-11-20
CN111967093B true CN111967093B (en) 2022-09-02

Family

ID=73388118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010826369.3A Active CN111967093B (en) 2020-08-17 2020-08-17 Balance layout method and device for excavator, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111967093B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103046606A (en) * 2012-12-21 2013-04-17 中联重科股份有限公司 Engineering mechanical equipment, movable counterweight system and control method
CN103226740A (en) * 2013-04-27 2013-07-31 中南大学 Load distribution optimization method of double-crane collaborative operation
CN109165778A (en) * 2018-08-10 2019-01-08 南通大学 Beam type stereo storage location distribution method applied to long material storage
CN110795836A (en) * 2019-10-17 2020-02-14 浙江大学 Mechanical arm robust optimization design method based on mixed uncertainty of interval and bounded probability
CN110851962A (en) * 2019-10-23 2020-02-28 上海船舶工艺研究所(中国船舶工业集团公司第十一研究所) Digital workshop layout optimization method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150376869A1 (en) * 2014-06-25 2015-12-31 Topcon Positioning Systems, Inc. Method and Apparatus for Machine Synchronization
US20160169413A1 (en) * 2014-12-16 2016-06-16 Caterpillar Inc. Counterweight System and Method
US10613891B2 (en) * 2017-12-21 2020-04-07 Caterpillar Inc. System and method for using virtual machine operator model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103046606A (en) * 2012-12-21 2013-04-17 中联重科股份有限公司 Engineering mechanical equipment, movable counterweight system and control method
CN103226740A (en) * 2013-04-27 2013-07-31 中南大学 Load distribution optimization method of double-crane collaborative operation
CN109165778A (en) * 2018-08-10 2019-01-08 南通大学 Beam type stereo storage location distribution method applied to long material storage
CN110795836A (en) * 2019-10-17 2020-02-14 浙江大学 Mechanical arm robust optimization design method based on mixed uncertainty of interval and bounded probability
CN110851962A (en) * 2019-10-23 2020-02-28 上海船舶工艺研究所(中国船舶工业集团公司第十一研究所) Digital workshop layout optimization method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Optimal Design of Hydraulic Excavator Shovel Attachment Based on Multiobjective Evolutionary Algorithm;Gongyue Xu等;《Published in: IEEE/ASME Transactions on Mechatronics 》;20190307;全文 *
基于响应面法的挖掘机三油缸结构动臂轻量化设计;万宇阳等;《现代制造工程》;20191118;全文 *

Also Published As

Publication number Publication date
CN111967093A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN109815332A (en) Loss function optimization method, device, computer equipment and storage medium
Kim et al. A probabilistic approach for determining the control mode in CREAM
CN106529197B (en) A kind of method of Landslide Stability temporal behavior analysis
Schütte et al. A Hybrid Galerkin–Monte‐Carlo Approach to Higher‐Dimensional Population Balances in Polymerization Kinetics
Castelli et al. Geometric selective harmony search
CN107886198A (en) A kind of determination method and device of air control decision-making critical value
JP2020119189A (en) Fluid analysis system, method for analyzing fluid, and fluid analysis program
CN111967093B (en) Balance layout method and device for excavator, electronic equipment and storage medium
CN109193800A (en) A kind of Optimal Configuration Method of the wind farm energy storage capacity based on exterior point penalty function method
CN109521292A (en) A kind of the capacitor group lifetime estimation method and device of modularization multi-level converter
Du et al. Applying deep convolutional neural network for fast security assessment with N-1 contingency
CN114744723A (en) Method and device for adjusting charging request current and electronic equipment
CN110516475A (en) A kind of data processing method, device and server
CN113721988A (en) Chip-based workload proving method and chip for workload proving
KR101172282B1 (en) Automatic Generation System of Emergent Tactics Using The Evolutionary Simulation, Vehicle having the same, and Automatic Generation Method of Emergent Tactics Using The Evolutionary Simulation
Razmi et al. Neural network based on a genetic algorithm for power system loading margin estimation
Choi et al. Personalized eigentrust with the beta distribution
JP6067289B2 (en) Reduced model creation device, creation method and creation program for power system
CN111412795A (en) Test point setting scheme generation method and device
CN111340950A (en) Digital elevation model reconstruction method and device
BR102022003727A2 (en) METHOD TO REPRESENT OBJECTS OF A NETWORK IN A GUI
Mohammadi et al. Machine learning assisted stochastic unit commitment: A feasibility study
KR101462748B1 (en) Method for clustering health-information
CN115550386A (en) Load balancing method and device based on improved consistent hash ring
Lattarulo et al. A preliminary study of a new multi-objective optimization algorithm

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