An optical fiber testing system with optimized light source for power stations
By using a spectrometer, fiber grating and coupler in the optical fiber testing system, combined with the light source spectrum optimization control of the carnivore foraging method, the problem of difficulty in accurately detecting attenuation in optical fiber detection is solved, and efficient and accurate optical fiber testing is achieved. .
Patent Information
- Application Number
- CN202111023054.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-01
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-09-01
AI Technical Summary
Existing fiber detection technology is difficult to accurately detect fiber attenuation. Traditional methods rely on ordinary lighting sources, which makes it difficult to find deep-seated problems and has low detection efficiency.
Design an optical fiber test system optimized for light sources used in power stations. It consists of a spectrometer, fiber grating, coupler and attenuator, combined with a light source spectrum optimization control method based on carnivore foraging methods, to generate light sources of different spectrums to achieve control of fiber attenuation. accurate testing.
It realizes the optimization of the spectrum response of the optical fiber test system, improves the test efficiency and accuracy, can quickly and accurately locate the fault location, and is suitable for batch testing.
Smart Images

Figure CN113945362B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of optical fiber detection, and in particular to an optical fiber testing system with optimized light source for power stations. Background Art
[0002] Optical fiber communication technology is a communication method that uses light waves as carriers and optical fibers as transmission media. It has high speed and reliability. Optical-electric composite cable is a new type of cable that combines optical cables and electric cables. It integrates optical fiber and power transmission copper wire as a transmission line, which can solve problems such as broadband access, equipment power consumption, and signal transmission. Optical-electric composite cable is suitable for insulated communication optical cables, transportation communication optical cable projects, square optical cable projects, overhead optical cable construction, power optical cable projects, and high-altitude optical cable construction. Performance testing and daily maintenance of optical-electric composite cables to ensure the reliability of power transmission and the stability of information transmission and reduce its adverse effects on the power grid have become one of the current research and application hotspots. Existing research results show that optical-electric composite cables that combine optical fiber application technology and power transmission have played an increasingly important role in the construction of power systems, especially in the construction of smart substations; at the same time, the scientific and technological staff of the power system have an urgent need to quickly and effectively detect and restore optical-electric composite cable faults.
[0003] The fiber optic test system can quickly and accurately locate the fault location, making it easier for staff to repair it. The fiber optic test system can quickly and accurately locate the fault location, making it easier for staff to repair it. The fiber optic detection technology in the existing technology is relatively backward. Traditionally, only ordinary lighting sources are used for lighting, and then the staff in the opposite direction make manual judgments. The detection methods and means are relatively rough, and it is difficult to find deep-seated fiber optic attenuation and other problems. In current fiber optic applications and detection, photoelectric converters are indispensable devices. Photoelectric converters have the advantages of anti-electromagnetic interference, small size, high cost performance, and high sensitivity; they can directly or indirectly detect physical quantities such as temperature, displacement, and vibration, but photoelectric converters have a greater dependence on the light source spectrum. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides an optical fiber testing system with optimized light source for power stations, which can generate light sources with different spectra; the optical fiber testing method optimizes the selection and control of the light source and the light source spectrum of the optical fiber testing system to achieve the purpose of accurately testing the optical fiber attenuation.
[0005] The technical solution adopted by the present invention is:
[0006] A fiber optic test system for optimizing light sources for power stations includes two parts: a fiber optic test system hardware structure part and a light source spectrum optimization control part. The fiber optic test system hardware structure part includes a spectrometer, a fiber grating, a coupler, and an attenuator. The coupler connects multiple attenuators, each attenuator is connected to a fiber grating, and n fiber grating branches are connected to the spectrometer.
[0007] The control method of the light source spectrum optimization control part is described as follows: the light source spectrum optimization control program is installed in the memory of the single-chip computer connected to the light source, and the program control process is: control the light emitted by the light source, the emitted light enters n fiber grating branches through the coupler, and then is reflected back through the fiber grating, and the peak value of the reflected light reflected by the fiber grating is adjusted through the attenuator, and finally a reflection spectrum is formed in the spectrometer.
[0008] In this fiber test system, the reflection spectrum of the i-th fiber Bragg grating is g i (λ Bi ), the expression is:
[0009]
[0010] Where: Bi is the central wavelength of the i-th fiber Bragg grating; r i is the reflectivity of the i-th fiber Bragg grating, 0≤r i ≤1; B G is the 3dB bandwidth, g i (λ Bi ) The i-th reflected power spectrum;
[0011] Then the superimposed spectrum in the spectrometer is expressed as:
[0012]
[0013] Among them, R is the function of superimposed spectrum, that is, sampling spectrum; g is super Gaussian function; N is the random noise in the system; n is the number of fiber Bragg gratings in a group;
[0014] The superimposed spectrum in formula (2) may overlap completely, partially, or not overlap. In order to facilitate the demodulation of the central wavelength, the spectrum is reconstructed. The reconstructed spectrum is expressed as:
[0015]
[0016] Among them, s i represents the central wavelength of the reconstructed spectrum of the i-th fiber Bragg grating;
[0017] R v Compared with R, the objective function of the degree of spectral overlap is expressed as:
[0018] f(s)=[RR v ] 2 (4);
[0019] When i =λ Bi When the objective function f(s) reaches the minimum value, the process of solving the central wavelength is transformed into solving the optimal value. When the original spectrum and the reconstructed spectrum reach the optimal match, the central wavelength value is obtained, and the central wavelength value is taken as the central spectrum value of the test light source.
[0020] The light source spectrum optimization control method based on animal foraging method comprises the following steps:
[0021] Step 1: Initialize the optical fiber test system;
[0022] Step 2: Evaluate all groups of carnivorous animals whose test optical fiber effectively responds to the original spectrum of the light source, and select the individual with the largest effective response value in the group, i.e., the leader.
[0023] Step 3: Based on the randomly disturbed wandering behavior of carnivores during predation, update the probe position according to equations (5) and (6) to determine the probe fitness function value. If Y i >Y lead , then update the leader of the group; otherwise repeat the wandering behavior until the number of wanderings reaches the maximum number T max , proceed to step 4.
[0024]
[0025] β=[1-2rand()] (6);
[0026] Among them, β takes an integer, as a random perturbation, taking 0, 1 or -1 to randomly perturb the wandering behavior of the probe to improve the optimization range and speed; is the probe position at the next moment; x id is the probe position at the current moment; is the walking step length of the probe in the d-dimensional space; p is the number of directions the current probe is walking in; h is the total number of directions the probe can walk in; rand() is a random number between 0 and 1.
[0027] Step 4: Summoning behavior:
[0028] Update the attacker's position according to formula (7) and determine the attacker's fitness function value. If Y i >Y lead , then the leader is updated; otherwise, according to formula (8), the distance between the attacker and the leader is less than d near , go to step 5.
[0029]
[0030] In formula (7), is the attacker’s running step length in d-dimensional space. is the position of the k-th generation leader in the d-dimensional space. The position of the attacker at the next moment, The attacker's position at the current moment.
[0031]
[0032] In formula (8), w is the distance determination factor. D represents the dimension of the wandering space; d represents the dimension of the current space; d max Indicates the maximum value of the range of space dimension; d min Indicates the minimum value of the range of space dimensions.
[0033] Step 5: Besiege behavior: Besiege the prey according to formula (9). Determine the fitness function value of the attacker. If Y i >Y lead , go to step 6.
[0034]
[0035] In formula (9), is the attack step length in the d-dimensional space, and λ is a random number between [-1,1]. The attacker's position at the next moment; is the attacker's current position, The current position of the leader can be considered as the position of the prey.
[0036] Step 6: Calculate the probability judgment standard according to formula (10). If rand() < γ, attacker i replaces the leader; otherwise, execute step 5.
[0037]
[0038] Among them, γ≤1, Y i represents the function fitness of the current attacker, Y lead Indicates the function fitness of the current leader.
[0039] If rand() < γ, attacker i replaces the leader, otherwise the replacement operation is not performed. Through the simulated annealing algorithm judgment process, attackers with fitness greater than the leader are subjected to simulated annealing inspection to prevent the algorithm from falling into a local optimum.
[0040] Step 7, Carnivore group elimination and update operation: select individuals with high fitness in the carnivore group as leaders, eliminate individuals with low fitness and supplement them.
[0041] Step 8: Determine whether the number of iterations has been reached. If the conditions are met, output the optimal solution; otherwise, execute step 3.
[0042] The present invention provides an optical fiber testing system for optimizing light sources for power stations, and the technical effects are as follows:
[0043] 1) The optical fiber testing system with optimized light source of the present invention is provided with various modules for light source spectrum control and is capable of generating light sources with different spectra.
[0044] 2) The light source spectrum optimization control method of the present invention can optimize the spectrum response of the optical fiber including the photoelectric converter tested by the optical fiber testing system, that is, the original spectrum generated by the test light source and the reconstructed spectrum obtained after the photoelectric converter are optimally matched, thereby obtaining the central spectrum value of the test light source.
[0045] 3) The present invention uses the optimized light source spectrum to perform batch testing on such optical fibers, which can obtain both faster testing efficiency and the most optimized testing results. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a schematic diagram of the structure of the optical fiber testing system of the present invention;
[0047] Figure 2 The present invention is a flow chart of a method for optimizing the spectrum control of a light source based on the foraging method of carnivores;
[0048] Figure 3 Demodulate 3 fiber Bragg grating center wavelength maps for carnivore foraging methods;
[0049] Figure 4 This is the average error diagram of demodulating the central wavelength of 4 fiber Bragg gratings;
[0050] Figure 5 This is the average time consumption diagram for demodulating 4 fiber Bragg grating central wavelengths. DETAILED DESCRIPTION
[0051] An optical fiber test system for optimizing light sources for power stations, the system includes a spectrometer, a fiber grating, a coupler, and an attenuator. The coupler is connected to multiple attenuators, each attenuator is connected to a fiber grating, and n fiber grating branches are connected to the spectrometer. The coupler is used to divide the light generated by the light source into n paths, which enter each fiber grating branch in the system respectively;
[0052] The spectrometer is used to receive the reflected light reflected by the fiber grating to form a reflection spectrum.
[0053] Fiber Bragg grating is equivalent to forming a narrowband (transmission or reflection) filter or reflector in the core of the optical fiber.
[0054] The attenuator is used to adjust the peak value of the reflected light reflected by the fiber grating.
[0055] Through the above system, the optical fiber testing system can generate optical fiber testing light sources with different spectra.
[0056] The spectrometer adopts Zeeman S2000 general-purpose spectrometer;
[0057] The fiber Bragg grating adopts YIBOHNB-FRC-310-I.
[0058] The coupler uses EB USB Hi-Speed SC-SC coupler.
[0059] The attenuator used is 5WSMA-KK 0-30dB 0-3GHz attenuator.
[0060] In the present invention, the light source is connected to an operating module for controlling the start and pause of the light source emission, and the operating module adopts an STM32F103RCT6 single chip microcomputer. The light source spectrum optimization control program is installed in the memory of the single chip microcomputer.
[0061] The structure diagram of the optical fiber test system is as follows: Figure 1 As shown in the figure, in the fiber optic test system, the light emitted by the light source enters n branches through the coupler, and then is reflected back through the fiber grating. The attenuator can adjust the reflection peak, and finally form a reflection spectrum in the spectrum module. The photoelectric converter obtains the change in external conditions by identifying the reflection spectrum. Through the fiber grating spectrum shape multiplexing in the spectrum module, the spectrum shape information is collected, and the photoelectric converter converts and processes it to obtain sensor measurement information. When the fiber grating senses a change in external conditions, the spectrum shape remains unchanged, and the wavelength drifts to a certain extent.
[0062] In this fiber optic test system, the light emitted by the light source enters n fiber grating branches through the coupler and is then reflected back through the fiber grating. The attenuator is used to adjust the peak value of the reflected light reflected by the fiber grating, and finally forms a reflection spectrum in the spectrometer. The change in external conditions is obtained by identifying the reflection spectrum.
[0063] Assume that the reflection spectrum of the i-th fiber Bragg grating is g i (λ Bi ), the expression is:
[0064]
[0065] Where: Bi is the central wavelength of the i-th fiber Bragg grating; r iis the reflectivity of the i-th fiber Bragg grating, 0≤r i ≤1; B G is the 3dB bandwidth, generally 0.2nm; g i (λ Bi ) The i-th reflected power spectrum;
[0066] Then the superimposed spectrum in the spectrum module is expressed as:
[0067]
[0068] Among them, R is the function of superimposed spectrum, that is, sampling spectrum; g is super Gaussian function; N is the random noise in the system; n is the number of fiber Bragg gratings in a group;
[0069] The spectrum in formula (2) may overlap completely, partially, or not overlap. In order to facilitate the demodulation of the central wavelength, the original spectrum is reconstructed. The reconstructed spectrum is expressed as:
[0070]
[0071] Among them, s i represents the central wavelength of the reconstructed spectrum of the i-th fiber Bragg grating;
[0072] R v Compared with R, the objective function of the degree of spectral overlap is expressed as:
[0073] f(s)=[RR v ] 2 (4);
[0074] When i =λ Bi When the objective function f(s) reaches the minimum value, the process of solving the central wavelength is transformed into solving the optimal value. When the original spectrum and the reconstructed spectrum reach the optimal match, the central wavelength value is obtained, and the central wavelength value is taken as the central spectrum value of the test light source.
[0075] like Figure 2 As shown, the light source spectrum optimization control method based on the carnivore foraging method includes the following steps:
[0076] Step 1: Initialize the optical fiber test system.
[0077] Step 2: Evaluate all groups of carnivorous animals whose test optical fiber effectively responds to the original spectrum of the light source, and select the individual with the largest effective response value in the group, i.e., the leader.
[0078] Step 3: Based on the randomly disturbed wandering behavior of carnivores during predation, update the probe position according to equations (5) and (6) to determine the probe fitness function value. If Y i >Ylead , then update the leader of the group; otherwise repeat the wandering behavior until the number of wanderings reaches the maximum number T max , proceed to step 4.
[0079]
[0080] β=[1-2rand()] (6);
[0081] Among them, β takes an integer, as a random perturbation, taking 0, 1 or -1 to randomly perturb the wandering behavior of the probe to improve the optimization range and speed; is the probe position at the next moment; x id is the probe position at the current moment; is the walking step length of the probe in the d-dimensional space; p is the number of directions the current probe is walking in; h is the total number of directions the probe can walk in; rand() is a random number between 0 and 1.
[0082] Step 4: Summoning behavior:
[0083] Update the attacker's position according to formula (7) and determine the attacker's fitness function value. If Y i >Y lead , then the leader is updated; otherwise, according to formula (8), the distance between the attacker and the leader is less than d near , go to step 5.
[0084]
[0085] In formula (7), is the attacker’s running step length in d-dimensional space. is the position of the k-th generation leader in the d-dimensional space. The position of the attacker at the next moment, The attacker's position at the current moment.
[0086]
[0087] In formula (8), w is the distance determination factor. D represents the dimension of the wandering space; d represents the dimension of the current space; d max Indicates the maximum value of the range of space dimension; d min Indicates the minimum value of the range of space dimensions.
[0088] Step 5: Besiege behavior: Besiege the prey according to formula (9). Determine the fitness function value of the attacker. If Y i >Y lead , go to step 6.
[0089]
[0090] In formula (9), is the attack step length in the d-dimensional space, and λ is a random number between [-1,1]. The attacker's position at the next moment; is the attacker's current position, The current position of the leader can be considered as the position of the prey.
[0091] Step 6: Calculate the probability judgment standard according to formula (10). If rand() < γ, attacker i replaces the leader; otherwise, execute step 5.
[0092]
[0093] Among them, γ≤1, Y i represents the function fitness of the current attacker, Y lead Indicates the function fitness of the current leader.
[0094] If rand() < γ, attacker i replaces the leader, otherwise the replacement operation is not performed. Through the simulated annealing algorithm judgment process, attackers with fitness greater than the leader are subjected to simulated annealing inspection to prevent the algorithm from falling into a local optimum.
[0095] Step 7, Carnivore group elimination and update operation: select individuals with high fitness in the carnivore group as leaders, eliminate individuals with low fitness and supplement them.
[0096] Step 8: Determine whether the number of iterations has been reached. If the conditions are met, output the optimal solution; otherwise, execute step 3.
[0097] The light source spectrum optimization control method can optimize the spectrum response of the optical fiber including the photoelectric converter tested by the optical fiber test system, that is, the original spectrum generated by the test light source and the reconstructed spectrum obtained after the photoelectric converter are optimally matched to obtain the central spectrum value of the test light source. Then, the optimized light source spectrum is used to perform batch testing on the optical fiber, which can obtain both faster test efficiency and the most optimized test results.
[0098] Example:
[0099] (I) Overlap of two fiber Bragg grating spectra:
[0100] according to Figure 1The experimental platform is built as shown. The first group of experiments uses fiber grating 1 and fiber grating 2 sensors, whose central wavelengths are 1541.398nm and 1541.743nm respectively. Fiber grating 2 is placed in a room temperature environment of 25℃ and the temperature is kept constant; fiber grating 1 is placed in a constant temperature box and the temperature is adjusted between 25℃ and 70℃. Adjust the response attenuation reflectivity r 1 、r 2 1 and 0.82 respectively.
[0101] The spectrum was reconstructed using the carnivore foraging method. The central wavelength of each fiber grating was obtained by performing 10 operations at 25℃-70℃ and taking the average value.
[0102] Table 1 Demodulation of the central wavelength and error of two fiber Bragg gratings by the carnivore foraging method
[0103]
[0104] As shown in Table 1, when the spectra of two fiber Bragg gratings overlap, the carnivore foraging algorithm can identify the central wavelength. Its identification error is within 5 pm, and the demodulation spectrum has high accuracy.
[0105] (ii) Overlap of 3 fiber Bragg grating spectra:
[0106] The second group of experiments used FBG 1, FBG 2, and FBG 3 sensors, whose central wavelengths were 1541.398nm, 1541.743nm, and 1542.223nm, respectively. FBG 1 was placed in a thermostat, and the temperature of the thermostat was adjusted to change between 25℃ and 70℃; FBG 2 was placed in a room temperature environment of 25℃, and the ambient temperature was kept constant; FBG 3 was placed in a thermostat, and the temperature of the thermostat was adjusted to change between 20℃ and 25℃. Adjust the attenuation reflectivity r 1 、r 2 and r 3 They are 1, 0.82 and 0.63 respectively.
[0107] The carnivore foraging algorithm is used to perform 10 operations and take the average value to obtain the central wavelength of each fiber grating. The demodulation result of the central wavelength is as follows: Figure 3 As shown, according to Figure 3 As shown, the wavelength error of the demodulation effect of the carnivore foraging algorithm fluctuates slightly and has a certain linear relationship.
[0108] The average time consumption is shown in Table 2.
[0109] Table 2 Average time consumption of demodulating three fiber Bragg gratings by carnivore foraging method
[0110]
[0111] As shown in Table 2, the demodulation time of the carnivore foraging algorithm is only about 2 to 4 seconds, which is fast.
[0112] (III) Spectral overlap of four fiber gratings:
[0113] The third group of experiments used FBG 1, FBG 2, FBG 3 and FBG 4 sensors, whose central wavelengths were 1541.398nm, 1541.743nm, 1542.223nm and 1542.751nm respectively. 1 、r 2 、r 3 and r 4 They are 1, 0.82, 0.63 and 0.4 respectively.
[0114] The carnivore foraging method was used to perform 10 operations under random temperature changes and the average value was taken to obtain the central wavelength of each fiber Bragg grating. The average demodulation error of the central wavelength was obtained as follows: Figure 4 As shown in the figure, the average time consumption is as follows Figure 5 shown.
[0115] from Figure 4 , Figure 5 It can be seen that the wavelength error of the demodulated center of gravity of the carnivore foraging algorithm fluctuates around 3pm, which is small and stable; the algorithm runs fast, and the average time consumed is kept within 5s.
[0116] (IV) Overlap of multiple fiber Bragg grating spectra:
[0117] The overlap of 8, 12 and 20 fiber Bragg grating spectra was simulated. Based on the above experiments, fiber Bragg gratings with similar central wavelengths were used, and the experimental environment temperature was adjusted to make multiple fiber Bragg grating spectra completely overlap. The carnivore foraging method was used for demodulation. Ten operations were performed and the average value was taken to obtain the central wavelength of each fiber Bragg grating. The average time and average error are shown in Table 3.
[0118] Table 3 Average time and error of demodulating multiple fiber Bragg gratings by carnivore foraging method
[0119]
[0120] It can be seen from Table 3 that as the number of fiber Bragg gratings increases, the precision and running speed of the optimization control method of the present invention still have high precision and speed.
[0121] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0122] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0123] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit its protection scope. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that after reading the present invention, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the invention, but these changes, modifications or equivalent substitutions are all within the protection scope of the pending claims of the invention.
Claims
1. A method for optimizing and controlling a light source spectrum, characterized in that: The invention comprises an optical fiber test system for optimizing a light source for a power station, the system comprising: a spectrometer, a fiber grating, a coupler, and an attenuator; the coupler is connected to a plurality of attenuators, each attenuator is connected to a fiber grating, and n fiber grating branches are connected to the spectrometer; the light emitted by the light source enters the n fiber grating branches through the coupler, and then is reflected back through the fiber grating, the attenuator is used to adjust the peak value of the reflected light reflected by the fiber grating, and finally forms a reflection spectrum in the spectrometer; The light source spectrum optimization control method comprises the following steps: S1. Evaluate all groups of carnivorous animals whose test optical fiber effectively responds to the original spectrum of the light source, and select the individual with the largest effective response value in the group as the leader; S2, based on the random perturbation of the predator's wandering behavior during predation, update the probe position and determine the probe fitness function value. If Y i >Y lead , Y i represents the function fitness of the current attacker, Y lead Indicates the function fitness of the current leader; then update the leader in the group; otherwise repeat the wandering behavior until the number of wanderings reaches the maximum number T max , execute step S3; S3, update the attacker's position and determine the attacker's fitness function value. If Y i >Y lead , then update the leader; otherwise, it is judged that the distance between the attacker and the leader is less than d near When , execute step S4; S4, besiege the prey and judge the fitness function value of the attacker. If Y i >Y lead , then execute step S5; S5, calculate the probability judgment standard, if rand()<γ, rand() is a random number between 0 and 1; then attacker i replaces the leader; otherwise, execute step S4; If rand()<γ, attacker i replaces the leader, otherwise the replacement operation is not performed. Through the simulated annealing algorithm judgment process, the attacker whose fitness is greater than the leader is subjected to simulated annealing inspection; S6, Carnivore group elimination and update operation: select individuals with high fitness in the carnivore group as leaders, eliminate individuals with low fitness and supplement them; S7. Determine whether the number of iterations has been reached. If the condition is met, output the optimal solution; otherwise, execute step S2.
2. The method for optimizing the spectrum control of a light source according to claim 1, characterized in that: In this fiber test system, the reflection spectrum of the i-th fiber Bragg grating is g i (λ Bi ), the expression is: Where: Bi is the central wavelength of the i-th fiber Bragg grating; r i is the reflectivity of the i-th fiber Bragg grating, 0≤r i ≤1; B G is the 3dB bandwidth, g i (λ Bi ) The i-th reflected power spectrum; Then the superimposed spectrum in the spectrometer is expressed as: Among them, R is the function of superimposed spectrum, that is, sampling spectrum; g is super Gaussian function; N is the random noise in the system; n is the number of fiber Bragg gratings in a group; The spectrum in formula (2) is reconstructed and the reconstructed spectrum is expressed as: Among them, s i represents the central wavelength of the reconstructed spectrum of the i-th fiber Bragg grating; R v Compared with R, the objective function of the degree of spectral overlap is expressed as: f(s)=[R-R v ] 2 (4); When i =λ Bi When the objective function f(s) reaches the minimum value, the process of solving the central wavelength is transformed into solving the optimal value. When the original spectrum and the reconstructed spectrum reach the optimal match, the central wavelength value is obtained, and the central wavelength value is taken as the central spectrum value of the test light source.
3. The method for optimizing the spectrum control of a light source according to claim 1, characterized in that: In S2, the probe position is updated according to equations (5) and (6): β=[1-2rand()] (6); Among them, β takes an integer, as a random perturbation, taking 0, 1 or -1 to randomly perturb the wandering behavior of the probe to improve the optimization range and speed; is the probe position at the next moment; x id is the probe position at the current moment; is the walking step length of the probe in the d-dimensional space; p is the number of directions the current probe is walking in; h is the total number of directions the probe can walk in; rand() is a random number between 0 and 1.
4. The method for optimizing the spectrum control of a light source according to claim 1, characterized in that: In S3, the attacker's position is updated according to formula (7): In formula (7), is the attacker’s running step length in d-dimensional space, is the position of the k-th generation leader in the d-dimensional space, The position of the attacker at the next moment, The attacker's position at the current moment.
5. The method for optimizing the spectrum control of a light source according to claim 1, characterized in that: In S3, according to formula (8), it is determined that the distance between the attacker and the leader is less than d near When , execute step S4; In formula (8), w is the distance determination factor; D is the dimension of the wandering space; d is the dimension of the current space; d max Indicates the maximum value of the range of space dimension; d min Indicates the minimum value of the range of space dimensions.
6. The method for optimizing the spectrum control of a light source according to claim 1, characterized in that: In S4, the prey is besieged according to formula (9): In formula (9), is the attack step length in d-dimensional space, λ is a random number between [-1,1]; The attacker's position at the next moment; is the attacker's current position, The current position of the leader can be considered as the position of the prey.
7. The method for optimizing and controlling the spectrum of a light source according to claim 3, characterized in that: In S5, the probability judgment standard is calculated according to formula (10): Among them, γ≤1, Y i represents the function fitness of the current attacker, Y lead Indicates the function fitness of the current leader.
