Intelligent scheduling control method, system, equipment and medium for feed production line

The establishment of an energy consumption prediction model through reinforcement learning technology solves the problem of low efficiency of traditional feed production workshop scheduling and energy management, achieves accurate energy scheduling and cost reduction, forms a closed-loop optimization system, and improves the efficiency and accuracy of energy management. .

CN118642453BActive Publication Date: 2024-10-18WUWEI EVERGRANDE ANIMAL HUSBANDRY SERVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411124800.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-10-18
Estimated Expiration
2044-08-16

AI Technical Summary

Technical Problem

Traditional feed production workshop scheduling and energy management rely on manual experience and simple automated control, resulting in low efficiency and energy waste, and cannot meet the needs of modern industry.

Method used

Reinforcement learning technology is used to establish an energy consumption prediction model by collecting equipment energy control variables, equipment control parameters and environmental condition parameters, train the optimal energy scheduling strategy, and design constraints through optimization algorithms to minimize the total energy cost, achieving Automatic scheduling of energy consumption.

Benefits of technology

It improves the accuracy of energy consumption prediction and energy dispatching, reduces production costs, and establishes a closed-loop optimization system to enable the model to continuously improve itself during operation and focus on energy conservation and emission reduction goals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642453B_ABST
    Figure CN118642453B_ABST
Patent Text Reader

Abstract

The present application discloses an intelligent scheduling control method, system, equipment and medium for a feed production line, which relates to the field of production control technology. The method acquires a production plan by collecting equipment energy control variables, equipment control parameters and environmental condition parameters, defines the state, action, reward function and cumulative reward expectation of an intelligent agent, establishes an energy consumption prediction model, predicts the optimal energy scheduling strategy to obtain an energy consumption prediction value, evaluates the contribution of industrial equipment to the total energy cost and calculates the reward and punishment value, takes minimizing the total energy cost as the optimization goal, designs constraints, obtains the optimal energy control instructions to control the equipment energy control variables, operating power and operating status of each industrial equipment, calculates the energy cost saving rate, and uses the energy consumption data, equipment control parameters and environmental condition parameters of industrial equipment whose energy cost saving rate is greater than the saving rate threshold as samples to optimize the energy consumption prediction model, thereby reducing production costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of production control technology, and in particular to an intelligent scheduling control method, system, equipment and medium for a feed production line. Background Art

[0002] Feed production workshop is a very important link in modern animal husbandry, and its production efficiency and product quality directly affect the economic benefits of animal husbandry. The scheduling and energy management of traditional feed production workshops mainly rely on manual experience and simple automatic control, which has problems such as low efficiency and high energy consumption. With the development of artificial intelligence technology, its application in intelligent scheduling and energy optimization of feed production workshops can significantly improve production efficiency, reduce energy consumption, and improve economic benefits.

[0003] Traditional technical methods mainly rely on the experience and judgment of workshop managers, manually arrange production tasks and equipment operations, produce according to preset production plans, and use simple automation control systems such as PLC to achieve basic equipment start and stop and process control.

[0004] The patent application with publication number CN117707094A discloses a centralized workshop monitoring and production scheduling system, including: a data acquisition and issuance module, configured to complete data acquisition and scheduling instructions for each special machine equipment, and issuance of process data; a unified modeling and management module for scheduling objects, configured to manage production resource objects by uniformly defining the control model of the management equipment; a product process management module, configured to realize the management of the product process knowledge base; a production scheduling and integrated monitoring module, configured to analyze production tasks, real-time status of production resources, and instruction execution, dynamically allocate production resources and generate scheduling instructions to pass to the data acquisition and issuance module to complete the issuance of instructions, and monitor the human-machine-material-method-environment status and instruction execution in the production process, and push to the visualization display module when abnormal disturbance is found; the visualization display module is configured to display the real-time operation monitoring status of the workshop and abnormal alarm information.

[0005] Traditional production workshop scheduling and energy management methods can no longer meet the needs of modern industrial development, mainly reflected in the following shortcomings: extensive energy management methods, lack of refined energy monitoring and optimization measures, resulting in serious energy waste and high production costs. Summary of the invention

[0006] The present application aims to solve at least one of the technical problems in the related art to a certain extent. To this end, one purpose of the present application is to propose an intelligent scheduling control method, system, device and medium for a feed production line to reduce production costs and optimize energy consumption.

[0007] One aspect of the present application provides an intelligent scheduling control method for a feed production line, comprising:

[0008] Step S100: collecting equipment energy control variables, equipment control parameters and environmental condition parameters of the feed production workshop;

[0009] The specific method for collecting the equipment energy control variables, equipment control parameters and environmental condition parameters of the feed production workshop is:

[0010] Step S110: collecting equipment energy control variables of the feed production workshop through the industrial control system, wherein the equipment energy control variables include electric energy control amount, gas energy control amount and steam energy control amount, collecting the electric energy control amount of each industrial equipment through the smart meter, collecting the gas energy control amount of each industrial equipment through the gas flow meter, and collecting the steam energy control amount of each industrial equipment through the steam flow meter;

[0011] Step S120: collecting equipment control parameters through equipment sensors, wherein the equipment control parameters include equipment operating status, equipment load, equipment efficiency, and operating parameters;

[0012] Step S130: Collecting environmental condition parameters of the workshop through environmental sensors, wherein the environmental condition parameters include ambient temperature, ambient humidity, and ambient illumination of the workshop;

[0013] Step S200: Obtain the production plan of the feed production workshop, use the equipment energy control variables, equipment control parameters and environmental condition parameters to define the state, action, reward function and cumulative reward expectation of the agent, establish and train the energy consumption prediction model, use the trained energy consumption prediction model to predict the optimal energy scheduling strategy, and obtain the energy consumption prediction value;

[0014] The specific method of obtaining the production plan of the feed production workshop, defining the state, action, reward function and cumulative reward expectation of the agent by using the equipment energy control variables, equipment control parameters and environmental condition parameters, establishing and training the energy consumption prediction model, and using the trained energy consumption prediction model to predict the optimal energy scheduling strategy to obtain the energy consumption prediction value is as follows:

[0015] Step S210: Obtain the production plan of the feed production workshop, establish an energy consumption prediction model based on reinforcement learning, and define the state s of the intelligent agent, including: obtaining the production plan JH, equipment operation status YZ, equipment load FH, equipment efficiency XL, ambient temperature , Ambient humidity and ambient illumination , denoted as , They represent the equipment operation status, equipment load and equipment efficiency of the i-th industrial equipment respectively;

[0016] Step S220: define the action a of the agent, including: equipment energy control variables and operating parameters , denoted as , represents the equipment energy control variable of the i-th industrial equipment, represents the operating parameters of the i-th industrial equipment, wherein the operating parameters include operating power and operating status;

[0017] Step S230: define a reward function R(s, a), the expression of the reward function is: , where I is the total number of industrial equipment, The weight coefficient representing the equipment efficiency;

[0018] Step S240: Define cumulative reward expectations ;

[0019] The expected expression of the cumulative reward is: ,in, represents the expected value, γ represents the discount factor, Indicates in status Choose the best action The maximum cumulative reward that can be obtained;

[0020] Step S250: Create an experience replay pool D, and randomly extract batches of size For the jth transfer sample , calculate the target value of the jth transfer sample , use the current Q network to predict the action a under state s and get the predicted value , θ represents the parameters of the current Q network;

[0021] The target value of the j-th transfer sample The calculation formula is: ,in, represents the parameters of the target Q network, Indicates that the agent is in state Take action The reward function value after Indicates that the target Q network is in state Next action The predicted value of

[0022] Step S260: Calculate target value With the predicted value The TD error between is calculated as: ;

[0023] Step S270: Calculate target value With the predicted value The loss function between is calculated as: , taking minimizing the loss function as the training goal, the parameters of the current Q network are updated by the gradient descent method until the energy consumption prediction model training is completed when the preset number of training times is reached;

[0024] Step S280: using the trained energy consumption prediction model, predicting the next action according to the current state as the optimal energy scheduling strategy, the equipment energy control variable in the action is the energy consumption prediction value of each industrial equipment, and the sum of the energy consumption prediction values ​​of all industrial equipment is calculated to obtain the total energy consumption prediction value;

[0025] The calculation formula of the total energy consumption forecast value is: ,in, represents the predicted total energy consumption at time t, represents the predicted value of energy consumption of the i-th industrial equipment at time t;

[0026] Step S300: Taking each industrial device as a node, evaluating the contribution of each industrial device to the total energy cost and calculating the reward and penalty value based on the energy consumption forecast value and the real-time energy price, minimizing the total energy cost as the optimization goal, designing the constraint conditions, and using the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction;

[0027] The specific method of taking each industrial equipment as a node, evaluating the contribution of each industrial equipment to the total energy cost and calculating the reward and penalty value according to the energy consumption forecast value and the real-time energy price, minimizing the total energy cost as the optimization goal, designing the constraint conditions, and using the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction is as follows:

[0028] Step S310: taking each industrial equipment in the feed production workshop as a node, calculating the contribution of each industrial equipment to the total energy cost;

[0029] The calculation formula for the contribution of each industrial equipment to the total energy cost is: ,in, is the contribution of the i-th industrial equipment to the total energy cost, represents the factorial of the total number of industrial equipment, Represents the node set of all industrial equipment, Represents a node collection The subset that does not contain the i-th industrial equipment, Represents a node collection The set of industrial equipment i is not included in Representation Subset energy costs, Representation Subset The energy cost after adding the i-th industrial equipment is: Representation Subset The factorial of the size of Removing a subset and the factorial of the number of remaining industrial equipment after the i-th industrial equipment, For all subsets Perform summation;

[0030] Step S320: Setting reward and punishment coefficients , calculate the reward and penalty value of the i-th industrial equipment , the calculation formula is: ;

[0031] Step S330: combining the energy consumption forecast value, the real-time energy price and the reward and penalty value, taking minimizing the total energy cost as the optimization goal, designing the constraint conditions, and using the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction;

[0032] The expression of the optimization objective is: , where T represents the total number of time in the scheduling cycle, represents the real-time energy price at the tth moment;

[0033] The constraints include: non-negative predicted value of energy consumption of industrial equipment, energy demand of industrial equipment, and operating power limit of industrial equipment;

[0034] The constraint expression for the non-negative predicted value of energy consumption of the industrial equipment is: ;

[0035] The constraint expression of the energy demand of the industrial equipment is: ,in, represents the total energy demand at the tth moment;

[0036] The constraint expression of the operating power limit of the industrial equipment is: ,in, represents the operating power of the i-th industrial equipment at the t-th moment, and are the minimum operating power and maximum operating power of the i-th industrial equipment respectively;

[0037] Step S400: According to the optimal energy control instruction, the equipment energy control variables, operating power and operating status of each industrial equipment are controlled through the industrial control system;

[0038] The specific implementation method of controlling the equipment energy control variables, operating power and operating status of each industrial equipment through the industrial control system according to the optimal energy control instruction is: using the operating power as the power control instruction of each industrial equipment, using the operating status as the equipment start-stop control instruction, issuing the power control instruction and the equipment start-stop control instruction to each industrial equipment through the industrial control system, and executing the instructions through the equipment control system to realize automatic control of the industrial equipment;

[0039] Step S500: Collect the actual energy consumption data of each industrial equipment through the industrial control system, calculate the total energy cost in the actual scheduling period, calculate the energy cost saving rate after scheduling, and use the energy consumption data, equipment control parameters and environmental condition parameters of the industrial equipment whose energy cost saving rate is greater than the saving rate threshold as samples to optimize the energy consumption prediction model;

[0040] The specific method for collecting the actual energy consumption data of each industrial equipment through the industrial control system, calculating the total energy cost in the actual scheduling period, calculating the energy cost saving rate after scheduling, and taking the energy consumption data, equipment control parameters and environmental condition parameters of the industrial equipment whose energy cost saving rate is greater than the saving rate threshold as samples, and optimizing the energy consumption prediction model is as follows:

[0041] Step S510: Collect and calculate the actual energy consumption data of the i-th industrial equipment at the c-th time ;

[0042] The calculation formula for the actual energy consumption data of the ith industrial equipment at the cth time is: ,in, are the actual electric energy control amount, actual gas energy control amount and actual steam energy control amount of the ith industrial equipment at the cth moment, respectively. are the energy conversion coefficients for electricity, gas and steam, respectively;

[0043] Step S520: Calculate the total energy cost of the ith industrial equipment in the actual scheduling period according to the actual energy consumption data of the ith industrial equipment at the cth time and the real-time energy price at the cth time. The calculation formula is: ,in, is the total energy cost of the ith industrial equipment in the actual scheduling period, is the real-time energy price at the cth moment, and C is the total number of moments in the actual scheduling cycle;

[0044] Step S530: Calculate the energy cost saving rate of the i-th industrial equipment in the actual scheduling cycle , the calculation formula is: ,in, is the energy cost of the i-th industrial equipment when it is not optimized;

[0045] Step S540: Preset a saving rate threshold W, when the energy cost saving rate of the i-th industrial equipment When it is greater than the saving rate threshold W, the energy consumption data of the industrial equipment and the corresponding equipment control parameters and environmental condition parameters in the actual scheduling period are used as samples to optimize the energy consumption prediction model.

[0046] One aspect of the present application provides an intelligent scheduling control system for a feed production line, comprising:

[0047] Feed workshop data collection module, used to collect equipment energy control variables, equipment control parameters and environmental condition parameters in the feed production workshop;

[0048] The reinforcement learning energy consumption prediction module is used to obtain the production plan of the feed production workshop, use the equipment energy control variables, equipment control parameters and environmental condition parameters to define the state, action, reward function and cumulative reward expectation of the intelligent agent, establish and train the energy consumption prediction model, and use the trained energy consumption prediction model to predict the optimal energy scheduling strategy to obtain the energy consumption prediction value;

[0049] The energy control instruction optimization module is used to take each industrial equipment as a node, evaluate the contribution of each industrial equipment to the total energy cost and calculate the reward and penalty value based on the energy consumption forecast value and real-time energy price, take minimizing the total energy cost as the optimization goal, design constraints, and use the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction;

[0050] Energy dispatch control implementation module, used to control the equipment energy control variables, operating power and operating status of each industrial equipment through the industrial control system according to the optimal energy control instructions;

[0051] The cost calculation and model optimization module is used to collect the actual energy consumption data of each industrial equipment through the industrial control system, calculate the total energy cost within the actual scheduling cycle, calculate the energy cost saving rate after scheduling, and use the energy consumption data, equipment control parameters and environmental condition parameters of industrial equipment with energy cost saving rate greater than the saving rate threshold as samples to optimize the energy consumption prediction model.

[0052] One aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in an intelligent scheduling control method for a feed production line are implemented.

[0053] One aspect of the present application provides a readable storage medium storing a computer program, wherein the computer program is suitable for loading by a processor to execute steps in a method for intelligent scheduling and control of a feed production line.

[0054] The feed production line intelligent scheduling control method, system, device and medium proposed in this application have the following advantages over the prior art:

[0055] This application introduces reinforcement learning into energy consumption prediction, defines key elements such as state, action, and reward function, and uses techniques such as experience replay and gradient descent to train the prediction model, transforming the energy consumption prediction problem into a sequential decision-making problem, and using the idea of ​​reinforcement learning to model and solve it, overcoming the limitations of traditional methods. The trained model can predict the optimal energy scheduling strategy based on the current state, thereby improving the accuracy of energy consumption prediction.

[0056] This application optimizes energy scheduling based on predictions, introduces the idea of ​​game theory, regards each industrial equipment as a node in game theory, evaluates its contribution to the total energy cost, and calculates the reward and punishment value accordingly. The energy consumption forecast, real-time energy price and reward and punishment value are comprehensively considered in the optimization goal, making the optimization more comprehensive and accurate.

[0057] This application introduces a feedback optimization mechanism. By comparing the savings rate threshold, industrial equipment with significant energy-saving effects is screened out, and its data is used as a sample to optimize the energy consumption prediction model. The innovation lies in the establishment of a complete closed-loop optimization system, which enables the prediction model to continuously improve and improve itself during operation. At the same time, using the energy cost savings rate as a screening criterion can focus more on the goal of energy conservation and emission reduction. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A method flow chart of an intelligent scheduling control method for a feed production line provided in this application;

[0059] Figure 2 A functional module diagram of an intelligent scheduling and control system for a feed production line provided in this application;

[0060] Figure 3 A schematic diagram of the structure of an electronic device provided in this application;

[0061] Figure 4 It is a schematic diagram of the structure of a readable storage medium provided by this application. DETAILED DESCRIPTION

[0062] In order to better understand the present application, various aspects of the present application will be described in more detail with reference to the accompanying drawings. It should be understood that these detailed descriptions are only descriptions of exemplary embodiments of the present application and do not limit the scope of the present application in any way. Throughout the specification, the same reference numerals refer to the same elements. The expression "and / or" includes any and all combinations of one or more of the associated listed items.

[0063] In the accompanying drawings, the size, dimensions and shapes of the elements have been slightly adjusted for ease of illustration. The drawings are for illustration only and are not strictly drawn to scale. As used herein, the terms "substantially", "approximately" and similar terms are used as terms of approximation, not as terms of degree, and are intended to illustrate the inherent deviations in measurements or calculations that will be recognized by those of ordinary skill in the art. In addition, in this application, the order in which the steps are described does not necessarily represent the order in which these processes occur in actual operation, unless otherwise specified or can be derived from the context.

[0064] It should also be understood that expressions such as "including", "comprising", "having", "containing" and / or "comprising" are open rather than closed expressions in this specification, which indicate the presence of the stated features, elements and / or components, but do not exclude the presence of one or more other features, elements, components and / or combinations thereof. In addition, when expressions such as "at least one of..." appear after a list of listed features, they modify the entire list of features rather than just the individual elements in the list. In addition, when describing embodiments of the present application, "may" is used to mean "one or more embodiments of the present application". And, the term "exemplary" is intended to refer to an example or illustration.

[0065] Unless otherwise defined, all words (including engineering terms and scientific and technological terms) used in this article have the same meaning as those commonly understood by ordinary technicians in the field to which this application belongs. It should also be understood that unless there is a clear explanation in this application, words defined in commonly used dictionaries should be interpreted as having the same meaning as their meaning in the context of the relevant technology, and should not be interpreted in an idealized or overly formal sense.

[0066] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0067] Example 1

[0068] like Figure 1 As shown, a feed production line intelligent scheduling control method provided by the present application includes:

[0069] Step S100: collecting equipment energy control variables, equipment control parameters and environmental condition parameters of the feed production workshop;

[0070] The specific method for collecting the equipment energy control variables, equipment control parameters and environmental condition parameters of the feed production workshop is:

[0071] Step S110: collecting equipment energy control variables of the feed production workshop through the industrial control system, wherein the equipment energy control variables include electric energy control amount, gas energy control amount and steam energy control amount, collecting the electric energy control amount of each industrial equipment through the smart meter, collecting the gas energy control amount of each industrial equipment through the gas flow meter, and collecting the steam energy control amount of each industrial equipment through the steam flow meter;

[0072] Step S120: collecting equipment control parameters through equipment sensors, wherein the equipment control parameters include equipment operating status, equipment load, equipment efficiency, and operating parameters;

[0073] Step S130: Collecting environmental condition parameters of the workshop through environmental sensors, wherein the environmental condition parameters include ambient temperature, ambient humidity, and ambient illumination of the workshop;

[0074] This step comprehensively collects various data from the feed production workshop, providing a data basis for subsequent energy consumption prediction and optimization.

[0075] Step S200: Obtain the production plan of the feed production workshop, use the equipment energy control variables, equipment control parameters and environmental condition parameters to define the state, action, reward function and cumulative reward expectation of the agent, establish and train the energy consumption prediction model, use the trained energy consumption prediction model to predict the optimal energy scheduling strategy, and obtain the energy consumption prediction value;

[0076] The specific method of obtaining the production plan of the feed production workshop, defining the state, action, reward function and cumulative reward expectation of the agent by using the equipment energy control variables, equipment control parameters and environmental condition parameters, establishing and training the energy consumption prediction model, and using the trained energy consumption prediction model to predict the optimal energy scheduling strategy to obtain the energy consumption prediction value is as follows:

[0077] Step S210: Obtain the production plan of the feed production workshop, establish an energy consumption prediction model based on reinforcement learning, and define the state s of the intelligent agent, including: obtaining the production plan JH, equipment operation status YZ, equipment load FH, equipment efficiency XL, ambient temperature , Ambient humidity and ambient illumination , denoted as , They represent the equipment operation status, equipment load and equipment efficiency of the i-th industrial equipment respectively;

[0078] Preferably, the energy consumption prediction model based on reinforcement learning is a deep Q model;

[0079] Step S220: define the action a of the agent, including: equipment energy control variables and operating parameters , denoted as , represents the equipment energy control variable of the i-th industrial equipment, represents the operating parameters of the i-th industrial equipment, wherein the operating parameters include operating power and operating status;

[0080] Step S230: define a reward function R(s, a), the expression of the reward function is: , where I is the total number of industrial equipment, The weight coefficient representing the equipment efficiency;

[0081] The weight coefficient of the equipment efficiency is set according to the actual needs and experience of those skilled in the art;

[0082] Step S240: Defining cumulative reward expectations ;

[0083] The cumulative reward expectation refers to the expected value of the long-term reward for taking action a in state s, which is represented by , represents the average value of the cumulative reward that the agent is expected to obtain after taking action a in state s;

[0084] The expected expression of the cumulative reward is: ,in, represents the expected value, γ represents the discount factor, Indicates in status Choose the best action The maximum cumulative reward that can be obtained;

[0085] The discount factor represents the attenuation degree of the reward function in the future, and the value is between 0 and 1. The larger the discount factor, the more emphasis is placed on long-term rewards.

[0086] The value of the discount factor is artificially set by those skilled in the art according to the importance attached to long-term rewards;

[0087] Step S250: Create an experience replay pool D, and randomly extract batches of size For the jth transfer sample , calculate the target value of the jth transfer sample , use the current Q network to predict the action a under state s and get the predicted value , θ represents the parameters of the current Q network;

[0088] Indicates that the current Q network is in state Next action The predicted value of

[0089] The target value of the j-th transfer sample The calculation formula is: ,in, represents the parameters of the target Q network, Indicates that the agent is in state Take action The reward function value after Indicates that the target Q network is in state Next action The predicted value of

[0090] The experience replay pool is a buffer for storing transfer samples. After each step of interaction with the environment, the transfer samples are stored in the experience replay pool.

[0091] The target value is a key quantity used to update the current Q network, representing the expected cumulative reward of the agent after taking a certain action in the current state, and is calculated using the output of the target Q network;

[0092] Step S260: Calculate target value With the predicted value The TD error between is calculated as: ;

[0093] Step S270: Calculate target value With the predicted value The loss function between is calculated as: , taking minimizing the loss function as the training goal, the parameters of the current Q network are updated by the gradient descent method until the energy consumption prediction model training is completed when the preset number of training times is reached;

[0094] The preset number of training times is set according to the experience and needs of those skilled in the art;

[0095] Step S280: using the trained energy consumption prediction model, predicting the next action according to the current state as the optimal energy scheduling strategy, the equipment energy control variable in the action is the energy consumption prediction value of each industrial equipment, and the sum of the energy consumption prediction values ​​of all industrial equipment is calculated to obtain the total energy consumption prediction value;

[0096] The calculation formula of the total energy consumption forecast value is: ,in, represents the predicted total energy consumption at time t, represents the predicted value of energy consumption of the i-th industrial equipment at time t;

[0097] Step S300: Taking each industrial device as a node, evaluating the contribution of each industrial device to the total energy cost and calculating the reward and penalty value based on the energy consumption forecast value and the real-time energy price, minimizing the total energy cost as the optimization goal, designing the constraint conditions, and using the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction;

[0098] The specific method of taking each industrial equipment as a node, evaluating the contribution of each industrial equipment to the total energy cost and calculating the reward and penalty value according to the energy consumption forecast value and the real-time energy price, minimizing the total energy cost as the optimization goal, designing the constraint conditions, and using the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction is as follows:

[0099] Step S310: taking each industrial equipment in the feed production workshop as a node, calculating the contribution of each industrial equipment to the total energy cost;

[0100] The calculation formula for the contribution of each industrial equipment to the total energy cost is: ,in, is the contribution of the i-th industrial equipment to the total energy cost, represents the factorial of the total number of industrial equipment, Represents the node set of all industrial equipment, Represents a node collection The subset that does not contain the i-th industrial equipment, Represents a node collection The set of industrial equipment i is not included in Representation Subset energy costs, Representation Subset The energy cost after adding the i-th industrial equipment is: Representation Subset The factorial of the size of Removing a subset and the factorial of the number of remaining industrial equipment after the i-th industrial equipment, For all subsets Perform summation;

[0101] Step S320: Setting reward and punishment coefficients , calculate the reward and penalty value of the i-th industrial equipment , the calculation formula is: ;

[0102] The reward and penalty value is a parameter used to quantitatively evaluate the performance of each industrial equipment in terms of energy consumption;

[0103] The reward and punishment coefficient It is set by technical personnel in this field according to actual conditions and experience. When the reward and punishment coefficient is a positive value, it indicates a reward, and when the reward and punishment coefficient is a negative value, it indicates a punishment.

[0104] Step S330: combining the energy consumption forecast value, the real-time energy price and the reward and penalty value, taking minimizing the total energy cost as the optimization goal, designing the constraint conditions, and using the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction;

[0105] Preferably, the optimization algorithm is a mixed integer programming algorithm or a heuristic algorithm;

[0106] Mixed integer programming algorithms are suitable for small and medium-sized problems and have a faster solution speed; heuristic algorithms are suitable for large-scale nonlinear optimization problems and can obtain approximate optimal solutions in a shorter time; the specific choice of algorithm needs to be considered comprehensively based on factors such as the scale of the problem and the solution time requirements;

[0107] In order to handle the situation of multiple energy sources, it is necessary to convert the data of different energy sources into standard energy units. For example, the data of gas energy and steam energy should be converted into equivalent electric energy, and the optimization objectives and constraints should be expressed in a unified energy unit.

[0108] The expression of the optimization objective is: , where T represents the total number of time in the scheduling cycle, represents the real-time energy price at the tth moment;

[0109] The constraints include: non-negative predicted value of energy consumption of industrial equipment, energy demand of industrial equipment, and operating power limit of industrial equipment;

[0110] The constraint expression for the non-negative predicted value of energy consumption of the industrial equipment is: ;

[0111] The constraint expression of the energy demand of the industrial equipment is: ,in, represents the total energy demand at the tth moment;

[0112] The constraint expression of the operating power limit of the industrial equipment is: ,in, represents the operating power of the i-th industrial equipment at the t-th moment, and are the minimum operating power and maximum operating power of the i-th industrial equipment respectively;

[0113] Step S400: According to the optimal energy control instruction, the equipment energy control variables, operating power and operating status of each industrial equipment are controlled through the industrial control system;

[0114] The specific implementation method of controlling the equipment energy control variables, operating power and operating status of each industrial equipment through the industrial control system according to the optimal energy control instruction is: using the operating power as the power control instruction of each industrial equipment, using the operating status as the equipment start and stop control instruction, issuing the power control instruction and the equipment start and stop control instruction to each industrial equipment through the industrial control system, and executing the instructions through the equipment control system to realize automatic control of the equipment;

[0115] Step S500: Collect the actual energy consumption data of each industrial equipment through the industrial control system, calculate the total energy cost in the actual scheduling period, calculate the energy cost saving rate after scheduling, and use the energy consumption data, equipment control parameters and environmental condition parameters of the industrial equipment whose energy cost saving rate is greater than the saving rate threshold as samples to optimize the energy consumption prediction model;

[0116] The specific method for collecting the actual energy consumption data of each industrial equipment through the industrial control system, calculating the total energy cost in the actual scheduling period, calculating the energy cost saving rate after scheduling, and taking the energy consumption data, equipment control parameters and environmental condition parameters of the industrial equipment whose energy cost saving rate is greater than the saving rate threshold as samples, and optimizing the energy consumption prediction model is as follows:

[0117] Step S510: Collect and calculate the actual energy consumption data of the i-th industrial equipment at the c-th time ;

[0118] The calculation formula for the actual energy consumption data of the ith industrial equipment at the cth time is: ,in, are the actual electric energy control amount, actual gas energy control amount and actual steam energy control amount of the ith industrial equipment at the cth moment, respectively. are the energy conversion coefficients for electricity, gas and steam, respectively;

[0119] Step S520: Calculate the total energy cost of the ith industrial equipment in the actual scheduling period according to the actual energy consumption data of the ith industrial equipment at the cth time and the real-time energy price at the cth time. The calculation formula is: ,in, is the total energy cost of the ith industrial equipment in the actual scheduling period, is the real-time energy price at the cth moment, and C is the total number of moments in the actual scheduling cycle;

[0120] Step S530: Calculate the energy cost saving rate of the i-th industrial equipment in the actual scheduling cycle , the calculation formula is: ,in, is the energy cost of the i-th industrial equipment when it is not optimized;

[0121] Step S540: Preset a saving rate threshold W, when the energy cost saving rate of the i-th industrial equipment When it is greater than the saving rate threshold W, the energy consumption data of the industrial equipment and the corresponding equipment control parameters and environmental condition parameters in the actual scheduling period are used as samples to optimize the energy consumption prediction model;

[0122] The saving rate threshold W is set by those skilled in the art according to actual needs.

[0123] Example 2

[0124] like Figure 2 As shown, an intelligent scheduling and control system for a feed production line provided by the present application includes:

[0125] Feed workshop data collection module, used to collect equipment energy control variables, equipment control parameters and environmental condition parameters in the feed production workshop;

[0126] The reinforcement learning energy consumption prediction module is used to obtain the production plan of the feed production workshop, use the equipment energy control variables, equipment control parameters and environmental condition parameters to define the state, action, reward function and cumulative reward expectation of the intelligent agent, establish and train the energy consumption prediction model, and use the trained energy consumption prediction model to predict the optimal energy scheduling strategy to obtain the energy consumption prediction value;

[0127] The energy control instruction optimization module is used to take each industrial equipment as a node, evaluate the contribution of each industrial equipment to the total energy cost and calculate the reward and penalty value based on the energy consumption forecast value and real-time energy price, take minimizing the total energy cost as the optimization goal, design constraints, and use the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction;

[0128] Energy dispatch control implementation module, used to control the equipment energy control variables, operating power and operating status of each industrial equipment through the industrial control system according to the optimal energy control instructions;

[0129] The cost calculation and model optimization module is used to collect the actual energy consumption data of each industrial equipment through the industrial control system, calculate the total energy cost within the actual scheduling cycle, calculate the energy cost saving rate after scheduling, and use the energy consumption data, equipment control parameters and environmental condition parameters of industrial equipment with energy cost saving rate greater than the saving rate threshold as samples to optimize the energy consumption prediction model.

[0130] Example 3

[0131] Figure 3 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 3 As shown, according to one aspect of the present application, an electronic device is also provided. The electronic device may include one or more processors and one or more memories. The memories store computer readable codes, and when the computer readable codes are executed by one or more processors, a feed production line intelligent scheduling control method as described above may be executed.

[0132] The method or system according to the embodiment of the present application can also be used by Figure 3 The electronic device architecture shown in FIG. Figure 3 As shown, the electronic device may include a bus, one or more CPUs, a read-only memory (ROM), a random access memory (RAM), a communication port connected to a network, an input / output component, a hard disk, etc. A storage device in the electronic device, such as a ROM or a hard disk, may store a feed production line intelligent scheduling control method provided in the present application. An intelligent scheduling and control method for a feed production line may, for example, include: collecting equipment energy control variables, equipment control parameters and environmental condition parameters of a feed production workshop; obtaining a production plan of the feed production workshop, defining the state, action, reward function and cumulative reward expectation of an intelligent agent using the equipment energy control variables, equipment control parameters and environmental condition parameters, establishing and training an energy consumption prediction model, and using the trained energy consumption prediction model to predict the optimal energy scheduling strategy to obtain an energy consumption prediction value; taking each industrial equipment as a node, evaluating the contribution of each industrial equipment to the total energy cost according to the energy consumption prediction value and the real-time energy price and calculating the reward and punishment value, taking minimizing the total energy cost as an optimization goal, designing constraints, and using an optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction; according to the optimal energy control instruction, controlling the equipment energy control variables, operating power and operating state of each industrial equipment through an industrial control system; collecting the actual energy consumption data of each industrial equipment through the industrial control system, calculating the total energy cost in the actual scheduling cycle, calculating the energy cost saving rate after scheduling, and taking the energy consumption data, equipment control parameters and environmental condition parameters of industrial equipment whose energy cost saving rate is greater than the saving rate threshold as samples to optimize the energy consumption prediction model. Furthermore, the electronic device may also include a user interface. Figure 3 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 3 One or more components of an electronic device are shown.

[0133] Example 4

[0134] Figure 4 Schematic diagram of a readable storage medium structure provided by an embodiment of the present application. Figure 4 As shown, a computer-readable storage medium stores computer-readable instructions. When the computer-readable instructions are executed by the processor, a feed production line intelligent scheduling control method according to an embodiment of the present application described with reference to the above figures can be executed. The storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache). Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.

[0135] In addition, according to the implementation mode of the present application, the process described in the above reference flowchart can be implemented as a computer software program. For example, the present application provides a non-transitory machine-readable storage medium, which stores machine-readable instructions, and the machine-readable instructions can be executed by a processor to execute instructions corresponding to the method steps provided in the present application, such as: collecting equipment energy control variables, equipment control parameters and environmental condition parameters of the feed production workshop; obtaining the production plan of the feed production workshop, using the equipment energy control variables, equipment control parameters and environmental condition parameters to define the state, action, reward function and cumulative reward expectation of the intelligent agent, establishing an energy consumption prediction model and training it, using the trained energy consumption prediction model to predict the optimal energy scheduling strategy, and obtaining the energy consumption prediction value; taking each industrial equipment as a node, according to the energy The consumption forecast value and real-time energy price evaluate the contribution of each industrial equipment to the total energy cost and calculate the reward and penalty value, taking the minimization of the total energy cost as the optimization goal, designing the constraint conditions, and using the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction; according to the optimal energy control instruction, the equipment energy control variables, operating power and operating status of each industrial equipment are controlled through the industrial control system; the actual energy consumption data of each industrial equipment is collected through the industrial control system, the total energy cost in the actual scheduling cycle is calculated, and the energy cost saving rate after scheduling is calculated. The energy consumption data, equipment control parameters and environmental condition parameters of industrial equipment with an energy cost saving rate greater than the saving rate threshold are used as samples to optimize the energy consumption prediction model. When the computer program is executed by the central processing unit (CPU), the above functions defined in the method of this application are executed.

[0136] The methods, apparatuses, and devices of the present application may be implemented in many ways. For example, the methods, apparatuses, and devices of the present application may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present application are not limited to the order specifically described above unless otherwise specified. In addition, in some embodiments, the present application may also be implemented as programs recorded in a recording medium, which include machine-readable instructions for implementing the method according to the present application. Therefore, the present application also covers recording media storing programs for executing the method according to the present application.

[0137] In addition, the parts of the above-mentioned technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive redundancy.

[0138] The specific implementation modes as described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation mode of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A feed production line intelligent scheduling control method, characterized in that: include: Collect equipment energy control variables, equipment control parameters and environmental condition parameters in the feed production workshop; Obtain the production plan of the feed production workshop, use the equipment energy control variables, equipment control parameters and environmental condition parameters to define the state, action, reward function and cumulative reward expectation of the intelligent agent, establish and train the energy consumption prediction model, use the trained energy consumption prediction model to predict the optimal energy scheduling strategy, and obtain the energy consumption prediction value; Take each industrial equipment as a node, evaluate the contribution of each industrial equipment to the total energy cost and calculate the reward and penalty value based on the energy consumption forecast value and real-time energy price, take minimizing the total energy cost as the optimization goal, design constraints, and use the optimization algorithm to solve the optimization goal to obtain the optimal energy control instructions; According to the optimal energy control instructions, the equipment energy control variables, operating power and operating status of each industrial equipment are controlled through the industrial control system; The actual energy consumption data of each industrial equipment is collected through the industrial control system, the total energy cost in the actual scheduling cycle is calculated, the energy cost saving rate after scheduling is calculated, and the energy consumption data, equipment control parameters and environmental condition parameters of industrial equipment with energy cost saving rate greater than the saving rate threshold are used as samples to optimize the energy consumption prediction model; The specific method of obtaining the production plan of the feed production workshop, defining the state, action, reward function and cumulative reward expectation of the agent by using the equipment energy control variables, equipment control parameters and environmental condition parameters, establishing and training the energy consumption prediction model, and using the trained energy consumption prediction model to predict the optimal energy scheduling strategy to obtain the energy consumption prediction value is as follows: Obtain the production plan of the feed production workshop, establish an energy consumption prediction model based on reinforcement learning, and define the state s of the intelligent agent, including: obtaining the production plan JH, equipment operation status YZ, equipment load FH, equipment efficiency XL, and ambient temperature , Ambient humidity and ambient illumination , denoted as , They represent the equipment operation status, equipment load and equipment efficiency of the i-th industrial equipment respectively; Define the action a of the agent, including: equipment energy control variables and operating parameters , denoted as , represents the equipment energy control variable of the i-th industrial equipment, represents the operating parameters of the i-th industrial equipment, wherein the operating parameters include operating power and operating status; Define a reward function R(s, a), the expression of the reward function is: , where I is the total number of industrial equipment, The weight coefficient representing the equipment efficiency; Defining cumulative reward expectations ; The expected cumulative reward expression is: ,in, represents the expected value, γ represents the discount factor, Indicates in status Choose the best action The maximum cumulative reward that can be obtained; Create an experience replay pool D and randomly extract batches of size For the jth transfer sample , calculate the target value of the jth transfer sample , use the current Q network to predict the action a under state s and get the predicted value , θ represents the parameters of the current Q network; The target value of the j-th transfer sample The calculation formula is: ,in, represents the parameters of the target Q network, Indicates that the agent is in state Take action The reward function value after Indicates that the target Q network is in state Next action The predicted value of Calculate target value With the predicted value The TD error between is calculated as: ; Calculate target value With the predicted value The loss function between is calculated as: , taking minimizing the loss function as the training goal, the parameters of the current Q network are updated by the gradient descent method until the energy consumption prediction model training is completed when the preset number of training times is reached; Using the trained energy consumption prediction model, the next action is predicted according to the current state as the optimal energy scheduling strategy. The equipment energy control variable in the action is the energy consumption prediction value of each industrial equipment. The sum of the energy consumption prediction values ​​of all industrial equipment is calculated to obtain the total energy consumption prediction value. The calculation formula of the total energy consumption forecast value is: ,in, represents the predicted total energy consumption at time t, Represents the predicted energy consumption value of the i-th industrial equipment at time t.

2. The intelligent scheduling control method for a feed production line according to claim 1, characterized in that: The specific method for collecting the equipment energy control variables, equipment control parameters and environmental condition parameters of the feed production workshop is: The equipment energy control variables of the feed production workshop are collected through the industrial control system, and the equipment energy control variables include the electric energy control amount, the gas energy control amount and the steam energy control amount. The electric energy control amount of each industrial equipment is collected through the smart meter, the gas energy control amount of each industrial equipment is collected through the gas flow meter, and the steam energy control amount of each industrial equipment is collected through the steam flow meter; Collecting equipment control parameters through equipment sensors, wherein the equipment control parameters include equipment operating status, equipment load, equipment efficiency, and operating parameters; The environmental condition parameters of the workshop are collected by environmental sensors, and the environmental condition parameters include the ambient temperature, ambient humidity and ambient illumination of the workshop.

3. The intelligent scheduling control method for a feed production line according to claim 2, characterized in that: The specific method of taking each industrial equipment as a node, evaluating the contribution of each industrial equipment to the total energy cost and calculating the reward and penalty value according to the energy consumption forecast value and the real-time energy price, minimizing the total energy cost as the optimization goal, designing the constraint conditions, and using the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction is as follows: Taking each industrial equipment in the feed production workshop as a node, the contribution of each industrial equipment to the total energy cost is calculated; The calculation formula for the contribution of each industrial equipment to the total energy cost is: ,in, is the contribution of the i-th industrial equipment to the total energy cost, represents the factorial of the total number of industrial equipment, Represents the node set of all industrial equipment, Represents a node collection The subset that does not contain the i-th industrial equipment, Represents a node collection The set of industrial equipment i is not included in Representation Subset energy costs, Representation Subset The energy cost after adding the i-th industrial equipment is: Representation Subset The factorial of the size of Removing a subset and the factorial of the number of remaining industrial equipment after the i-th industrial equipment, For all subsets Perform summation; Set reward and punishment coefficients , calculate the reward and penalty value of the i-th industrial equipment , the calculation formula is: ; Combined with the predicted energy consumption, real-time energy price and reward and penalty value, the minimization of total energy cost is taken as the optimization goal, the constraints are designed, and the optimization algorithm is used to solve the optimization goal to obtain the optimal energy control instructions; The expression of the optimization objective is: , where T represents the total number of time in the scheduling cycle, Represents the real-time energy price at the tth moment.

4. The intelligent scheduling control method for a feed production line according to claim 3, characterized in that: The constraints include: non-negative predicted value of energy consumption of industrial equipment, energy demand of industrial equipment, and operating power limit of industrial equipment; The constraint expression for the non-negative predicted value of energy consumption of the industrial equipment is: ; The constraint expression of the energy demand of the industrial equipment is: ,in, represents the total energy demand at the tth moment; The constraint expression of the operating power limit of the industrial equipment is: ,in, represents the operating power of the i-th industrial equipment at the t-th moment, and are the minimum operating power and maximum operating power of the i-th industrial equipment respectively.

5. The intelligent scheduling control method for a feed production line according to claim 4, characterized in that: The specific implementation method of controlling the equipment energy control variables, operating power and operating status of each industrial equipment through an industrial control system according to the optimal energy control instruction is: using the operating power as the power control instruction of each industrial equipment, and using the operating status as the equipment start and stop control instruction, issuing the power control instruction and the equipment start and stop control instruction to each industrial equipment through the industrial control system, and executing the instructions through the equipment control system to realize automatic control of the industrial equipment.

6. The intelligent scheduling control method for a feed production line according to claim 5, characterized in that: The specific method for collecting the actual energy consumption data of each industrial equipment through the industrial control system, calculating the total energy cost in the actual scheduling period, calculating the energy cost saving rate after scheduling, and taking the energy consumption data, equipment control parameters and environmental condition parameters of the industrial equipment whose energy cost saving rate is greater than the saving rate threshold as samples, and optimizing the energy consumption prediction model is as follows: Collect and calculate the actual energy consumption data of the i-th industrial equipment at the c-th time ; The calculation formula for the actual energy consumption data of the ith industrial equipment at the cth time is: ,in, are the actual electric energy control amount, actual gas energy control amount and actual steam energy control amount of the ith industrial equipment at the cth moment, respectively. are the energy conversion coefficients for electricity, gas and steam, respectively; The total energy cost of the ith industrial equipment in the actual scheduling cycle is calculated based on the actual energy consumption data of the ith industrial equipment at the cth moment and the real-time energy price at the cth moment. The calculation formula is: ,in, is the total energy cost of the ith industrial equipment in the actual scheduling period, is the real-time energy price at the cth moment, and C is the total number of moments in the actual scheduling cycle; Calculate the energy cost saving rate of the i-th industrial equipment in the actual scheduling cycle , the calculation formula is: ,in, is the energy cost of the i-th industrial equipment when it is not optimized; The preset saving rate threshold W is When it is greater than the saving rate threshold W, the energy consumption data of the industrial equipment and the corresponding equipment control parameters and environmental condition parameters in the actual scheduling period are used as samples to optimize the energy consumption prediction model.

7. An intelligent scheduling and control system for a feed production line, which is used to implement an intelligent scheduling and control method for a feed production line according to any one of claims 1 to 6, characterized in that: include: Feed workshop data collection module, used to collect equipment energy control variables, equipment control parameters and environmental condition parameters in the feed production workshop; The reinforcement learning energy consumption prediction module is used to obtain the production plan of the feed production workshop, use the equipment energy control variables, equipment control parameters and environmental condition parameters to define the state, action, reward function and cumulative reward expectation of the intelligent agent, establish and train the energy consumption prediction model, and use the trained energy consumption prediction model to predict the optimal energy scheduling strategy to obtain the energy consumption prediction value; The energy control instruction optimization module is used to take each industrial equipment as a node, evaluate the contribution of each industrial equipment to the total energy cost and calculate the reward and penalty value based on the energy consumption forecast value and real-time energy price, take minimizing the total energy cost as the optimization goal, design constraints, and use the optimization algorithm to solve the optimization goal to obtain the optimal energy control instruction; Energy dispatch control implementation module, used to control the equipment energy control variables, operating power and operating status of each industrial equipment through the industrial control system according to the optimal energy control instructions; The cost calculation and model optimization module is used to collect the actual energy consumption data of each industrial equipment through the industrial control system, calculate the total energy cost within the actual scheduling cycle, calculate the energy cost saving rate after scheduling, and use the energy consumption data, equipment control parameters and environmental condition parameters of industrial equipment with energy cost saving rate greater than the saving rate threshold as samples to optimize the energy consumption prediction model.

8. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the intelligent scheduling control method for a feed production line as described in any one of claims 1 to 6 are implemented.

9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps in the intelligent scheduling control method for a feed production line as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Workshop centralized monitoring and production scheduling system

    CN117707094A

  • Dynamic multi-target scheduling method for low-carbon distributed flexible job shop

    CN116500994A

  • Multi-target dynamic flexible job shop scheduling method about energy consumption based on deep reinforcement learning

    CN116644902A