A predictive control system and method for water-based paint production
By using the Actor-Critic neural network model for predictive control in water-based paint production, the problem of poor parameter adjustment adaptability and lack of future state prediction of the PID controller in water-based paint production is solved, achieving adaptive multi-variable control and more efficient production process optimization.
Patent Information
- Application Number
- CN202410851916.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-28
AI Technical Summary
In the production of water-based coatings, PID controllers have problems such as manual adjustment of parameters, poor adaptability, and lack of ability to predict future states and handle multi-variable interactive optimization.
The Actor-Critic neural network model is used to construct a network model through state data and control action data, perform predictive control, automatically adjust the control strategy, adapt to dynamic changes in the production process, and optimize multiple key parameters.
It realizes adaptive multi-variable control, reduces dependence on manual calibration, can predict future state changes, and improves control initiative and foresight.
Smart Images

Figure CN118409552B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence control, and in particular to a predictive control system and method for water-based paint production. Background Art
[0002] In the field of waterborne coating production control, existing technologies usually rely on traditional control strategies, such as PID controllers, to manage key parameters in the production process. These parameters include viscosity, temperature, pressure, pH, conductivity, and flow rate. PID controllers maintain the stability of the production process and product quality by adjusting control actions such as heating, cooling, stirring speed, and raw material mixing ratio. PID controllers have been widely used in industrial control systems due to their simplicity, stability, and reliability. They adjust control actions based on errors, where the three parameters of proportional (P), integral (I), and differential (D) are responsible for different regulation effects. The proportional term responds to errors quickly, the integral term eliminates steady-state errors, and the differential term predicts the future trend of the error and makes adjustments.
[0003] Although PID controllers perform well in many cases, they still have the following drawbacks when it comes to water-based paint production control:
[0004] 1. The PID controller requires manual parameter adjustment and has poor adaptability to the dynamic characteristics of the controlled object, and cannot adapt to the nonlinear and time-varying characteristics of complex processes;
[0005] 2. PID controllers are mainly regulated based on error feedback and lack the ability to predict the future state of the production process, resulting in slow response and suboptimal control;
[0006] 3. Since water-based paint production is a complex system with multiple variables and strong coupling, the PID controller has limitations in handling multivariable interactions and optimizing overall performance.
[0007] Therefore, it is necessary to study a predictive control system and method for water-based paint production to solve the above technical problems. Summary of the invention
[0008] The object of the present invention is to provide a predictive control system and method for water-based paint production to solve the above-mentioned problems.
[0009] The present invention is achieved through the following technical solutions:
[0010] A predictive control system for water-based paint production, comprising:
[0011] A state data sensing unit is used to collect state data in the production of water-based paint through a sensor group, wherein the state data includes viscosity, temperature, pressure value, pH value, conductivity and flow data;
[0012] An action data definition unit, used to define control action data in the production of water-based paint, wherein the control action data includes heating amount, cooling amount, stirring speed and raw material mixing ratio;
[0013] State space and action space definition unit, used to create state space based on state data , and define the action space according to the control action data ;
[0014] The network model building unit is used to build an Actor-Critic neural network model through the state space and the action space; and output the best prediction control result according to the built Actor-Critic neural network model, and the system controls the water-based paint production equipment according to the prediction control result;
[0015] in:
[0016] The network model building unit specifically includes:
[0017] The actor network model subunit is used to build the actor neural network model and output actions according to the input state space;
[0018] Environment interaction unit, used to output actions Sent to the water-based paint production environment for execution, the environment responds based on the executed action and returns a new status and instant rewards ;
[0019] The critic network model subunit is used to construct a critic neural network model and evaluate the expected return of taking an action in a state based on the input state space, and output a value function;
[0020] A policy optimization subunit, which updates the parameters of the actor network according to the value function gradient provided by the critic network and updates the parameters of the critic network according to the temporal difference error;
[0021] The iterative optimization output subunit is used for iterating until the parameters of the actor network and the critic network converge, and controlling the water-based paint production according to the control action output by the actor network at this time.
[0022] Furthermore, in the state space and action space definition unit, a state space is created according to the state data. Specifically expressed as:
[0023] ;
[0024] Among them, the Indicates at time The state vector, represents the viscosity parameter, Represents the temperature parameter, Represents the pressure parameter, Represents the pH parameter, represents the conductivity parameter, Indicates flow parameters;
[0025] Define the action space based on the control action data Specifically expressed as:
[0026] ;
[0027] Among them, the Indicates at time The action vector, represents the decision function of the actor network, Based on the current state and network parameters Determine the best action, the represents the parameters of the actor network, Represents the heating parameter, represents the cooling capacity parameter, represents the stirring speed parameter, Indicates the raw material mixing ratio parameter.
[0028] Furthermore, the instant reward Specifically expressed as:
[0029] ;
[0030] Among them, the Indicates an immediate reward, represents the weight coefficient used to balance the viscosity control accuracy, represents the weight coefficient used to balance energy consumption, represents the weight coefficient used to balance production efficiency, represents the target viscosity, represents the viscosity parameter, Represents the heating parameter, represents the cooling capacity parameter, Represents the production rate function, which is used to evaluate the production efficiency based on the current state and the actions taken, according to output, efficiency, quality and stability as the set of parameters affecting the production rate function.
[0031] Furthermore, the network model building unit also includes a strategy optimization subunit: used to update the parameters of the actor network according to the value function gradient provided by the critic network, and update the parameters of the critic network according to the time difference error.
[0032] Furthermore, the parameter updating of the actor network according to the value function gradient provided by the critic network is specifically expressed as:
[0033] ;
[0034] Among them, the represents the parameters of the actor network, represents the learning rate of the actor network, Represents the actions output by the actor network About its parameters The gradient of represents the parameters of the critic network, Represents the state of the critic network evaluation Take action The value function of .
[0035] Furthermore, the parameters of the critic network are updated according to the time difference error as follows:
[0036] ;
[0037] Among them, the represents the parameters of the critic network, represents the learning rate of the critic network, represents the action output by the actor network About its parameters The gradient of represents the reward function, represents a discount factor, represents a state value function, and Represents the state predicted by the critic network The value function of Represents the state predicted by the critic network The value function of .
[0038] Further, a predictive control method for water-based paint production is provided, which is based on a predictive control system for water-based paint production as described in any one of the above, and comprises the following steps:
[0039] S1. The status data of the water-based coating production is collected by the sensor group, wherein the status data includes viscosity, temperature, pressure, pH value, conductivity and flow data;
[0040] S2. Define the control action data in the production of water-based paint, including heating amount, cooling amount, stirring speed and raw material mixing ratio, and create a state space based on the state data , and define the action space according to the control action data ;
[0041] S3. Construct an Actor-Critic neural network model through state space and action space; and output the best prediction control result based on the constructed Actor-Critic neural network model, and the system controls the water-based paint production equipment according to the prediction control result;
[0042] Wherein, the step S3 specifically includes the following sub-steps:
[0043] S301. Actor network based on current state Through its parameters Decide on the action , output action Sent to the water-based paint production environment for execution;
[0044] S302. The environment responds to the executed action and returns a new state and instant rewards ;
[0045] S303. Critic network based on the current state and actions Evaluate execution actions The value function ;
[0046] S304. Update the parameters of the actor network according to the value function gradient provided by the critic network , and update the parameters of the critic network according to the temporal difference error;
[0047] S305. Iterate step S301 until the parameter and Convergence, and the water-based paint production is controlled according to the control actions output by the actor network at this time.
[0048] Furthermore, in step S2, a state space is created according to the state data. Specifically expressed as:
[0049] ;
[0050] Among them, the Indicates at time The state vector, represents the viscosity parameter, Represents the temperature parameter, Represents the pressure parameter, Represents the pH parameter, represents the conductivity parameter, Indicates flow parameters;
[0051] Define the action space based on the control action data Specifically expressed as:
[0052] ;
[0053] Among them, the Indicates at time The action vector, represents the decision function of the actor network, Based on the current state and network parameters Determine the best action, the represents the parameters of the actor network, Represents the heating parameter, represents the cooling capacity parameter, represents the stirring speed parameter, Indicates the raw material mixing ratio parameter.
[0054] Furthermore, in step S302, the instant reward Specifically expressed as:
[0055] ;
[0056] Among them, the Indicates an immediate reward, represents the weight coefficient used to balance the viscosity control accuracy, represents the weight coefficient used to balance energy consumption, represents a weight coefficient for balancing production efficiency, represents the target viscosity, and represents the viscosity parameter, Represents the heating parameter, represents the cooling capacity parameter, Represents the production rate function, which is used to evaluate the production efficiency based on the current state and the actions taken, according to output, efficiency, quality and stability as the set of parameters affecting the production rate function.
[0057] Furthermore, in step S304, the parameters of the actor network are updated according to the value function gradient provided by the critic network as follows:
[0058] ;
[0059] Among them, the represents the parameters of the actor network, represents the learning rate of the actor network, Represents the actions output by the actor network About its parameters The gradient of represents the parameters of the critic network, Represents the state of the critic network evaluation Take action The value function of
[0060] The parameters of the critic network are updated according to the time difference error as follows:
[0061] ;
[0062] Among them, the represents the parameters of the critic network, represents the learning rate of the critic network, represents the action output by the actor network About its parameters The gradient of represents the reward function, represents the discount factor, represents the state value function, Represents the state predicted by the critic network The value function of The value function representing the state predicted by the critic network.
[0063] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0064] The present invention adopts an advanced Actor-Critic neural network model, which can adaptively learn and optimize multiple key parameters in the production process of water-based paint. Through machine learning algorithms, the system can automatically adjust the control strategy to adapt to the dynamic changes of the production process, reducing the dependence on manual calibration and maintenance;
[0065] Compared with the traditional PID control strategy, the present invention adopts a multiple-input multiple-output (MIMO) control strategy, which considers multiple control parameters at the same time and optimizes the overall production efficiency. The system not only responds to the current error, but also predicts future state changes to achieve more proactive and forward-looking control. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0067] Figure 1 The present invention is a method flow chart of a predictive control method for water-based paint production. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and drawings. The schematic implementation modes and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention. It should be noted that the present invention is already in the actual development and use stage.
[0069] As a preferred embodiment of the present application, a specific embodiment is proposed, a predictive control system for water-based paint production, comprising:
[0070] A state data sensing unit is used to collect state data in the production of water-based paint through a sensor group, wherein the state data includes viscosity, temperature, pressure value, pH value, conductivity and flow data;
[0071] An action data definition unit, used to define control action data in the production of water-based paint, wherein the control action data includes heating amount, cooling amount, stirring speed and raw material mixing ratio;
[0072] State space and action space definition unit, used to create state space based on state data , and define the action space according to the control action data ;
[0073] The network model building unit is used to build an Actor-Critic neural network model through the state space and the action space; and output the best prediction control result according to the built Actor-Critic neural network model, and the system controls the water-based paint production equipment according to the prediction control result;
[0074] in:
[0075] The network model building unit specifically includes:
[0076] The actor network model subunit is used to build the actor neural network model and output actions according to the input state space;
[0077] Environment interaction unit, used to output actions Sent to the water-based paint production environment for execution, the environment responds based on the executed action and returns a new status and instant rewards ; The actions of the actor network are applied to the environment, and the environment returns new states and rewards, which again update the value function estimate of the critic network, forming a feedback loop;
[0078] The critic network model subunit is used to construct a critic neural network model and evaluate the expected return of taking an action in a state based on the input state space, and output a value function;
[0079] A policy optimization subunit, which updates the parameters of the actor network according to the value function gradient provided by the critic network and updates the parameters of the critic network according to the temporal difference error;
[0080] The iterative optimization output subunit is used to control the water-based paint production by iteration until the parameters of the actor network and the critic network converge, and the control action output by the actor network at this time is used to control the water-based paint production; as the parameters of the actor network are updated, the actions generated by the actor network will also be adjusted accordingly. The adjustment method is based on the value function estimate provided by the critic network, and the purpose is to select actions that can bring higher expected returns.
[0081] Specifically, the process of the network model described in the above embodiment is as follows: when the critic network evaluates the value function of the current strategy, it will provide gradient information, and the actor network updates its parameters through gradient ascent, thereby adjusting the action output to maximize the long-term return, forming a closed-loop process of strategy improvement.
[0082] Furthermore, in the state space and action space definition unit, a state space is created according to the state data. Specifically expressed as:
[0083] ;
[0084] Among them, the Indicates at time The state of represents the viscosity parameter, Represents the temperature parameter, Represents the pressure parameter, Represents the pH parameter, represents the conductivity parameter, Indicates flow parameters;
[0085] Define the action space based on the control action data Specifically expressed as:
[0086] ;
[0087] Among them, the Indicates at time The action represents the decision function of the actor network, Based on the current state and network parameters Determine the best action, the represents the parameters of the actor network, Represents the heating parameter, represents the cooling capacity parameter, represents the stirring speed parameter, Indicates the raw material mixing ratio parameter.
[0088] Furthermore, the instant reward Specifically expressed as:
[0089] ;
[0090] Among them, the Indicates an immediate reward, represents the weight coefficient used to balance the viscosity control accuracy, represents the weight coefficient used to balance energy consumption, represents the weight coefficient used to balance production efficiency, represents the target viscosity, represents the viscosity parameter, Represents the heating parameter, represents the cooling capacity parameter, Represents the production rate function, which is used to evaluate the production efficiency according to the current state and the actions taken, with output, efficiency, quality and stability as the parameter set affecting the production rate function. It should be noted that the specific method of obtaining the target viscosity varies depending on the production process, product type and specific practices of the factory. In addition, each term in the reward function has its specific purpose. The first term encourages the system to reach the target viscosity, the second term penalizes energy consumption to avoid unnecessary energy waste, and the third term considers production efficiency, which is related to output or product qualification rate.
[0091] Furthermore, the network model building unit also includes a strategy optimization subunit: used to update the parameters of the actor network according to the value function gradient provided by the critic network, and update the parameters of the critic network according to the time difference error.
[0092] Furthermore, the parameter updating of the actor network according to the value function gradient provided by the critic network is specifically expressed as:
[0093] ;
[0094] Among them, the represents the parameters of the actor network, represents the learning rate of the actor network, Represents the actions output by the actor network About its parameters The gradient of represents the parameters of the critic network, Represents the state of the critic network evaluation Take action The value function of .
[0095] Furthermore, the parameters of the critic network are updated according to the time difference error as follows:
[0096] ;
[0097] Among them, the represents the parameters of the critic network, represents the learning rate of the critic network, represents the action output by the actor network About its parameters The gradient of represents the reward function, represents the discount factor, represents the state value function, Represents the state predicted by the critic network The value function of Represents the state predicted by the critic network The value function of .
[0098] Specifically, To estimate the state The expected return from starting and following the current strategy is to minimize The predicted value and target value of the function (the immediate reward plus the discounted future value) ) helps train the critic network to accurately predict the value of state-action pairs. , represents the value function The gradient with respect to the actor network parameters is obtained by The parameters of the actor network are adjusted to increase the expected reward of taking a specific action in a given state. Additionally, the parameters of the actor network are updated by computing gradients and using a gradient ascent (or descent, depending on whether the goal is to maximize or minimize) algorithm so that the network learns to better choose actions to maximize the long-term cumulative reward.
[0099] Further, a predictive control method for water-based paint production is provided, the method being based on a predictive control system for water-based paint production as described in any one of the above, such as Figure 1 , including the following steps:
[0100] S1. The status data of the water-based coating production is collected by the sensor group, wherein the status data includes viscosity, temperature, pressure, pH value, conductivity and flow data;
[0101] S2. Define the control action data in water-based paint production, including heating amount, cooling amount, stirring speed and raw material mixing ratio (the above actions together determine the key operations in the water-based paint production process, aiming to optimize production efficiency, product quality and energy consumption), and create a state space based on the state data , and define the action space according to the control action data ;
[0102] S3. Construct an Actor-Critic neural network model through state space and action space; and output the best prediction control result based on the constructed Actor-Critic neural network model, and the system controls the water-based paint production equipment according to the prediction control result;
[0103] Wherein, the step S3 specifically includes the following sub-steps:
[0104] S301. Actor network based on current state Through its parameters Decide on the action , output action Sent to the water-based paint production environment for execution;
[0105] S302. The environment responds to the executed action and returns a new state and instant rewards ;
[0106] S303. Critic network based on the current state and actions Evaluate execution actions The value function ;
[0107] S304. Update the parameters of the actor network according to the value function gradient provided by the critic network , and update the parameters of the critic network according to the temporal difference error ;
[0108] S305. Iterate step S301 until the parameter and Convergence, and the water-based paint production is controlled according to the control actions output by the actor network at this time.
[0109] Specifically, through the above sub-steps, the actor network learns how to choose the best action in different states, while the critic network provides a value assessment of the current strategy. The two work together to achieve the optimal adjustment of the action output. This process is the basic iterative process in reinforcement learning. Through continuous learning and adjustment, the intelligent agent can gradually improve its decision-making ability.
[0110] Furthermore, in step S2, a state space is created according to the state data. Specifically expressed as:
[0111] ;
[0112] Among them, the Indicates at time The state vector, represents the viscosity parameter, Represents the temperature parameter, Represents the pressure parameter, Represents the pH parameter, represents the conductivity parameter, Indicates flow parameters;
[0113] Define the action space based on the control action data Specifically expressed as:
[0114] ;
[0115] Among them, the Indicates at time The action vector, represents the decision function of the actor network, Based on the current state and network parameters Determine the best action, the represents the parameters of the actor network, Represents the heating parameter, represents the cooling capacity parameter, represents the stirring speed parameter, Indicates the raw material mixing ratio parameter.
[0116] Furthermore, in step S302, the instant reward Specifically expressed as:
[0117] ;
[0118] Among them, the Indicates an immediate reward, represents the weight coefficient used to balance the viscosity control accuracy, represents the weight coefficient used to balance energy consumption, represents the weight coefficient used to balance production efficiency, represents the target viscosity, represents the viscosity parameter, Represents the heating parameter, represents the cooling capacity parameter, Represents the production rate function, which is used to evaluate the production efficiency based on the current state and the actions taken, according to output, efficiency, quality and stability as the set of parameters affecting the production rate function.
[0119] Furthermore, in step S304, the parameters of the actor network are updated according to the value function gradient provided by the critic network as follows:
[0120] ;
[0121] Among them, the represents the parameters of the actor network, represents the learning rate of the actor network, Represents the actions output by the actor network About its parameters The gradient of represents the parameters of the critic network, Represents the state of the critic network evaluation Take action The value function of
[0122] The parameters of the critic network are updated according to the time difference error as follows:
[0123] ;
[0124] Among them, the represents the parameters of the critic network, represents the learning rate of the critic network, represents the action output by the actor network About its parameters The gradient of represents the reward function, represents the discount factor, represents the state value function, Represents the state predicted by the critic network The value function of Represents the state predicted by the critic network The value function of .
[0125] Further, as a preferred implementation scheme of this embodiment, a target network updating step is proposed, which further includes updating the target network after the parameters are updated in step S304, wherein the concept of the target network is used to increase the stability of the training process, specifically:
[0126] ;
[0127] ;
[0128] Among them, the represents the parameters of the target actor network, represents the parameters of the target critic network, Indicates the ratio of parameters copied from the main network to the target network at each update, and its value is close to 0. The purpose of the above scheme is that in this way, the target network acts as a smoothing agent, so that the main network will not fluctuate violently due to rapid updates during training, thereby improving learning efficiency and stability. The specific update operation is: the parameters of the target network are updated by The current main network parameters and The weighted average of the old parameters of the ratio itself is updated.
[0129] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A predictive control system for water-based paint production, comprising: A state data sensing unit is used to collect state data in the production of water-based paint through a sensor group, wherein the state data includes viscosity, temperature, pressure value, pH value, conductivity and flow data; An action data definition unit, used to define control action data in the production of water-based paint, wherein the control action data includes heating amount, cooling amount, stirring speed and raw material mixing ratio; State space and action space definition unit, used to create state space based on state data , and define the action space according to the control action data ; The network model building unit is used to build an Actor-Critic neural network model through the state space and the action space; and output the best prediction control result according to the built Actor-Critic neural network model, and the system controls the water-based paint production equipment according to the prediction control result; Features: The network model building unit specifically includes: The actor network model subunit is used to build the actor neural network model and output actions according to the input state space; Environment interaction unit, used to output actions Sent to the water-based paint production environment for execution, the environment responds based on the executed action and returns a new status and instant rewards ; The critic network model subunit is used to construct a critic neural network model and evaluate the expected return of taking an action in a state based on the input state space, and output a value function; A policy optimization subunit, which updates the parameters of the actor network according to the value function gradient provided by the critic network and updates the parameters of the critic network according to the temporal difference error; An iterative optimization output subunit is used for iterating until the parameters of the actor network and the parameters of the critic network converge, and controlling the water-based paint production according to the control action output by the actor network at this time; In the state space and action space definition unit, a state space is created according to the state data. Specifically expressed as: ; Among them, the Indicates at time The state vector, represents the viscosity parameter, Represents the temperature parameter, Represents the pressure parameter, Represents the pH parameter, represents the conductivity parameter, Indicates flow parameters; Define the action space based on the control action data Specifically expressed as: ; Among them, the Indicates at time The action vector, represents the decision function of the actor network, Based on the current state and network parameters Determine the best action, the represents the parameters of the actor network, Represents the heating parameter, represents the cooling capacity parameter, represents the stirring speed parameter, Indicates the raw material mixing ratio parameter; The instant reward Specifically expressed as: ; Among them, the Indicates an immediate reward, represents the weight coefficient used to balance the viscosity control accuracy, represents the weight coefficient used to balance energy consumption, represents the weight coefficient used to balance production efficiency, represents the target viscosity, represents the viscosity parameter, Represents the heating parameter, represents the cooling capacity parameter, Represents the production rate function, which is used to evaluate the production efficiency based on the current state and the actions taken, according to output, efficiency, quality and stability as the set of parameters affecting the production rate function.
2. A predictive control system for water-based paint production as claimed in claim 1, characterized in that: The network model building unit also includes a strategy optimization subunit: used to update the parameters of the actor network according to the value function gradient provided by the critic network, and update the parameters of the critic network according to the time difference error.
3. A predictive control system for water-based paint production as claimed in claim 2, characterized in that: The parameter updating of the actor network according to the value function gradient provided by the critic network is specifically expressed as: ; Among them, the represents the parameters of the actor network, represents the learning rate of the actor network, Represents the actions output by the actor network About its parameters The gradient of represents the parameters of the critic network, Represents the state of the critic network evaluation Take action The value function of .
4. A predictive control system for water-based paint production as claimed in claim 2, characterized in that: The parameters of the critic network are updated according to the time difference error as follows: ; Among them, the represents the parameters of the critic network, represents the learning rate of the critic network, represents the action output by the actor network About its parameters The gradient of represents the reward function, represents the discount factor, represents the state value function, Represents the state predicted by the critic network The value function of Represents the state predicted by the critic network The value function of .
5. A predictive control method for water-based paint production, the method is based on a predictive control system for water-based paint production according to any one of claims 1 to 4, characterized in that: The following steps are involved: S1. The status data of the water-based coating production is collected by the sensor group, wherein the status data includes viscosity, temperature, pressure, pH value, conductivity and flow data; S2. Define the control action data in the production of water-based paint, including heating amount, cooling amount, stirring speed and raw material mixing ratio, and create a state space based on the state data , and define the action space according to the control action data ; S3. Construct an Actor-Critic neural network model through state space and action space; and output the best prediction control result based on the constructed Actor-Critic neural network model, and the system controls the water-based paint production equipment according to the prediction control result; Wherein, the step S3 specifically includes the following sub-steps: S301. Actor network based on current state Through its parameters Decide on the action , output action Sent to the water-based paint production environment for execution; S302. The environment responds to the executed action and returns a new state and instant rewards ; S303. Critic network based on the current state and actions Evaluate execution actions The value function ; S304. Update the parameters of the actor network according to the value function gradient provided by the critic network , and update the parameters of the critic network according to the temporal difference error ; S305. Iterate step S301 until the parameter and Convergence, and the water-based paint production is controlled according to the control actions output by the actor network at this time.
6. A predictive control method for water-based paint production as claimed in claim 5, characterized in that: In step S2, a state space is created based on the state data. Specifically expressed as: ; Among them, the Indicates at time The state vector, represents the viscosity parameter, Represents the temperature parameter, Represents the pressure parameter, Represents the pH parameter, represents the conductivity parameter, Indicates flow parameters; Define the action space based on the control action data Specifically expressed as: ; Among them, the Indicates at time The action vector, represents the decision function of the actor network, Based on the current state and network parameters Determine the best action, the represents the parameters of the actor network, Represents the heating parameter, represents the cooling capacity parameter, represents the stirring speed parameter, Indicates the raw material mixing ratio parameter.
7. A predictive control method for water-based paint production as claimed in claim 5, characterized in that: In step S302, the instant reward Specifically expressed as: ; Among them, the Indicates an immediate reward, represents the weight coefficient used to balance the viscosity control accuracy, represents the weight coefficient used to balance energy consumption, represents the weight coefficient used to balance production efficiency, represents the target viscosity, represents the viscosity parameter, Represents the heating parameter, represents the cooling capacity parameter, Represents the production rate function, which is used to evaluate the production efficiency based on the current state and the actions taken, according to output, efficiency, quality and stability as the set of parameters affecting the production rate function.
8. A predictive control method for water-based paint production as claimed in claim 5, characterized in that: In step S304, the parameters of the actor network are updated according to the value function gradient provided by the critic network as follows: ; Among them, the represents the parameters of the actor network, represents the learning rate of the actor network, Represents the actions output by the actor network About its parameters The gradient of represents the parameters of the critic network, Represents the state of the critic network evaluation Take action The value function of The parameters of the critic network are updated according to the time difference error as follows: ; Among them, the represents the parameters of the critic network, represents the learning rate of the critic network, represents the action output by the actor network About its parameters The gradient of represents the reward function, represents the discount factor, represents the state value function, Represents the state predicted by the critic network The value function of Represents the state predicted by the critic network The value function of .
