Field strength shaping method, device, medium and equipment based on improved genetic algorithm
By improving the genetic algorithm and using quadrant division and adaptability optimization, the problems of slow convergence speed and asymmetric array field strength in antenna array optimization are solved, and efficient electromagnetic compatibility testing frequency dispersion is satisfied and energy utilization is improved.
Patent Information
- Application Number
- CN202410882143.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Existing genetic algorithms have slow convergence speeds in antenna array optimization, have asymmetric array field strengths, and require large calculations, and cannot effectively meet the frequency dispersion requirements of electromagnetic compatibility testing.
An improved genetic algorithm is used to divide the antenna array into four quadrants, initialize the phase and generate the phase matrix in a quadrant symmetric manner, and use the adaptive degree value to optimize the population, reduce exchange and randomization operations, and improve the convergence performance.
The calculation amount and the number of iteration steps are significantly reduced, the central symmetry of the antenna array phase configuration is achieved, the symmetry and energy utilization of the focal spot shape are improved, and the frequency dispersion requirements of electromagnetic compatibility testing are met.
Smart Images

Figure CN118410726B
Abstract
Description
Technical Field
[0001] The present invention relates to antenna array technology. Background Art
[0002] In the field of EMC electromagnetic compatibility, the field strength generation system is required to generate an electric field strength of several hundred to tens of thousands. A single antenna unit with a power amplifier cannot achieve a large electric field strength. Therefore, multiple antenna units are required to form an array antenna in a certain arrangement mode, and a large field strength is output through the form of spatial power synthesis of the phased array antenna to meet certain focal spot illumination requirements. At the same time, in order to meet the electromagnetic compatibility test, the antenna needs to have a wide impedance bandwidth, and sometimes it needs to cover several bands. Due to the wide bandwidth of the antenna, different frequency bands are divided according to the index requirements of the electromagnetic compatibility national military standard, and the same field strength and focal spot illumination requirements must be achieved in the same frequency band. However, with the increase of frequency, the field strength and focal spot of the antenna meet certain frequency dispersion laws at the same test distance. That is, at the same test distance, with the increase of frequency, the field strength gradually increases and the focal spot gradually decreases. This requires a certain beamforming of the focal spot, and on the basis of meeting the focal spot index, the field strength reduction is minimized as much as possible to achieve efficient energy utilization.
[0003] There are two ways to achieve near-field focal spot broadening shaping. One is amplitude and phase weighting. Through the phase-shifting and amplitude modulation network, the phased array antenna unit is subjected to arbitrary amplitude attenuation and phase modulation, which can reduce the energy outside the focal spot to the focal spot and increase the field strength energy inside the focal spot. Due to the addition of the amplitude attenuation network, the total energy loss is greater than the energy loss outside the focal spot. Therefore, the utilization rate of the fed energy is low. Another shaping method is phase weighting, which only phase-modulates the phased array antenna unit through the phase-shifting network. Phase weighting can achieve higher energy utilization, but in order to avoid the reverse positive and negative phases of the peripheral antenna units, it is equivalent to the cancellation of the radiation energy of the adjacent units, the effect of the peripheral closed units, and the RF output energy cannot be fully utilized. Therefore, it is necessary to improve the energy utilization of phase weighting.
[0004] Patent document CN116702514A discloses an antenna array optimization method, device, medium and equipment based on near electric field optimization. The method essentially uses a genetic algorithm, takes the phase configuration of an antenna array as an individual in the genetic algorithm, takes the phase configuration of multiple antenna arrays as the population in the genetic algorithm, takes the phase configuration of each antenna unit of the antenna array as an individual gene for iterative genetic calculation, and finally obtains the preferred antenna array phase configuration as output. This method has the following defects:
[0005] Each antenna array needs to calculate the electric field strength distribution separately, which requires a lot of calculations.
[0006] The phase configuration variation of the antenna array operates with small specifications, resulting in slow convergence.
[0007] The asymmetry of the phase configuration of the antenna array leads to asymmetry of the field strength formed on the array surface. Summary of the invention
[0008] The problem to be solved by the present invention is that the existing genetic algorithm has a slow convergence speed and an asymmetric front field strength.
[0009] To solve the above problems, the solution adopted by the present invention is as follows:
[0010] The field intensity shaping method based on the improved genetic algorithm according to the present invention comprises the following steps:
[0011] Step S1: Obtain target field intensity Et and target focal spot Dt;
[0012] Step S2: Taking the four quadrants of the Cartesian plane coordinate system formed by the center of the antenna array as the origin, the antenna elements on the antenna array are divided into four parts, each part corresponding to one quadrant; the phase of each antenna element on one part is initialized in a random manner, and then the phase matrix of the entire antenna array is generated in a quadrant-symmetric manner, and the antenna elements in this part are used as individuals to form a population, and the phase of the antenna element is used as the individual information;
[0013] Step S3: calculating the electric field intensity distribution at a pre-specified distance according to the antenna array phase matrix corresponding to the population, and then calculating the corresponding focal spot diameter according to the electric field intensity distribution;
[0014] Step S4: If the calculated focal spot diameter is larger than the target focal spot Dt and the field strength is larger than the target field strength Et, the phase matrix is output; otherwise, the individual is selected by comparing the calculated focal spot diameter and field strength with the focal spot diameter and field strength calculated by the previous generation population;
[0015] Step S5: Perform genetic processing on the selected population to obtain the genetically modified population:
[0016] exchanging phases of adjacent antenna units according to a set first probability;
[0017] Randomly assigning a phase value to the antenna unit according to a set second probability;
[0018] Step S6: Generate a phase matrix of the entire antenna array in a quadrant symmetric manner according to the inherited population;
[0019] Step S7: Repeat steps S3 to S7 until the number of iterations reaches a limit, and output the phase matrix.
[0020] Further, according to the field intensity shaping method of the present invention, in step S4,
[0021] The adaptability value of the population is calculated based on the calculated focal spot diameter and field strength combined with the target field strength Et and the target focal spot Dt, and then the individual is selected by comparing with the adaptability value of the previous generation population; the adaptability value of the population is calculated in the following way:
[0022] If the calculated focal spot diameter is smaller than the target focal spot Dt, then fit = D / Dt;
[0023] Otherwise, fit=(1+E / Et)*D / Dt;
[0024] Wherein, D is the calculated focal spot diameter; fit is the adaptability value; and E is the calculated electric field strength.
[0025] Further, according to the field strength shaping method of the present invention, in step S2, the step of initializing the phase of each antenna unit on one of the parts in a random manner comprises the following steps:
[0026] Step S21: Generate Nx / 2 random quantities for the X-axis direction, and generate Ny / 2 random quantities for the Y-axis direction;
[0027] Step S22: sorting the random quantities in the X-axis direction and the random quantities in the Y-axis direction and multiplying them to obtain a random phase value of each antenna unit, so that the random phase values of the antenna units from the center of the antenna array to the edge of the antenna array are arranged from small to large;
[0028] Wherein, Nx is the number of columns of the antenna array, and Ny is the number of rows of the antenna array.
[0029] Further, according to the field strength shaping method of the present invention, the electric field strength in step S3 is calculated by the following formula:
[0030] ;in,
[0031] E is the electric field intensity of the array, C is the unit factor that has nothing to do with mn, R mn is the distance from the array point to the mnth antenna unit; k is the wave number; I mn is the excitation current of the mnth antenna unit; Nx is the number of columns of the antenna array; Ny is the number of rows of the antenna array; x m is the distance from the mnth antenna unit to the center of the array in the X-axis direction; y n is the distance from the mnth antenna unit to the center of the array in the Y-axis direction; β and θ are the angles of the array point in spherical coordinates, ∅ mn is the phase of the mnth antenna unit; m and n are the serial numbers of the antenna units in the X-axis and Y-axis directions respectively.
[0032] The field strength shaping device based on the improved genetic algorithm according to the present invention comprises the following modules:
[0033] Module M1, used to obtain target field intensity Et and target focal spot Dt;
[0034] Module M2 is used to: divide the antenna elements on the antenna array into four parts by taking the four quadrants of the Cartesian plane coordinate system formed by the center of the antenna array as the origin, and each part corresponds to a quadrant; initialize the phase of each antenna element on one of the parts in a random manner, and then generate the phase matrix of the entire antenna array in a quadrant-symmetric manner, and use the antenna elements in this part as individuals to form a population, and the phase of the antenna elements is used as the individual information;
[0035] Module M3 is used to calculate the electric field intensity distribution at a pre-specified distance according to the antenna array phase matrix corresponding to the population, and then calculate the corresponding focal spot diameter according to the electric field intensity distribution;
[0036] Module M4 is used to: if the calculated focal spot diameter is larger than the target focal spot Dt and the field strength is larger than the target field strength Et, then output the phase matrix; otherwise, select the preferred individual by comparing the calculated focal spot diameter and field strength with the focal spot diameter and field strength calculated by the previous generation population;
[0037] Module M5 is used to: perform genetic processing on the selected population to obtain the genetically modified population:
[0038] exchanging phases of adjacent antenna units according to a set first probability;
[0039] Randomly assigning a phase value to the antenna unit according to a set second probability;
[0040] Module M6, used for: generating a phase matrix of the entire antenna array in a quadrant symmetric manner according to the inherited population;
[0041] Module M7 is used to: repeatedly execute the functions of modules M3 to S7 until the number of iterations reaches a limit, and output a phase matrix.
[0042] Further, according to the field intensity shaping device of the present invention, in the module M4,
[0043] The adaptability value of the population is calculated based on the calculated focal spot diameter and field strength combined with the target field strength Et and the target focal spot Dt, and then the individual is selected by comparing with the adaptability value of the previous generation population; the adaptability value of the individual is calculated in the following way:
[0044] If the calculated focal spot diameter is smaller than the target focal spot Dt, then fit = D / Dt;
[0045] Otherwise, fit=(1+E / Et)*D / Dt;
[0046] Wherein, D is the calculated focal spot diameter; fit is the adaptability value; and E is the calculated electric field strength.
[0047] Further, according to the field strength shaping device of the present invention, in the module M2, the initializing the phase of each antenna unit on one part in a random manner comprises the following steps:
[0048] Step S21: Generate Nx / 2 random quantities for the X-axis direction, and generate Ny / 2 random quantities for the Y-axis direction;
[0049] Step S22: sorting the random quantities in the X-axis direction and the random quantities in the Y-axis direction and multiplying them to obtain a random phase value of each antenna unit, so that the random phase values of the antenna units from the center of the antenna array to the edge of the antenna array are arranged from small to large;
[0050] Wherein, Nx is the number of columns of the antenna array, and Ny is the number of rows of the antenna array.
[0051] Further, according to the field strength shaping device of the present invention, the electric field strength in the module M3 is calculated by the following formula:
[0052] ;in,
[0053] E is the electric field intensity of the array, C is the unit factor that has nothing to do with mn, R mn is the distance from the array point to the mnth antenna unit; k is the wave number; I mn is the excitation current of the mnth antenna unit; Nx is the number of columns of the antenna array; Ny is the number of rows of the antenna array; x m is the distance from the mnth antenna unit to the center of the array in the X-axis direction; y n is the distance from the mnth antenna unit to the center of the array in the Y-axis direction; β and θ are the angles of the array point in spherical coordinates, ∅ mn is the phase of the mnth antenna unit; m and n are the serial numbers of the antenna units in the X-axis and Y-axis directions respectively.
[0054] According to a medium of the present invention, a program instruction set that can be read by a machine is stored in the medium. When the program instruction set stored in the medium is read and executed by a machine, the machine can implement the above-mentioned field intensity shaping method.
[0055] According to a device of the present invention, the device includes a connected processor and a memory; the memory stores a program instruction set; when the program instruction set stored in the memory is read and executed by the processor, the device can implement the above-mentioned field intensity shaping method.
[0056] The technical effects of the present invention are as follows:
[0057] Compared with CN116702514A, the phase configuration of the antenna array of the present invention is centrally symmetric. In actual calculation, only one quadrant set needs to be calculated, and the other quadrants can be directly obtained in a symmetrical manner. Therefore, the calculation amount of each antenna array is only one-fourth of the original.
[0058] When the antenna array phase is initialized in the present invention, the phase is generated in a manner of sorting from the center of the array to the periphery, so that the phase of the antenna array has a certain orderliness. During cross-mutation, adjacent antenna arrays are exchanged, so that the previous generation population and the next generation population have a certain correlation. This correlation enables the entire algorithm to have better convergence performance, thereby reducing the number of iterations and reducing the overall amount of calculation.
[0059] The phase of the antenna array of the present invention is symmetrical about the center, so the obtained focal spot shape is also symmetrical about the center, thereby having a better focal spot shape. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 It is a schematic diagram of the overall structure of an antenna array phase control system embodiment of the present invention. DETAILED DESCRIPTION
[0061] The present invention is further described in detail below with reference to the accompanying drawings.
[0062] Figure 1 An antenna array phase control system is exemplified, including a computing device 100, a phase shift network 200 and an antenna array 300. The computing device 100 is a general-purpose computing device of the von Neumann system, including a processor 101, a memory 102 and a communication unit 103. The memory 102 and the communication unit 103 are connected to the processor 101. The processor 101 is connected to the phase shift network 200 through the communication unit 103, and the phase shift network 200 is connected to the antenna array 300. The processor 101 is a general-purpose computer processor that can execute computer program instructions, and the memory 102 is generally a medium that can store instructions without loss after power failure, including but not limited to a disk, a tape, a flash memory, etc. The medium is also the medium referred to in the above description of the present invention. The memory 102 is generally used to store computer program instruction sets and data. The processor 101 realizes its corresponding automation function by loading the program instruction set stored in the memory 102. Specifically in this embodiment, the processor 101 implements the field strength shaping method referred to in the present invention by executing a computer program instruction set, obtains phase data of each antenna unit of the antenna array 300, and then sends the phase data to the phase shift network 200 through the communication unit 103. Under the control of the phase shift network 200, each antenna unit of the antenna array 300 sends a signal according to the configured phase data.
[0063] The field strength shaping method of the present invention is based on a genetic algorithm. Compared with the technical solution disclosed in the document CN116702514A, the present invention belongs to an improved genetic algorithm. According to a general genetic algorithm, the present invention includes the following steps: a population and antenna array initialization step, a field strength and focal spot calculation step, an individual pros and cons evaluation and optimization step, a genetic variation and antenna array adjustment step, and an iterative control step. Obtaining the target field strength Et and the target focal spot Dt in the aforementioned step S1 indicates that the target field strength Et and the target focal spot Dt are inputs of the present invention. The antenna array phase control system of the present invention is applied to electromagnetic compatibility testing, and the target field strength Et and the target focal spot Dt usually come from the environmental requirements required for the electromagnetic compatibility testing.
[0064] The population and antenna array initialization step is the aforementioned step S2, which divides the antenna elements on the antenna array into four parts with the four quadrants of the Cartesian plane coordinate system formed by the center of the antenna array as the origin, and each part corresponds to a quadrant; the phase of each antenna element on one of the parts is initialized in a random manner, and then the phase matrix of the entire antenna array is generated in a quadrant-symmetric manner, and the antenna elements of this part are used as individuals to form a population, and the phase of the antenna element is used as the individual information. For example, assuming that the antenna array includes 32*32 antenna elements, according to the method of the present invention, these 32*32 antenna elements are divided into four groups of 16*16 antenna elements with the center of the antenna array as the division, and these four groups of antenna elements are symmetrical with the center of the antenna array. During initialization, the phase of one group of antenna elements is initialized in a random manner, and the other three are configured by mirror mapping, so as to obtain the phase matrix of the entire antenna array.
[0065] In order to make the genetic algorithm have better convergence performance, this embodiment preferably adopts a phase-ordered arrangement when initializing the antenna array. Specifically, from the center of the antenna array to the periphery of the antenna array, the phases of each initialized antenna unit are arranged in order, either from low to high or from high to low.
[0066] To achieve the above-mentioned phase ordered arrangement initialization, one specific implementation method adopts the following steps:
[0067] 1) Initialize Nx / 2*Ny / 2 phase values;
[0068] 2) Sort the Nx / 2*Ny / 2 phase values;
[0069] 3) Assign the sorted Nx / 2*Ny / 2 phase values to the Nx / 2*Ny / 2 antenna elements from the center of the antenna array to the periphery of the antenna array in sequence;
[0070] 4) Generate phase data of the other three groups of antenna units by mirror copying.
[0071] In the above steps, Nx and Ny are the number of columns and rows of the antenna array respectively; steps 1), 2) and 3) are the steps of initializing the phase of each antenna unit on one part in a random manner.
[0072] Another preferred embodiment adopts the following steps:
[0073] Step S21: Generate Nx / 2 random quantities for the X-axis direction, and generate Ny / 2 random quantities for the Y-axis direction;
[0074] Step S22: sorting the random quantities in the X-axis direction and the random quantities in the Y-axis direction and multiplying them to obtain a random phase value of each antenna unit, so that the random phase values of the antenna units from the center of the antenna array to the edge of the antenna array are arranged from small to large;
[0075] Step S23: Generate phase data of the other three groups of antenna units by mirror copying.
[0076] In the above steps, step S21 and step S22 are the steps of initializing the phases of the antenna units on one part in a random manner.
[0077] In another optional implementation, the random phase values of the antenna units from the center of the antenna array to the edge of the antenna array in step S22 may be arranged from small to large, or the random phase values of the antenna units from the center of the antenna array to the edge of the antenna array may be arranged from large to small.
[0078] The field strength and focal spot calculation step is the aforementioned step S3, which calculates the electric field strength distribution at a pre-specified distance according to the antenna array phase matrix corresponding to the population, and then calculates the corresponding focal spot diameter according to the electric field strength distribution. The calculation of the electric field strength distribution and the focal spot diameter in this step are the same as the field strength distribution and focal spot calculation steps in patent document CN116702514A.
[0079] In this embodiment, the electric field strength is calculated using the following calculation formula:
[0080] ;in,
[0081] E is the electric field intensity of the array, C is the unit factor that has nothing to do with mn, R mn is the distance from the array point to the mnth antenna unit; k is the wave number; I mn is the excitation current of the mnth antenna unit; Nx is the number of columns of the antenna array; Ny is the number of rows of the antenna array; x m is the distance from the mnth antenna unit to the center of the array in the X-axis direction; y nis the distance from the mnth antenna unit to the center of the array in the Y-axis direction; β and θ are the angles of the array point in spherical coordinates, ∅ mn is the phase of the mnth antenna unit; m and n are the serial numbers of the antenna units in the X-axis and Y-axis directions respectively.
[0082] The calculation formula of the electric field strength is substantially the same as the calculation formula of the electric field strength in the patent document CN116702514A. For more specific calculation, please refer to the patent document CN116702514A.
[0083] The population quality evaluation and optimization step is the aforementioned step S4. If the calculated focal spot diameter is greater than the target focal spot Dt and the field strength is greater than the target field strength Et, the phase matrix is output. Otherwise, the individual is selected based on the calculated focal spot diameter and field strength compared with the focal spot diameter and field strength calculated by the previous generation population. The individuals and the selected individuals in this step are composed of the phase information of the antenna units in one quadrant in the aforementioned step S1. The field strength in the focal spot diameter and field strength calculated here is the electric field strength within the focal spot range, which can be the peak value of the electric field strength in the electric field strength distribution, or it can also be the average value of the electric field strength within the focal spot range. When optimizing individuals, a simple way can be determined by comparing whether the focal spot diameter and field strength calculated by the two generations of populations are closer to the target focal spot Dt and the target field strength Et. In this embodiment, in order to facilitate the quality of the population, the individual adaptability value is calculated for comparison. Specifically, the adaptability value of the population is calculated based on the calculated focal spot diameter and field strength combined with the target field strength Et and the target focal spot Dt, and then the individual is selected by comparing with the adaptability value of the previous generation of individuals. Among them, the individual adaptability value is calculated as follows:
[0084] If the calculated focal spot diameter is smaller than the target focal spot Dt, then fit = D / Dt;
[0085] Otherwise, fit=(1+E / Et)*D / Dt;
[0086] Wherein, D is the calculated focal spot diameter; fit is the adaptability value; and E is the calculated electric field strength.
[0087] The genetic variation and antenna array adjustment steps are the aforementioned steps S5 and S6. First, in step S5, the selected population is genetically processed to obtain a genetically modified population, and then in step S6, a phase matrix of the entire antenna array is generated in a quadrant symmetric manner based on the genetically modified population. In step S5, the genetic processing is performed in the following manner:
[0088] exchanging phases of adjacent antenna units according to a set first probability;
[0089] The phases of the antenna units are randomly assigned according to a set second probability.
[0090] The first probability is preferably 0.7 to 0.8, and the second probability is preferably 0.05 to 0.10.
[0091] The phases of adjacent antenna units are exchanged according to the set first probability. Specifically, the adjacent antenna units in the X-axis direction or the Y-axis direction are traversed, and a random number in the range of 0.0~1.0 is taken for the two adjacent antenna units traversed. If the random number is greater than the first probability, the phases of the two adjacent antenna units are exchanged.
[0092] The phase of the antenna unit is randomly assigned according to the set second probability. Specifically, the antenna units in the population are traversed, and a random number in the range of 0.0 to 1.0 is taken for the traversed antenna unit. If the random number is less than the second probability, a random phase is configured for the antenna unit.
[0093] In addition, it should be pointed out that under the above-mentioned implementation mode, the phase of the antenna unit is used as an individual gene for genetic processing. In another implementation mode, for example, when referring to the aforementioned population initialization, Nx / 2 random quantities are generated for the X-axis direction, and Ny / 2 random quantities are generated for the Y-axis direction, and then when the phase of the antenna unit is generated according to the Nx / 2 random quantities generated in the X-axis direction and the Ny / 2 random quantities generated in the Y-axis direction, the random quantities generated in the X-axis direction and the Y-axis direction can be used as genes for genetic processing. At this time, when the genetic processing performs phase exchange, only the random quantity in the X-axis direction or the random quantity in the Y-axis direction needs to be exchanged as the phase exchange of the antenna unit. Similarly, when the genetic processing performs phase randomization assignment, the random quantity in the X-axis direction or the random quantity in the Y-axis direction can be randomized as the phase randomization assignment of the antenna unit.
[0094] The iterative control step is the aforementioned step S7, which repeats steps S3 to S7 until the number of iterations reaches a limit, and then outputs a phase matrix. That is, the number of times the field strength and focal spot calculation steps, population quality evaluation and optimization steps, genetic variation and antenna array adjustment steps are repeated reaches a preset limit. If the number of repetitions reaches the preset limit, the phase matrix of the antenna array corresponding to the current population is output as the final result.
[0095] In addition, it should be pointed out that the field strength shaping device based on the improved genetic algorithm referred to in the above invention is a virtual device realized by executing computer program instructions, and the modules it contains correspond one-to-one to the steps in the field strength shaping method based on the improved genetic algorithm, and no further elaboration is needed.
Claims
1. A field strength shaping method based on an improved genetic algorithm, characterized in that: The steps include: Step S1: Obtain target field intensity Et and target focal spot Dt; Step S2: Taking the four quadrants of the Cartesian plane coordinate system formed by the center of the antenna array as the origin, the antenna elements on the antenna array are divided into four parts, each part corresponding to one quadrant; the phase of each antenna element on one part is initialized in a random manner, and then the phase matrix of the entire antenna array is generated in a quadrant-symmetric manner, and the antenna elements in this part are used as individuals to form a population, and the phase of the antenna element is used as the individual information; Step S3: calculating the electric field intensity distribution at a pre-specified distance according to the antenna array phase matrix corresponding to the population, and then calculating the corresponding focal spot diameter according to the electric field intensity distribution; Step S4: if the calculated focal spot diameter is larger than the target focal spot Dt and the field strength is larger than the target field strength Et, then the phase matrix is output; otherwise, the population is selected by comparing the calculated focal spot diameter and field strength with the focal spot diameter and field strength calculated by the previous generation population; Step S5: Perform genetic processing on the selected population to obtain the genetically modified population: exchanging phases of adjacent antenna units according to a set first probability; Randomly assigning a phase value to the antenna unit according to a set second probability; Step S6: Generate a phase matrix of the entire antenna array in a quadrant symmetric manner according to the inherited population; Step S7: repeat steps S3 to S7 until the number of iterations reaches a limit, and output the phase matrix; In step S2, the initializing the phase of each antenna unit on one of the parts in a random manner comprises the following steps: Step S21: Generate Nx / 2 random quantities for the X-axis direction, and generate Ny / 2 random quantities for the Y-axis direction; Step S22: sorting the random quantities in the X-axis direction and the random quantities in the Y-axis direction and multiplying them to obtain a random phase value of each antenna unit, so that the random phase values of the antenna units from the center of the antenna array to the edge of the antenna array are arranged from small to large; Wherein, Nx is the number of columns of the antenna array, and Ny is the number of rows of the antenna array.
2. The field intensity shaping method according to claim 1, characterized in that: In the step S4, The adaptability value of the population is calculated based on the calculated focal spot diameter and field strength combined with the target field strength Et and the target focal spot Dt, and then the individual is selected by comparing with the adaptability value of the previous generation population; the adaptability value of the individual is calculated in the following way: If the calculated focal spot diameter is smaller than the target focal spot Dt, then fit = D / Dt; Otherwise, fit=(1+E / Et)*D / Dt; Wherein, D is the calculated focal spot diameter; fit is the adaptability value; and E is the calculated electric field strength.
3. The field intensity shaping method according to claim 1, characterized in that: The electric field strength in step S3 is calculated by the following formula: ;in, E is the electric field strength of the array surface, C is the unit factor that is independent of mn, Rmn is the distance from the array surface point to the mnth antenna element; k is the wave number; I mn is the excitation current of the mnth antenna unit; Nx is the number of columns of the antenna array; Ny is the number of rows of the antenna array; x m is the distance from the mnth antenna unit to the center of the array in the X-axis direction; y n is the distance from the mnth antenna unit to the center of the array in the Y-axis direction; β and θ are the angles of the array point in spherical coordinates, ∅ mn is the phase of the mnth antenna unit; m and n are the serial numbers of the antenna units in the X-axis and Y-axis directions respectively; j is an imaginary unit.
4. A field strength shaping device based on an improved genetic algorithm, characterized in that: Includes the following modules: Module M1, used to obtain target field intensity Et and target focal spot Dt; Module M2 is used to: divide the antenna elements on the antenna array into four parts by taking the four quadrants of the Cartesian plane coordinate system formed by the center of the antenna array as the origin, and each part corresponds to a quadrant; initialize the phase of each antenna element on one of the parts in a random manner, and then generate the phase matrix of the entire antenna array in a quadrant-symmetric manner, and use the antenna elements in this part as individuals to form a population, and the phase of the antenna elements is used as the individual information; Module M3 is used to calculate the electric field intensity distribution at a pre-specified distance according to the antenna array phase matrix corresponding to the population, and then calculate the corresponding focal spot diameter according to the electric field intensity distribution; Module M4 is used to: if the calculated focal spot diameter is larger than the target focal spot Dt and the field strength is larger than the target field strength Et, then output the phase matrix; otherwise, select the preferred individual by comparing the calculated focal spot diameter and field strength with the focal spot diameter and field strength calculated by the previous generation population; Module M5 is used to: perform genetic processing on the selected population to obtain genetically modified individuals: exchanging phases of adjacent antenna units according to a set first probability; Randomly assigning a phase value to the antenna unit according to a set second probability; Module M6, used for: generating a phase matrix of the entire antenna array in a quadrant symmetric manner according to the inherited population; Module M7 is used to: repeatedly execute the functions of modules M3 to S7 until the number of iterations reaches a limit, and output a phase matrix; In the module M2, the initializing the phase of each antenna unit on one part in a random manner comprises the following steps: Step S21: Generate Nx / 2 random quantities for the X-axis direction, and generate Ny / 2 random quantities for the Y-axis direction; Step S22: sorting the random quantities in the X-axis direction and the random quantities in the Y-axis direction and multiplying them to obtain a random phase value of each antenna unit, so that the random phase values of the antenna units from the center of the antenna array to the edge of the antenna array are arranged from small to large; Wherein, Nx is the number of columns of the antenna array, and Ny is the number of rows of the antenna array.
5. The field intensity shaping device according to claim 4, characterized in that: In the module M4, The adaptability value of the population is calculated based on the calculated focal spot diameter and field strength combined with the target field strength Et and the target focal spot Dt, and then the population is selected by comparing with the adaptability value of the previous generation population; the adaptability value of the population is calculated in the following way: If the calculated focal spot diameter is smaller than the target focal spot Dt, then fit = D / Dt; Otherwise, fit=(1+E / Et)*D / Dt Wherein, D is the calculated focal spot diameter; fit is the adaptability value; and E is the calculated electric field strength.
6. The field intensity shaping device according to claim 4, characterized in that: The electric field strength in the module M3 is calculated by the following formula: ;in, E is the electric field strength of the array surface, C is the unit factor that is independent of mn, Rmn is the distance from the array surface point to the mnth antenna element; k is the wave number; I mn is the excitation current of the mnth antenna unit; Nx is the number of columns of the antenna array; Ny is the number of rows of the antenna array; x m is the distance from the mnth antenna unit to the center of the array in the X-axis direction; y n is the distance from the mnth antenna unit to the center of the array in the Y-axis direction; β and θ are the angles of the array point in spherical coordinates, ∅ mn is the phase of the mnth antenna unit; m and n are the serial numbers of the antenna units in the X-axis and Y-axis directions respectively; j is an imaginary unit.
7. A computer-readable storage medium, characterized in that: The medium stores a program instruction set that can be read by a machine. When the program instruction set stored in the medium is read and executed by a machine, the machine can implement the field intensity shaping method according to any one of claims 1 to 3.
8. An electronic device, characterized in that: The device comprises a connected processor and a memory; a program instruction set is stored in the memory; when the program instruction set stored in the memory is read and executed by the processor, the device can implement the field intensity shaping method according to any one of claims 1 to 3.
