An intelligent temperature control algorithm suitable for livestock and poultry waste treatment
Through the modeling of the livestock and poultry breeding waste treatment system and the fuzzy PID intelligent temperature control algorithm, the problems of instability and low precision of temperature control in the aerobic fermentation system are solved, and efficient and low-carbon livestock and poultry manure are realized. processing, improving the intelligence level of the system.
Patent Information
- Application Number
- CN202210426621.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-04-22
AI Technical Summary
The existing temperature control algorithm in the livestock and poultry manure treatment aerobic fermentation system has unsatisfactory output stability, large power waste, low control accuracy, time-consuming and labor-intensive PID parameter adjustment, and lack of intelligent control, making it difficult to meet the requirements of high efficiency and high efficiency. demand for low-carbon and green development.
An intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment is designed. By modeling the aerobic fermentation system, the transfer function is obtained, and the fuzzy PID intelligent temperature control algorithm is used to adaptively adjust the PID parameters to increase the temperature. Control accuracy and system stability.
It significantly improves the temperature control accuracy and system stability, reduces overshoot and power consumption, realizes efficient, low-carbon, and intelligent processing of livestock and poultry waste, adapts to various temperature changes, and has good robustness. Adaptability.
Smart Images

Figure CN114879475B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of livestock and poultry breeding waste treatment, and in particular relates to an intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment. Background Art
[0002] In order to make up for the lack of pork consumption demand, other types of large-scale livestock and poultry farms such as chicken farms, duck farms, sheep farms, etc. are also being built rapidly. The rising demand for livestock and poultry products has promoted the rapid development of animal husbandry, making breeding more and more large-scale, intensive and industrialized, and the overall livestock and poultry breeding volume is also on the rise. However, while the rapidly developing animal husbandry industry guarantees the growing demand for livestock and poultry products, it also generates a large amount of breeding waste, which also brings huge pressure to environmental governance. The resulting livestock and poultry manure problem will become more serious than before.
[0003] On the other hand, the greenhouse gases included in the emission reduction plan in the Kyoto Protocol include carbon dioxide (CO2), methane (CH4), nitrous oxide (N2O), hydrofluorocarbons (HFCS), perfluorinated compounds (PFCS) and sulfur hexafluoride (SF6), among which CO2, CH4 and N2O are the most important greenhouse gases.
[0004] It can be seen that global warming is a topic of common concern to mankind. Among them, greenhouse gas emissions caused by animal husbandry alone account for 17.7% of the global total emissions. The abundant supply of livestock and poultry products provides a reliable guarantee for the people's growing living standards. At the same time, large-scale farming manure will produce a large amount of greenhouse gases such as methane and nitrous oxide.
[0005] N2O is the main type of greenhouse gas in pig farming, accounting for about 52% of the total emissions; CH4 is the second largest emission source, accounting for about 27%, and CO2 accounts for about 21%. The highest proportion of N2O is mainly due to two reasons: first, manure management is the main source of greenhouse gas emissions in pig farming, and all pig N2O emissions come from manure management; second, and most importantly, among the three greenhouse gases, N2O has the strongest greenhouse effect and its CO2 conversion coefficient is the highest. Since 2008, scale farming has become the main body of carbon emissions. In 2015, scale farming carbon emissions accounted for 73.57%, of which medium-scale and large-scale farming accounted for 67.18%. Therefore, greenhouse gas emission reduction in livestock and poultry farming is a necessary path for sustainable agricultural development. Therefore, targeted improvements in production technology and reduction of carbon emissions can achieve sustainable development of animal husbandry.
[0006] According to statistics, the daily excrement discharge of livestock and poultry is proportional to their body weight, 7%-9% for cattle, 5%-9% for pigs, and 10% for chickens; the sewage discharged from producing 1kg of milk is about 12kg, and the sewage discharged from producing 1kg of pork is about 25kg. Table 1 is a table of excrement discharge of livestock and poultry.
[0007] Table 1
[0008]
[0009] Livestock and poultry manure contains some usable substances and nutrients such as N and P. At the same time, livestock and poultry manure also contains more pollutants, such as odor, pathogenic bacteria, sediments, suspended solids, antibiotics, and heavy metals such as Cu and Zn. Aquaculture wastewater also has a large pollution nature. Depending on the type of aquaculture, the pollution characteristics are also very different. Its biochemical oxygen demand (BOD) and chemical oxygen demand (COD) can be as high as 2000-8000m / L and 5000-20000mg / L respectively. According to the test results of the environmental protection department, the COD of livestock and poultry aquaculture wastewater exceeds the standard by 50-60 times, and the BOD exceeds the standard by 70-80 times.
[0010] In summary, the waste discharged from livestock and poultry farms contains a variety of pollutants, mainly including a large number of pathogenic microorganisms in livestock and poultry manure and urine and aquaculture wastewater, as well as ammonia, hydrogen sulfide, indole and other organic substances produced by the decomposition of manure and urine. The hazards caused by these pollutants are mainly reflected in the following aspects:
[0011] (1) Pollution of the atmospheric environment
[0012] The waste discharged by livestock and poultry, and the decomposition of ammonia, hydrogen sulfide, etc., are important sources of air pollution. When the concentration is high, it can seriously threaten the health of nearby residents and bring many inconveniences to the lives of surrounding residents. In the process of breeding, livestock and poultry will inevitably produce a large amount of feces, urine, etc. The odor they emit will not only have a serious impact on the air environment, but also reduce the air quality. They will contain certain toxic substances, which will affect people's health through the spread of air. For example: after the decomposition of livestock and poultry feces and urine by enzymes, a large amount of ammonia will be produced, which will not only threaten the respiratory system of humans and animals, but also cause respiratory bleeding in severe cases, threatening the health of humans and animals. In addition, after the anaerobic degradation of fresh feces of livestock and poultry, a high concentration of hydrogen sulfide will be produced, which will seriously threaten the eyes of humans and animals, and even cause death.
[0013] (2) Aggravating water quality
[0014] If the wastewater from livestock and poultry farming is discharged in an unordered manner, it will pollute the surface water. If it enters the river, it will easily cause eutrophication of the water body, deteriorate the water quality, cause excessive growth of algae, lead to poisoning of aquatic organisms, and cause mass death of fish, threatening the development of the aquaculture industry. Sewage seeping into the ground can also lead to excessive nitrate content in the groundwater, which is difficult to treat and restore, causing persistent pollution.
[0015] (3) Spread of infectious diseases
[0016] The feces excreted by livestock contain a large number of pathogenic microorganisms and parasite eggs, and feces are also a breeding ground for mosquitoes and flies, which will lead to the reproduction and spread of pathogens. If the epidemic prevention and control is not in place, it is very easy to form the spread of viral pathogens. Research results have confirmed that there are currently more than a dozen diseases that can be transmitted to humans through animals, and the main carrier of these pathogens is the feces excreted by livestock. Among the pollution caused by livestock waste, the most serious type of pollution is biological pollution. According to relevant research data, among the current types of infectious diseases in my country, about 130 are caused by livestock and poultry, and pathogenic microorganisms are transmitted through channels such as livestock and poultry feces, secretions and corpses.
[0017] (4) Pollution of farmland environment
[0018] If the wastewater from livestock and poultry farming is directly used to irrigate the fields without treatment, it will seriously poison the crops, causing them to be unripe, mature late, or even fall over. In addition, wastewater with high pollution concentrations will also block the soil gaps, affect soil permeability, and affect soil quality.
[0019] According to the previous analysis, livestock and poultry waste is about 4 billion tons, and urban sludge is nearly 35 million tons. The COD emitted by livestock and poultry waste reaches 12.68 million tons per year, accounting for 95.8% of the total agricultural emissions, and is the main source of non-point source pollution. Therefore, how to transform organic waste into usable "resources" and "energy" according to local conditions and realize resource recycling has become a major issue.
[0020] In summary, organic solid waste is not only a major source of environmental pollution, but also a huge resource and energy reservoir. Although organic waste has high nutrient and energy value, there is still a lack of efficient and energy-saving resource utilization technology.
[0021] The core issue of waste resource utilization is to convert the difficult-to-use elements in organic materials into forms that are easily absorbed and utilized by plants, so as to achieve the dual effects of waste recycling and reducing the spread of pollutants. From the perspective of material and energy circulation, only by returning the waste to the soil can the soil fertility be continuously maintained and the true nutrient element cycle and balance be achieved. Therefore, the development of efficient waste resource utilization technology and methods has become a hot topic and key research topic.
[0022] At present, the main methods for treating livestock and poultry waste include landfill, incineration, anaerobic digestion, aerobic fermentation, etc., which are introduced as follows:
[0023] Landfill: As the most common disposal method, although it requires little investment and is easy to operate, it occupies a large area and is prone to polluting groundwater and air. Therefore, it is not a reasonable and environmentally friendly treatment method. Although sludge can be solidified or treated with lime and other chemicals before landfilling to reduce pollution to the surrounding environment, it is still limited by factors such as limited landfill sites.
[0024] Sludge incineration power generation: The advantages of the treatment are complete harmlessness, good reduction effect, and can generate electricity. Therefore, in economically developed areas with scarce land resources, incineration power generation is the first choice. Although incineration power generation has many advantages, its biggest disadvantage is that the investment and operation costs are too high, and the combustion will also produce greenhouse gases and harmful gases dioxins that pollute the environment.
[0025] Anaerobic digestion treatment: It can not only treat sludge, but also livestock and poultry waste. It mainly produces energy biomass biogas by degrading organic matter through anaerobic microbial fermentation. Anaerobic digestion is a commonly used organic waste disposal method with advantages such as volume reduction, low energy consumption, and production of bioenergy biogas. However, it also has disadvantages such as low biodegradability of sludge solids, low reduction efficiency, long treatment cycle, and unstable biogas yield.
[0026] High-temperature aerobic composting: It is an important means of harmless treatment and resource utilization of livestock and poultry waste. Its essence is the process of organic matter being decomposed and metabolized by microorganisms to produce heat energy, which promotes the transformation of organic matter into stable humus. At the same time, high temperature can kill pathogens and other harmful organisms in the waste, reduce the volume and bulk density of the pile, and facilitate later storage and resource utilization; aerobic fermentation can not only solve the environmental pollution problems caused by large-scale breeding and burning straw, but also develop the organic fertilizer industry, maintain and improve soil fertility, and is of great significance to promoting sustainable agricultural development. In high-temperature composting, fresh organic waste is metabolized and decomposed by aerobic microorganisms to produce heat energy to increase the temperature of the pile, and the humification, stabilization, reduction and harmlessness of organic matter are completed during the entire fermentation cycle.
[0027] Therefore, aerobic fermentation composting technology is one of the mature and effective technologies widely used in the resource utilization of livestock and poultry manure. Based on biological characteristics, the fermentation equipment in livestock and poultry farms uses the decomposition function of microorganisms in nature to automatically control the temperature and oxygen consumption of each level of fermentation, complete high-temperature aerobic fermentation, and make the macromolecular organic matter in the manure completely decomposed within 48 hours under the action of microorganisms, and harmful substances such as pathogens, bacteria, and plant seeds can also be eliminated, ultimately achieving the purpose of harmless treatment. The treated animal manure can be directly used as organic fertilizer, so this equipment can turn waste into treasure and realize the function of environmental protection.
[0028] During the entire aerobic fermentation production process, part of the organic matter in livestock and poultry manure is decomposed through fermentation, reducing the accumulation of livestock and poultry manure and achieving reductive treatment. At the same time, the high temperature generated during the production process can promote the death of various pathogens and parasites in livestock and poultry manure, achieving the purpose of harmless and resourceful treatment of livestock and poultry manure. As far as the fermentation process is concerned, temperature is the most important factor affecting microbial activity and plays a decisive role in composting reaction. Therefore, according to the process requirements, the temperature control of the fermentation tank is crucial in aerobic fermentation technology. When the temperature exceeds 65°C, spores will be formed during the fermentation process, slowing down the decomposition rate; when the temperature is lower than 45°C, the fermentation efficiency will decrease, and it is difficult to ensure the treatment effect of the aerobic fermentation process.
[0029] Therefore, the optimal temperature for aerobic fermentation should be controlled between 45-65°C. Although the theory and equipment of aerobic fermentation technology are relatively mature and complete, it has been widely used in the treatment of wastes such as urban sludge, livestock and poultry manure, and crop straw. However, traditional high-temperature composting technology has many disadvantages such as low fermentation temperature, long fermentation cycle, incomplete harmlessness, and serious odor pollution, which has become a bottleneck restricting its intelligent promotion and application.
[0030] At present, the aerobic fermentation system for livestock and poultry manure treatment on the market generally uses industrial PLC for hardware control. PLC has the advantages of strong anti-interference ability, strong stability, good scalability and reliable operation, so it is mainly used in the field of industrial control and can operate in a variety of complex industrial environments. Its internal temperature control algorithm adopts on / off logic control or PID algorithm, that is, the actual temperature of the fermentation system is detected by the sensing system. If it is not enough to meet the set value, the auxiliary heating is immediately turned on until the temperature reaches the standard; if the temperature exceeds the set value, the heating is stopped immediately. After using PLC devices, the fermentation system has a higher degree of automation and the system is more complex. Through the input and output of PLC, the temperature monitoring, auxiliary heating device, ventilation device, stirring device and other devices of the entire system can be linked and controlled; there are also other aerobic fermentation systems that use hardware circuits based on embedded systems. Embedded systems are highly flexible and have low development costs. Software and hardware can be integrated according to specific needs, so they can also be widely used in parameter detection and intelligent control.
[0031] The shortcomings of the temperature control algorithm in the current aerobic fermentation system for livestock and poultry manure treatment are summarized as follows:
[0032] First, the current temperature control algorithm in aerobic fermentation of livestock and poultry has an unsatisfactory output stability. During the manure treatment process, the aerobic fermentation system has a large overshoot when it starts, resulting in a waste of extra electricity for auxiliary heating of the fermentation tank, which indirectly increases the carbon emissions of the coal-fired power grid, and does not conform to the current low-carbon, green, and environmentally friendly development concept;
[0033] Second, there is no scientific modeling and analysis of the fermentation process, or a true understanding of the transfer function of the controlled object. As a result, the conventional PID algorithm may not achieve the desired control accuracy, and the parameter adjustment is very time-consuming and labor-intensive. As a result, the final effect of aerobic fermentation may not be very ideal.
[0034] Third, it is necessary to vigorously promote the level of intelligence and mechanization in the production process of animals such as pigs, laying hens, broilers, and sheep, so as to promote the development of automation technology and equipment for livestock and poultry production. At present, the temperature control system of aerobic fermentation in livestock and poultry manure treatment generally adopts a simple switch quantity control algorithm or PID control technology, and there is relatively little research and practical application of intelligent control algorithms. Therefore, the current control technology alone cannot meet its process requirements, let alone meet the needs of future intelligent technology development;
[0035] Fourth, the temperature control method used in reality is based on the PID control algorithm in PLC or embedded systems or a more direct relay control method. At present, the traditional on / off control and temperature control accuracy are difficult to meet the requirements of the conditions; although PID control is one of the typical industrial controls, its main difficulty lies in the adjustment of PID parameters. Since it mostly relies on empirical methods, it is often necessary to continuously debug to obtain a reasonable PID parameter to meet the requirements of the system. Moreover, since the PID parameters cannot be adjusted in real time and adaptively, and the temperature of the aerobic fermentation process is dynamically changing, the effect of aerobic fermentation is affected, resulting in many shortcomings such as low manure fermentation temperature, long fermentation cycle, and incomplete harmless treatment. Summary of the invention
[0036] The present invention is made to solve the above-mentioned problems, and aims to provide an intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment.
[0037] The present invention provides an intelligent temperature control algorithm suitable for livestock and poultry waste treatment, which has the following characteristics and includes the following steps: Step 1, modeling the temperature control object of the aerobic fermentation system for manure treatment, and obtaining the transfer function of the temperature control object of the aerobic fermentation system; Step 2, designing a fuzzy PID intelligent temperature control algorithm for the transfer function; Step 3, analyzing the simulation results of the fuzzy PID intelligent temperature control algorithm, and comparing and analyzing the output curve of the simulation results of the conventional PID algorithm. Among them, in step 1, the heating process of the fermentation bin in the aerobic fermentation system is divided into two sub-stages: Sub-stage 1: After the external variable voltage is added to the two ends of the resistor, heat is generated to raise the temperature of the outer protective structure of the resistor to T1°C; Sub-stage 2: The temperature rise generated by the resistor device is conducted to the inside of the fermentation bin through the heat transfer layer, so that the temperature in the fermentation bin rises to T2°C. The modeling process in step 1 is carried out according to two sub-stages, specifically: step 1-1, for sub-stage 1, a mathematical model is established between the resistor T1 and the input voltage U; step 1-2, for sub-stage 2, a relationship model is established between the final heated object measured by the sensor and the outer sheath of the resistor; step 1-3, based on the mathematical model and the relationship model, a relationship model between the temperature rise of the final heated object in the fermentation chamber and the input voltage is established to obtain the transfer function of the temperature control object of the aerobic fermentation system. Step 2 includes the following sub-steps: step 2-1, design a fuzzy PID controller, determine the relevant fuzzy rules and establish a fuzzy control rule table based on the control law of the fuzzy PID controller and the control method of the classical PID; step 2-2, use fuzzy rules to perform fuzzy reasoning, obtain the corresponding PID parameters, and send the PID parameters to the classical PID controller, and design a fuzzy PID intelligent temperature control algorithm.
[0038] The intelligent temperature control algorithm for livestock and poultry waste treatment provided by the present invention may also have the following features: wherein the specific process of step 1-1 is: in the heating model of sub-stage 1, the following variables are used:
[0039]
[0040] According to the knowledge of thermodynamic energy balance, the thermodynamic equilibrium equation of sub-stage 1 is as follows:
[0041]
[0042] Since the heat generated by the resistor is proportional to the square of the control voltage across the resistor, the relationship between the heat Q and the voltage U is nonlinear. i ,u0), the following formula is obtained through linear transformation:
[0043]
[0044] When the variable voltage is applied to both ends of the resistor, a certain delay time is required for the resistor component to heat up. Therefore, the following incremental differential equation is obtained, and a time lag link is added, as shown in formula (3):
[0045]
[0046] make The above equation can be transformed into:
[0047]
[0048] Therefore, the temperature change of the resistor outer protection structure is r The transfer function of the control voltage u across the resistor is:
[0049]
[0050] In the intelligent temperature control algorithm for livestock and poultry waste treatment provided by the present invention, it can also have the following characteristics: wherein, the specific process of step 1-2 is: in the heat conduction model of sub-stage 2, the following variables are used, and the meaning of each variable is as follows:
[0051]
[0052] According to the instantaneous difference between the heat transferred to the final heated object and the heat lost outside the fermentation tank, which is equal to the rate of change of the temperature of the final heated object, the following formula (6) is obtained:
[0053]
[0054] It is assumed that ΔQ1 is proportional to ΔT1, that is, The relationship between the heat lost to the outside of the fermentation tank and the temperature of the final heated object can be expressed approximately as follows:
[0055] Q0=ε f ·k f ·δ f ·A f ·(T out -T f ) (7)
[0056] It can be seen that formula (7) is a linear relationship. At the equilibrium point (T f ,Q0) can be approximately expressed as:
[0057]
[0058] Substituting (8) into (6) we obtain:
[0059]
[0060] After transformation and substitution of the formula, we can get (10). Similarly, the time lag link is considered inside the fermentation chamber:
[0061]
[0062] So that σ=RA f , The above equation can be transformed into:
[0063]
[0064] Therefore, the final temperature change in the fermentation chamber is T f The transfer function of the temperature change T1 of the outer sheath of the resistor is:
[0065]
[0066] In the intelligent temperature control algorithm for livestock and poultry waste treatment provided by the present invention, it can also have the following characteristics: wherein, the specific process of steps 1-3 is: the temperature model of the aerobic fermentation bin in livestock and poultry manure treatment is a second-order inertial control system with a double lag link, specifically as follows:
[0067]
[0068] The flying curve method is used to obtain the coefficient values of the mathematical model in formula (14), and finally the transfer function of the fermentation warehouse controlled object is obtained as follows:
[0069]
[0070] It can be seen from formula (14) that the aerobic fermentation system is a second-order system with a lag link, and the lag time and transfer function of each temperature rise sub-stage are different.
[0071] The intelligent temperature control algorithm for livestock and poultry waste treatment provided by the present invention may also have the following characteristics: In step 2-1, the fuzzy PID controller uses a two-dimensional fuzzy controller. That is, the deviation e of the target temperature value and the deviation change ec are used as inputs, and ΔK P , ΔK I , ΔK D For the output adaptive fuzzy PID controller, the design steps of the fuzzy PID controller are: Step 2-1-1, define the fuzzy sets of input and output and determine the number and category; Step 2-1-2, determine the actual domain of input and output variables; Step 2-1-3, define the membership functions of input and output; Step 2-1-4, determine the relevant fuzzy rules and establish a fuzzy control rule table.
[0072] In the intelligent temperature control algorithm suitable for livestock and poultry waste treatment provided by the present invention, it can also have the following characteristics: wherein, the specific process of step 2-1-1 is: according to the control law of the fuzzy PID controller and the control method of the classical PID, while taking into account the control accuracy, the input error e and the error differential ec are divided into 7 fuzzy sets, which are described in fuzzy language as: NB (negative large), NM (negative medium), NS (negative small), ZO (zero), PS (positive small), PM (positive medium), PB (positive large). That is, the fuzzy subset of the input variable is e, ec = {NB, NM, NS, ZO, PS, PM, PB}. The output ΔK P , ΔK I , ΔK D It is also divided into 7 fuzzy sets, which are also described as: NB (negative large), NM (negative medium), NS (negative small), ZO (zero), PS (positive small), PM (positive medium), PB (positive large). That is, the fuzzy subset of the output variable is ΔK P , ΔK I , ΔK D ={NB, NM, NS, ZO, PS, PM, PB}. The specific process of step 2-1-2 is: according to the temperature control requirements of the fermentation system, the domains of the input and output variables are defined as follows: the domains of the input variables e and ec are: {-3, -2, -1, 0, 1, 2, 3}; the domains of the output variable ΔK P , ΔK I , ΔK DThe domain is: {-3, -2, -1, 0, 1, 2, 3}; and then the quantization factors and proportional factors of the input and output variables can be determined. The specific process of step 2-1-3 is: after the fuzzy set and domain of the error e, error differential ec and control quantity are determined, the membership function is determined for the fuzzy variable, that is, the fuzzy variable is assigned a value and the membership degree of the elements in the domain to the fuzzy variable is determined. For the input error e, the error differential ec adopts a triangular membership function (trimf); for the output K P Change ΔK P , K I Change ΔK I , K D Change ΔK D The triangular membership function (trimf) is used, and the 7 fuzzy subsets are unified through the Matlab Fuzzy Editor. The specific process of step 2-1-4 is: according to the parameter K P , K I , K D The influence of the system output characteristics is summarized in the fermentation temperature control system during operation for different deviations and deviation change rate parameters, K P , K I , K D Self-tuning principle: A. When the deviation is large, select a larger K P and a smaller K D and K I B. When the deviation and the rate of change of the deviation are medium, K P and K D The value of K should be small. I The value of K should be appropriate; C. When the deviation changes slightly, increase K P , K I value, choose K appropriately D , K D The selection principle is: when the deviation change rate is small, K D When the deviation change rate is large, K D Take a smaller value, usually a medium value. Refer to the above self-tuning principles and combine with actual debugging experience to establish the relationship between e, ec, and ΔK. P , ΔK I , ΔK D The fuzzy rules are briefly described as follows:
[0073] 1)If(e is NB)and(ec is NB)then(KP is PB)(KI is NB)(KD is PS);
[0074] 2)If(e is NB)and(ec is NM)then(KP is PB)(KI is NB)(KD is NS);
[0075] 3)If(e is NB)and(ec is NS)then(KP is PM)(KI is NM)(KD is NB); ......
[0077] 49)If(e is PB)and(ec is PB)then(KP is NB)(KI is PB)(KD is PB) The above rules are defined as a fuzzy rule control table, as shown in the following table:
[0078] Parameter ΔK p Fuzzy control rule table
[0079]
[0080] Parameter ΔK i Fuzzy control rule table
[0081]
[0082] Parameter ΔK d Fuzzy control rule table
[0083]
[0084] In the intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment provided by the present invention, it can also have the following characteristics: wherein, step 2-2 specifically includes the following sub-steps: step 2-2-1, selecting a fuzzy reasoning method; step 2-2-2, rule matching and triggering; step 2-2-3, rule reasoning; step 2-2-4, the total output of the fuzzy system; step 2-2-5, defuzzification.
[0085] In the intelligent temperature control algorithm suitable for livestock and poultry waste treatment provided by the present invention, it can also have the following characteristics: wherein, in step 2-2-1, the fuzzy reasoning method selected is the Mamdani type fuzzy reasoning method. The specific process in step 2-2-2 is: after the input error and error differential are given, they are substituted into the membership function respectively, and the membership of the 7 established fuzzy subsets is calculated, and the logarithm of the fuzzy subsets whose membership of the input error and error differential is not zero is counted, and the fuzzy subsets corresponding to the output are found and counted according to the fuzzy control rule table. In step 2-2-3, the rule reasoning is to obtain the rule conclusion through the "and" relationship within the same rule. In step 2-2-4, the total credibility of the fuzzy system is the union of the credibility reasoning of each rule, and several triggered rules are obtained by statistics. The specific process in step 2-2-5 is: applying the fuzzy synthesis reasoning PID parameter tuning algorithm, the kth sampling time is set as:
[0086]
[0087] In the formula is the initial value of the classic PID controller. In summary, using the center of gravity average method, when e=-0.455, ec=0.738, we can deduce: ΔK P =0.35,ΔK I =0.246,Δ K D =-2.44, the value after integrating the above parameters with the initial parameters is K P =20.35, K D =1.26, K I =1.596, which is sent to the classic PID controller.
[0088] Functions and Effects of the Invention
[0089] According to the intelligent temperature control algorithm applicable to livestock and poultry waste treatment involved in the present invention, it includes the following steps: Step 1, modeling the temperature control object of the aerobic fermentation system for manure treatment, and obtaining the transfer function of the temperature control object of the aerobic fermentation system; Step 2, designing a fuzzy PID intelligent temperature control algorithm for the transfer function; Step 3, analyzing the simulation results of the fuzzy PID intelligent temperature control algorithm, and comparing and analyzing the output curve of the simulation results of the conventional PID algorithm. Among them, in step 1, the heating process of the fermentation bin in the aerobic fermentation system is divided into two sub-stages: Sub-stage 1: After the external variable voltage is added to the two ends of the resistor, heat is generated to raise the temperature of the outer protective structure of the resistor to T1°C; Sub-stage 2: The temperature rise generated by the resistor device is conducted to the inside of the fermentation bin through the heat transfer layer, so that the temperature in the fermentation bin rises to T2°C. The modeling process in step 1 is carried out according to two sub-stages, specifically: step 1-1, for sub-stage 1, a mathematical model is established between the resistor T1 and the input voltage U; step 1-2, for sub-stage 2, a relationship model is established between the final heated object measured by the sensor and the outer sheath of the resistor; step 1-3, based on the mathematical model and the relationship model, a relationship model between the temperature rise of the final heated object in the fermentation chamber and the input voltage is established to obtain the transfer function of the temperature control object of the aerobic fermentation system. Step 2 includes the following sub-steps: step 2-1, design a fuzzy PID controller, according to the control law of the fuzzy PID controller and the control method of the classical PID, determine the relevant fuzzy rules and establish a fuzzy control rule table; step 2-2, use fuzzy rules to perform fuzzy reasoning, obtain the corresponding PID parameters, and send the PID parameters to the classical PID controller, and design a fuzzy PID intelligent temperature control algorithm.
[0090] Therefore, the intelligent temperature control algorithm suitable for livestock and poultry waste treatment of the present invention first obtains a more accurate transfer function specifically for the temperature change process of aerobic fermentation of manure (i.e., the controlled object) through scientific analysis, and then designs an adaptive temperature control algorithm on this basis to quickly adjust the PID parameters and meet the temperature control accuracy in the aerobic fermentation process. In addition, it can also have good robustness and universality for various temperature change requirements that may be involved in the fermentation process.
[0091] In addition, the present invention can significantly improve the control accuracy and effect of the existing PID control algorithm, and can efficiently process waste such as manure and sewage in the livestock and poultry breeding process during operation. At the same time, the output stability, overshoot, temperature rise response time, etc. of the control system are greatly improved, which can better ensure the harmless treatment effect of waste such as manure and sewage, and realize the precise, low-carbon and intelligent treatment of greenhouse gases generated in the livestock and poultry breeding process;
[0092] In addition, the intelligent algorithm proposed in the present invention has good robustness and universality, can better adapt to the temperature change characteristics of the aerobic fermentation temperature control system, and can adaptively adjust the parameters of the PID controller to achieve the purpose of rapid response and rapid and stable output;
[0093] In addition, it can be seen from the simulation results that the fuzzy PID control of the present invention has a faster response speed and a smaller overshoot than the conventional PID algorithm, and the adjustment time is also extremely short.
[0094] Finally, the fuzzy PID algorithm of the present invention has better control effect and accuracy than the conventional PID algorithm, and its operation speed is faster than other more complex algorithms. It is also relatively easy to implement in hardware. If it is used in aerobic fermentation temperature control systems in the future, it will have excellent comprehensive control capabilities, which will be of great significance for improving the level of intelligence in the breeding field and has good market promotion value. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] Figure 1 This is a schematic diagram of temperature control for livestock and poultry manure treatment-aerobic fermentation in an embodiment of the present invention;
[0096] Figure 2 This is a block diagram of the fuzzy PID temperature control algorithm for livestock and poultry manure treatment-aerobic fermentation in an embodiment of the present invention;
[0097] Figure 3 It is a display diagram of the membership function of the input and output variables in the embodiment of the present invention in Matlab;
[0098] Figure 4 It is a Simulink structure diagram of a fuzzy PID control system in an embodiment of the present invention;
[0099] Figure 5 is the parameter ΔK in the embodiment of the present invention p Fuzzy regular surface diagram of ;
[0100] Figure 6 is the parameter ΔK in the embodiment of the present invention i Fuzzy regular surface diagram of ;
[0101] Figure 7 is the parameter ΔK in the embodiment of the present invention d Fuzzy regular surface diagram of ;
[0102] Figure 8 is ΔK in the embodiment of the present invention P , ΔK I , ΔK D Schematic diagram of fuzzy control rules;
[0103] Fig. 9is a comparison diagram of response curves of the temperature control algorithm in the embodiment of the present invention and the conventional temperature control algorithm;
[0104] Fig.10 It is a part of the program for calculating two input fuzzy values in the aerobic fermentation-fuzzy PID temperature control algorithm of livestock and poultry manure in the embodiment of the present invention in the PLC software;
[0105] Fig.11 The embodiment of the present invention is about ΔK in the aerobic fermentation of livestock and poultry manure-fuzzy PID temperature control algorithm. P , ΔK I , ΔK D The fuzzy control rules are involved in calling some programs in the PLC software. DETAILED DESCRIPTION
[0106] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the following embodiments and the accompanying drawings specifically illustrate an intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment of the present invention.
[0107] In this embodiment, an intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment is provided.
[0108] Figure 1 It is a schematic diagram of temperature control of livestock and poultry manure treatment-aerobic fermentation in an embodiment of the present invention.
[0109] The aerobic fermentation temperature control system for livestock and poultry manure treatment involved in this embodiment is as follows Figure 1 As shown in the figure, the equipment includes an auxiliary heating device and an intelligent temperature control system. Through multiple temperature sensors placed at different positions in the fermentation bin, the temperature data of each point is fed back to the temperature control system in real time, and the operation of the auxiliary heating device in the inner and outer wall interlayer of the fermentation bin is controlled through the built-in intelligent temperature control algorithm. Through intelligent control, a suitable aerobic fermentation environment can be effectively and quickly created to achieve the requirements of rapid, efficient and harmless treatment of livestock and poultry manure, so as to achieve the purpose of reduction, low carbonization and resource utilization.
[0110] The entire heating process of the fermentation device can be simply described as follows: the input of the auxiliary heating device is a 50HZ single-phase AC voltage of 0 to 220V, and a certain proportion of 0-220V variable AC voltage is output through an intelligent algorithm, and then the resistive heating medium at several arrow points in the fermentation tank is heated to generate heat, and the heat is transferred to the final controlled object located in the fermentation bin through the heat conductive layer.
[0111] The specific steps of the intelligent temperature control algorithm applicable to livestock and poultry breeding waste treatment in this embodiment are:
[0112] Step S1, modeling the temperature control object of the aerobic fermentation system for manure treatment, and obtaining the transfer function of the temperature control object of the aerobic fermentation system.
[0113] In step S1, in order to accurately and scientifically model the temperature control process in the aerobic fermentation tank for manure treatment, this embodiment first assumes that the heating process of the fermentation tank can be divided into two sub-stages:
[0114] Sub-stage 1: After the external variable voltage is applied to both ends of the resistor, heat is generated to raise the temperature of the resistor outer protective structure to T1°C;
[0115] Sub-stage 2: The temperature rise generated by the resistance device is conducted to the interior of the fermentation bin through the heat transfer layer, causing the temperature inside the fermentation bin to rise to T2°C.
[0116] In this embodiment, the entire heating process is considered to be composed of the above two sub-stages in series, so they are modeled separately first and then processed in sequence. The modeling process can be divided into the following three steps:
[0117] Step S1-1, for sub-stage 1, a mathematical model is established between the resistor T1 and the input voltage U. The specific process is:
[0118] In the heating model of sub-phase 1, the following variables are used:
[0119]
[0120] According to the knowledge of thermodynamic energy balance, the thermodynamic equilibrium equation of sub-stage 1 is as follows:
[0121]
[0122] According to relevant information, the heat generated by the resistor is proportional to the square of the control voltage across the resistor, so the relationship between the heat Q and the voltage U is nonlinear. i ,u0), the following formula is obtained through linear transformation:
[0123]
[0124] When the variable voltage is applied to both ends of the resistor, a certain delay time is required for the resistor component to heat up. Therefore, the following incremental differential equation is obtained, and a time lag link is added, as shown in formula (3):
[0125]
[0126] make The above equation can be transformed into:
[0127]
[0128] Therefore, the temperature change of the resistor outer protection structure is r The transfer function of the control voltage u across the resistor is:
[0129]
[0130] Step S1-2, for sub-stage 2, establish a relationship model between the final heated object measured by the sensor and the outer sheath of the resistor. The specific process is:
[0131] In the heat conduction model of sub-stage 2, the following variables are used, and their meanings are as follows:
[0132]
[0133] According to the instantaneous difference between the heat transferred to the final heated object and the heat lost outside the fermentation tank, which is equal to the rate of change of the temperature of the final heated object, the following formula (6) is obtained:
[0134]
[0135] This embodiment considers that ΔQ1 is proportional to ΔT1, that is,
[0136] The relationship between the heat lost to the outside of the fermentation tank and the temperature of the final heated object can be expressed approximately as follows:
[0137] Q0=ε f ·k f ·δ f ·A f ·(T out -T f ) (7)
[0138] It can be seen that formula (7) is a linear relationship. At the equilibrium point (T f ,Q0) can be approximately expressed as:
[0139]
[0140] Substituting (8) into (6) we obtain:
[0141]
[0142] After transformation and substitution of the formula, we can get (10). Similarly, the time lag link is considered inside the fermentation chamber:
[0143]
[0144] So that σ=RA f , The above equation can be transformed into:
[0145]
[0146] Therefore, the final temperature change in the fermentation chamber is T f The transfer function of the temperature change T1 of the outer sheath of the resistor is:
[0147]
[0148] Step S1-3, based on the mathematical model and the relational model, establish the relational model between the temperature rise of the final heated object in the fermentation chamber and the input voltage, and obtain the transfer function of the temperature control object of the aerobic fermentation system. The specific process is:
[0149] Since the process of resistance heating is a process of series heat transfer and loss, we can get the transfer function formula of the whole system. Therefore, the temperature model of the aerobic fermentation bin in livestock and poultry manure treatment is a second-order inertial control system with double lag links, as follows:
[0150]
[0151] The flying curve method is used to obtain the coefficient values of the mathematical model in formula (14), and finally the transfer function of the fermentation warehouse controlled object is obtained as follows:
[0152]
[0153] From equation (14), it can be seen that the aerobic fermentation system is a second-order system with a lag link, and the lag time and transfer function of each temperature rise sub-stage are different. Therefore, when using the traditional PID control method, the change of temperature in the fermentation bin cannot reflect the disturbance of the system in time. The action of PID needs a pure lag time to affect the change of temperature in the bin. When the lag time is large, the system will have a large overshoot and obvious oscillation. Therefore, the existing extensive on / off control or conventional PID control algorithm cannot meet the control requirements.
[0154] Fuzzy control is to express the operator's or expert's experience and knowledge as fuzzy rules that can be described by language variables, and then use these rules to control. It has the characteristics of being able to adapt to the nonlinearity and time-varying nature of the controlled object, and has good robustness. However, its disadvantage is that the steady-state control accuracy is poor. Due to the lack of integral control, the static error of the system is often unable to be eliminated. When the variable classification is not enough, blind spots or dead zones often appear near the equilibrium point. This is determined by the inherent properties of the fuzzy controller. The fuzzy PID controller formed by the combination of the fuzzy controller and the PID controller essentially uses fuzzy logic to optimize the three parameters of PID: proportional, integral, and differential in real time according to certain fuzzy rules, thereby overcoming the disadvantage that traditional PID cannot adjust parameters in real time. Therefore, the fuzzy PID algorithm has strong robustness, can adjust parameters in real time, has high control accuracy, and can theoretically solve problems such as nonlinearity, time-varying, and lag.
[0155] Step S2, designing a fuzzy PID intelligent temperature control algorithm according to the transfer function.
[0156] Fuzzy PID controllers have various structural forms, but their working principles are basically the same, that is, using the basic principles and methods of fuzzy mathematics, the conditions of the rules and system operations are represented by fuzzy sets, and these fuzzy control rules and related information are stored as knowledge in the computer's knowledge base. The computer then uses fuzzy reasoning based on the actual response of the system to achieve optimal adjustment of the PID parameters.
[0157] The fuzzy PID controller of this embodiment is based on the empirical control rules summarized after many experiments. It identifies the current operating state of the system and obtains the determined control quantity through fuzzy reasoning, fuzzy judgment and defuzzification process to achieve online control of the controlled object.
[0158] The specific implementation is as follows:
[0159] Step S2-1, designing a fuzzy PID controller, determining relevant fuzzy rules and establishing a fuzzy control rule table based on the control law of the fuzzy PID controller and the control method of the classical PID.
[0160] The fuzzy PID controller uses a two-dimensional fuzzy controller. That is, the deviation e of the target temperature value and the deviation change ec are used as inputs, and ΔK P , ΔK I , ΔK D is the output of the adaptive fuzzy PID controller.
[0161] Figure 2 It is a block diagram of the fuzzy PID temperature control algorithm for livestock and poultry manure treatment-aerobic fermentation in an embodiment of the present invention.
[0162] like Figure 2As shown, during operation, the PID parameters are modified online using the fuzzy control rules summarized after multiple experiments.
[0163] Therefore, the fuzzy adaptive tuning of PID parameters is to find out the three PID parameters K p , K i , K d The fuzzy relationship between the input quantities e and ec of the target temperature is determined by continuously detecting the changes of e and ec during operation, and the three parameters are modified online according to the fuzzy control principle to meet the different requirements for control parameters at different e and ec, so that the controlled object can always maintain good dynamic and static performance.
[0164] The setting of PID parameters must take into account the effects of the three parameters at different times of livestock and poultry manure fermentation and their interconnected relationships. The fuzzy self-tuning PID is based on the PID control algorithm, by calculating the current system error e and error change rate ec, using fuzzy rules for fuzzy reasoning, and querying the fuzzy matrix table to adjust the parameters. Therefore, the design of the fuzzy controller is divided into the following steps to achieve:
[0165] Step S2-1-1, define the fuzzy sets of input and output and determine the number and category.
[0166] According to the control law of fuzzy PID controller and the control method of classical PID, while taking into account the control accuracy, the input error e and the error differential ec are divided into 7 fuzzy sets, which are described in fuzzy language as: NB (negative large), NM (negative medium), NS (negative small), ZO (zero), PS (positive small), PM (positive medium), PB (positive large).
[0167] That is, the fuzzy subset of the input variables is e, ec = {NB, NM, NS, ZO, PS, PM, PB}.
[0168] The output ΔK P , ΔK I , ΔK D It is also divided into 7 fuzzy sets, which are also described as: NB (negative large), NM (negative medium), NS (negative small), ZO (zero), PS (positive small), PM (positive medium), PB (positive large).
[0169] That is, the fuzzy subset of the output variable is ΔK P , ΔK I , ΔK D = {NB,NM,NS,ZO,PS,PM,PB}.
[0170] Step S2-1-2, determine the actual domain of input and output variables.
[0171] According to the temperature control requirements of the fermentation system, the domains of various input and output variables are defined as follows:
[0172] The domain of input variables e, ec is: {-3, -2, -1, 0, 1, 2, 3}
[0173] Output variable ΔK P , ΔK I , ΔK D The domain is: {-3, -2, -1, 0, 1, 2, 3}
[0174] Then the quantization factor and proportional factor of the input and output variables can be determined. The purpose of introducing the quantization factor and proportional factor is to map the physical input parameters of the temperature control system into the fuzzy domain. After the fuzzy rule decision-making judgment inside the temperature controller, the final fuzzy output is changed back to the precise output to control the external variable voltage heating signal.
[0175] Step S2-1-3, define the membership functions of input and output.
[0176] After the fuzzy set and domain of error e, error differential ec and control quantity are determined, the membership function is determined for the fuzzy variables, that is, the fuzzy variables are assigned values and the membership degree of the elements in the domain to the fuzzy variables is determined.
[0177] After multiple experiments and trials, this embodiment finally makes the following provisions:
[0178] For the input error e, the error differential ec adopts the triangular membership function (trimf); for the output K P Change ΔK P , K I Change ΔK I , K D Change ΔK D The triangle membership function (trimf) is used, and the seven fuzzy subsets are unified and implemented through the Matlab Fuzzy editor.
[0179] Figure 3 It is a display diagram of the membership function of the input and output variables in the embodiment of the present invention in Matlab.
[0180] Step S2-1-4, determine the relevant fuzzy rules and establish a fuzzy control rule table.
[0181] According to the parameter K P , K I , K D The influence of the system output characteristics is summarized in the fermentation temperature control system during operation for different deviations and deviation change rate parameters, K P , KI , K D Self-tuning principle:
[0182] A. When the deviation is large, in order to speed up the system response and prevent the differential oversaturation caused by the instantaneous increase in the deviation when the temperature starts to rise, causing the temperature rise value to exceed the allowable range, a larger K should be selected. P and a smaller K D In addition, to prevent integral saturation and avoid large overshoot response of the system, K I The value should be smaller.
[0183] B. When the deviation and the rate of change of the deviation are medium, in order to reduce the overshoot of the system response and ensure a certain response speed, K P In this case, K D The value of has a great impact on the system and should be smaller. I The value of should be appropriate;
[0184] C. When the deviation changes slightly, in order to make the system have better steady-state performance, K should be increased. P , K I At the same time, in order to avoid the output response oscillating near the set value and considering the anti-interference ability of the system, K should be appropriately selected. D . K D The selection principle is: when the deviation change rate is small, K D Take a larger value; when the deviation change rate is large, K D Use a smaller value, usually medium.
[0185] Refer to the above self-tuning principles and combine with actual debugging experience to establish the relationship between e, ec, and ΔK. P , ΔK I , ΔK D The fuzzy rules are briefly described as follows:
[0186] 1)If(e is NB)and(ec is NB)then(KP is PB)(KI is NB)(KD is PS);
[0187] 2)If(e is NB)and(ec is NM)then(KP is PB)(KI is NB)(KD is NS);
[0188] 3)If(e is NB)and(ec is NS)then(KP is PM)(KI is NM)(KD is NB); ......
[0190] 49)If(e is PB)and(ec is PB)then(KP is NB)(KI is PB)(KD is PB)
[0191] The above rules are defined as a fuzzy rule control table, as shown in the following table:
[0192] Parameter ΔK p Fuzzy control rule table
[0193]
[0194] Parameter ΔK i Fuzzy control rule table
[0195]
[0196] Parameter ΔK d Fuzzy control rule table
[0197]
[0198] Step S2-2, using fuzzy rules to perform fuzzy reasoning, obtain corresponding PID parameters, and send the PID parameters to the classic PID controller to design a fuzzy PID intelligent temperature control algorithm.
[0199] It includes the following sub-steps:
[0200] Step S2-2-1, select fuzzy reasoning method. In this embodiment, the Mamdani type fuzzy reasoning method is selected because its control rule form is more in line with people's thinking and language expression habits, the control strategy can be easily expressed, and the control algorithm is simple.
[0201] Step S2-2-2, rule matching and triggering.
[0202] After the input error and error differential are given, they are substituted into the membership function respectively, and the membership of the 7 established fuzzy subsets is calculated. The logarithm of the fuzzy subsets whose membership of the input error and error differential is not zero is counted. According to the fuzzy control rule table, the fuzzy subset corresponding to the output is found and counted.
[0203] Step S2-2-3, rule reasoning.
[0204] Rule reasoning is to obtain the rule conclusion through the "and" relationship within the same rule.
[0205] Step S2-2-4, the total output of the fuzzy system.
[0206] The total credibility of the fuzzy system is the union of the credibility reasoning of each rule, and several triggered rules are obtained through statistics.
[0207] Step S2-2-5, defuzzification.
[0208] Using the fuzzy synthetic reasoning PID parameter tuning algorithm, the kth sampling time is set as:
[0209]
[0210] In the formula is the initial value of the classic PID controller.
[0211] In summary, using the centroid average method, when e=-0.455, ec=0.738, we can deduce: ΔK P =0.35,ΔK I =0.246, ΔK D =-2.44, the value after integrating the above parameters with the initial parameters is K P =20.35, K D =1.26, K I =1.596, and send it to the classic PID controller, and you can get the ideal control effect in this transient state. If there are other temperature changes during the manure fermentation process, the same is true. This process can be used to get a relatively fast and accurate output control, so the robustness and universality of the algorithm proposed in this patent can be reflected.
[0212] Step S3, analyzing the simulation results of the fuzzy PID intelligent temperature control algorithm, and comparing and analyzing the output curve of the simulation results of the conventional PID algorithm.
[0213] The fuzzy PID algorithm in this embodiment is simulated in Matlab Simulink.
[0214] Figure 4 It is a Simulink structure diagram of the fuzzy PID control system in an embodiment of the present invention.
[0215] Figure 5 is the parameter ΔK in the embodiment of the present invention p Fuzzy regular surface plot.
[0216] Figure 6 is the parameter ΔK in the embodiment of the present invention i Fuzzy regular surface plot.
[0217] Figure 7 is the parameter ΔK in the embodiment of the present invention d Fuzzy regular surface plot.
[0218] Figure 8 is ΔK in the embodiment of the present invention P , ΔK I , ΔK D Schematic diagram of fuzzy control rules.
[0219] In order to illustrate the advancement and practicality of the model proposed in this embodiment for the aerobic fermentation temperature control system of feces, a conventional PID algorithm was designed in the experiment for comparison. The results of the comparative experiment are as follows:
[0220] Fig. 9 It is a comparison diagram of response curves of the temperature control algorithm in the embodiment of the present invention and the conventional temperature control algorithm.
[0221] A temperature step signal is applied to the two controllers respectively, and the response curve results are as follows: Fig. 9 As shown in the figure, it can be seen from the simulation results that the conventional PID response speed is slow and the overshoot is large, close to 8.3%; the fuzzy PID proposed in this patent has a faster response speed than the conventional PID and a smaller overshoot, only 2.4%. Therefore, the fuzzy PID intelligent control algorithm proposed in this patent has a faster response speed and a smaller overshoot, and the adjustment time is also shorter when the fermentation process always encounters new temperature requirements. In the future, it will be promoted in the aerobic fermentation temperature control system of manure treatment and will have better engineering application capabilities.
[0222] Fig.10 It is a partial program of how to calculate two input fuzzy values in the aerobic fermentation of livestock and poultry manure-fuzzy PID temperature control algorithm in the embodiment of the present invention in the PLC software.
[0223] Fig.11 The embodiment of the present invention is about ΔK in the aerobic fermentation of livestock and poultry manure-fuzzy PID temperature control algorithm. P , ΔK I , ΔK D How the fuzzy control rules in PLC software participate in calling some programs.
[0224] like Fig.10 and 11 As shown, due to the long program and protection needs, not all are shown. Based on Siemens STEP 7-MicroWIN SMART software, through the actual programming of PLC hardware and software, the engineering feasibility of the algorithm proposed in this embodiment is further verified.
[0225] Functions and Effects of the Embodiments
[0226] According to the intelligent temperature control algorithm applicable to livestock and poultry waste treatment involved in this embodiment, it includes the following steps: Step 1, modeling the temperature control object of the aerobic fermentation system for manure treatment, and obtaining the transfer function of the temperature control object of the aerobic fermentation system; Step 2, designing a fuzzy PID intelligent temperature control algorithm for the transfer function; Step 3, analyzing the simulation results of the fuzzy PID intelligent temperature control algorithm, and comparing and analyzing the output curve of the simulation results of the conventional PID algorithm. Among them, in step 1, the heating process of the fermentation bin in the aerobic fermentation system is divided into two sub-stages: Sub-stage 1: After the external variable voltage is added to the two ends of the resistor, heat is generated to raise the temperature of the outer protective structure of the resistor to T1°C; Sub-stage 2: The temperature rise generated by the resistor device is conducted to the inside of the fermentation bin through the heat transfer layer, so that the temperature inside the fermentation bin rises to T2°C. The modeling process in step 1 is carried out according to two sub-stages, specifically: step 1-1, for sub-stage 1, a mathematical model is established between the resistor T1 and the input voltage U; step 1-2, for sub-stage 2, a relationship model is established between the final heated object measured by the sensor and the outer sheath of the resistor; step 1-3, based on the mathematical model and the relationship model, a relationship model between the temperature rise of the final heated object in the fermentation chamber and the input voltage is established to obtain the transfer function of the temperature control object of the aerobic fermentation system. Step 2 includes the following sub-steps: step 2-1, designing a fuzzy PID controller, according to the control law of the fuzzy PID controller and the control method of the classical PID, determining the relevant fuzzy rules and establishing a fuzzy control rule table; step 2-2, using fuzzy rules for fuzzy reasoning, obtaining the corresponding PID parameters, and sending the PID parameters to the classical PID controller, and designing a fuzzy PID intelligent temperature control algorithm.
[0227] Therefore, the intelligent temperature control algorithm suitable for livestock and poultry waste treatment in this embodiment first obtains a more accurate transfer function specifically for the temperature change process of aerobic fermentation of manure (i.e., the controlled object) through scientific analysis, and then designs an adaptive temperature control algorithm on this basis to quickly adjust the PID parameters and meet the temperature control accuracy during aerobic fermentation. In addition, it can also have good robustness and universality for various temperature change requirements that may be involved in the fermentation process.
[0228] In addition, this embodiment can significantly improve the control accuracy and effect of the existing PID control algorithm, and can efficiently process waste such as manure and sewage in the livestock and poultry breeding process during operation. At the same time, the output stability, overshoot, and temperature rise response time of the control system are greatly improved, which can better ensure the harmless treatment effect of waste such as manure and sewage, and realize the precise, low-carbon, and intelligent treatment of greenhouse gases generated in the livestock and poultry breeding process;
[0229] In addition, the intelligent algorithm proposed in this embodiment has good robustness and universality, can better adapt to the temperature change characteristics of the aerobic fermentation temperature control system, and can adaptively adjust the parameters of the PID controller to achieve rapid response and rapid and stable output.
[0230] In addition, it can be seen from the simulation results that the fuzzy PID control of this embodiment has a faster response speed and a smaller overshoot than the conventional PID algorithm, and the adjustment time is also extremely short.
[0231] Finally, the fuzzy PID algorithm of this embodiment has stronger control effect and accuracy than the conventional PID algorithm, and its operation speed is faster than other more complex algorithms. It is also relatively easy to implement in hardware. If it is used in aerobic fermentation temperature control systems in the future, it will have excellent comprehensive control capabilities, which will be of great significance for improving the level of intelligence in the breeding field and has good market promotion value.
[0232] The above-mentioned embodiments are preferred examples of the present invention and are not intended to limit the protection scope of the present invention.
Claims
1. An intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment, characterized in that: The following steps are involved: Step 1, modeling the temperature control object of the aerobic fermentation system for manure treatment, and obtaining the transfer function of the temperature control object of the aerobic fermentation system; Step 2, designing a fuzzy PID intelligent temperature control algorithm according to the transfer function; Step 3, analyzing the simulation results of the fuzzy PID intelligent temperature control algorithm, and comparing and analyzing the output curve of the simulation results with those of the conventional PID algorithm, Wherein, in step 1, the heating process of the fermentation bin in the aerobic fermentation system is divided into two sub-stages: Sub-stage 1: After the external variable voltage is applied to both ends of the resistor, heat is generated to raise the temperature of the resistor outer protective structure to T1°C; Sub-stage 2: The temperature rise generated by the resistor is conducted to the interior of the fermentation bin through the heat transfer layer, causing the temperature inside the fermentation bin to rise to T2°C. The modeling process in step 1 is carried out according to two sub-stages, specifically: Step 1-1, for the sub-stage 1, establishing a mathematical model between the resistor T1 and the input voltage U; Step 1-2, for the sub-stage 2, establishing a relationship model between the final heated object measured by the sensor and the outer resistance sheath; Step 1-3, based on the mathematical model and the relationship model, establish a relationship model between the temperature rise of the final heated object in the fermentation bin and the input voltage, and obtain a transfer function of the temperature control object of the aerobic fermentation system, Step 2 includes the following sub-steps: Step 2-1, designing a fuzzy PID controller, determining relevant fuzzy rules and establishing a fuzzy control rule table according to the control law of the fuzzy PID controller and the control method of the classical PID; Step 2-2, using the fuzzy rules to perform fuzzy reasoning, obtain corresponding PID parameters, and send the PID parameters to the classic PID controller to design the fuzzy PID intelligent temperature control algorithm, The specific process of step 1-1 is as follows: In the heating model of sub-stage 1, the following variables are used: According to the knowledge of thermodynamic energy balance, the thermodynamic equilibrium equation of sub-stage 1 is as follows: Since the heat generated by the resistor is proportional to the square of the control voltage across the resistor, the relationship between the heat Q and the voltage U is nonlinear. i ,u0), the following formula is obtained through linear transformation: When the variable voltage is applied to both ends of the resistor, a certain delay time is required for the resistor component to heat up. Therefore, the following incremental differential equation is obtained, and a time lag link is added, as shown in formula (3): make The above equation can be transformed into: Therefore, the temperature change of the resistor outer protection structure is r The transfer function of the control voltage u across the resistor is: The specific process of steps 1-2 is as follows: In the heat conduction model of sub-stage 2, the following variables are used, and the meanings of each variable are as follows: According to the instantaneous difference between the heat transferred to the final heated object and the heat lost outside the fermentation tank, which is equal to the rate of change of the temperature of the final heated object, the following formula (6) is obtained: It is assumed that ΔQ1 is proportional to ΔT1, that is, The relationship between the heat lost to the outside of the fermentation tank and the temperature of the final heated object can be expressed approximately as follows: Q0=ε f ·to f ·δ f ·AND f ·(T out -T f ) (7) It can be seen that formula (7) is a linear relationship. At the equilibrium point (T f ,Q0) can be approximately expressed as: Substituting (8) into (6) we obtain: After transformation and substitution of the formula, we can get (10). Similarly, the time lag link is considered inside the fermentation chamber: So that σ=RA f , The above equation can be transformed into: Therefore, the final temperature change in the fermentation chamber is T f The transfer function of the temperature change T1 of the outer sheath of the resistor is: The specific process of steps 1-3 is as follows: Therefore, the temperature model of the aerobic fermentation chamber in livestock and poultry manure treatment is a second-order inertial control system with double lag links, as follows: The flying curve method is used to obtain the coefficient values of the mathematical model in formula (14), and finally the transfer function of the fermentation warehouse controlled object is obtained as follows: It can be seen from formula (14) that the aerobic fermentation system is a second-order system with a lag link, and the lag time and transfer function of each temperature rise sub-stage are different.
2. The intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment according to claim 1, Features: in, In step 2-1, the fuzzy PID controller uses a two-dimensional fuzzy controller, that is, the deviation e of the target temperature value and the deviation change ec are used as inputs, and ΔK P , ΔK I , ΔK D The design steps of the fuzzy PID controller are as follows: Step 2-1-1, define the fuzzy sets of input and output and determine the number and category; Step 2-1-2, determine the actual domain of input and output variables; Step 2-1-3, define the membership functions of input and output; Step 2-1-4, determine the relevant fuzzy rules and establish the fuzzy control rule table.
3. The intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment according to claim 2, Features: The specific process of step 2-1-1 is as follows: According to the control law of the fuzzy PID controller and the control method of the classical PID, taking into account the control accuracy, the input error e and the error differential ec are divided into 7 fuzzy sets, which are described in fuzzy language as follows: NB (negative large), NM (negative medium), NS (negative small), ZO (zero), PS (positive small), PM (positive medium), PB (positive large), That is, the fuzzy subset of the input variables is e, ec = {NB, NM, NS, ZO, PS, PM, PB}, The output ΔK P , ΔK I , ΔK D It is also divided into 7 fuzzy sets, which are also described as: NB (negative large), NM (negative medium), NS (negative small), ZO (zero), PS (positive small), PM (positive medium), PB (positive large), That is, the fuzzy subset of the output variable is ΔK P , ΔK I , ΔK D ={NB,NM,NS,ZO,PS,PM,PB}, The specific process of step 2-1-2 is as follows: According to the temperature control requirements of the fermentation system, the domains of various input and output variables are defined as follows: The domain of input variables e, ec is: {-3, -2, -1, 0, 1, 2, 3} Output variable ΔK P , ΔK I , ΔK D The domain is: {-3, -2, -1, 0, 1, 2, 3}, which can then determine the quantization factors and scaling factors of the input and output variables. The specific process of step 2-1-3 is as follows: After the error e, error differential ec and fuzzy set and domain of control quantity are determined, the membership function is determined for the fuzzy variable, that is, the fuzzy variable is assigned a value and the membership degree of the elements in the domain to the fuzzy variable is determined. For the input error e, the error differential ec adopts the triangular membership function (trimf); for the output K P Change ΔK P , K I Change ΔK I , K D Change ΔK D The triangular membership function (trimf) is used, and the 7 fuzzy subsets are unified through the Matlab Fuzzy editor. The specific process of step 2-1-4 is as follows: According to the parameter K P , K I , K D The influence of the system output characteristics is summarized in the fermentation temperature control system during operation for different deviations and deviation change rate parameters, K P , K I , K D Self-tuning principle: A. When the deviation is large, choose a larger K P and a smaller K D and K I value; B. When the deviation and the rate of change of the deviation are medium, K P and K D The value of K should be small. I The value of should be appropriate; C. When the deviation changes slightly, increase K P , K I value, choose K appropriately D , K D The selection principle is: when the deviation change rate is small, K D When the deviation change rate is large, K D Take a smaller value, usually medium size, Refer to the above self-tuning principles and combine with actual debugging experience to establish the relationship between e, ec, and ΔK. P , ΔK I , ΔK D The fuzzy rules are briefly described as follows: 1)If(e is NB)and(ec is NB)then(KP is PB)(KI is NB)(KD is PS); 2)If(e is NB)and(ec is NM)then(KP is PB)(KI is NB)(KD is NS); 3)If(e is NB)and(ec is NS)then(KP is PM)(KI is NM)(KD isNB); ...... 49)If(e is PB)and(ec is PB)then(KP is NB)(KI is PB)(KD is PB) The above rules are defined as a fuzzy rule control table, as shown in the following table: Parameter ΔK p Fuzzy control rule table Parameter ΔK i Fuzzy control rule table Parameter ΔK d Fuzzy control rule table 4. The intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment according to claim 1 is characterized in that: in, Step 2-2 specifically includes the following sub-steps: Step 2-2-1, select fuzzy reasoning method; Step 2-2-2, rule matching and triggering; Step 2-2-3, rule reasoning; Step 2-2-4, the total output of the fuzzy system; Step 2-2-5, defuzzification.
5. The intelligent temperature control algorithm suitable for livestock and poultry breeding waste treatment according to claim 4 is characterized in that: in, In step 2-2-1, the fuzzy reasoning method selected is the Mamdani type fuzzy reasoning method. The specific process in step 2-2-2 is: After the input error and error differential are given, they are substituted into the membership function respectively, and the membership of the 7 established fuzzy subsets is calculated. The number of fuzzy subsets whose input error and error differential membership is not zero is counted. According to the fuzzy control rule table, the fuzzy subset corresponding to the output is found and counted. In step 2-2-3, the rule reasoning is to obtain the rule conclusion through the "and" relationship within the same rule. In step 2-2-4, the total credibility of the fuzzy system is the union of the credibility inferences of each rule, and the number of triggered rules is obtained through statistics. The specific process in step 2-2-5 is: Using the fuzzy synthetic reasoning PID parameter tuning algorithm, the kth sampling time is set as: In the formula is the initial value of the classic PID controller, In summary, using the centroid average method, when e = -0.455, ec = 0.738, we can deduce: ΔK P =0.35,ΔK I =0.246, ΔK D =-2.44, the value after integrating the above parameters with the initial parameters is K P =20.35, K D =1.26, K I =1.596, which is sent to the classic PID controller.
Citation Information
Patent Citations
Chicken manure preparing device
CN108164291A
