Temperature control method, system, equipment and medium
By combining incremental PID and fuzzy controllers, the control quantity is dynamically adjusted according to the temperature difference and change characterization value, which solves the problems of complex parameter adjustment and serious overshoot in existing temperature control methods and realizes efficient and flexible temperature control.
Patent Information
- Application Number
- CN202511034734.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2045-07-25
AI Technical Summary
Existing temperature control methods require frequent adjustment of PID parameters when facing different environmental conditions and target temperature points, resulting in high labor costs, difficulty in temperature adjustment, long balancing time and serious overshoot. Fuzzy PID is difficult to adjust parameters under non-expert library conditions.
By combining the incremental PID controller and the fuzzy controller, the temperature control strategy is determined by using the temperature difference and the change characterization value, the control quantity is adjusted dynamically, the dependence on the expert library rules is reduced, and different working conditions can be adapted.
It reduces parameter adjustment costs, shortens balancing time, reduces temperature overshoot, improves the flexibility and reliability of temperature control, and adapts to multiple working conditions.
Smart Images

Figure CN120686918A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial control technology, and in particular to a temperature control method, system, equipment and medium. Background Art
[0002] Existing temperature control usually adopts position PID (Proportion Integration Differentiation, PID refers to proportional, integral, differential control), incremental PID or fuzzy PID algorithms. However, when performing temperature control, existing methods require frequent adjustment of PID parameters for different environmental conditions (such as humidity, air pressure), target temperature points or actuator (heater / cooling system) characteristics, which has high labor costs. Even after manual parameter optimization, when the temperature approaches the set value, overshoot still occurs due to system inertia. When the overshoot condition is met, it will lead to a long stabilization time. In addition, even if fuzzy PID is used, fuzzy PID not only relies on the rules of the expert library, but also the final output is to increase the proportional gain Kp, several time constants Ti, and differential term Td parameters, rather than directly changing the output of the actuator. When the debugging personnel are not familiar with the PID parameters or when working conditions outside the expert library appear, the difficulty of adjusting the parameters of the fuzzy expert library will increase. Problems that cannot be solved by traditional PID parameter adjustment are also difficult to solve by fuzzy PID. Therefore, there is an urgent need for a temperature control method to solve the above technical problems. Summary of the Invention
[0003] The main purpose of the embodiments of the present invention is to provide a temperature control method, system, device and medium, aiming to solve the problems of poor temperature control effect caused by the temperature control methods in related technologies, such as difficulty in temperature adjustment, long balancing time and high labor costs.
[0004] In a first aspect, an embodiment of the present invention provides a temperature control method, comprising:
[0005] Obtaining a first control amount corresponding to a first control unit of a target object at a current moment and a second control amount corresponding to the first control unit of the target object at a previous moment;
[0006] determining a third control amount corresponding to the first control unit according to the first control amount and the second control amount;
[0007] Obtaining the current temperature of the target object at the current moment from the temperature change sequence corresponding to the target object;
[0008] determining a temperature difference according to the current temperature and a target temperature corresponding to the target object;
[0009] Determining a temperature change representation value corresponding to the target object according to the temperature change sequence;
[0010] Determining a temperature control strategy corresponding to the target object according to the temperature difference and the temperature change representation value;
[0011] Determining a target control variable corresponding to the target object according to the temperature control strategy in combination with the third control variable, the temperature difference and the temperature change characterization value;
[0012] The target object is temperature-controlled according to the target control amount to obtain a target control result.
[0013] In a second aspect, an embodiment of the present invention provides a temperature control system, comprising:
[0014] a data acquisition module, configured to obtain a first control amount corresponding to a first control unit of a target object at a current moment and a second control amount corresponding to the first control unit of the target object at a previous moment;
[0015] a data processing module, configured to determine a third control variable corresponding to the first control unit according to the first control variable and the second control variable;
[0016] a temperature determination module, configured to obtain a current temperature of the target object at the current moment from a temperature change sequence corresponding to the target object;
[0017] a difference processing module, configured to determine a temperature difference based on the current temperature and a target temperature corresponding to the target object;
[0018] A temperature analysis module, configured to determine a temperature change representation value corresponding to the target object according to the temperature change sequence;
[0019] a strategy determination module, configured to determine a temperature control strategy corresponding to the target object according to the temperature difference and the temperature change representation value;
[0020] a control determination module, configured to determine a target control variable corresponding to the target object according to the temperature control strategy in combination with the third control variable, the temperature difference, and the temperature change representation value;
[0021] The target control module is used to perform temperature control on the target object according to the target control amount to obtain a target control result.
[0022] In a third aspect, an embodiment of the present invention further provides a terminal device, comprising a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of any one of the temperature control methods provided in the specification of the present invention are implemented.
[0023] In a fourth aspect, an embodiment of the present invention further provides a storage medium for computer-readable storage, characterized in that the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any temperature control method provided in the specification of the present invention.
[0024] An embodiment of the present invention provides a temperature control method, system, device and medium, which includes: obtaining a first control quantity corresponding to a first control unit of a target object at a current moment and a second control quantity corresponding to the first control unit of the target object at a previous moment; determining a third control quantity corresponding to the first control unit based on the first control quantity and the second control quantity, thereby taking into account the dynamic changes of the first control unit. This helps to fine-tune the control process and avoid system instability caused by sudden and large changes in the control amount; obtain the current temperature of the target object at the current moment from the temperature change sequence corresponding to the target object; determine the temperature difference value based on the current temperature and the target temperature corresponding to the target object; determine the temperature change characterization value corresponding to the target object based on the temperature change sequence; determine the temperature control strategy corresponding to the target object based on the temperature difference value and the temperature change characterization value; determine the target control amount corresponding to the target object based on the temperature control strategy in combination with the third control amount, the temperature difference value and the temperature change characterization value, and then comprehensively consider the gap between the current temperature and the target temperature, the temperature change trend and the third control amount of the first control unit, so as to more accurately reflect the actual state of the target object, formulate a control amount that is more in line with actual needs, and achieve precise control of the temperature of the target object. Finally, the temperature of the target object is controlled according to the target control amount to obtain the target control result. This solves the problems of poor temperature control effect caused by the difficulty of temperature adjustment, long balancing time and high labor cost in the temperature control method in the related art. It improves the reliability and flexibility of temperature control. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0026] Figure 1 A schematic flow chart of a temperature control method provided in an embodiment of the present invention;
[0027] Figure 2 A schematic diagram of a conventional temperature control method is provided for an embodiment of the present invention;
[0028] Figure 3 A schematic diagram of a temperature control method is provided for implementing this embodiment;
[0029] Figure 4 A schematic diagram of a temperature cooling method provided by an embodiment of the present invention;
[0030] Figure 5 A schematic diagram of a temperature heating method provided by an embodiment of the present invention;
[0031] Figure 6 A schematic diagram of the module structure of a temperature control system provided by an embodiment of the present invention
[0032] Figure 7 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0034] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0035] It should be understood that the terms used in this specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0036] Embodiments of the present invention provide a temperature control method, system, device, and medium. The temperature control method can be applied to a terminal device, such as a tablet computer, laptop computer, desktop computer, personal digital assistant, wearable device, or other electronic device. The terminal device can also be a server or a server cluster.
[0037] The following embodiments of the present invention are described in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.
[0038] Please refer to Figure 1 , Figure 1 A schematic flow chart of a temperature control method provided in an embodiment of the present invention.
[0039] like Figure 1 As shown, the temperature control method includes steps S101 to S107.
[0040] Step S101: Obtain a first control amount corresponding to a first control unit of a target object at a current moment and a second control amount corresponding to the first control unit of the target object at a previous moment.
[0041] Exemplarily, the target object is a device or apparatus requiring temperature control, for example, an environmental test chamber. The first control unit is a controller for controlling heating or cooling of the target object. For example, the first control unit is an incremental PID controller.
[0042] Exemplarily, a time interval is determined based on historical experience or expert experience, and then after determining the current moment, the moment before the current moment separated by the time interval is determined as the previous moment corresponding to the current moment, thereby obtaining the first control quantity corresponding to the first control unit of the target object such as an environmental test box, such as an incremental PID controller at the current moment, and obtaining the second control quantity corresponding to the first control unit of the target object such as an environmental test box, such as an incremental PID controller at the previous moment.
[0043] Step S102: Determine a third control variable corresponding to the first control unit according to the first control variable and the second control variable.
[0044] Exemplarily, the first control amount and the second control amount are subjected to a difference operation to obtain a third control amount corresponding to the first control unit. For example, the third control amount is obtained by subtracting the second control amount corresponding to the previous moment from the first control amount corresponding to the current moment.
[0045] Step S103: Obtain the current temperature of the target object at the current moment from the temperature change sequence corresponding to the target object.
[0046] Exemplarily, the temperature information corresponding to the target object is obtained in real time by a temperature measuring instrument to determine the temperature change sequence corresponding to the target object. That is, the temperature change sequence includes time information and temperature information corresponding to the time information.
[0047] Exemplarily, the current temperature corresponding to the current moment is obtained from the temperature change sequence, or the current temperature corresponding to the target object at the current moment is directly obtained using a temperature measuring instrument.
[0048] Step S104: determining a temperature difference according to the current temperature and the target temperature corresponding to the target object.
[0049] For example, the target temperature corresponding to the target object is determined according to user requirements, and then the difference between the current temperature and the target temperature is calculated to obtain the temperature difference.
[0050] Step S105: Determine a temperature change representation value corresponding to the target object according to the temperature change sequence.
[0051] For example, a temperature change sequence is a temperature sensor continuously measuring the temperature of a target object over a certain period of time. The measurement interval should be determined based on specific needs and the characteristics of the target object. For example, for an object with a faster temperature change, a shorter measurement interval may be required.
[0052] Exemplarily, the temperature change amount in each time interval is first calculated according to the temperature change sequence, and then the temperature change amounts in all time intervals are added up and divided by the total number of time intervals to obtain the average temperature change rate, and then the average temperature change rate is determined as the temperature change representation value corresponding to the target object.
[0053] In some embodiments, determining the temperature change characterization value corresponding to the target object based on the temperature change sequence includes: determining the temperature change rate corresponding to the target object based on the temperature change sequence; when the output state corresponding to the first control unit is a stable state, determining the maximum change rate corresponding to the target object based on the temperature change rate; obtaining the current temperature rate corresponding to the target object at the current moment, and determining the temperature change characterization value corresponding to the target object based on the current temperature rate and the maximum change rate; when the output state corresponding to the first control unit is not a stable state, determining the temperature change characterization value corresponding to the target object based on the temperature change rate.
[0054] Exemplarily, the temperature change rate is calculated based on temperature information at different moments in the temperature change sequence. For example, the time difference between two adjacent time points and the corresponding temperature difference between the two adjacent time points are obtained from the temperature change sequence, and the corresponding temperature change rate is obtained by dividing the temperature difference by the time difference. Similarly, the temperature change rate corresponding to any two adjacent time points in the temperature change sequence is obtained.
[0055] Exemplarily, different control quantities corresponding to the first control unit at different moments are collected, and then the time difference between adjacent moments and the control quantity difference corresponding to the adjacent moments are calculated, so as to determine the control quantity change value based on the control quantity difference and the time difference. When the difference between any two control quantity change values is in a preset range such as -0.01 to 0.01, it means that the output of the PID controller no longer changes, and then it is determined that the output state corresponding to the first control unit is a stable state, so as to obtain the maximum value of the temperature change rate from all the temperature change rates, and then determine the maximum value as the maximum change rate corresponding to the target object; obtain the current temperature rate corresponding to the target object at the current moment, and then determine the ratio between the current temperature rate and the maximum change rate as the temperature change characterization value corresponding to the target object.
[0056] For example, when the output state corresponding to the first control unit is not a stable state, that is, when the output of the first control unit such as a PID controller is still changing significantly, the corresponding temperature change rate at the current moment is determined as the temperature change representation value corresponding to the target object.
[0057] Specifically, the temperature change representation value corresponding to the target object is not a fixed rate value. When the output of the first control unit no longer increases, the current heating and cooling rate is obtained, and the current heating and cooling rate is defined as the maximum heating and cooling rate; the maximum heating and cooling rate is used as the denominator of the percentage input, and the heating and cooling percentage rate input can be obtained, and the temperature change representation value is a percentage value; this method can realize the temperature change rate adaptation of different models, thereby providing good support for subsequent fuzzy control.
[0058] Step S106: Determine a temperature control strategy corresponding to the target object according to the temperature difference and the temperature change representation value.
[0059] Exemplarily, a machine learning classification model is used to obtain the temperature change type corresponding to the target object based on the temperature difference and the temperature change characterization value. When the temperature change type is a stable change type, the temperature control strategy corresponding to the target object is to obtain a second control unit and assist the first control unit in controlling the target object based on the second control unit; when the temperature change type is a drastic change type, the temperature control strategy corresponding to the target object is to control the target object based on the first control unit.
[0060] In some embodiments, the temperature control strategy corresponding to the target object is determined based on the temperature difference and the temperature change characterization value, including: when the temperature difference is less than a first preset value and the temperature change characterization value is greater than a second preset value, the temperature control strategy is to obtain a second control unit and perform temperature control on the target object based on the first control unit and the second control unit; otherwise, the temperature control strategy is to perform temperature control on the target object based on the first control unit; wherein, the first control unit is a PID controller and the second control unit is a fuzzy controller.
[0061] For example, whether to use the output of the second control unit, such as a fuzzy controller, is selected based on the state of the target object. When the temperature difference is greater than or equal to a first preset value, i.e., the temperature of the target object is far from reaching the set value, the temperature of the target object is controlled solely by the output of the first control unit, such as an incremental PID controller.
[0062] For example, when the temperature difference is less than a first preset value, such as when the current temperature is close to the target temperature, and the temperature change representative value is greater than a second preset value, such as when the heating and cooling rates remain high, a second control unit is obtained, and the temperature of the target object is controlled based on the first and second control units. For example, the output of the fuzzy controller is used to suppress the output of the incremental PID controller. In other words, the output of the first control unit is suppressed based on the output of the second control unit.
[0063] Among them, the first preset value and the second preset value can be set according to actual needs or expert suggestions, and this application does not impose any specific restrictions.
[0064] Step S107 : determining a target control variable corresponding to the target object according to the temperature control strategy in combination with the third control variable, the temperature difference and the temperature change characterization value.
[0065] Exemplarily, when the temperature control strategy is to perform temperature control on the target object according to the first control unit, the target control quantity corresponding to the target object is determined according to the third control quantity; when the temperature control strategy is to perform temperature control on the target object according to the first control unit and the second control unit, the fourth control quantity corresponding to the second control unit is determined using a data prediction model based on the temperature difference and the temperature change characterization value, thereby performing data fusion based on the third control quantity and the fourth control quantity to obtain the target control quantity corresponding to the target object.
[0066] In some embodiments, the target control quantity corresponding to the target object is determined according to the temperature control strategy in combination with the third control quantity, the temperature difference and the temperature change characterization value, including: when the temperature control strategy is to perform temperature control on the target object according to the first control unit, determining the target control quantity according to the third control quantity; when the temperature control strategy is to perform temperature control on the target object according to the first control unit and the second control unit, determining the fuzzy rule base corresponding to the parameter adjustment of the second control unit; determining the fourth control quantity corresponding to the second control unit according to the fuzzy rule base in combination with the temperature difference and the temperature change characterization value, wherein the relationship between the temperature change characterization value and the fourth control quantity is a positive correlation; determining the dynamic adjustment coefficient corresponding to the fourth control quantity, and determining the target control quantity according to the third control quantity and the fourth control quantity in combination with the dynamic adjustment coefficient.
[0067] Exemplarily, the first control unit is an incremental PID controller and the second control unit is a fuzzy controller. When the temperature control strategy is to control the temperature of the target object according to the first control unit, that is, when the temperature of the target object is controlled by the incremental PID controller, the incremental PID controller uses the difference between the first control quantity at the current moment and the second control quantity at the previous moment, that is, the third control quantity, as the new control quantity, that is, the third control quantity is determined as the target control quantity to control the actuator.
[0068] Exemplarily, when the temperature control strategy is to control the temperature of the target object according to the first control unit and the second control unit, that is, an output adjustment link based on the fuzzy controller is added on the basis of the first control unit; the fuzzy controller receives at least two inputs of the temperature difference between the current temperature and the target temperature, and the temperature change characterization value, and then calculates the corresponding output based on the temperature difference and the temperature change characterization value for adjusting the fourth control quantity of the incremental PID controller.
[0069] For example, the fuzzy rule base corresponding to parameter adjustment for the second control unit is determined based on expert experience or historical experience. The fuzzy controller's suppression signal is calculated based on the fuzzy rule base. The fuzzy rule base is configured such that as the current temperature approaches the target temperature and the temperature variation representative value remains large, the fuzzy controller's output gradually increases to suppress the output of the incremental PID controller. A query is then performed in the fuzzy database based on the temperature difference and the temperature variation representative value to obtain the fourth control variable corresponding to the second control unit. The relationship between the temperature variation representative value and the fourth control variable is positively correlated.
[0070] For example, a dynamic adjustment coefficient corresponding to the fourth control variable is determined based on expert experience or historical experience, and a target control variable is determined based on the third and fourth control variables in combination with the dynamic adjustment coefficient. For example, after multiplying the dynamic adjustment coefficient by the fourth control variable corresponding to the second control unit, the target control variable is obtained by subtracting the product of the dynamic adjustment coefficient and the fourth control variable corresponding to the second control unit from the third control variable corresponding to the first control unit.
[0071] For example, in the present application, when the temperature difference is less than or equal to the first preset value, the fuzzy controller output is zero, and it relies entirely on the PID controller for control; when the temperature difference is greater than the first preset value, the fuzzy controller outputs an inhibition signal, and the inhibition strength is output according to the design principle of the fuzzy rule table.
[0072] In some embodiments, determining the fourth control quantity corresponding to the second control unit based on the fuzzy rule base in combination with the temperature difference and the temperature change characterization value includes: obtaining the output percentage corresponding to the actuator in the target object; obtaining the fourth control quantity corresponding to the second control unit from the fuzzy rule base based on the output percentage, the temperature difference and the temperature change characterization value; wherein the relationship between the output percentage and the fourth control quantity is a positive correlation.
[0073] For example, the fuzzy rule base is determined not only on the temperature difference value and the temperature change characterizing value, but also on the output percentage of the actuator or actuator.
[0074] Exemplarily, the suppression strength corresponding to the fuzzy controller is obtained from the fuzzy rule base according to the temperature difference, the temperature change characterization value, and the output percentage of the actuator, and then the fourth control variable corresponding to the fuzzy controller is determined according to the suppression strength.
[0075] For example, the real-time temperature difference in the fuzzy rule base includes negative large (NL), negative small (NS), zero (Z), positive small (PS), and positive large (PL); the temperature change characterization values include low rate (L), medium-low rate (ML), medium rate (M), medium-high rate (MH), and high rate (H); the output percentages corresponding to the actuator include low output (L), medium-low output (ML), medium output (M), medium-high output (MH), and high output (H); the inhibition strength corresponding to the second control unit includes low inhibition (L), medium-low inhibition (ML), medium inhibition (M), medium-high inhibition (MH), and high inhibition (H). The specific fuzzy rule base is shown in the following table.
[0076] Table 1 Schematic diagram of the structure of a fuzzy rule base
[0077] Real-time temperature difference Temperature change characterization value Output percentage corresponding to the actuator Inhibition strength NL L L L NL H H L PL L L L PL H H H PL H MH MH Z H H H Z L L L Z H MH MH
[0078] Exemplarily, the suppression strength corresponding to the fuzzy controller is obtained according to the fuzzy rules in the above table of the temperature difference value, the temperature change characterization value and the output percentage of the actuator, and then the fourth control variable corresponding to the fuzzy controller is determined according to the suppression strength.
[0079] Exemplarily, the design principle of the fuzzy rule base is that the suppression strength increases as the temperature difference approaches zero and the temperature change characterization value increases, and at the same time, dynamic adjustment is performed in combination with the output percentage of the actuator: when the output percentage of the actuator is too large, the suppression strength increases, and when the output percentage of the actuator is too small, the suppression strength decreases.
[0080] Exemplarily, as shown in the following formula, the suppression signal generated by the fuzzy controller is superimposed on the output end of the incremental PID controller to form an adjusted control signal, that is, the target control variable.
[0081]
[0082] Among them, α represents the dynamic adjustment coefficient or dynamic suppression coefficient, u new (t) represents the target control quantity corresponding to the current time t, K p Indicates the proportional coefficient corresponding to the first control unit, K i Indicates the integral coefficient corresponding to the first control unit, K d represents the differential coefficient corresponding to the first control unit, e(t) represents the temperature difference corresponding to the current time t, Indicates the temperature change value corresponding to the current time t, u old Indicates the output percentage of the executor at the previous time. The suppression strength is determined from the fuzzy rule base according to the temperature difference, the temperature change characterization value, and the corresponding output percentage of the actuator.
[0083] For example, Figure 2 As shown in the figure, under the traditional temperature control method, after setting the target temperature T(set), the current temperature T(act) is obtained according to the feedback link H, and then the difference between the current temperature and the target temperature is calculated to obtain the temperature difference e(t) corresponding to the current moment t, and then the control quantity u(t) is determined according to the temperature difference e(t) combined with the traditional PID or fuzzy PID, and then the control quantity u(t) is input to the actuator for execution to obtain the execution result y(t), and then the above process is cyclically executed according to the execution result y(t) combined with the feedback link H until the temperature reaches the target temperature.
[0084] However, the traditional method has the following defects: (1) Parameter adjustment is complex and has poor adaptability to multiple working conditions: Different environmental conditions (such as humidity, air pressure), target temperature points or actuator (heater / cooling system) characteristics require frequent adjustment of PID parameters, which results in high labor costs; (2) Overshoot is difficult to adjust: Even after parameter optimization, overshoot still occurs due to system inertia when the temperature approaches the set value; when the overshoot condition is met, the stabilization time will be too long; (3) Fuzzy PID parameter adjustment is difficult: Even if fuzzy PID is used, it still falls within the scope of PID control; when the debugging personnel are not familiar with the PID parameters or working conditions outside the expert library appear, the difficulty of adjusting the fuzzy expert library will increase; problems that cannot be solved by traditional PID parameter adjustment are also difficult to solve by fuzzy PID.
[0085] For example, Figure 3 As shown, under the temperature control method of the present application, after setting the target temperature T(set), the current temperature T(act) is obtained according to the feedback link H, and then the difference between the current temperature and the target temperature is calculated to obtain the temperature difference e(t) corresponding to the current moment t, and the temperature change characterization value is obtained. When the temperature difference and the temperature change characterization value meet the preset conditions, the temperature control strategy is to perform temperature control on the target object according to the first control unit and the second control unit, and then determine the suppression strength res corresponding to the second control unit such as the fuzzy controller according to the output percentage, the temperature difference and the temperature change characterization value, and then determine the fourth control quantity corresponding to the second control unit according to the suppression strength res, and then obtain the difference between the first control quantity u(t) and the second control quantity u(t-1) as the third control quantity, and then fuse the third control quantity and the fourth control quantity to obtain the target control quantity corresponding to the target object.
[0086] Step S108: performing temperature control on the target object according to the target control amount to obtain a target control result.
[0087] For example, after obtaining the target control variable, the target control variable is sent to the actuator corresponding to the target object. The actuator then executes according to the target control variable to obtain the target control result corresponding to the target object. When the target control result indicates that the target temperature has been reached, control is stopped. When the target control result indicates that the target temperature has not been reached, the above steps are repeated until the target temperature is reached.
[0088] In some embodiments, when the first control unit corresponding to the target object is a heating PID controller, the actuator corresponding to the target object is a heater; when the first control unit corresponding to the target object is a cooling PID controller, the actuator corresponding to the target object is a refrigerator.
[0089] For example, when the target temperature corresponding to the target object is lower than the current temperature, it indicates that the target object needs to be cooled. In this case, the first control unit corresponding to the target object should be a cooling PID controller. When the first control unit corresponding to the target object is a cooling PID controller, the actuator corresponding to the target object is a refrigerator. Figure 4 As shown in the figure, when the target temperature corresponding to the target object is lower than the current temperature, the target control amount is determined according to the cooling PID controller and the cooling fuzzy controller, and then the target control amount is input to the refrigerator for execution, thereby realizing the temperature reduction control of the target object.
[0090] For example, when the target temperature corresponding to the target object is higher than the current temperature, it indicates that the target object needs to be heated. In this case, the first control unit corresponding to the target object should be a heating PID controller. When the first control unit corresponding to the target object is a heating PID controller, the actuator corresponding to the target object is a heater. Figure 5 As shown, when the target temperature corresponding to the target object is higher than the current temperature, the target control amount is determined according to the heating PID controller and the heating fuzzy controller, and then the target control amount is input to the heater for execution, thereby realizing the temperature rise control of the target object.
[0091] For example, different actuators have different PID controllers; when the actuator is a heater, the first control unit should be a heating PID controller; when the actuator is a refrigerator or a refrigeration system, the first control unit should be a refrigeration PID controller.
[0092] In some embodiments, the method further includes: obtaining an initial temperature corresponding to the target object at an initial moment, and performing a difference calculation based on the initial temperature and the target temperature to obtain a difference sign; when the difference sign is a positive number, the actuator corresponding to the target object is the heater, and the temperature change characterization value is used to characterize that the target object performs a heating operation; when the difference sign is a negative number, the actuator corresponding to the target object is the refrigerator, and the temperature change characterization value is used to characterize that the target object performs a cooling operation.
[0093] For example, the time corresponding to when the temperature of the target object needs to be controlled is determined as the initial moment, thereby obtaining the initial temperature of the target object at the initial moment. The target temperature corresponding to the target object is determined, and the difference between the target temperature and the initial temperature is calculated to obtain a temperature difference. When the temperature difference is positive, the difference sign is a positive number; when the temperature difference is negative, the difference sign is a negative number.
[0094] For example, when the sign of the difference is a positive number, it indicates that the target object needs to perform a temperature increase operation, and the actuator corresponding to the target object is a heater, and the temperature change representation value is used to represent that the target object performs a temperature increase operation.
[0095] For example, when the difference sign is a negative number, it indicates that the target object needs to be cooled, and the actuator corresponding to the target object is a refrigerator. The temperature change representation value is used to represent that the target object performs the cooling operation.
[0096] For example, when the initial set temperature difference is a positive number, the main actuator is the heater, and the temperature change characterization value is the heating rate; when the initial set temperature difference is a negative number, the main actuator is the refrigerator, and the temperature change characterization value is the cooling rate; the main actuator needs to be selected according to the initial set temperature difference, and the main actuator is used as the current suppression object.
[0097] The technical solution of the embodiment of the present application can achieve the following beneficial effects: reduce the cost of parameter adjustment, dynamically compensate the output of the PID controller and the percentage adaptation of the rate through the fuzzy controller, thereby reducing the dependence on the expert library rules and parameter groups, and adapting to multiple working conditions. Suppress temperature overshoot, introduce a rate-sensitive suppression signal when approaching the target temperature, reduce the typical overshoot from ±1°C to ±0.1°C, and shorten the equilibration time by more than 50%. A temperature control method of the present application is suitable for closed-loop control scenarios of high-precision temperature test equipment.
[0098] See also Figure 6 , Figure 6A temperature control system 200 is provided in an embodiment of the present application. The temperature control system 200 includes a data acquisition module 201, a data processing module 202, a temperature determination module 203, a difference processing module 204, a temperature analysis module 205, a strategy determination module 206, a control determination module 207, and a target control module 208. The data acquisition module 201 is used to obtain a first control quantity corresponding to a first control unit of a target object at a current moment and a second control quantity corresponding to the first control unit of the target object at a previous moment; the data processing module 202 is used to determine a third control quantity corresponding to the first control unit based on the first control quantity and the second control quantity; the temperature determination module 203 is used to obtain a temperature change sequence corresponding to the target object from the temperature change sequence corresponding to the target object. a current temperature corresponding to the target object at the current moment is obtained; a difference processing module 204 is used to determine a temperature difference according to the current temperature and the target temperature corresponding to the target object; a temperature analysis module 205 is used to determine a temperature change characterization value corresponding to the target object according to the temperature change sequence; a strategy determination module 206 is used to determine a temperature control strategy corresponding to the target object according to the temperature difference and the temperature change characterization value; a control determination module 207 is used to determine a target control quantity corresponding to the target object according to the temperature control strategy in combination with the third control quantity, the temperature difference and the temperature change characterization value; a target control module 208 is used to perform temperature control on the target object according to the target control quantity to obtain a target control result.
[0099] In some embodiments, during the process of determining the temperature change representation value corresponding to the target object according to the temperature change sequence, the temperature analysis module 205 performs:
[0100] determining a temperature change rate corresponding to the target object according to the temperature change sequence;
[0101] When the output state corresponding to the first control unit is a stable state, determining the maximum change rate corresponding to the target object according to the temperature change rate;
[0102] Obtaining a current temperature rate corresponding to the target object at the current moment, and determining the temperature change representation value corresponding to the target object according to the current temperature rate and the maximum change rate;
[0103] When the output state corresponding to the first control unit is not a stable state, the temperature change representation value corresponding to the target object is determined according to the temperature change rate.
[0104] In some embodiments, during the process of determining the temperature control strategy corresponding to the target object according to the temperature difference and the temperature change representative value, the strategy determination module 206 executes:
[0105] When the temperature difference is less than a first preset value and the temperature change characterization value is greater than a second preset value, the temperature control strategy is to obtain a second control unit and perform temperature control on the target object according to the first control unit and the second control unit; otherwise, the temperature control strategy is to perform temperature control on the target object according to the first control unit; wherein, the first control unit is a PID controller and the second control unit is a fuzzy controller.
[0106] In some embodiments, during the process of determining the target control variable corresponding to the target object according to the temperature control strategy in combination with the third control variable, the temperature difference, and the temperature change representation value, the control determination module 207 executes:
[0107] When the temperature control strategy is to control the temperature of the target object according to the first control unit, determining the target control amount according to the third control amount;
[0108] When the temperature control strategy is to control the temperature of the target object according to the first control unit and the second control unit, determining a fuzzy rule base corresponding to parameter adjustment performed by the second control unit;
[0109] determining a fourth control variable corresponding to the second control unit according to the fuzzy rule base in combination with the temperature difference and the temperature change characterization value, wherein the relationship between the temperature change characterization value and the fourth control variable is a positive correlation;
[0110] A dynamic adjustment coefficient corresponding to the fourth control variable is determined, and the target control variable is determined according to the third control variable and the fourth control variable in combination with the dynamic adjustment coefficient.
[0111] In some embodiments, during the process of determining the fourth control variable corresponding to the second control unit according to the fuzzy rule base in combination with the temperature difference and the temperature change characterization value, the control determination module 207 executes:
[0112] Obtaining the output percentage corresponding to the actuator in the target object;
[0113] The fourth control quantity corresponding to the second control unit is obtained from the fuzzy rule base according to the output percentage, the temperature difference and the temperature change characterization value; wherein the relationship between the output percentage and the fourth control quantity is a positive correlation.
[0114] In some embodiments, the temperature control system further performs:
[0115] When the first control unit corresponding to the target object is a heating PID controller, the actuator corresponding to the target object is a heater;
[0116] When the first control unit corresponding to the target object is a refrigeration PID controller, the actuator corresponding to the target object is a refrigerator.
[0117] In some embodiments, the temperature control system further performs:
[0118] Obtaining an initial temperature corresponding to the target object at an initial moment, and performing a difference calculation based on the initial temperature and the target temperature to obtain a difference sign;
[0119] When the sign of the difference is a positive number, the actuator corresponding to the target object is the heater, and the temperature change representation value is used to represent that the target object performs a temperature increase operation;
[0120] When the sign of the difference is a negative number, the actuator corresponding to the target object is the refrigerator, and the temperature change representation value is used to represent that the target object performs a cooling operation.
[0121] In some embodiments, the temperature control system 200 may be applied to a terminal device.
[0122] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the temperature control system 200 described above can refer to the corresponding process in the aforementioned temperature control method embodiment, and will not be repeated here.
[0123] See also Figure 7 , Figure 7 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present invention.
[0124] like Figure 7 As shown, the terminal device 300 includes a processor 301 and a memory 302, and the processor 301 and the memory 302 are connected via a bus 303, such as an I2C (Inter-integrated Circuit) bus.
[0125] Specifically, the processor 301 is used to provide computing and control capabilities to support the operation of the entire terminal device. The processor 301 can be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0126] Specifically, the memory 302 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.
[0127] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the embodiment of the present invention, and does not constitute a limitation on the terminal device to which the embodiment of the present invention is applied. The specific server may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0128] The processor is configured to run a computer program stored in a memory, and implement any one of the temperature control methods provided by the embodiments of the present invention when executing the computer program.
[0129] In one embodiment, the processor is configured to run a computer program stored in the memory, and implement the following steps when executing the computer program:
[0130] Obtaining a first control amount corresponding to a first control unit of a target object at a current moment and a second control amount corresponding to the first control unit of the target object at a previous moment;
[0131] determining a third control amount corresponding to the first control unit according to the first control amount and the second control amount;
[0132] Obtaining the current temperature of the target object at the current moment from the temperature change sequence corresponding to the target object;
[0133] determining a temperature difference according to the current temperature and a target temperature corresponding to the target object;
[0134] Determining a temperature change representation value corresponding to the target object according to the temperature change sequence;
[0135] Determining a temperature control strategy corresponding to the target object according to the temperature difference and the temperature change representation value;
[0136] Determining a target control variable corresponding to the target object according to the temperature control strategy in combination with the third control variable, the temperature difference and the temperature change characterization value;
[0137] The target object is temperature-controlled according to the target control amount to obtain a target control result.
[0138] In some embodiments, during the process of determining the temperature change representation value corresponding to the target object according to the temperature change sequence, the processor 301 executes:
[0139] determining a temperature change rate corresponding to the target object according to the temperature change sequence;
[0140] When the output state corresponding to the first control unit is a stable state, determining the maximum change rate corresponding to the target object according to the temperature change rate;
[0141] Obtaining a current temperature rate corresponding to the target object at the current moment, and determining the temperature change representation value corresponding to the target object according to the current temperature rate and the maximum change rate;
[0142] When the output state corresponding to the first control unit is not a stable state, the temperature change representation value corresponding to the target object is determined according to the temperature change rate.
[0143] In some embodiments, during the process of determining the temperature control strategy corresponding to the target object according to the temperature difference and the temperature change representation value, the processor 301 executes:
[0144] When the temperature difference is less than a first preset value and the temperature change characterization value is greater than a second preset value, the temperature control strategy is to obtain a second control unit and perform temperature control on the target object according to the first control unit and the second control unit; otherwise, the temperature control strategy is to perform temperature control on the target object according to the first control unit; wherein, the first control unit is a PID controller and the second control unit is a fuzzy controller.
[0145] In some embodiments, during the process of determining the target control amount corresponding to the target object according to the temperature control strategy in combination with the third control amount, the temperature difference, and the temperature change representation value, the processor 301 executes:
[0146] When the temperature control strategy is to control the temperature of the target object according to the first control unit, determining the target control amount according to the third control amount;
[0147] When the temperature control strategy is to control the temperature of the target object according to the first control unit and the second control unit, determining a fuzzy rule base corresponding to parameter adjustment performed by the second control unit;
[0148] determining a fourth control variable corresponding to the second control unit according to the fuzzy rule base in combination with the temperature difference and the temperature change characterization value, wherein the relationship between the temperature change characterization value and the fourth control variable is a positive correlation;
[0149] A dynamic adjustment coefficient corresponding to the fourth control variable is determined, and the target control variable is determined according to the third control variable and the fourth control variable in combination with the dynamic adjustment coefficient.
[0150] In some embodiments, during the process of determining the fourth control variable corresponding to the second control unit according to the fuzzy rule base in combination with the temperature difference and the temperature change characterization value, the processor 301 executes:
[0151] Obtaining the output percentage corresponding to the actuator in the target object;
[0152] The fourth control quantity corresponding to the second control unit is obtained from the fuzzy rule base according to the output percentage, the temperature difference and the temperature change characterization value; wherein the relationship between the output percentage and the fourth control quantity is a positive correlation.
[0153] In some embodiments, the processor 301 further executes:
[0154] When the first control unit corresponding to the target object is a heating PID controller, the actuator corresponding to the target object is a heater;
[0155] When the first control unit corresponding to the target object is a refrigeration PID controller, the actuator corresponding to the target object is a refrigerator.
[0156] In some embodiments, the processor 301 further executes:
[0157] Obtaining an initial temperature corresponding to the target object at an initial moment, and performing a difference calculation based on the initial temperature and the target temperature to obtain a difference sign;
[0158] When the sign of the difference is a positive number, the actuator corresponding to the target object is the heater, and the temperature change representation value is used to represent that the target object performs a temperature increase operation;
[0159] When the sign of the difference is a negative number, the actuator corresponding to the target object is the refrigerator, and the temperature change representation value is used to represent that the target object performs a cooling operation.
[0160] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the terminal device described above can refer to the corresponding process in the aforementioned temperature control method embodiment, and will not be repeated here.
[0161] An embodiment of the present invention also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any temperature control method provided in the description of the embodiment of the present invention.
[0162] The storage medium may be an internal storage unit of the terminal device described in the aforementioned embodiment, such as a hard disk or memory of the terminal device. The storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash memory card, etc. equipped on the terminal device.
[0163] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware embodiment, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media generally embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0164] It should be understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system that includes a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system that includes the element.
[0165] The serial numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. The above description is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be based on the scope of protection of the claims.
Claims
1. A temperature control method, characterized in that: The method comprises: Obtaining a first control amount corresponding to a first control unit of a target object at a current moment and a second control amount corresponding to the first control unit of the target object at a previous moment; determining a third control amount corresponding to the first control unit according to the first control amount and the second control amount; Obtaining the current temperature of the target object at the current moment from the temperature change sequence corresponding to the target object; determining a temperature difference according to the current temperature and a target temperature corresponding to the target object; Determining a temperature change representation value corresponding to the target object according to the temperature change sequence; Determining a temperature control strategy corresponding to the target object according to the temperature difference and the temperature change representation value; Determining a target control variable corresponding to the target object according to the temperature control strategy in combination with the third control variable, the temperature difference and the temperature change characterization value; The target object is temperature-controlled according to the target control amount to obtain a target control result.
2. The method according to claim 1, characterized in that The determining the temperature change representation value corresponding to the target object according to the temperature change sequence includes: determining a temperature change rate corresponding to the target object according to the temperature change sequence; When the output state corresponding to the first control unit is a stable state, determining the maximum change rate corresponding to the target object according to the temperature change rate; Obtaining a current temperature rate corresponding to the target object at the current moment, and determining the temperature change representation value corresponding to the target object according to the current temperature rate and the maximum change rate; When the output state corresponding to the first control unit is not a stable state, the temperature change representation value corresponding to the target object is determined according to the temperature change rate.
3. The method according to claim 1, characterized in that The determining the temperature control strategy corresponding to the target object according to the temperature difference and the temperature change characterization value includes: When the temperature difference is less than a first preset value and the temperature change characterization value is greater than a second preset value, the temperature control strategy is to obtain a second control unit and perform temperature control on the target object according to the first control unit and the second control unit; otherwise, the temperature control strategy is to perform temperature control on the target object according to the first control unit; wherein, the first control unit is a PID controller and the second control unit is a fuzzy controller.
4. The method according to claim 3, characterized in that The determining the target control amount corresponding to the target object according to the temperature control strategy in combination with the third control amount, the temperature difference and the temperature change characterization value includes: When the temperature control strategy is to control the temperature of the target object according to the first control unit, determining the target control amount according to the third control amount; When the temperature control strategy is to control the temperature of the target object according to the first control unit and the second control unit, determining a fuzzy rule base corresponding to parameter adjustment performed by the second control unit; determining a fourth control variable corresponding to the second control unit according to the fuzzy rule base in combination with the temperature difference and the temperature change characterization value, wherein the relationship between the temperature change characterization value and the fourth control variable is a positive correlation; A dynamic adjustment coefficient corresponding to the fourth control variable is determined, and the target control variable is determined according to the third control variable and the fourth control variable in combination with the dynamic adjustment coefficient.
5. The method according to claim 4, characterized in that The determining the fourth control variable corresponding to the second control unit according to the fuzzy rule base in combination with the temperature difference and the temperature change characterization value includes: Obtaining the output percentage corresponding to the actuator in the target object; The fourth control quantity corresponding to the second control unit is obtained from the fuzzy rule base according to the output percentage, the temperature difference and the temperature change characterization value; wherein the relationship between the output percentage and the fourth control quantity is a positive correlation.
6. The method according to any one of claims 1 to 5, characterized in that The method comprises: When the first control unit corresponding to the target object is a heating PID controller, the actuator corresponding to the target object is a heater; When the first control unit corresponding to the target object is a refrigeration PID controller, the actuator corresponding to the target object is a refrigerator.
7. The method according to claim 6, characterized in that The method further comprises: Obtaining an initial temperature corresponding to the target object at an initial moment, and performing a difference calculation based on the initial temperature and the target temperature to obtain a difference sign; When the sign of the difference is a positive number, the actuator corresponding to the target object is the heater, and the temperature change representation value is used to represent that the target object performs a temperature increase operation; When the sign of the difference is a negative number, the actuator corresponding to the target object is the refrigerator, and the temperature change representation value is used to represent that the target object performs a cooling operation.
8. A temperature control system, characterized in that: include: a data acquisition module, configured to obtain a first control amount corresponding to a first control unit of a target object at a current moment and a second control amount corresponding to the first control unit of the target object at a previous moment; a data processing module, configured to determine a third control variable corresponding to the first control unit according to the first control variable and the second control variable; a temperature determination module, configured to obtain a current temperature of the target object at the current moment from a temperature change sequence corresponding to the target object; a difference processing module, configured to determine a temperature difference based on the current temperature and a target temperature corresponding to the target object; A temperature analysis module, configured to determine a temperature change representation value corresponding to the target object according to the temperature change sequence; a strategy determination module, configured to determine a temperature control strategy corresponding to the target object according to the temperature difference and the temperature change representation value; a control determination module, configured to determine a target control variable corresponding to the target object according to the temperature control strategy in combination with the third control variable, the temperature difference, and the temperature change representation value; The target control module is used to perform temperature control on the target object according to the target control amount to obtain a target control result.
9. A terminal device, characterized in that: The terminal device includes a processor and a memory; The memory is used to store computer programs; The processor is configured to execute the computer program and implement the temperature control method according to any one of claims 1 to 7 when executing the computer program.
10. A computer storage medium for computer storage, characterized in that: The computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the temperature control method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Temperature control method and device, equipment and storage medium
CN115437425A
Temperature control method, semiconductor processing equipment and computer readable storage medium
CN119322545A
A temperature control method and related equipment
CN119739230A
Temperature control method and temperature control device
US20200276881A1