A method for optimizing control of insulin refrigeration temperature
By improving the giant squid optimization algorithm and optimizing the parameters of the insulin refrigeration temperature PID controller, the problem of traditional PID control being unable to adapt to environmental changes has been solved, the response speed and stability of temperature control have been improved, and the validity period of insulin has been extended.
Patent Information
- Application Number
- CN202410775559.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Traditional PID control cannot adapt to changes in refrigeration equipment or environmental conditions during the insulin refrigeration process, resulting in poor temperature control effects and affecting the stability and validity period of insulin.
By improving the giant trevally optimization algorithm, introducing chaotic mapping, random differential mutation strategy and adaptive factors, optimizing the Kp, Ki, Kd parameters of the temperature PID controller, enhancing the diversity and local search capabilities of the algorithm, and improving the response speed and temperature control stability.
The temperature PID controller can respond to environmental changes faster, reduce temperature fluctuations, ensure the stability of the insulin refrigeration environment, and extend the validity period of insulin.
Smart Images

Figure CN118502510B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of PID control optimization, and in particular relates to an insulin refrigeration temperature optimization control method. Background Art
[0002] Insulin, as an important drug, mainly regulates blood sugar levels and maintains the stability of the body's internal environment. It is crucial for blood sugar management in diabetic patients. Since the activity and efficacy of insulin are extremely sensitive to temperature, it must be refrigerated and stored within the temperature range of 2-8°C. Too high or too low temperatures will cause insulin to degrade and become ineffective, thus affecting its therapeutic effect. Therefore, temperature control during the refrigeration process of insulin plays a key role in maintaining the stability of the drug and extending its shelf life.
[0003] During the insulin refrigeration process, the main purpose of temperature control is to ensure the constancy of the internal temperature of the refrigeration equipment and avoid abnormal temperature changes caused by ambient temperature fluctuations or unstable equipment performance; during the insulin refrigeration process, temperature control mainly adopts PID control method; PID control adjusts the output power of the refrigeration equipment according to the deviation between the actual temperature and the target temperature to ensure that the temperature of the refrigeration environment is stable within the range of 2-8°C; traditional PID control relies on precise system models and fixed control parameters. When the refrigeration equipment or environmental conditions change, it cannot adapt to new control requirements, resulting in poor temperature control effect.
[0004] In order to solve the shortcomings of traditional PID control in insulin refrigeration temperature control, the PID control parameters are optimized by intelligent optimization algorithm, which can improve the adaptability and control accuracy of temperature PID controller in the process of insulin refrigeration. The Giant Trevally Optimization Algorithm (GTO) is a bio-inspired algorithm, which is inspired by the process of giant trevallies swimming and hunting in the sea. Among them, foraging movement mode, choosing a suitable area according to the amount of food, and jumping out of the water to attack and capture prey are the main inspirations for the design of the GTO algorithm. Although the Giant Trevally Optimization Algorithm has a fast search speed in the early stage of algorithm iteration, its local search ability is weak, and it is easy to fall into the local optimal solution in the later stage of algorithm iteration. Summary of the invention
[0005] The purpose of the present invention is to propose an insulin refrigeration temperature optimization control method, by improving the giant trevally optimization algorithm to adjust the temperature PID controller parameters of the insulin refrigeration control system, so that the temperature PID controller can respond to ambient temperature changes more quickly, reduce the overshoot of the controller, and thus ensure the temperature stability in a complex insulin refrigeration environment, and reduce the impact of temperature fluctuations on insulin activity.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] An insulin refrigeration temperature optimization control method, the specific steps are:
[0008] Step 1: Design the temperature PID controller of the insulin refrigeration control system and establish a simulation model for the temperature PID controller.
[0009] Step 2: Improve the giant trevally optimization algorithm. There are three improvements, including: (1) introducing chaotic mapping to improve the algorithm's position initialization formula; (2) introducing random difference mutation strategy to improve the position update formula in the algorithm's region selection phase; (3) introducing adaptive factors to improve the step length formula of the giant trevally's jump slope when attacking prey.
[0010] Step 3: Establish the improved giant trevally optimization algorithm mathematical model, combine it with the temperature PID controller model, and iteratively search for the optimal Kp, Ki, and Kd parameters.
[0011] Step 4: Output the optimal parameters found by the improved giant trevally optimization algorithm and run the temperature PID controller simulation model.
[0012] More specifically, in step 1, the temperature PID controller includes: a target temperature value Tref, a subtractor module, a temperature PID controller module, an improved giant trevally optimization algorithm module, a temperature sensor module, and a controlled object module.
[0013] More specifically, in step 2, the giant trevally optimization algorithm is improved, and there are three improvements, specifically:
[0014] Step 1: Introduce the chaos mapping to improve the algorithm position initialization formula and enhance the diversity of population distribution. The improved formula is:
[0015] (1);
[0016] (2);
[0017] In the formula, This is the individual with sequence number 1 in the giant trevally population. is the upper bound of the population position, is the lower bound of the population position, is a random number between (0, 1], is the i-th individual in the population, i = 1,…,N, N is the population size of giant trevally, The value is 2;
[0018] Step 2: Introduce the random difference mutation strategy to improve the position update formula in the region selection phase of the algorithm, which helps the algorithm to jump out of the local optimal solution when it is trapped in the local optimal solution. The improved formula is:
[0019] (3);
[0020] In the formula, is the new position of individual i calculated by the improved formula, is the position of individual i in the previous iteration, is the best individual position in the current iteration, is the position of an individual randomly selected from the population, is the average value of all individual positions in the current iteration of the population, and All are random numbers between (0, 1];
[0021] Step 3: Introduce adaptive factors to improve the step length formula of the jumping slope of giant trevally when attacking prey. The improved step length formula is:
[0022] (4);
[0023] In the formula, is the jumping slope of the giant trevally when attacking its prey. It is changed from linear decreasing to nonlinear decreasing, which enhances the local search ability of the algorithm. t is the current iteration number, and T is the total iteration number.
[0024] More specifically, in step 3, an improved mathematical model of the giant trevally optimization algorithm is established, and the specific steps are:
[0025] S1. Select ITAE as the objective function of the algorithm. ITAE takes into account the accumulation effect of error over time, so that the control system not only pays attention to the size of the error, but also pays attention to the length of time the error exists. The formula of ITAE is:
[0026] (5);
[0027] In the formula, J is the fitness value calculated by the objective function, e(τ) is the error value between the target temperature and the actual temperature, and τ is the running time of the PID control model;
[0028] S2, initialize the algorithm parameters, including the population size N, the total number of iterations T, the algorithm search space upper and lower bounds ub, lb and other parameters, and encode the Kp, Ki, Kd parameters of the temperature PID controller into the individual dimension dim of the algorithm;
[0029] S3, introduce the chaos mapping to improve the algorithm position initialization formula, the improved algorithm position initialization formula is the same as above, calculate the initial position of all individuals in the population, and calculate the fitness of all individual positions in the population through the objective function;
[0030] S4. According to the principle that the smaller the fitness, the better the individual position, the better the algorithm performance, the individual position with the smallest fitness is recorded as the best individual position of the population through sorting, and the fitness of this individual is the best fitness of the population;
[0031] S5, the algorithm enters the extensive search phase, and the position update formula in the extensive search phase is:
[0032] (6);
[0033] In the formula, is the new position of the i-th individual after update, is the best individual position of the population in the current iteration, is the row vector that conforms to the Rhine flight distribution, and is a random number between (0, 1], ub and lb have the same meaning as above;
[0034] S6, the algorithm enters the region selection stage, and introduces a random difference mutation strategy to improve the position update formula in the region selection stage. The improved position update formula is the same as above;
[0035] S7, the algorithm enters the attack prey stage, and the position update formula in the attack prey stage is:
[0036] (7);
[0037] In formula (7), is the updated position of the i-th individual, The speed at which the giant trevally leaps out of the water to attack its prey. The visual distortion of the giant trevally when it sees its prey from the water. The adaptive factor is introduced to improve the jumping slope of giant trevally when attacking prey. The step length formula of ;
[0038] Going deeper, The calculation formula is:
[0039] (8);
[0040] In formula (8), is the position of the i-th individual in the current iteration, Represents the refraction angle of the light, which is a random number between (0, 360], is the fitness of the i-th individual in the current iteration;
[0041] Going deeper, The calculation formula is:
[0042] (9);
[0043] In formula (9), represents the incident angle of the light, represents the distance between the giant trevally and its prey;
[0044] Going deeper, The calculation formula is:
[0045] (10);
[0046] In formula (10), and represent the absolute refractive index of water and air respectively, The value is 1.0029. The value is 1.33, arcsin() is the inverse sine function, and sin() is the sine function;
[0047] Going deeper, The calculation formula is:
[0048] (11);
[0049] In formula (11), is the best individual in the population in the current iteration, is the i-th individual in the current iteration;
[0050] S8. Determine the best individual in the population through greedy selection and record the fitness of the best individual in the population. The formula for greedy selection is:
[0051] (12);
[0052] In the formula, is the best individual in the population after greedy selection, is the best individual in the population in the current iteration, is the updated position of the i-th individual after the attack prey phase, for The fitness of for Adaptability;
[0053] S9. Determine whether the number of iterations t is greater than the total number of iterations T. If so, output the best individual, decode the three dimensional values of the best individual into Kp, Ki, and Kd parameters of the temperature PID controller, and pass them into the temperature PID controller.
[0054] More specifically, in the step four, the optimal parameters found by the improved giant trevally optimization algorithm are output, and the temperature PID controller simulation model is run. The specific steps are: first, the optimal Kp, Ki, and Kd parameters are passed in and the temperature PID controller is run, and the difference e (τ) between the target temperature and the actual temperature is calculated, and the difference e (τ) is passed in to the temperature PID controller optimized by the improved giant trevally optimization algorithm; then, after adjustment by the temperature PID controller, the control quantity u (τ) is output to the controlled object, and after the controlled object is run, y (τ) is output; finally, the temperature sensor collects y (τ) and outputs the actual temperature T (τ) to the subtractor module to complete the closed-loop control of the insulin refrigeration temperature PID controller.
[0055] By adopting the above technical solution, the present invention achieves the following beneficial effects:
[0056] The present invention proposes an insulin refrigeration temperature optimization control method. The present invention applies the improved giant trevally algorithm to the parameter setting of the insulin refrigeration temperature PID controller for the first time. The position initialization formula of the algorithm is improved by introducing chaos mapping, the position update formula of the region selection stage of the algorithm is improved by introducing random difference mutation strategy, and the step length formula of the jump slope of the giant trevally individual when attacking prey is improved by introducing adaptive factors. The diversity of solutions and local search capabilities of the algorithm in the initial stage are increased, and the algorithm is helped to jump out of the local optimal solution in the later stage of algorithm iteration, so that the temperature PID controller can respond to temperature changes faster and reduce the overshoot of the controller, thereby ensuring the temperature stability in a complex refrigeration environment and reducing the influence of temperature fluctuations on the stability of insulin. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 Flowchart of temperature PID controller parameters for insulin refrigeration control system tuned to improve the giant trevally optimization algorithm.
[0058] Figure 2 Model diagram of temperature PID controller for improving giant trevally optimization algorithm tuning parameters.
[0059] Figure 3 Simulation model diagram of temperature PID controller for improving giant trevally optimization algorithm tuning parameters.
[0060] Figure 4 Parameter curve of temperature PID controller for insulin refrigeration control system tuned to improve giant trevally optimization algorithm.
[0061] Figure 5 This is a comparison chart of the best fitness between the basic giant trevally optimization algorithm and the improved giant trevally optimization algorithm.
[0062] Figure 6Comparison chart of the effects of adjusting the temperature PID controller parameters of the insulin refrigeration control system using the basic giant trevally optimization algorithm and the improved giant trevally optimization algorithm. DETAILED DESCRIPTION
[0063] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. The following embodiments are only a part of the embodiments of the present invention and are used to more clearly illustrate the technical solutions of the present invention. It can be understood that the specific embodiments are only used to explain the present invention, but the implementation methods of the present invention are not limited thereto.
[0064] The invention proposes an insulin refrigeration temperature optimization control method, which is divided into the following four steps:
[0065] Step 1: Design the temperature PID controller of the insulin refrigeration control system and establish a simulation model for the temperature PID controller. Figure 2 As shown, the temperature PID controller includes: a target temperature value Tref, a subtractor module, a temperature PID controller module, an improved giant scad optimization algorithm module, a temperature sensor module, and a controlled object module; the optimal Kp, Ki, and Kd parameters are passed into and run the temperature PID controller, the difference e (τ) between the target temperature and the actual temperature is calculated, and the difference e (τ) is passed into the temperature PID controller optimized by the improved giant scad optimization algorithm; then, after adjustment by the temperature PID controller, the control quantity u (τ) is output to the controlled object, and after the controlled object is run, y (τ) is output; finally, the temperature sensor collects y (τ) and outputs the actual temperature T (τ) to the subtractor module to complete the closed-loop control of the insulin refrigeration temperature PID controller.
[0066] Step 2: Improve the optimization algorithm of giant trevally. There are three improvements:
[0067] Step 1: Introduce the position initialization formula of the improved chaotic mapping algorithm. The improved formula is:
[0068] (1);
[0069] (2);
[0070] In the formula, This is the individual with sequence number 1 in the giant trevally population. is the upper bound of the population position, is the lower bound of the population position, is a random number between (0, 1], is the i-th individual in the population, i = 1,…,N, N is the population size of giant trevally, The value is 2;
[0071] Step 2: Introduce the random difference mutation strategy to improve the position update formula in the region selection phase of the algorithm. The improved formula is:
[0072] (3);
[0073] In the formula, is the new position of individual i calculated by the improved formula, is the position of individual i in the previous iteration, is the best individual position in the current iteration, is the position of an individual randomly selected from the population, is the average value of all individual positions in the current iteration of the population, and All are random numbers between (0, 1];
[0074] Step 3: Introduce adaptive factors to improve the step length formula of the jumping slope of giant trevally when attacking prey. The improved step length formula is:
[0075] (4);
[0076] In the formula, is the jumping slope of the giant trevally when attacking its prey, which is changed from linear decreasing to nonlinear decreasing. t is the current iteration number, and T is the total iteration number.
[0077] Step 3: Establish a mathematical model of the improved giant trevally optimization algorithm, such as Figure 1 As shown, combined with the temperature PID controller model, iteratively find the optimal Kp, Ki, and Kd parameters. The specific steps are:
[0078] S1. Select the ITAE indicator as the objective function of the algorithm. The formula of ITAE is:
[0079] (5);
[0080] In the formula, J is the fitness value calculated by the objective function, e(τ) is the error value between the target temperature and the actual temperature, and τ is the running time of the PID control model;
[0081] S2, initialize the algorithm parameters, set the population size N to 30, the total number of iterations T to 20, the algorithm search space upper bound ub to 10, the lower bound lb to 0, and encode the Kp, Ki, and Kd parameters of the temperature PID controller as the individual dimension dim of the algorithm;
[0082] S3, introduce the chaos mapping to improve the algorithm position initialization formula, the improved algorithm position initialization formula is the same as above, calculate the initial position of all individuals in the population, and calculate the fitness of all individual positions in the population through the objective function;
[0083] S4. According to the principle that the smaller the fitness, the better the individual position, the better the algorithm performance, the individual position with the smallest fitness is recorded as the best individual position of the population through sorting, and the fitness of this individual is the best fitness of the population;
[0084] S5, the algorithm enters the extensive search phase, and the position update formula in the extensive search phase is:
[0085] (6);
[0086] In the formula, is the new position of the i-th individual after update, is the best individual position of the population in the current iteration, is the row vector that conforms to the Rhine flight distribution, and is a random number between (0, 1], ub and lb have the same meaning as above;
[0087] S6, the algorithm enters the region selection stage, and introduces a random difference mutation strategy to improve the position update formula in the region selection stage. The improved position update formula is the same as above;
[0088] S7, the algorithm enters the attack prey stage, and the position update formula in the attack prey stage is:
[0089] (7);
[0090] In formula (7), is the updated position of the i-th individual, The speed at which the giant trevally leaps out of the water to attack its prey. The visual distortion of the giant trevally when it sees its prey from the water. The adaptive factor is introduced to improve the jumping slope of giant trevally when attacking prey. The step length formula of ;
[0091] Going deeper, The calculation formula is:
[0092] (8);
[0093] In formula (8), is the position of the i-th individual in the current iteration, Represents the refraction angle of the light, which is a random number between (0, 360], is the fitness of the i-th individual in the current iteration;
[0094] Going deeper, The calculation formula is:
[0095] (9);
[0096] In formula (9), represents the incident angle of the light, represents the distance between the giant trevally and its prey;
[0097] Going deeper, The calculation formula is:
[0098] (10);
[0099] In formula (10), and represent the absolute refractive index of water and air respectively, The value is 1.0029. The value is 1.33, arcsin() is the inverse sine function, and sin() is the sine function;
[0100] Going deeper, The calculation formula is:
[0101] (11);
[0102] In formula (11), is the best individual in the population in the current iteration, is the i-th individual in the current iteration;
[0103] S8. Determine the best individual in the population through greedy selection and record the fitness of the best individual in the population. The formula for greedy selection is:
[0104] (12);
[0105] In the formula, is the best individual in the population after greedy selection, is the best individual in the population in the current iteration, is the updated position of the i-th individual after the attack prey phase, for The fitness of for Adaptability;
[0106] S9. Determine whether the number of iterations t is greater than the total number of iterations T. If so, output the best individual, decode the three dimensional values of the best individual into Kp, Ki, and Kd parameters of the temperature PID controller, and pass them into the temperature PID controller.
[0107] Step 4: Output the optimal parameters found by the improved giant trevally optimization algorithm and run the temperature PID controller simulation model. The specific steps are as follows:
[0108] Q1. Establish a simulation model for the temperature PID controller in the insulin refrigeration control system, convert the insulin refrigeration temperature optimization control problem into a mathematical problem to be solved, and design a transfer function to simulate the temperature change in the insulin refrigeration environment. The transfer function is:
[0109] ;
[0110] s is the complex frequency domain variable after Laplace transform;
[0111] Q2. Set the running time of the temperature PID controller simulation model to 50s, the sampling time to 0.5s, the initial temperature to 2°C, and the target temperature to 3°C;
[0112] Q3. Figure 3 As shown, the temperature PID controller model is divided into two parts. The first part is the PID controller area, including: two step signal modules, a subtractor module, a PID control module, an output limit module, a transfer function module, a delay module, and an oscilloscope module;
[0113] Q4. The second part is the ITAE objective function area, including: timer module, absolute value module, multiplier module, integrator module, and output fitness module;
[0114] Q5. Decode the three dimensional values of the optimal individual into the Kp, Ki, and Kd parameters of the temperature PID controller and pass them into the temperature PID controller, such as Figure 4 As shown, the optimal Kp, Ki, and Kd parameters are 7.1902, 0.11441, and 3.5872;
[0115] Q6. Run the temperature PID controller model and observe the temperature curves of the temperature PID controller optimized by the ordinary giant trevally optimization algorithm and the improved giant trevally optimization algorithm through an oscilloscope.
[0116] like Figure 5As shown in the figure, by comparing the fitness curves of the temperature PID controller optimized by the basic giant trevally optimization algorithm and the improved giant trevally optimization algorithm, and analyzing the iteration curves at the beginning, early and late stages of the iteration, it can be seen that at the beginning stage of the algorithm, the fitness of the initial solution of the improved giant trevally optimization algorithm is slightly better than that of the basic giant trevally optimization algorithm. In the early stage of the algorithm iteration, the convergence speed of the improved giant trevally optimization algorithm is much faster than that of the basic giant trevally optimization algorithm. When the basic giant trevally optimization algorithm is iterated to the fifth generation, the algorithm has fallen into the local optimal solution and cannot jump out, while the improved giant trevally optimization algorithm is still searching for algorithm solutions on a large scale. In the late stage of the algorithm iteration, the convergence degree of the improved giant trevally optimization algorithm is much greater than that of the basic giant trevally optimization algorithm. The best fitness of the improved giant trevally optimization algorithm is 8.4712, and the best fitness of the basic giant trevally optimization algorithm is 22.0384. It can be shown that the improved giant trevally optimization algorithm has extremely excellent performance in adjusting the temperature PID controller parameters in the insulin cooling system.
[0117] like Figure 6 As shown, from the analysis of overshoot, response speed, stabilization time and other aspects, it can be seen that the response speed of the temperature PID controller after the parameters are adjusted by the improved giant scad optimization algorithm is greatly improved compared with the temperature PID controller with the basic giant scad optimization algorithm. The stabilization time is greatly reduced. Moreover, although the temperature PID controller after the parameters are adjusted by the improved giant scad optimization algorithm has an extremely fast response speed, the overshoot is extremely small. This shows that it is effective to adjust the temperature PID controller parameters of the insulin refrigeration control system by the improved giant scad optimization algorithm.
[0118] Based on the above-mentioned specific implementation methods and experimental results, the insulin refrigeration temperature optimization control method proposed in the patent of the present invention has excellent performance and sufficient innovation by improving the giant scad optimization algorithm to adjust the temperature PID controller parameters of the insulin refrigeration control system, so that the temperature PID controller can respond to ambient temperature changes more quickly and reduce the overshoot of the controller, thereby ensuring the temperature stability in a complex insulin refrigeration environment and reducing the impact of temperature fluctuations on insulin activity.
Claims
1. A method for optimizing and controlling the refrigerated temperature of insulin, characterized in that: The specific steps are: Step 1, design the temperature PID controller of the insulin refrigeration control system, establish a simulation model for the temperature PID controller, the temperature PID controller includes: target temperature value Tref, subtractor module, temperature PID controller module, improved giant trevally optimization algorithm module, temperature sensor module, controlled object module; Step 2: Improve the optimization algorithm for giant trevally. There are three improvements, including: (1) introducing chaotic mapping to improve the position initialization formula of the algorithm; (2) introducing random difference mutation strategy to improve the position update formula of the region selection stage of the algorithm; (3) introducing adaptive factors to improve the step length formula of the jump slope of giant trevally individuals when attacking prey; Among them, in step 2, the giant trevally optimization algorithm is improved, and an adaptive factor is introduced to improve the step length formula of the jumping slope of the giant trevally when attacking prey. The improved step length formula is: (4); In the formula, is the jumping slope of the giant trevally when attacking prey, which is changed from linear decrease to nonlinear decrease, t is the current iteration number, and T is the total iteration number; Step 3: Establish an improved mathematical model of the giant trevally optimization algorithm, combine it with the temperature PID controller model, and iteratively search for the optimal Kp, Ki, and Kd parameters; Step 4: Output the optimal parameters found by the improved giant trevally optimization algorithm and run the temperature PID controller simulation model.
2. The method for optimizing and controlling the insulin refrigeration temperature according to claim 1, characterized in that: In step 2, the giant trevally optimization algorithm is improved, and there are three improvements, specifically: Step 1: Introduce the position initialization formula of the improved chaotic mapping algorithm. The improved formula is: (1); (2); In the formula, This is the individual with sequence number 1 in the giant trevally population. is the upper bound of the population position, is the lower bound of the population position, is a random number between (0, 1], is the i-th individual in the population, i = 1,…,N, N is the population size of giant trevally, The value is 2; Step 2: Introduce the random difference mutation strategy to improve the position update formula in the region selection phase of the algorithm. The improved formula is: (3); In the formula, is the new position of individual i calculated by the improved formula, is the position of individual i in the previous iteration, is the best individual position in the current iteration, is the position of an individual randomly selected from the population, is the average value of all individual positions in the current iteration of the population, and All are random numbers between (0, 1]; Step 3: Introduce adaptive factors to improve the step length formula of the jumping slope of giant trevally when attacking prey.
3. The method for optimizing and controlling the insulin refrigeration temperature according to claim 1, characterized in that: The mathematical model of the improved giant trevally optimization algorithm was established, and the temperature PID controller model was combined to iteratively find the optimal Kp, Ki, and Kd parameters. The specific steps are as follows: S1. Select the ITAE indicator as the objective function of the algorithm. The formula of ITAE is: (5); In the formula, J is the fitness value calculated by the objective function, e(τ) is the error value between the target temperature and the actual temperature, and τ is the running time of the PID control model; S2, initialize the algorithm parameters, including the population size N, the total number of iterations T, the upper and lower bounds of the algorithm search space ub, lb, and encode the Kp, Ki, and Kd parameters of the temperature PID controller into the individual dimension dim of the algorithm; S3, introduce the chaos mapping to improve the algorithm position initialization formula, the improved algorithm position initialization formula is the same as above, calculate the initial position of all individuals in the population, and calculate the fitness of all individual positions in the population through the objective function; S4. By sorting, select and record the position of the individual with the smallest fitness as the best individual position of the population, and the fitness of this individual is the best fitness of the population; S5, the algorithm enters the extensive search phase, and the position update formula in the extensive search phase is: (6); In the formula, is the new position of the i-th individual after update, is the best individual position of the population in the current iteration, is the row vector that conforms to the Rhine flight distribution, and is a random number between (0, 1], ub and lb have the same meaning as above; S6, the algorithm enters the region selection stage, and introduces a random difference mutation strategy to improve the position update formula in the region selection stage. The improved position update formula is the same as above; S7, the algorithm enters the attack prey stage, and the position update formula in the attack prey stage is: (7); In formula (7), is the updated position of the i-th individual, is the speed at which the giant trevally emerges from the water. is the visual distortion of the giant trevally, is the improved jumping slope of giant trevally, The step length formula is the same as above; S8. Determine the best individual in the population by greedy selection and record the fitness of the best individual in the population; S9. Determine whether the number of iterations t is greater than the total number of iterations T. If so, output the best individual, decode the three dimensional values of the best individual into Kp, Ki, and Kd parameters of the temperature PID controller, and pass them into the temperature PID controller.
4. The method for optimizing and controlling the insulin refrigeration temperature according to claim 1, characterized in that: In the step 4, the optimal parameters found by the improved giant trevally optimization algorithm are output, and the temperature PID controller simulation model is run. The specific steps are: first, the optimal Kp, Ki, and Kd parameters are passed in and the temperature PID controller is run, and the difference e (τ) between the target temperature and the actual temperature is calculated, and the difference e (τ) is passed in to the temperature PID controller optimized by the improved giant trevally optimization algorithm; then, after adjustment by the temperature PID controller, the control quantity u (τ) is output to the controlled object, and after the controlled object is run, y (τ) is output; finally, the temperature sensor collects y (τ) and outputs the actual temperature T (τ) to the subtractor module to complete the closed-loop control of the insulin refrigeration temperature PID controller.
5. The method for optimizing and controlling the insulin refrigeration temperature according to claim 1, characterized in that: In step 3, the algorithm is in the attack prey phase. The calculation formula is: (8); In formula (8), is the position of the i-th individual in the current iteration, Represents the refraction angle of the light, which is a random number between (0, 360], is the fitness of the i-th individual in the current iteration.
6. The method for optimizing and controlling the insulin refrigeration temperature according to claim 1, characterized in that: In step 3, the algorithm is in the attack prey phase, The calculation formula is: (9); In formula (9), represents the incident angle of the light, represents the distance between the giant trevally and its prey; in, The calculation formula is: (10); In formula (10), and represent the absolute refractive index of water and air respectively, The value is 1.0029. The value is 1.33, arcsin() is the inverse sine function, and sin() is the sine function; in, The calculation formula is: (11); In formula (11), is the best individual in the population in the current iteration, is the i-th individual in the current iteration.
7. The method for optimizing and controlling the insulin refrigeration temperature according to claim 1, characterized in that: In step 3, the formula for greedy selection is: (12); In the formula, is the best individual in the population after greedy selection, is the best individual in the population in the current iteration, is the updated position of the i-th individual after the attack prey phase, for The fitness of for The fitness of .
Citation Information
Patent Citations
Stripping temperature control method based on chaotic optimization immune fuzzy PID
CN105320173A
Insulin vehicle-mounted refrigeration equipment based on intelligent control
CN114198963A
