A control optimization method for oxygen supply equipment
By combining the improved fennec fox optimization algorithm with the fractional-order PID controller, the oxygen flow control of the oxygen supply equipment is optimized, the problem of robustness and accuracy of oxygen flow control of the oxygen supply equipment is solved, and a more efficient oxygen supply is achieved.
Patent Information
- Application Number
- CN202410158329.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-02-04
AI Technical Summary
The oxygen flow control of existing oxygen supply equipment is difficult to achieve optimal robustness and accuracy, which affects the oxygen supply during the medical oxygen supply process.
The improved fennec fox optimization algorithm and fractional-order PID controller are used to optimize the oxygen flow control system of the oxygen supply equipment through MATLAB and Simulink simulation models, integrating the bottlenose dolphin optimization algorithm and the optimal position of prey to improve position update and search resolution. Optimize the parameters of the oxygen flow fractional-order PID controller.
It improves the oxygen flow control performance of the oxygen supply equipment, enables the oxygen flow control to achieve optimal robustness, ensures the accuracy of the oxygen supply concentration, and ensures that patients have sufficient oxygen inhalation during the medical oxygen supply process.
Smart Images

Figure CN118011813B
Abstract
Description
Technical Field
[0001] The invention relates to the field of fractional-order PID control, and in particular to a control optimization method for oxygen supply equipment. Background Art
[0002] Oxygen supply equipment has a wide range of applications in the medical field. Its main purpose is to provide patients with additional oxygen to meet their body's oxygen needs. Oxygen supply equipment is used to treat symptoms of hypoxia and ensure that the patient's body tissues and organs can get enough oxygen. In the operating room and during anesthesia, oxygen supply equipment ensures that patients maintain adequate oxygen levels during surgery. For patients with chronic respiratory diseases, such as chronic obstructive pulmonary disease (COPD), oxygen supply equipment can help relieve breathing difficulties and improve quality of life. In first aid and emergency situations, oxygen supply equipment is a key tool to maintain the patient's life, especially in situations such as cardiac arrest. Therefore, it is crucial to ensure that the oxygen flow control of the oxygen supply equipment achieves optimal robustness and ensures the accuracy of the oxygen supply concentration.
[0003] Using intelligent optimization algorithms, the flow controller of the oxygen supply equipment can be adjusted according to the individual needs and physiological conditions of the patient. This includes personalized oxygen flow settings based on factors such as the patient's age, weight, and clinical symptoms to ensure that each patient receives the most appropriate oxygen therapy, which can better meet the needs of pediatric patients. At the same time, the intelligent optimization algorithm can analyze the patient's oxygen usage data and provide the medical team with information about the patient's condition and treatment feedback. With this data, the medical team can better understand the patient's condition and make more accurate treatment plans. Summary of the invention
[0004] The purpose of the present invention is to optimize the oxygen flow fractional-order PID controller of the oxygen supply equipment by using an intelligent optimization algorithm, improve the control performance of the oxygen supply equipment, make the oxygen flow control of the oxygen supply equipment reach the best robustness, ensure the accuracy of the oxygen supply concentration, and thus ensure that the patient has sufficient oxygen inhalation during the medical oxygen supply process.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] The invention discloses an oxygen supply equipment control optimization method, which optimizes the oxygen flow fractional-order PID controller of the oxygen supply equipment by using an improved fennec fox optimization algorithm, and the specific steps are as follows.
[0007] S1. Based on the improved fennec fox optimization algorithm and fractional-order PID, an oxygen flow control system for oxygen supply equipment is built.
[0008] S2. Optimize and convert the oxygen flow controller of the oxygen supply equipment into a mathematical model to be optimized, and design MATLAB and Simulink simulation models based on the control system of step S1.
[0009] S3. Improve the standard fennec fox optimization algorithm. The specific steps are as follows:
[0010] S31. In the first stage of the standard fennec fox optimization algorithm, the bottlenose dolphin optimization algorithm is integrated, and the optimal position of the prey is added to improve the encirclement area θ t Surround the optimal prey position, then use probability to update the position alternately, and improve the position update mathematical model of the standard fennec fox optimization algorithm;
[0011] S32. Set a threshold k. When the current number of iterations t satisfies t>k, design a method to update the population by increasing the search resolution and gradually expanding the initial search range as t increases.
[0012] S4. Using the improved fennec fox optimization algorithm of step S3 to adjust the mathematical model to be optimized in step S2, the optimal parameters of the fractional-order PID controller are obtained.
[0013] S5. Input the optimal parameters obtained in step S4 into the Simulink simulation model, iterate continuously to achieve the best control effect, and then apply the oxygen flow control system to the oxygen supply equipment to achieve the optimization of oxygen flow control of the oxygen supply equipment.
[0014] Furthermore, in the step S1, an oxygen flow control system for the oxygen supply equipment is constructed, which mainly includes an oxygen flow target value input unit for the oxygen supply equipment, a difference unit between the oxygen flow target value and the oxygen flow real-time value of the oxygen supply equipment, an improved fennec fox optimization algorithm unit, an oxygen flow fractional-order PID controller unit for the oxygen supply equipment, an oxygen flow valve unit for the oxygen supply equipment, and an oxygen flow measurement sensor unit for the oxygen supply equipment.
[0015] Furthermore, in the step S2, the oxygen flow controller of the oxygen supply equipment is optimized and converted into a mathematical model to be optimized, and the parameters and performance indicators of the oxygen flow fractional-order PID controller need to be converted into mathematical expressions; specifically, the proportional coefficient, integral coefficient and differential coefficient of the fractional-order PID controller as well as the integral coefficient and differential coefficient can be used as optimization variables, and then an optimization mathematical model is established according to the performance requirements of the control system.
[0016] Furthermore, in step S2, the Simulink simulation model of the oxygen flow control system of the oxygen supply equipment includes: an oxygen flow target value input module of the oxygen supply equipment, an improved fennec fox optimization algorithm parameter optimal value input module in Matlab, a fractional-order PID controller module, a clock control module, and a mathematical model G(s) of the controlled object of the oxygen flow control system of the oxygen supply equipment.
[0017] Furthermore, in step S2, the oxygen flow controller of the oxygen supply equipment is optimized and converted into a mathematical model to be optimized, which mainly includes the mathematical model G(s) of the controlled object of the oxygen flow control system of the oxygen supply equipment, the mathematical model T(s) of the transfer function of the oxygen flow fractional-order PID controller, and the objective function J(θ) used to guide the iterative optimization of the improved fennec fox optimization algorithm.
[0018] Furthermore, in step S2, the mathematical model G(s) of the controlled object of the oxygen flow control system of the oxygen supply equipment is as follows:
[0019]
[0020] Where Y(s) is the oxygen flow rate output by the oxygen supply equipment, U(s) is the output of the oxygen flow rate fractional-order PID controller, that is, the input of the controlled object unit of the oxygen flow rate control system, K is the gain of the oxygen flow rate control system of the oxygen supply equipment, T is the time of the oxygen flow rate control system of the oxygen supply equipment, α is the fractional order, τ is the time lag, and s is the complex frequency domain variable value.
[0021] Furthermore, in step S2, based on the mathematical model G(s) of the controlled object, a transfer function mathematical model T(s) of the oxygen flow fractional-order PID controller is designed, and the transfer function mathematical model formula is:
[0022]
[0023] Where C(s) is the frequency domain formula of fractional-order PID, K p is the proportional unit of fractional-order PID, K i is the integral unit of the fractional-order PID, K d is the differential unit of the fractional-order PID, γ is the integral order of the fractional-order PID, and β is the differential order of the fractional-order PID.
[0024] Furthermore, in step S3, the standard fennec fox optimization algorithm is improved, the bottlenose dolphin optimization algorithm is integrated into the first stage of the standard fennec fox optimization algorithm, and the optimal position of the prey is added to improve the encirclement area θ t Surround the optimal prey position, and then use probability to update the position alternately. The improved mathematical model of position update is:
[0025]
[0026] In formula (1), is the j-th dimension position of the ith fennec fox to be updated in the first stage, is the current iteration position of the j-th dimension of the i-th fennec fox in the first stage, is the position of the optimal prey in the current iteration, rand is a random number in the interval [0, 1]; Ri,j is the neighborhood radius of the current iteration position of the fennec fox, r is a random number in the interval [0, 1); θ t The improved encirclement area is adaptively reduced during the search process, which helps to encircle the optimal position of the prey. The mathematical model formula is:
[0027]
[0028] In the formula, θ max is the maximum value of the enclosed area, which is 1; θ min is the minimum enclosing area, and its value is 0.4.
[0029] Furthermore, in step S32, at the end of each iteration of the algorithm, a new method for initializing the scale of the population is proposed. Before k iterations, the search is initialized with the currently set maximum search range. At the kth iteration, the initialization search range is expanded with the iteration. This design is helpful for the later stage of algorithm iteration and the algorithm development stage, when the solution accuracy is refined and the algorithm falls into the optimal layout. When the algorithm falls into a suboptimal solution, it can jump out of the suboptimal solution loop and improve the accuracy of the optimal solution of the fractional-order PID controller.
[0030] Furthermore, in step S4, the mathematical model to be optimized in step S2 is adjusted using the improved fennec fox optimization algorithm in step S3 to obtain the optimal parameters of the fractional-order PID controller, and the specific steps are as follows:
[0031] S41, taking the controlled object mathematical model of the oxygen flow control system as the objective function J(θ), and using the minimum value of the objective function as the fitness function of the improved fennec fox optimization algorithm;
[0032] S42, initializing the initial parameters of the improved fennec fox optimization algorithm and the initial position of the fennec fox; the initial position of the fennec fox is the initial solution of the oxygen flow fractional-order PID controller parameters in the algorithm optimization process, and the position update of the fennec fox is the update of the oxygen flow fractional-order PID controller parameter solution set;
[0033] S43, designing the oxygen flow fractional-order PID controller parameters as space vectors, encoding them as positions of fennec foxes through real numbers, and each position of fennec foxes corresponds to a parameter solution set of the oxygen flow fractional-order PID controller;
[0034] S44, calculating the fitness value of each individual position of the fennec fox, recording the minimum fitness value of this iteration, and comparing it with the previous minimum fitness value, retaining the smaller fitness value;
[0035] S45, simulating the behavior of the improved fennec fox optimization algorithm in finding prey and avoiding predator attacks, and updating the individual positions of the fennec fox population, that is, updating the parameter solution set of the oxygen flow fractional-order PID controller;
[0036] S46, current iteration number t=t+1, check whether the maximum iteration number T is reached max If the termination condition is met, the algorithm ends. According to the mapping relationship between the position update strategy of the improved fennec fox optimization algorithm and the oxygen flow fractional-order PID controller, the optimal position is decomposed and assigned to the Kp, Ki, Kd, and βγ parameters of the oxygen flow fractional-order PID controller; otherwise, execute equations (3) and (4) to initialize the search range:
[0037] x low ≤x≤x high (3);
[0038] In the formula, x low is the minimum search range, x high is the maximum search range;
[0039] In the kth iteration, the search resolution is increased, and the formula is:
[0040] x low,k+1 ≤x≤x high,k+1 (4);
[0041] In the formula, x low,k+1 and x high,k+1 New search range for the variable in iteration k+1.
[0042] Furthermore, the step S45 simulates the behavior of improving the optimization algorithm of the fennec fox to find prey and avoid attacks by predators, and the specific method is:
[0043] S451, the first stage is to find prey, which is the local stage. The bottlenose dolphin optimization algorithm is integrated and the optimal position of the prey is added to improve the encirclement area θ t Surround the optimal prey position, then use probability to update the position alternately, update the population position according to formula (1), and update the oxygen flow fractional-order PID controller parameter solution set
[0044] S452, the second stage is to search for prey, which is the global stage. Based on the escape of the fennec fox, the global search space is scanned, the population position is updated according to formula (2), and the parameter solution set of the oxygen flow fractional-order PID controller is updated:
[0045]
[0046] In the formula, is the j-th dimension position of the ith fennec fox to be updated in the second stage, is the j-th random position of the ith fennec fox in the second stage, is the fitness value of the random position of the i-th fennec fox, F i is the current fitness value of the i-th fennec fox.
[0047] Further, in step S451, the fennec fox hunts alone at night. It uses its ability to hear with its large ears to detect prey under the sand. After finding the location, it digs with its feet to expose and hunt the prey. This behavior is a local search. Simulating this behavior increases the utilization ability of the improved fennec fox optimization algorithm to achieve a solution closer to the global optimal solution. In order to simulate the behavior of the fennec fox during the digging process, a neighborhood with a radius of R around the actual location is considered, and a better solution can be converged in the local search area.
[0048] Further, in step S452, the fennec fox may be attacked by wild predators, such as the pharaoh's eagle and the spotted hyena, but due to its incredible speed and sudden changes in movement direction, it can escape the predator; in the mathematical model, this escape strategy of the fennec fox is the basis for the global scan of the search space; the simulation of the escape strategy improves the detection capability of the improved fennec fox optimization algorithm; it helps to avoid being trapped in the optimal local area, thereby determining the optimal global area.
[0049] In summary, due to the adoption of the above technical scheme, the beneficial effects of the present invention are: using the intelligent optimization algorithm to optimize the oxygen flow fractional-order PID controller of the oxygen supply equipment, improving the control performance of the oxygen supply equipment, making the oxygen flow control of the oxygen supply equipment achieve optimal robustness, ensuring the accuracy of the oxygen supply concentration, thereby ensuring that the patient has sufficient oxygen inhalation during the medical oxygen supply process. Specific innovations:
[0050] P1. The fennec fox optimization algorithm is used for the first time in the oxygen flow fractional-order PID controller, providing a new idea for the optimization of the oxygen flow fractional-order PID controller;
[0051] P2. Improve the standard fennec fox optimization algorithm, integrate the bottlenose dolphin optimization algorithm in the second stage of the standard fennec fox optimization algorithm, improve the position update mathematical model of the standard fennec fox optimization algorithm, improve the global search performance of the fennec fox optimization algorithm, provide more solution options for the optimal fractional-order PID control parameters, and improve the optimization speed of the optimal solution of the oxygen flow fractional-order PID controller;
[0052] P3. At the end of each iteration of the algorithm, a new method for initializing the population size is proposed. At the kth iteration, the initialization search range is expanded with the iteration. When the algorithm falls into a suboptimal solution, it can jump out of the suboptimal solution loop and improve the accuracy of the optimal solution of the fractional-order PID controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 The present invention is a step diagram of a control optimization method for oxygen supply equipment.
[0054] Figure 2Flowchart of the fractional-order PID controller for oxygen flow rate optimization for improved fennec fox optimization algorithm.
[0055] Figure 3 Comparison curve of the optimal individual fitness values between the improved fennec fox optimization algorithm and the standard fennec fox optimization algorithm.
[0056] Figure 4 This is a comparison chart of the effects of optimizing fractional-order PID on oxygen flow control of oxygen supply equipment using the improved fennec fox optimization algorithm and the standard fennec fox optimization algorithm. Specific implementation plan
[0057] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0058] See also Figure 1-Figure 4 , the present invention provides a technical solution:
[0059] A control optimization method for oxygen supply equipment uses an improved fennec fox optimization algorithm to optimize the oxygen flow fractional-order PID controller of oxygen supply equipment. Figure 1 As shown, the specific steps are:
[0060] S1. Based on the improved fennec fox optimization algorithm and fractional-order PID, an oxygen flow control system for oxygen supply equipment is built.
[0061] S2. Optimize and convert the oxygen flow controller of the oxygen supply equipment into a mathematical model to be optimized, and design MATLAB and Simulink simulation models based on the control system of step S1.
[0062] S3. Improve the standard fennec fox optimization algorithm. The specific steps are as follows:
[0063] S31. In the first stage of the standard fennec fox optimization algorithm, the bottlenose dolphin optimization algorithm is integrated, and the optimal position of the prey is added to improve the encirclement area θ t Surround the optimal prey position, then use probability to update the position alternately, and improve the position update mathematical model of the standard fennec fox optimization algorithm;
[0064] S32. Set a threshold k. When the current number of iterations t satisfies t≥k, design a method to update the population by increasing the search resolution and gradually expanding the initialization search range as t increases.
[0065] S4. Using the improved fennec fox optimization algorithm of step S3 to adjust the mathematical model to be optimized in step S2, the optimal parameters of the fractional-order PID controller are obtained.
[0066] S5. Input the optimal parameters obtained in step S4 into the Simulink simulation model, iterate continuously to achieve the best control effect, and then apply the oxygen flow control system to the oxygen supply equipment to achieve the optimization of oxygen flow control of the oxygen supply equipment.
[0067] Furthermore, in the step S1, an oxygen flow control system for the oxygen supply equipment is constructed, which mainly includes an oxygen flow target value input unit for the oxygen supply equipment, a difference unit between the oxygen flow target value and the oxygen flow real-time value of the oxygen supply equipment, an improved fennec fox optimization algorithm unit, an oxygen flow fractional-order PID controller unit for the oxygen supply equipment, an oxygen flow valve unit for the oxygen supply equipment, and an oxygen flow measurement sensor unit for the oxygen supply equipment.
[0068] Furthermore, in the step S2, the oxygen flow controller of the oxygen supply equipment is optimized and converted into a mathematical model to be optimized, and the parameters and performance indicators of the oxygen flow fractional-order PID controller need to be converted into mathematical expressions; specifically, the proportional coefficient, integral coefficient and differential coefficient of the fractional-order PID controller as well as the integral coefficient and differential coefficient can be used as optimization variables, and then an optimization mathematical model is established according to the performance requirements of the control system.
[0069] Furthermore, in step S2, the Simulink simulation model of the oxygen flow control system of the oxygen supply equipment includes: an oxygen flow target value input module of the oxygen supply equipment, an improved fennec fox optimization algorithm parameter optimal value input module in Matlab, a fractional-order PID controller module, a clock control module, and a mathematical model G(s) of the controlled object of the oxygen flow control system of the oxygen supply equipment.
[0070] Furthermore, in step S2, the oxygen flow controller of the oxygen supply equipment is optimized and converted into a mathematical model to be optimized, which mainly includes the mathematical model G(s) of the controlled object of the oxygen flow control system of the oxygen supply equipment, the mathematical model T(s) of the transfer function of the oxygen flow fractional-order PID controller, and the objective function J(θ) used to guide the iterative optimization of the improved fennec fox optimization algorithm.
[0071] Furthermore, in step S2, the mathematical model G(s) of the controlled object of the oxygen flow control system of the oxygen supply equipment is as follows:
[0072]
[0073] Where Y(s) is the oxygen flow rate output by the oxygen supply equipment, U(s) is the output of the oxygen flow rate fractional-order PID controller, that is, the input of the controlled object unit of the oxygen flow rate control system, K is the gain of the oxygen flow rate control system of the oxygen supply equipment, T is the time of the oxygen flow rate control system of the oxygen supply equipment, α is the fractional order, τ is the time lag, and s is the complex frequency domain variable value.
[0074] Furthermore, in step S2, based on the mathematical model G(s) of the controlled object, a transfer function mathematical model T(s) of the oxygen flow fractional-order PID controller is designed, and the transfer function mathematical model formula is:
[0075]
[0076] Where G(s) is the frequency domain formula of fractional-order PID, K p is the proportional unit of fractional-order PID, K i is the integral unit of the fractional-order PID, K d is the differential unit of the fractional-order PID, γ is the integral order of the fractional-order PID, and β is the differential order of the fractional-order PID.
[0077] Furthermore, in step S3, the standard fennec fox optimization algorithm is improved, the bottlenose dolphin optimization algorithm is integrated into the first stage of the standard fennec fox optimization algorithm, and the optimal position of the prey is added to improve the encirclement area θ t Surround the optimal prey position, and then use probability to update the position alternately. The improved mathematical model of position update is:
[0078]
[0079] In formula (1), is the j-th dimension position of the ith fennec fox to be updated in the first stage, is the current iteration position of the j-th dimension of the i-th fennec fox in the first stage, is the position of the optimal prey in the current iteration, rand is a random number in the interval [0, 1]; R i,j is the neighborhood radius of the current iteration position of the fennec fox, r is a random number in the interval [0, 1); θ t The improved encirclement area is adaptively reduced during the search process, which helps to encircle the optimal position of the prey. The mathematical model formula is:
[0080]
[0081] In the formula, θ max is the maximum value of the enclosed area, which is 1; θ min is the minimum enclosing area, and its value is 0.4.
[0082] Furthermore, in step S32, at the end of each iteration of the algorithm, a new method for initializing the scale of the population is proposed. Before k iterations, the search is initialized with the currently set maximum search range. At the kth iteration, the initialization search range is expanded with the iteration. This design is helpful for the later stage of algorithm iteration and the algorithm development stage, when the solution accuracy is refined and the algorithm falls into the optimal layout. When the algorithm falls into a suboptimal solution, it can jump out of the suboptimal solution loop and improve the accuracy of the optimal solution of the fractional-order PID controller.
[0083] Furthermore, in step S4, the mathematical model to be optimized in step S2 is adjusted using the improved fennec fox optimization algorithm in step S3 to obtain the optimal parameters of the fractional-order PID controller, such as Figure 2 As shown, the specific steps are:
[0084] S41, taking the controlled object mathematical model of the oxygen flow control system as the objective function J(θ), and using the minimum value of the objective function as the fitness function of the improved fennec fox optimization algorithm;
[0085] S42, initializing the initial parameters of the improved fennec fox optimization algorithm and the initial position of the fennec fox; the initial position of the fennec fox is the initial solution of the oxygen flow fractional-order PID controller parameters in the algorithm optimization process, and the position update of the fennec fox is the update of the oxygen flow fractional-order PID controller parameter solution set;
[0086] S43, designing the oxygen flow fractional-order PID controller parameters as space vectors, encoding them as positions of fennec foxes through real numbers, and each position of fennec foxes corresponds to a parameter solution set of the oxygen flow fractional-order PID controller;
[0087] S44, calculating the fitness value of each individual position of the fennec fox, recording the minimum fitness value of this iteration, and comparing it with the previous minimum fitness value, retaining the smaller fitness value;
[0088] S45, simulating the behavior of the improved fennec fox optimization algorithm in finding prey and avoiding predator attacks, and updating the individual positions of the fennec fox population, that is, updating the parameter solution set of the oxygen flow fractional-order PID controller;
[0089] S46, current iteration number t=t+1, check whether the maximum iteration number T is reached max If the termination condition is met, the algorithm ends. According to the mapping relationship between the position update strategy of the improved fennec fox optimization algorithm and the oxygen flow fractional-order PID controller, the optimal position is decomposed and assigned to the Kp, Ki, Kd, β and γ parameters of the oxygen flow fractional-order PID controller; otherwise, execute equations (3) and (4) to initialize the search range:
[0090] x low ≤x≤x high (3);
[0091] In the formula, x low is the minimum search range, x high is the maximum search range;
[0092] In the kth iteration, the search resolution is increased, and the formula is:
[0093] x low,k+1 ≤x≤x high,k+1 (4);
[0094] In the formula, x low,k+1 and x high,k+1 New search range for the variable in iteration k+1.
[0095] Furthermore, the step S45 simulates the behavior of improving the optimization algorithm of the fennec fox to find prey and avoid attacks by predators, and the specific method is:
[0096] S451, the first stage is to find prey, which is the local stage. The bottlenose dolphin optimization algorithm is integrated and the optimal position of the prey is added to improve the encirclement area θ t Surround the optimal prey position, then use probability to update the position alternately, update the population position according to formula (1), and update the oxygen flow fractional-order PID controller parameter solution set
[0097] S452, the second stage is to search for prey, which is the global stage. Based on the escape of the fennec fox, the global search space is scanned, the population position is updated according to formula (2), and the parameter solution set of the oxygen flow fractional-order PID controller is updated:
[0098]
[0099] In the formula, is the j-th dimension position of the ith fennec fox to be updated in the second stage, is the j-th random position of the ith fennec fox in the second stage, is the fitness value of the random position of the i-th fennec fox, F i is the current fitness value of the i-th fennec fox.
[0100] Further, in step S451, the fennec fox hunts alone at night. It uses its ability to hear with its large ears to detect prey under the sand. After finding the location, it digs with its feet to expose and hunt the prey. This behavior is a local search. Simulating this behavior increases the utilization ability of the improved fennec fox optimization algorithm to achieve a solution closer to the global optimal solution. In order to simulate the behavior of the fennec fox during the digging process, a neighborhood with a radius of R around the actual location is considered, and a better solution can be converged in the local search area.
[0101] Further, in step S452, the fennec fox may be attacked by wild predators, such as the pharaoh's eagle and the spotted hyena, but due to its incredible speed and sudden changes in movement direction, it can escape the predator; in the mathematical model, this escape strategy of the fennec fox is the basis for the global scan of the search space; the simulation of the escape strategy improves the detection capability of the improved fennec fox optimization algorithm; it helps to avoid being trapped in the optimal local area, thereby determining the optimal global area.
[0102] During the simulation, the improved fennec fox optimization algorithm (MFFA) and the standard fennec fox optimization algorithm (FFA) were iteratively run in Matlab, and the maximum number of iterations T was set. max = 60, maximum population size N = 100, algorithm parameter search upper bound UB = 100, algorithm parameter search lower bound LB = 0, the neighborhood radius of the current iteration position of the fennec fox R i,j The maximum position is 2 and the minimum value is 0. The test is performed and the Kp, Ki, Kd, β and γ parameters of the optimal oxygen flow fractional-order PID controller are output.
[0103] The performance of the standard fennec fox optimization algorithm (FFA) and the improved fennec fox optimization algorithm (MFFA) were tested by Matlab in the form of a fitness function value. The smaller the fitness, the better the algorithm performance. Figure 3 As shown, the dotted line is the fitness value curve of the oxygen flow fractional-order PID controller of the oxygen supply equipment based on the improved fennec fox optimization algorithm. Compared with the fitness value curve of the standard fennec fox optimization algorithm with the solid line, it can be obviously found that the fitness value of the improved fennec fox optimization algorithm changes faster, indicating that the algorithm has a faster optimization speed, and the fitness value is smaller, indicating that the algorithm has a higher optimization accuracy.
[0104] Figure 4 This paper shows the effect diagram of optimizing the oxygen flow fractional PID controller of the oxygen supply equipment before and after the fennec fox optimization algorithm (FFA) is improved, improving the control performance of the oxygen supply equipment, making the oxygen flow control of the oxygen supply equipment achieve optimal robustness, and ensuring the accuracy of the oxygen supply concentration. The effect is verified by Simulink simulation. It can be concluded from the figure that the overshoot of the oxygen flow fractional PID controller (traditional fractional-order PID) of the oxygen supply equipment without algorithm optimization is the largest and the stability is the worst. The overshoot of the oxygen flow fractional PID controller of the oxygen supply equipment optimized by the improved fennec fox optimization algorithm (MFFA-fractional-order PID) is smaller than the overshoot of the oxygen flow fractional PID controller of the oxygen supply equipment optimized by the standard fennec fox optimization algorithm (FFA-fractional-order PID), and it quickly tends to stabilize. This shows that under the improved fennec fox optimization algorithm, the oxygen flow control of the oxygen supply equipment achieves optimal robustness and ensures the accuracy of the oxygen supply concentration.
Claims
1. A control optimization method for oxygen supply equipment, which uses an improved fennec fox optimization algorithm to optimize the oxygen flow fractional-order PID controller of the oxygen supply equipment, characterized in that: The specific steps are: S1. Based on the improved fennec fox optimization algorithm and fractional-order PID, build an oxygen flow control system for oxygen supply equipment; S2, optimizing and converting the oxygen flow controller of the oxygen supply equipment into a mathematical model to be optimized, and designing a MATLAB and Simulink simulation model based on the control system of step S1; S3. Improve the standard fennec fox optimization algorithm. The specific steps are as follows: S31. Integrate the bottlenose dolphin optimization algorithm into the first stage of the standard fennec fox optimization algorithm and add the optimal position of prey The position is updated using a probability alternation mechanism, and the position update mathematical model of the standard fennec fox optimization algorithm is improved; wherein, the position update mathematical model formula of the improved fennec fox optimization algorithm is: In formula (1), is the j-th dimension position of the ith fennec fox to be updated in the first stage, is the current iteration position of the j-th dimension of the i-th fennec fox in the first stage, is the position of the optimal prey in the current iteration, rand is a random number in the interval [0,1]; R i,j is the neighborhood radius of the current iteration position of the fennec fox, r is a random number in the interval [0,1]; the enclosing area θ in the mathematical model is updated for the position t Improvement: The mathematical model formula of the enclosing area of the improved algorithm is: In the formula, θ max is the maximum value of the enclosed area, which is 2; θ min is the minimum enclosing area, the value is 0.1, θ t The enclosing area of the improved algorithm is adaptively reduced during the algorithm convergence process, effectively avoiding the algorithm from falling into the local optimum; S32, setting a threshold k, when the current number of iterations t satisfies t≥k, designing a method to update the population by increasing the search resolution and gradually expanding the initial search range as t increases; S4, using the improved fennec fox optimization algorithm in step S3 to adjust the mathematical model to be optimized in step S2, and obtain the optimal parameters of the fractional-order PID controller; the specific steps are: S41, taking the controlled object mathematical model of the oxygen flow control system as the objective function J(θ), and using the minimum value of the objective function as the fitness function of the improved fennec fox optimization algorithm; S42, initializing the initial parameters of the improved fennec fox optimization algorithm and the initial position of the fennec fox; the initial position of the fennec fox is the initial solution of the oxygen flow fractional-order PID controller parameters in the algorithm optimization process, and the position update of the fennec fox is the update of the oxygen flow fractional-order PID controller parameter solution set; S43, designing the oxygen flow fractional-order PID controller parameters as space vectors, encoding them as positions of fennec foxes through real numbers, and each position of fennec foxes corresponds to a parameter solution set of the oxygen flow fractional-order PID controller; S44, calculating the fitness value of each individual position of the fennec fox, recording the minimum fitness value of this iteration, and comparing it with the previous minimum fitness value, retaining the smaller fitness value; S45, simulating the behavior of the improved fennec fox optimization algorithm in finding prey and avoiding predator attacks, and updating the individual positions of the fennec fox population, that is, updating the parameter solution set of the oxygen flow fractional-order PID controller; S46, current iteration number t=t+1, check whether the maximum iteration number T is reached max If the termination condition is met, the algorithm ends. According to the mapping relationship between the position update strategy of the improved fennec fox optimization algorithm and the oxygen flow fractional-order PID controller, the optimal position is decomposed and assigned to the Kp, Ki, Kd, β and γ parameters of the oxygen flow fractional-order PID controller; otherwise, execute equations (3) and (4) to initialize the search range: x low ≤x≤x high (3); In the formula, x low is the minimum search range, x high is the maximum search range; In the kth iteration, the search resolution is increased, and the formula is: x low,k+1 ≤x≤x high,k+1 (4); In the formula, x low,k+1 and x high,k+1 new search range for the variable in iteration k+1; S5. Input the optimal parameters obtained in step S4 into the Simulink simulation model, iterate continuously to achieve the best control effect, and then apply the oxygen flow control system to the oxygen supply equipment to achieve the optimization of oxygen flow control of the oxygen supply equipment.
2. The oxygen supply equipment control optimization method according to claim 1, characterized in that: The step S2 optimizes the oxygen flow controller of the oxygen supply equipment and converts it into a mathematical model to be optimized, which mainly includes the mathematical model G(s) of the controlled object of the oxygen flow control system of the oxygen supply equipment, the mathematical model T(s) of the transfer function of the oxygen flow fractional-order PID controller, and the objective function J(θ) used to guide the iterative optimization of the improved fennec fox optimization algorithm.
3. The oxygen supply equipment control optimization method according to claim 2, characterized in that: The mathematical model G(s) of the controlled object of the oxygen flow control system of the oxygen supply equipment is as follows: Where, Y(s) is the oxygen flow rate output by the oxygen supply equipment, U(s) is the output of the oxygen flow rate fractional-order PID controller, that is, the input of the controlled object unit of the oxygen flow rate control system, K is the gain of the oxygen flow rate control system of the oxygen supply equipment, T is the time of the oxygen flow rate control system of the oxygen supply equipment, α is the fractional order, τ is the time lag, and s is the complex frequency domain variable value.
4. The oxygen supply equipment control optimization method according to claim 3, characterized in that: Based on the mathematical model G(s) of the controlled object, the mathematical model T(s) of the transfer function of the oxygen flow fractional-order PID controller is designed. The mathematical model formula of the transfer function is: Where C(s) is the frequency domain formula of fractional-order PID, K p is the proportional unit of fractional-order PID, K i is the integral unit of the fractional-order PID, K d is the differential unit of the fractional-order PID, γ is the integral order of the fractional-order PID, and β is the differential order of the fractional-order PID.
5. The oxygen supply equipment control optimization method according to claim 1, characterized in that: Step S45, simulating the behavior of improving the optimization algorithm of the fennec fox to find prey and avoid predator attacks, the specific method is: S451, the first stage is to find prey, which is the local stage. The bottlenose dolphin optimization algorithm is integrated and the optimal position of the prey is added to improve the algorithm encirclement area θ t Surround the optimal prey position, then use the probability alternation mechanism to update the position, update the population position according to formula (1), and update the oxygen flow fractional-order PID controller parameter solution set S452, the second stage is to search for prey, which is the global stage. Based on the escape of the fennec fox, the global search space is scanned, the population position is updated according to formula (2), and the parameter solution set of the oxygen flow fractional-order PID controller is updated: In the formula, is the j-th dimension position of the ith fennec fox to be updated in the second stage, is the j-th random position of the ith fennec fox in the second stage, is the fitness value of the random position of the i-th fennec fox, F i is the current fitness value of the i-th fennec fox.
