Predictive fuzzy PID control method for intelligent greenhouse

Through the predicted fuzzy PID control method, combined with prediction function and fuzzy PID control, the problem of greenhouse environmental regulation is solved, precise control of temperature and humidity is achieved, and the stability and sustainability of agricultural production are improved.

CN119065229AInactive Publication Date: 2024-12-03YUNNAN AGRICULTURAL UNIVERSITY
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411063630.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-12-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing automatic greenhouse control system is difficult to effectively regulate temperature and humidity, resulting in low control accuracy, unable to adapt to the national climate diversity conditions, and the cost of introducing external systems is high.

Method used

The predicted fuzzy PID control method is adopted, combined with prediction function control and fuzzy PID control, and the PID parameters are adjusted through real-time data processing and fuzzy inference to achieve accurate control of the greenhouse environment.

Benefits of technology

It improves the control accuracy and efficiency of greenhouse environmental parameters, provides the best crop growth environment, reduces the impact of climate change on agriculture, and conforms to the concept of sustainable agriculture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065229A_ABST
    Figure CN119065229A_ABST
Patent Text Reader

Abstract

The invention relates to a predictive fuzzy PID control method for an intelligent greenhouse, and the method comprises the steps: obtaining real-time data of the greenhouse, and the real-time data comprise temperature data and humidity data; based on the real-time data fuzzy quantity, the control quantity and error data, the error data comprises an error value and an error change rate; a target value is obtained based on error data and prediction function control; fuzzy reasoning is carried out on the control target value and the error data, parameters are determined and adjusted, and control signals are generated based on the parameters; and controlling adjustment of the greenhouse equipment based on the control signal to enable the output value of the equipment to be close to the target value, and repeating the steps to realize continuous greenhouse environment control. According to the method, more accurate and efficient control over environmental parameters such as temperature, humidity and illumination is achieved, the optimal growth environment is provided for plants, the quality and yield of agricultural products are improved, the influence of climate changes on agricultural production is relieved, the stable production environment is provided, the concept of sustainable agriculture is met, and sustainable development of agricultural production is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent measurement and control technology, and in particular to a predictive fuzzy PID control method for an intelligent greenhouse. Background Art

[0002] As an advanced agricultural facility, the greenhouse has very important scientific and practical value. It can adjust environmental conditions such as temperature, humidity, light, CO2 concentration, etc. according to different environmental requirements, so as to achieve precise planting management, which makes it occupy an important position in the field of agricultural engineering today and attract more and more attention. The smart greenhouse is an agricultural production method that uses automation technology and control systems to ensure the rapid growth of plants in the best growth environment by accurately controlling environmental parameters.

[0003] There are many factors that affect crop growth in the greenhouse environment. Although in an ideal state, the controller designed in the greenhouse can fully consider the environmental variables and accurately meet the suitable environment required for crop growth. However, due to the nonlinear and time-lag characteristics of environmental variables and the coupling between environmental factors, the design of the controller becomes complicated and the control accuracy is reduced, resulting in a less than ideal greenhouse control effect. Among the environmental variables that affect crop growth, air temperature and air humidity are particularly prominent. Therefore, when designing a greenhouse intelligent controller, the mutual influence between these two variables and the regulatory relationship between them must be fully considered to ensure that the environmental quality in the greenhouse is effectively controlled.

[0004] At present, my country has not yet developed a greenhouse automatic control system that can meet the diverse climate conditions of the country, and the investment in imported systems from abroad is huge and the operating cost is very expensive. Due to the diversity of greenhouse structures and differences in actuators, the implementation of control plans needs to be highly targeted. It is important to combine the greenhouse environmental physical model with the greenhouse environmental factor control method to conduct research on greenhouse optimization control. Summary of the invention

[0005] In order to solve or partially solve the problems existing in the related art, the present application provides a predictive fuzzy PID control method for a smart greenhouse, which realizes the tracking control of temperature and humidity based on the method of environmental control mechanism modeling, and creates a good growth environment for crops.

[0006] In a first aspect, the present application provides a predictive fuzzy PID control method for a smart greenhouse, which is applied to a predictive fuzzy PID controller. The predictive fuzzy PID controller includes a predictive function control and a fuzzy PID controller. The predictive fuzzy PID control method includes the following steps:

[0007] Obtain real-time data of the greenhouse, including temperature data and humidity data;

[0008] Fuzzy processing the real-time data to obtain fuzzy quantity, control quantity and error data, wherein the error data includes error value and error change rate;

[0009] The target value is obtained based on the error data and the prediction function control;

[0010] Perform fuzzy reasoning on the control target value and error data, determine and adjust parameters, and generate control signals based on the parameters;

[0011] Controlling the greenhouse equipment adjustment based on the control signal so that the output value of the equipment is close to the target value;

[0012] Repeat the above steps to achieve continuous greenhouse environmental control.

[0013] Among them, the fuzzy PID controller includes:

[0014] Variable fuzzification: converting input variables and output variables into fuzzy sets, including "low temperature", "suitable temperature" and "high temperature", "slightly dry", "suitable humidity" and "slightly humid";

[0015] Knowledge base, which stores fuzzy rules and membership functions and provides support for fuzzy reasoning;

[0016] Fuzzy reasoning, based on fuzzy rules and the membership of input variables, determines the fuzzy set of output variables through a fuzzy inference engine, which is used to calculate the fuzzy set of output variables;

[0017] Defuzzification interface, which converts the fuzzy output set into a specific control signal based on the maximum membership method. The control signal is used to control the equipment in the greenhouse;

[0018] Online parameter adjustment: Through the fuzzy control rules and the fuzzification results of the input variables, the parameters of the PID controller are adjusted in real time according to the preset benchmark parameters to adapt to different control requirements and changing environments.

[0019] Among them, predictive function control realizes predictive control based on factors, which include basis function, reference trajectory, prediction model, feedback correction and rolling optimization. Basis function provides the basis for the expression of control strategy, reference trajectory indicates the control target, prediction model estimates the future state, feedback correction corrects the prediction error, and rolling optimization continuously adjusts the control strategy according to real-time information.

[0020] The basis function is expressed as:

[0021]

[0022] Where N is the order of the basis function, uj(k) is the linear combination weight coefficient of the basis function, and fj(i) is the value of the basis function at the i-th sampling period.

[0023] Among them, when the basis function is in the form of step, ramp and parabola, the value of the basis function in each sampling period can be expressed as the step function f j (i) = step(ik), ramp function f j (i) = max(0,ik), and the parabolic function f j (i)=max(0,(ik) 2 ), where k is the center position of the basis function, and the value of the basis function is:

[0024]

[0025] f j (i)=F(i,j)

[0026] Where S is the number of fitting points, hs is the time of the sth fitting point, and F is in units of sampling period T.

[0027] Among them, the difference between the output value of the predicted device and the target value is compared by the reference trajectory, and the output value of the device is limited and adjusted to ensure that the output value of the device is close to the target value and remains stable. The reference trajectory at time K+i can be expressed as:

[0028] Y r (k+i)=C(k)-λ I (C(k)-Y P (k))

[0029] C(K)=[c1(k),……,c n (k)] T

[0030]

[0031] Where C(K) is the set value at time K, Ts is the sampling time, Tm is the expected response time of reference trajectory n, and Y P (K) is the actual output of the nth input at time k.

[0032] The prediction model is implemented based on the dynamic matrix algorithm. In the dynamic matrix algorithm, the model parameters {a i} to predict the future output value of the object. The output value formula at the future moment is:

[0033]

[0034] Under the action of M continuous control increments Δu(K),…,Δu(K+M-1), the output value at each moment in the future is predicted:

[0035]

[0036] In the formula, y is the number of times the control quantity changes. is the predicted value at time k for time k+i.

[0037] Among them, in determining and adjusting the parameters, the parameters are PID parameters, and the principle of PID parameters is: determine the proportional gain, integral gain and differential gain according to the size of the error, the size of the error change rate and the system requirements.

[0038] Among them, the PID parameter adjustment steps are:

[0039] The control deviation e and the deviation derivative ec are fuzzyized;

[0040] Calculate the reference parameters Δkp, Δki, Δkd according to the fuzzy control rule table;

[0041] The final control parameters are obtained according to the initial parameters Δk p0, Δk i0, Δk d0 and the benchmark parameters. The formula is:

[0042]

[0043] Among them, fuzzy reasoning of control target value and error data is realized based on fuzzy rules, and fuzzy rules constitute a fuzzy rule control table based on basic control criteria, PID parameter self-tuning rules, and expert experience.

[0044] The technical solution provided by this application may have the following beneficial effects:

[0045] The present application provides a predictive fuzzy PID control method for an intelligent greenhouse, which combines fuzzy control and predictive control to give full play to the advantages of both, and realizes more accurate and efficient control of environmental parameters such as temperature, humidity, and light in the control system, thereby providing plants with an optimal growth environment, thereby improving the quality and yield of agricultural products, alleviating the impact of climate change on agricultural production to a certain extent, providing a stable production environment, complying with the concept of sustainable agriculture, and realizing sustainable development of agricultural production.

[0046] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The above and other objects, features and advantages of the present application will become more apparent through a more detailed description of exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0048] Figure 1 It is a flow chart of the predictive fuzzy PID control method of the present application;

[0049] Figure 2 This is the predictive fuzzy PID control block diagram of the predictive fuzzy PID control method of this application

[0050] Figure 3 It is a schematic diagram of the predictive control structure of the predictive fuzzy PID control method of the present application;

[0051] Figure 4 It is a schematic diagram of the fuzzy language subset membership function of the predictive fuzzy PID control method of the present application;

[0052] Figure 5 It is a schematic diagram of fuzzy rules of the predictive fuzzy PID control method of the present application;

[0053] Figure 6 It is a schematic diagram of the Δkp characteristic surface of the predictive fuzzy PID control method of the present application;

[0054] Figure 7 It is a schematic diagram of the Δki characteristic surface of the predictive fuzzy PID control method of the present application;

[0055] Figure 8 It is a schematic diagram of the Δkd characteristic surface of the predictive fuzzy PID control method of the present application; Figure 1 It is a flow chart of the predictive fuzzy PID control method of the present application. DETAILED DESCRIPTION

[0056] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0057] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0058] In the description of the present application, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0059] Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0060] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0061] In the actual control of greenhouse environment, there are various environmental factors disturbance, which makes it difficult for the control process to accurately match the model, resulting in an error between the target value and the actual value. This error may affect the performance of the controller, so corresponding measures need to be taken to solve this problem.

[0062] refer to Figure 2 , the output value at time k is predicted by the model so that the output follows the target set point. The difference between the predicted output YP(k+P) at time k+P and the set point c is assumed to be the error e, which is obtained using the feedback correction method.

[0063] In controller design, the role of predictive function control (PFC) is only to make predictions, and it does not participate in the actual control of the system. The predictive fuzzy controller requires that the control performance is related to the structure of the control input. In predictive function control (PFC), the control signal is expressed as a combination of a series of basic functions, such as a step function, a slope function, etc. In this embodiment, the step function is selected, and the transfer function of the PFC prediction model used is a first-order model.

[0064] In the predictive fuzzy PID controller, the predictive function control and the fuzzy PID controller work together to achieve precise control of the controlled object by adjusting the parameters of the PID controller and calculating the optimal input value. When the output of the controlled object deviates from the target value, the predictive function model predicts the future output value and passes it to the fuzzy PID controller, which then calculates a control amount to bring the controlled object closer to the target value.

[0065] like Figure 1 The predictive fuzzy PID control method for a smart greenhouse shown is applied to a predictive fuzzy PID controller. The predictive fuzzy PID control method includes the following steps:

[0066] S1. Obtain greenhouse real-time data, including temperature data and humidity data.

[0067] The two main environmental factors, temperature and humidity, are taken as the research objects, and the tracking control of the target values ​​(temperature and humidity in the greenhouse) is realized based on the method of environmental control mechanism modeling. The purpose of effectively controlling the greenhouse environment is achieved through remote control of the actuator to create the best crop growth environment. The real-time temperature and humidity of the greenhouse are detected by sensors as input signals.

[0068] S2. Fuzzy process the real-time data to obtain fuzzy quantity, control quantity and error data, wherein the error data includes error value and error change rate.

[0069] The real-time temperature and humidity data are fuzzified and converted into fuzzy quantities. The fuzzy controller processes the fuzzy quantities and obtains the corresponding control quantity through fuzzy reasoning. Using predictive control technology, the output value of the future system is predicted by calculating the optimal input value and the error and error change rate between the actual input value and the expected input value. If the output of the controlled object differs from the target value, the prediction function model will predict the future output value.

[0070] S3, obtaining a target value based on error data and prediction function control;

[0071] The prediction results and error data are passed to the fuzzy PID controller as input. The fuzzy PID controller uses fuzzy logic reasoning to adjust the parameters of the PID controller to ensure that the system is adjusted as expected. The fuzzy PID controller uses fuzzy logic reasoning to determine the final control quantity to achieve precise control of the controlled object.

[0072] S4, perform fuzzy reasoning on the control target value and the error data, determine and adjust the parameters, and generate a control signal based on the parameters;

[0073] The fuzzy PID controller calculates the final control quantity and applies it to the controlled object to make the system output as close to the target value as possible. The control signal will be transmitted to the actuator to adjust the equipment in the greenhouse environment, such as heaters, coolers, humidifiers, etc. Make the system output as close to the target value as possible

[0074] S5, controlling the greenhouse equipment to adjust based on the control signal so that the output value of the equipment is close to the target value;

[0075] S6. Repeat the above steps to achieve continuous greenhouse environment control.

[0076] Fuzzy PID control adjusts the parameters of the PID controller through fuzzy logic reasoning. The fuzzy PID controller first fuzzifies the deviation e and the deviation derivative ec, and finds the fuzzy relationship between the input variables e and ec, and then corrects the parameters of the PID controller by outputting the PID parameter correction values ​​Δkp, Δki, and Δkd through the fuzzy reasoning and defuzzification process.

[0077] Compared with the traditional PID controller, the fuzzy PID controller has better adaptability and robustness and has been widely used in many industrial fields. The fuzzy controller design includes the following processes:

[0078] (1) Fuzzification of variables

[0079] Determine the basic domain of input variable deviation e and deviation change rate ec and output variables Δkp, Δki, Δkd through experimental data or operating experience;

[0080] Determine the fuzzy domain of input variables and output variables, and fuzzify them into 7 fuzzy subsets. Temperature and humidity have a very large interactive relationship. Generally, high temperature means low humidity, and low temperature means high humidity. The 7 fuzzy subsets have the opposite effect on humidity. In the formulation of fuzzy rules, the relationship between temperature, humidity and carbon dioxide is taken into consideration to conduct comprehensive control of tracking values. Each fuzzy subset represents a degree or direction, including large negative, medium negative, small negative, zero, small positive, medium positive, and large positive. In this embodiment, a Gaussian distribution is used as the membership function, and the editing function of the fuzzy designer in MATLAB is used to establish a fuzzy controller based on the input deviation and input deviation conversion rate inferred by Mamdani, as well as the three outputs of Δkp, Δki, and Δkd. The 7 fuzzy subsets are designed as NB, NM, NS, O, PS, PM, and PB. Based on the above steps, a controller such as Figure 4 The effective fuzzy controller shown is used to achieve precise control of the controlled object.

[0081] (2) Principles of PID parameters

[0082] ① When |e| is large, a relatively large proportional gain kp and a relatively small differential gain kd should be selected. In addition, in order to prevent the integral action from causing over-adjustment, the integral gain ki is usually set to zero. This ensures that the system will not have significant overshoot.

[0083] ② When |e| is of medium size, in order to reduce the overshoot of the system and ensure the system response speed, a relatively small proportional gain kp should be selected. At the same time, the values ​​of proportional gain kp and integral gain ki need to be appropriately selected to ensure that the system has a reasonable response speed. This allows the system to achieve a certain balance between control accuracy and dynamic performance.

[0084] ③ When the error |ec| is small, in order to ensure that the system has good steady-state performance, a relatively large proportional gain kp and integral gain ki should be selected. At the same time, it is necessary to select an appropriate differential gain kd value to ensure that the system has good stability near the set value. When the error |ec| is small, a slightly larger kd value should be selected, and when the error |ec| is large, a slightly smaller kd value should be selected. This will enable the system to have reasonable stability performance within different error ranges and ensure that the system can quickly return to the set state.

[0085] (3) Establishment of fuzzy rules

[0086] Fuzzy rules are based on some basic control criteria and PID parameter self-tuning rules. They are also combined with the rich operating experience of control experts to form a fuzzy rule control table. The control rule table will be designed and optimized according to the actual application scenario to ensure that the control system can maintain stability and robustness under various working conditions. Using these control rules, precise control of the controlled object can be achieved, and the adaptability and flexibility of the control system can be improved, as shown in the following table. These rules can provide guidance for the control of the equipment, help the system respond to changes quickly, and maintain stable operation.

[0087] Table Δkp, Δki, Δkd fuzzy rule table

[0088]

[0089] Use the fuzzy rule editor in the fuzzy logic designer on Matlab software to set fuzzy rules for Δkp, Δki, and Δkd according to the control rules shown in the table above, and establish the completed fuzzy rule view as shown in the figure below. Figure 5 As shown, the output characteristic surface of the fuzzy inference system is as follows Figure 6-Figure 8 shown.

[0090] (4) Parameter online adjustment

[0091] Through the fuzzy control rules introduced above, Δkp0, Δki0, and Δkd0 are used as three reference parameters to adjust the parameters online. Specifically, after the control deviation e and the deviation derivative ec are fuzzy processed, Δkp, Δki, and Δkd are calculated according to the fuzzy control rule table, and combined with the reference parameters Δkp, Δki, and Δkd to obtain the final control parameters. The calculation formula is shown in 2-13. In this way, the PID controller can adapt to changes in real time during operation and maintain the stability and accuracy of the system.

[0092]

[0093] In summary, the main components of the fuzzy PID controller include:

[0094] Fuzzification of variables: Convert input variables and output variables into fuzzy sets, and map the actual input and output to the fuzzy sets by selecting appropriate membership functions and defining fuzzy subsets.

[0095] Knowledge base: A database that stores fuzzy rules and membership functions, including fuzzy rules for input variables and membership functions for output variables. It is used in fuzzy reasoning and decision-making processes.

[0096] Fuzzy reasoning: Based on fuzzy rules and the membership of input variables, the fuzzy set of output variables is determined by the fuzzy reasoning engine. It includes two steps, matching and synthetic reasoning, which are used to calculate the fuzzy set of output variables.

[0097] Defuzzification: Convert the fuzzy set into a specific control signal and determine the final control result through methods such as maximum membership method, average method or centroid method.

[0098] Online parameter adjustment: Through the fuzzy control rules and the fuzzification results of the input variables, the parameters of the PID controller are adjusted in real time according to the preset benchmark parameters to adapt to different control requirements and changing environments.

[0099] Through the above components, the fuzzy PID controller can adjust the parameters of the PID controller in real time according to the input variables and the preset fuzzy rules, thereby achieving precise control of the controlled object. The fuzzy control method has shown good control performance and adaptability in dealing with complex nonlinear systems and fuzzy changing environments.

[0100] Predictive control is a control algorithm. The basic idea is to pay attention to the past state of the target and consider the future target, minimize the deviation between the controlled quantity and the target value, and thus improve the control performance of the system. Among them, predictive function control is a relatively new predictive control algorithm. It introduces the concept of basis function to improve control regularity, response speed and accuracy, while maintaining the advantages of model control. Figure 3 shown.

[0101] Predictive function control implements predictive control based on factors, which include basis functions, reference trajectories, prediction models, feedback correction and rolling optimization. Basis functions provide the basis for expressing control strategies, reference trajectories indicate control targets, prediction models estimate future states, feedback correction corrects prediction errors, and rolling optimization continuously adjusts control strategies based on real-time information.

[0102] (1) Basis functions

[0103] Predictive function control (PFC) considers the newly added control action as a linear combination of several known basis functions, and its output is a weighted combination of the above basis functions in response to the object's response changes

[23] . The form of the basis function can be arbitrary, such as polynomial, trigonometric function, Gaussian function, etc. The selection of basis function should be based on the actual situation of the controlled object to achieve the best prediction effect. Predictive function control predicts future deviations based on the established dynamic model and corrects the current control strategy through a feedback mechanism to achieve precise control of the controlled object. Predictive function control has the advantages of strong adaptability, good stability, and high robustness, and has been widely used in industrial control systems.

[0104]

[0105] Formula (2-1) indicates that the order N of the basis function can be determined based on the tracking set value and the process model. The linear combination weight coefficient u of the basis function j (k) needs to be optimized. j (i) represents the value of the basis function in the i-th sampling period. When the commonly used basis function forms - step, ramp and parabola are used, the value of the basis function in each sampling period can be expressed as step function f j (i) = step(ik), ramp function f j (i) = max(0,ik), and the parabolic function f j (i)=max(0,(ik) 2 ), where k is the center position of the basis function. The value of the basis function is:

[0106]

[0107] f j (i)=F(i,j)(2-3)

[0108] In formula (2-2), S is the number of fitting points; hs is the time of the sth fitting point; and the unit is sampling period T.

[0109] (2) Reference trajectory

[0110] In order to ensure that the system output can reach the preset value in a stable and orderly manner, a method of using a reference trajectory is proposed to limit and adjust the system output value by comparing the difference between the predicted output value and the actual process output value, so as to ensure that the system output can effectively approach the preset value and remain stable. This reference trajectory can be in the form of a first-order exponential. This paper will use the tracking step set value, that is, the reference trajectory is set to a chronic growth trend that gradually approaches the future set value. Through precise control of the reference trajectory, the input and output can be effectively matched in the multivariable system, thereby achieving precise control goals. The reference trajectory at time K+i can be expressed as:

[0111] Y r (k+i)=C(k)-λ I (C(k)-Y P (k))

[0112] C(K)=[c1(k),……,c n (k)] T

[0113]

[0114] Where C(K) is the set value at time K, Ts is the sampling time, Tm is the expected response time of reference trajectory n, and Y P (K) is the actual output of the nth input at time k.

[0115] (3) Model prediction of dynamic matrix

[0116] Dynamic Matrix Control (DMC), compared to traditional control methods based on transfer function or state space model parameter identification, the DMC algorithm does not require these steps. The algorithm takes the response of the controlled object to the step signal as input, and the time lag problem of system process control is often solved by multi-step estimation technology. Dynamic matrix control is to predict the error between the output and the reference value, and use quadratic performance indicators during control, so as to more accurately control the linear object and gradually achieve stability. Therefore, the DMC algorithm can be called an optimal control technology.

[0117] In DMC control, the sampling value a=a(iT) of the controlled object for the unit step signal is set to i, and the sampling period is set to T. If the object is asymptotically stable, its response state will tend to stabilize after tN=NT (a certain moment), so when i>N, the sampling value ai is similar to the steady-state value as=a(∞) of the step response. A finite set {a1, a2, ... aN} is used to approximate the dynamic information of the object. The parameters of this set constitute the model parameters of the DMC algorithm. The model vector is a=[a1, a2, ... aN]T, and the length of the modeling time domain is recorded as N. The simulation program is used to determine the optimization program and calculate the control coefficients d1...dp.

[0118] Using the system model parameters {a i} to predict the future output value of the object. The formula for the output value at the future moment is:

[0119]

[0120] in At time k, assuming that the control action remains unchanged, the initial prediction is used to predict the output at the next N moments.

[0121] If the output value at each moment in the future is predicted under the action of M continuous control increments Δu(K),…,Δu(K+M-1):

[0122]

[0123] In the formula, y is the number of times the control quantity changes. is the predicted value at time k for time k+i.

[0124] (4) Rolling optimization of dynamic matrix

[0125] The goal of the dynamic matrix algorithm is to start at any time k and determine the next M control increments Δu(k),...,Δu(k+M-1) so that the output prediction value of the controlled object at the next P time points under control is As close as possible to the given expected value ①(k+i). In this process, the control time domain and the optimization time domain are represented by M and P respectively. At time k, the control effect of the system can be evaluated as a whole using the optimization performance index.

[0126]

[0127] qi and τj are weight coefficients, which are used to suppress tracking errors and changes in control quantities. In the dynamic matrix algorithm, these weight coefficients are used to adjust the system's optimization performance indicators to make the system more stable and accurately track the expected output value, and minimize changes in control quantities.

[0128] Without considering any constraints, the prediction model can be used to derive the relationship between y~ and Δu in the performance index.

[0129]

[0130] The dynamic matrix A is associated with the prediction model, which consists of P rows and M columns of the step response coefficient a i Composition, k moment, known As the ΔuM(k) that makes J(k) minimized, it can be obtained through the necessary conditions for the extreme value:

[0131]

[0132] The dynamic matrix A is not considered as a solution to be implemented, but only as the value of the immediate control increment Δu(k), which is used to form the actual control signal Δu(k) = Δu(k-1) + Δu(k), which acts on the object. Using the "rolling optimization" strategy, the system will raise a similar optimization problem at the next moment and solve a new optimal solution Δu(k+1). This process will be repeated continuously, that is, the optimization calculation of the dynamic matrix algorithm is re-performed at each moment to obtain the real-time optimal control increment value.

[0133] (5) Dynamic matrix feedback correction

[0134] In practical applications, the predicted values ​​obtained by the prediction model may deviate from the actual values ​​due to various unknown factors such as model mismatch and environmental interference. Therefore, in the next step of optimization, if modeling and optimization are performed based on these false information, the results will be inaccurate. In the DMC algorithm, the actual output y(k+1) of the controlled object is obtained through actual measurement. The output predicted by the model: y~1(k+1 / k). is compared with the actual output to calculate the output error information. This output error information can be used to calibrate the model and adjust the optimization parameters to achieve a more accurate control effect.

[0135]

[0136] Where e(k+1) is the output error information, which can be used to predict future output errors and supplement the model prediction. The error is caused by the lack of causal description, so the time series method is used to predict the output error. A common practice is to weight e(k+1) and then use the corrected result to predict future outputs. This method can improve the control effect and make the model more accurately reflect the actual behavior of the controlled object. The output prediction vector can be expressed as:

[0137]

[0138]

[0139] In the formula, the corrected output prediction vector y cor (k+1), the N-dimensional vector consisting of weight coefficients h = [h1…h N ] is called the correction vector.

[0140] Finally, it should be noted that, in this article, relationships such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms include, include or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0141] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0142] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A predictive fuzzy PID control method for an intelligent greenhouse, applied to a predictive fuzzy PID controller, wherein the predictive fuzzy PID controller includes a predictive function control and a fuzzy PID controller, characterized in that: The following steps are involved: Acquire greenhouse real-time data, the real-time data including temperature data and humidity data; Based on the real-time data fuzzy quantity, control quantity and error data, the error data includes an error value and an error change rate; Based on the error data and the prediction function control, a target value is obtained; Controlling the target value and the error data to perform fuzzy reasoning, determining and adjusting parameters, and generating a control signal based on the parameters; The greenhouse equipment is controlled to adjust based on the control signal so that the output value of the equipment is close to the target value, and the above steps are repeated to achieve continuous greenhouse environment control.

2. The predictive fuzzy PID control method according to claim 1, characterized in that: The fuzzy PID controller comprises: Variable fuzzification, converting input variables and output variables into fuzzy sets, the fuzzy sets include "low temperature", "suitable temperature" and "high temperature", "slightly dry", "suitable humidity" and "slightly humid"; A knowledge base storing fuzzy rules and membership functions to provide support for the fuzzy reasoning; Fuzzy reasoning, based on fuzzy rules and the membership of input variables, determines the fuzzy set of output variables through a fuzzy inference engine, which is used to calculate the fuzzy set of output variables; A defuzzification interface, which converts the fuzzy output set into a specific control signal based on a maximum membership method, wherein the control signal is used to control the equipment of the greenhouse; Online parameter adjustment: Through the fuzzy control rules and the fuzzification results of the input variables, the parameters of the PID controller are adjusted in real time according to the preset benchmark parameters to adapt to different control requirements and changing environments.

3. The predictive fuzzy PID control method according to claim 1, characterized in that: The predictive function control realizes predictive control based on factors, and the factors include basis function, reference trajectory, prediction model, feedback correction and rolling optimization. The basis function provides a basis for expressing the control strategy, the reference trajectory indicates the control target, the prediction model estimates the future state, the feedback correction corrects the prediction error, and the rolling optimization continuously adjusts the control strategy according to real-time information.

4. The predictive fuzzy PID control method according to claim 3, characterized in that: The basis function is expressed as: Where N is the order of the basis function, uj(k) is the linear combination weight coefficient of the basis function, and fj(i) is the value of the basis function at the i-th sampling period.

5. The predictive fuzzy PID control method according to claim 4, characterized in that: When the basis function is in the form of a step, a ramp, or a parabola, the value of the basis function in each sampling period can be expressed as a step function f j (i) = step(ik), ramp function f j (i) = max(0,ik), and the parabolic function f j (i)=max(0,(ik) 2 ), where k is the center position of the basis function, and the value of the basis function is: f j (i)=F(i,j) Where S is the number of fitting points, hs is the time of the sth fitting point, and F is in units of sampling period T.

6. The predictive fuzzy PID control method according to claim 3, characterized in that: The difference between the output value of the device and the target value is predicted by comparing the reference trajectory, and the output value of the device is limited and adjusted to ensure that the output value of the device is close to the target value and remains stable. The reference trajectory at time K+i can be expressed as: Y r (k+i)=C(k)-λ I (C(k)-Y P (k)) C(K)=[c1(k),……,c n (k)] T Where C(K) is the set value at time K, Ts is the sampling time, Tm is the expected response time of reference trajectory n, and Y P (K) is the actual output of the nth input at time k.

7. The predictive fuzzy PID control method according to claim 3, characterized in that: The prediction model is implemented based on a dynamic matrix algorithm, in which the model parameters {a i } to predict the future output value of the object. The output value formula at the future moment is: Under the action of M continuous control increments Δu(K),…,Δu(K+M-1), the output value at each moment in the future is predicted: In the formula, y is the number of times the control quantity changes. is the predicted value at time k for time k+i.

8. The predictive fuzzy PID control method according to claim 1, characterized in that: In the determination and adjustment of parameters, the parameters are PID parameters, and the principle of the PID parameters is: determining the proportional gain, integral gain and differential gain according to the size of the error, the size of the error change rate and the system requirements.

9. The predictive fuzzy PID control method according to claim 1, characterized in that: The PID parameter adjustment steps are: The control deviation e and the deviation derivative ec are fuzzyized; Calculate the reference parameters Δkp, Δki, Δkd according to the fuzzy control rule table; The final control parameters are obtained according to the initial parameters Δkp0, Δki0, Δkd0 and the reference parameters, and the formula is:

10. The predictive fuzzy PID control method according to claim 1, characterized in that: The fuzzy reasoning of controlling the target value and the error data is implemented based on fuzzy rules, and the fuzzy rules constitute a fuzzy rule control table based on basic control criteria, PID parameter self-tuning rules, and expert experience.

Citation Information

Cited By

  • Intelligent temperature and humidity regulation and control method for oyster mushrooms

    CN119759154A

  • Wind matrix system power regulation and control method and device

    CN119801974A

  • Vegetable and fruit greenhouse planting environment control method based on intelligent regulation and control

    CN120447347A

  • Inspection data monitoring method of agricultural robot

    CN121163707A