Intelligent optimization control system for etherification agent preparation process
By using a multivariate mapping model and historical data analysis, composite control commands are generated, which solves the control mismatch problem caused by the coupling changes of multiple parameters during the preparation of etherifying agents and improves the system's operational stability.
Patent Information
- Application Number
- CN202611399131.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-27
AI Technical Summary
In the existing etherifying agent preparation process, the changes in multiple coupled parameters are difficult to accurately reflect, resulting in a mismatch between control commands and actual process requirements, which affects the stability of system operation.
By using a multivariate mapping model, real-time process data is converted into multi-valued logic state vectors, and combined with historical data to generate composite control commands, intelligent optimization control of the etherifying agent preparation process is achieved.
It improves the targeting of operating condition identification and control commands, and enhances the operational stability of the etherifying agent preparation process.
Smart Images

Figure CN123167779A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of control, and in particular relates to an intelligent optimization control system for the preparation process of etherifying agents. Background Technology
[0002] In the industrial production of etherifying agents, the operating state of the reaction system is influenced by multiple process parameters, including feed flow rate, reaction temperature, reaction pressure, and catalyst activity. Existing chemical production plants typically collect these process parameters through intelligent monitoring systems, and the control system or operators adjust the parameters based on single-moment values, comparing them with standard operating procedures or historical experience. This type of control is insufficient to fully reflect the impact of coupled changes in multiple parameters and slow-moving variables such as catalyst activity on the reaction process, easily leading to biased judgments of operating conditions. Furthermore, when multiple parameters fluctuate collaboratively, existing methods struggle to determine the primary control targets based on the degree to which each parameter deviates from its ideal state. They also cannot extract and integrate adjustment variables adapted to the current operating conditions from historical control commands, potentially resulting in a mismatch between control commands and actual process requirements, thus affecting system stability. Therefore, accurately characterizing the process state under the influence of multiple variables, utilizing historical effective control data in conjunction with the process evolution trajectory, and generating composite control commands that match the current operating conditions are technical problems that need to be solved in this field. Summary of the Invention
[0003] To address the problems in existing technologies, such as the inability of single-point parameter judgment to reflect multivariate coupled evolution, inaccurate identification of control targets, and difficulty in effectively integrating historical control experience, this invention provides, in a first aspect, an intelligent optimization control system for the etherifying agent preparation process, comprising the following modules: The calculation module is used to acquire real-time data of raw material flow rate, reaction temperature, reaction pressure and catalyst activity during the preparation of etherifying agent. Based on the pre-established multivariate mapping model, the real-time data is used as input to calculate the interval boundary values used to divide the state of each process parameter. According to the corresponding interval into which the real-time data of each type of process parameter falls, the data is assigned a discrete logic value representing the level. The discrete logic values at the same time are combined to obtain a multi-valued logic state vector representing the current system operating condition. The extraction module is used to perform time-series concatenation of the current multi-valued logic state vector with the historical multi-valued logic state vector within a preset time window to obtain a state transition trajectory sequence representing the process evolution path. Based on the state transition trajectory sequence, the module calculates the comprehensive difference degree in the historical operating condition database and retrieves the N historical trajectory samples most similar to the sequence, and extracts the historical optimal control instruction set associated with the N historical trajectory samples. The control module is used to determine the control target based on the process parameters that deviate from the ideal level in the current multi-valued logic state vector, extract the corresponding control variable adjustment components from the N historical best control instruction sets according to the control target, increase the weight of the control variable adjustment components and decrease the weight of other adjustment components to generate a composite control instruction, and output the composite control instruction to the corresponding control actuator.
[0004] Optionally, acquiring real-time data on feed flow rate, reaction temperature, reaction pressure, and catalyst activity during the etherifying agent preparation process includes: Raw material flow parameters are collected using a differential pressure flow meter located at the mixer feed line with a sampling period of 100ms. The reaction temperature parameters are collected using a PT100 thermal resistor fixed in the middle of the inner wall of the reactor with a sampling period of 500ms. The reaction pressure parameters are collected at a period of 100ms using a pressure transmitter connected to the condenser interface at the top of the reactor. The raw material conversion rate is calculated by gas chromatography based on the composition of the effluent sampled every 2 minutes, and the ratio of the current conversion rate to the preset benchmark conversion rate is used as the catalyst activity parameter to characterize the effective reaction capability of the catalyst. Zero-order hold interpolation is performed on the process parameters acquired at different frequencies. The processed data is then extracted, packaged, and transmitted in 2-second time slots.
[0005] Optionally, combining the discrete logic values at the same time to obtain a multi-valued logic state vector representing the current system operating condition includes: The discrete logic value representing the raw material flow rate is placed in the first dimension of the multi-valued logic state vector as the first component element; The discrete logic value representing the reaction temperature is placed in the second dimension of the vector as the second component element; The discrete logic value representing the reaction pressure is placed in the third dimension of the vector as the third component element; The discrete logic value representing the catalyst activity is placed in the fourth dimension of the vector as the fourth component element, thus completing the encapsulation of the four-element state vector.
[0006] Optionally, the step of temporally concatenating the current multi-valued logic state vector with historical multi-valued logic state vectors within a preset time window to obtain a state transition trajectory sequence representing the process evolution path includes: Retrieve a data matrix consisting of four-dimensional multi-valued logic state vectors encapsulated by a preset number of historical sampling periods, which is continuously stored in the historical time period, as the front-zone sequence set; Following the chronological order, a new row is added to the end of the data matrix to include the current period's four-dimensional multi-valued logic state vector, which was extracted at the latest time point, and these are combined to form a complete time series dataset representing the state transition trajectory sequence.
[0007] Optionally, the calculation of the overall difference includes: Calculate the difference between the logical state vectors of the state transition trajectory sequence and the historical trajectory samples at each corresponding time point; For each corresponding time point, subtract the four component elements of the corresponding time point in the historical trajectory sample from the four component elements in the state transition trajectory sequence to obtain four distance offset terms, and calculate the norm distance of the corresponding time point based on the four distance offset terms. The absolute difference between each component element in the multi-valued logic state vector at the corresponding time point and the preset ideal level logic value is used as the deviation value of the process state from the ideal state, and the importance weight of the time point is determined based on the deviation value. The norm distance is multiplied by the corresponding importance weight of the time point to obtain the weighted distance value, and the weighted distance values corresponding to a preset number of consecutive sampling time points are accumulated to obtain the comprehensive difference degree.
[0008] Optionally, retrieving the N historical trajectory samples most similar to the sequence includes: Calculate the overall difference between the state transition trajectory sequence and the 10,000 benchmark historical trajectory data stored in the historical operating condition database; A comprehensive difference ranking list is generated in ascending order of comprehensive difference. Select the historical trajectory samples corresponding to the 1st to Nth place in the comprehensive difference ranking, and include the selected historical trajectory samples in the candidate trajectory sample set.
[0009] Optionally, the step of extracting the corresponding control variable adjustment components from the N historical optimal control instruction sets according to the control objective, increasing the weight of the control variable adjustment components and decreasing the weight of other adjustment components to generate a composite control instruction, and outputting the composite control instruction to the corresponding control actuator includes: Based on the control target and its deviation direction relative to the ideal level, the corresponding target actuator channel is determined, and the adjustment component corresponding to each actuator channel is extracted from the N historical optimal control command sets respectively; The sample similarity weight is determined based on the comprehensive difference of the N historical trajectory samples. The sample similarity weight is then used to perform weighted fusion on the N adjustment components belonging to the same actuator channel to obtain the candidate adjustment components corresponding to each actuator channel. The actuator channel corresponding to the control target is determined as the target control channel. The candidate control components corresponding to the target control channel are amplified according to a preset amplification factor, and the candidate control components corresponding to other actuator channels are set to zero. The processed candidate adjustment components of each actuator channel are superimposed onto the current opening degree or output reference value of the corresponding actuator to generate a composite control command; The front-end PLC converts the control quantities of each actuator channel in the composite control command into corresponding 4 to 20mA analog current signals, and outputs them to the corresponding actuators to complete the closed-loop control of the etherifying agent preparation process.
[0010] On the other hand, the present invention also provides a method for intelligent optimization and control of the etherifying agent preparation process, comprising the following steps: Real-time data of raw material flow rate, reaction temperature, reaction pressure and catalyst activity during the preparation of etherifying agent are obtained. Based on a pre-established multivariate mapping model, the real-time data is used as input to calculate the interval boundary values used to divide the state of each process parameter. According to the corresponding interval into which the real-time data of each type of process parameter falls, the data is assigned a discrete logic value representing the level. The discrete logic values at the same time are combined to obtain a multi-valued logic state vector representing the current system operating condition. The current multi-valued logic state vector is concatenated with the historical multi-valued logic state vector within a preset time window to obtain a state transition trajectory sequence representing the process evolution path. Based on the state transition trajectory sequence, the comprehensive difference degree is calculated in the historical operating condition database and the N historical trajectory samples most similar to the sequence are retrieved. The historical optimal control instruction set associated with the N historical trajectory samples is extracted. The control target is determined based on the process parameters that deviate from the ideal level in the current multi-valued logic state vector. The corresponding control variable adjustment components are extracted from the N historical optimal control instruction sets according to the control target. By increasing the weight of the control variable adjustment components and decreasing the weight of other adjustment components, a composite control instruction is generated and output to the corresponding control actuator.
[0011] Furthermore, the acquisition of real-time data on feed flow rate, reaction temperature, reaction pressure, and catalyst activity during the etherifying agent preparation process includes: Raw material flow parameters are collected using a differential pressure flow meter located at the mixer feed line with a sampling period of 100ms. The reaction temperature parameters are collected using a PT100 thermal resistor fixed in the middle of the inner wall of the reactor with a sampling period of 500ms. The reaction pressure parameters are collected at a period of 100ms using a pressure transmitter connected to the condenser interface at the top of the reactor. The raw material conversion rate is calculated by gas chromatography based on the composition of the effluent sampled every 2 minutes, and the ratio of the current conversion rate to the preset benchmark conversion rate is used as the catalyst activity parameter to characterize the effective reaction capability of the catalyst. Zero-order hold interpolation is performed on the process parameters acquired at different frequencies. The processed data is then extracted, packaged, and transmitted in 2-second time slots.
[0012] Furthermore, the step of combining the discrete logic values at the same time to obtain a multi-valued logic state vector representing the current system operating condition includes: The discrete logic value representing the raw material flow rate is placed in the first dimension of the multi-valued logic state vector as the first component element; The discrete logic value representing the reaction temperature is placed in the second dimension of the vector as the second component element; The discrete logic value representing the reaction pressure is placed in the third dimension of the vector as the third component element; The discrete logic value representing the catalyst activity is placed in the fourth dimension of the vector as the fourth component element, thus completing the encapsulation of the four-element state vector.
[0013] Further, the step of temporally concatenating the current multi-valued logic state vector with historical multi-valued logic state vectors within a preset time window to obtain a state transition trajectory sequence representing the process evolution path includes: Retrieve a data matrix consisting of four-dimensional multi-valued logic state vectors encapsulated by a preset number of historical sampling periods, which is continuously stored in the historical time period, as the front-zone sequence set; Following the chronological order, a new row is added to the end of the data matrix to include the current period's four-dimensional multi-valued logic state vector, which was extracted at the latest time point, and these are combined to form a complete time series dataset representing the state transition trajectory sequence.
[0014] Furthermore, the calculation of the overall difference includes: Calculate the difference between the logical state vectors of the state transition trajectory sequence and the historical trajectory samples at each corresponding time point; For each corresponding time point, subtract the four component elements of the corresponding time point in the historical trajectory sample from the four component elements in the state transition trajectory sequence to obtain four distance offset terms, and calculate the norm distance of the corresponding time point based on the four distance offset terms. The absolute difference between each component element in the multi-valued logic state vector at the corresponding time point and the preset ideal level logic value is used as the deviation value of the process state from the ideal state, and the importance weight of the time point is determined based on the deviation value. The norm distance is multiplied by the corresponding importance weight of the time point to obtain the weighted distance value, and the weighted distance values corresponding to a preset number of consecutive sampling time points are accumulated to obtain the comprehensive difference degree.
[0015] Further, retrieving the N historical trajectory samples most similar to the sequence includes: Calculate the overall difference between the state transition trajectory sequence and the 10,000 benchmark historical trajectory data stored in the historical operating condition database; A comprehensive difference ranking list is generated in ascending order of comprehensive difference. Select the historical trajectory samples corresponding to the 1st to Nth place in the comprehensive difference ranking, and include the selected historical trajectory samples in the candidate trajectory sample set.
[0016] Further, the step of extracting the corresponding control variable adjustment components from the N historical optimal control instruction sets according to the control target, increasing the weight of the control variable adjustment components and decreasing the weight of other adjustment components to generate a composite control instruction, and outputting the composite control instruction to the corresponding control actuator includes: Based on the control target and its deviation direction relative to the ideal level, the corresponding target actuator channel is determined, and the adjustment component corresponding to each actuator channel is extracted from the N historical optimal control command sets respectively; The sample similarity weight is determined based on the comprehensive difference of the N historical trajectory samples. The sample similarity weight is then used to perform weighted fusion on the N adjustment components belonging to the same actuator channel to obtain the candidate adjustment components corresponding to each actuator channel. The actuator channel corresponding to the control target is determined as the target control channel. The candidate control components corresponding to the target control channel are amplified according to a preset amplification factor, and the candidate control components corresponding to other actuator channels are set to zero. The processed candidate adjustment components of each actuator channel are superimposed onto the current opening degree or output reference value of the corresponding actuator to generate a composite control command; The front-end PLC converts the control quantities of each actuator channel in the composite control command into corresponding 4 to 20mA analog current signals, and outputs them to the corresponding actuators to complete the closed-loop control of the etherifying agent preparation process.
[0017] The present invention has the following beneficial effects: A multivariate mapping model is used to convert real-time process data in the etherifying agent preparation process into multi-valued logical state vectors, achieving a unified representation of process parameters such as feed flow rate, reaction temperature, reaction pressure, and catalyst activity. By concatenating the current state vector with historical state vectors in a time sequence, a state transition trajectory sequence is constructed. Based on the comprehensive difference, similar historical trajectories and corresponding control commands are retrieved from the historical operating condition database, enabling the utilization of historical effective control experience in conjunction with process evolution characteristics. Furthermore, the control target is determined based on parameters deviating from the ideal level, and the corresponding control variable adjustment components are fused and their weights adjusted to generate composite control commands that match the current operating conditions. This improves the targeting of operating condition identification and control command generation, thereby enhancing the operational stability of the etherifying agent preparation process. Attached Figure Description
[0018] Figure 1 A schematic diagram illustrating the five-level discrete logic value division of process parameters; Figure 2 A schematic diagram for calculating trajectory weighted distance and selecting the historical best instruction set. Detailed Implementation
[0019] To make the purpose, features, and advantages of this application more apparent and understandable, specific embodiments and accompanying drawings will be used to clearly and completely describe the technical solution protected by this application. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0020] This specification provides an intelligent optimization control system for the preparation process of an etherifying agent, comprising one or more embodiments, including the following modules: The calculation module is used to acquire real-time data of raw material flow rate, reaction temperature, reaction pressure and catalyst activity during the etherification agent preparation process. Based on a pre-established multivariate mapping model, the real-time data is used as input to calculate the interval boundary values used to divide the state of each process parameter. According to the corresponding interval into which the real-time data of each type of process parameter falls, the data is assigned a discrete logic value representing the level. The discrete logic values at the same time are combined to obtain a multi-valued logic state vector representing the current system operating condition.
[0021] Through the data acquisition interface of the distributed control system, data from differential pressure flow meters, PT100 thermal resistors, pressure transmitters, and gas chromatographs installed on the etherification reactor and feed pipeline are acquired synchronously. Data on raw material flow rate, reaction temperature, reaction pressure, and composition of the output product are collected respectively, and catalyst activity is calculated based on the composition data of the output product.
[0022] The aforementioned four-dimensional real-time time-series data is normalized and preprocessed according to a preset statistical range to generate a model input sequence, which is then input into a pre-trained multivariate mapping model. The multivariate mapping model includes an input layer, a long short-term memory network layer, a fully connected output layer, and an inverse normalization layer. The input layer receives a four-dimensional data sequence of raw material flow rate, reaction temperature, reaction pressure, and catalyst activity arranged in chronological order. The long short-term memory network layer extracts the nonlinear coupling relationships and temporal variation characteristics between the multiple variables. The fully connected output layer outputs the normalized expected central value of each process parameter under the current operating conditions and outputs the corresponding normalized standard deviation of fluctuation through non-negative constraints. The inverse normalization layer converts the normalized expected central value and the normalized standard deviation of fluctuation to an engineering unit scale consistent with the corresponding real-time data.
[0023] During the model training phase, multi-source process data from historical safe production periods are retrieved, and a training sample sequence is constructed using the same normalization method. The statistical center value and statistical standard deviation of the process parameters within a preset statistical time range corresponding to each sampling time are used as training labels to supervise the training of the multivariate mapping model. During training, a loss function is constructed based on the error between the model output value and the training labels. The parameters of the long short-term memory network layer and the fully connected output layer are updated using the backpropagation algorithm until the loss function meets the preset convergence condition, resulting in the trained multivariate mapping model.
[0024] Using the expected central value and standard deviation of fluctuation output from the trained multivariate mapping model, and by adding or subtracting different constant multiples of the standard deviation of fluctuation, multiple boundary thresholds are calculated to form five continuous and non-overlapping intervals. These thresholds are used to classify feed flow rate, reaction temperature, reaction pressure, and catalyst activity into five state levels: extremely low, low, normal, high, and extremely high. The discrete logic values of the five levels of process parameters are as follows: Figure 1 As shown. The different constant multiples are preset based on the fluctuation range of historical safety production data or process procedures. For example, the fluctuation standard deviation of the expected center value minus a preset first multiple is used as the boundary threshold between the extremely low interval and the low interval; the fluctuation standard deviation of the expected center value minus a preset second multiple is used as the boundary threshold between the low interval and the normal interval; the fluctuation standard deviation of the expected center value plus a preset second multiple is used as the boundary threshold between the normal interval and the high interval; and the fluctuation standard deviation of the expected center value plus a preset first multiple is used as the boundary threshold between the high interval and the extremely high interval, wherein the preset first multiple is greater than the preset second multiple; adjacent intervals adopt a unified half-open half-closed boundary assignment rule so that each real-time data falls into only one state interval.
[0025] The actual value of each process parameter at the current sampling moment is compared with the corresponding interval boundary value to determine the specific interval into which the actual value falls. Discrete logic values of 0, 1, 2, 3, and 4 are assigned respectively, in ascending order. Following the fixed parameter order of raw material flow rate, reaction temperature, reaction pressure, and catalyst activity, the four discrete logic values obtained at the same time are concatenated into a four-element row vector to obtain a multi-valued logic state vector representing the current system operating condition.
[0026] In some embodiments, acquiring real-time data on feed flow rate, reaction temperature, reaction pressure, and catalyst activity during the etherifying agent preparation process includes: Raw material flow parameters are collected using a differential pressure flow meter located at the mixer feed line with a sampling period of 100ms. The reaction temperature parameters are collected using a PT100 thermal resistor fixed in the middle of the inner wall of the reactor with a sampling period of 500ms. The reaction pressure parameters are collected at a period of 100ms using a pressure transmitter connected to the condenser interface at the top of the reactor. The raw material conversion rate is calculated by gas chromatography based on the composition of the effluent sampled every 2 minutes, and the ratio of the current conversion rate to the preset benchmark conversion rate is used as the catalyst activity parameter to characterize the effective reaction capability of the catalyst. Zero-order hold interpolation is performed on the process parameters acquired at different frequencies. The processed data is then extracted, packaged, and transmitted in 2-second time slots.
[0027] For example, within a certain time window, the differential pressure flow meter outputs a 4-20mA current signal, which is converted into the actual flow rate every 0.1 seconds by the analog-to-digital converter module, for example, 15.2m³. 3 The system continuously acquires high-frequency sampling points every hour; a PT100 thermal resistor fixed to the inner wall of the reactor collects resistance values and converts them into actual temperatures, such as 85.4℃, with sampling occurring every 0.5s; a pressure transmitter records the pressure at the top of the reactor every 0.1s, such as 0.35MPa; and a gas chromatograph performs sampling analysis every 120s, calculating a methanol conversion rate of 89.5%, and calculating a catalyst activity scalar of 0.92 based on a preset baseline conversion rate.
[0028] During the interpolation process, a global timestamp sequence with 2-second intervals is created. For each reference time point, the last updated valid value of each sensor within the past 2-second interval is extracted and latched. For example, at time 120s, the feed flow rate is taken as the instantaneous flow rate of 15.3 m³ / h, the reaction temperature as 85.6℃, and the reaction pressure as 0.36 MPa. Since the catalyst activity sampling period is 2 minutes, the latest calculated activity value of 0.91 is extracted. If it is in the middle of a non-chromatographic sampling period, the activity value of the previous period is kept unchanged, and the corresponding sampling timestamp is appended to the catalyst activity value.
[0029] After the interpolation extraction is completed, these four types of values are loaded into a 16-byte data payload area in sequence, and a timestamp and check code are added to the data frame. The data is then packaged into a standard data message and transmitted to the core of the control algorithm, so that the control system can obtain a complete and time-corresponding state snapshot at each 2-second control cycle.
[0030] In some embodiments, combining the discrete logic values at the same time to obtain a multi-valued logic state vector representing the current system operating condition includes: The discrete logic value representing the raw material flow rate is placed in the first dimension of the multi-valued logic state vector as the first component element; The discrete logic value representing the reaction temperature is placed in the second dimension of the vector as the second component element; The discrete logic value representing the reaction pressure is placed in the third dimension of the vector as the third component element; The discrete logic value representing the catalyst activity is placed in the fourth dimension of the vector as the fourth component element, thus completing the encapsulation of the four-element state vector.
[0031] At each 2-second control cycle, real-time data of various process parameters are acquired. Assume the feed flow rate is 15.3, reaction temperature is 85.6, reaction pressure is 0.36, and catalyst activity is 0.91. The interval boundaries for each moment are pre-calculated using a mapping model. For example, for temperature, five state intervals are defined: extremely low, slightly low, normal, slightly high, and extremely high. A logic value of 0 indicates extremely low (below 75.0), a logic value of 1 indicates slightly low (greater than or equal to 75.0 and lower than 80.0), a logic value of 2 indicates normal (greater than or equal to 80.0 and less than or equal to 85.0), a logic value of 3 indicates slightly high (greater than 85.0 and less than or equal to 90.0), and a logic value of 4 indicates extremely high (greater than 90.0).
[0032] Since the current temperature of 85.6°C falls between 85.0°C and 90.0°C, the discrete logic value assigned to the reaction temperature is 3. Similarly, assuming that the feed flow rate falls within the normal range, the logic value is 2; the reaction pressure falls within the normal range, and the logic value is 2.
[0033] A four-element row vector is generated to represent the current system condition. Memory write instructions are executed according to a fixed mapping protocol: the raw material flow rate logic value 2 is written to the first component element position at address offset 0; the reaction temperature logic value 3 is written to the second component element position at offset 1; the reaction pressure logic value 2 is written to the third component element position at offset 2; and the catalyst activity logic value 2 is written to the fourth component element position at offset 3. Therefore, the multi-valued logic state vector at this moment is encapsulated as a one-dimensional state vector containing four component elements [2, 3, 2, 2]. This fixed-length vector encapsulation method, with clearly defined dimensional meaning, allows for rapid traversal of the states of each physical quantity using a defined index step size when performing time-series concatenation, matrix slicing, and distance metric operations within the vector space.
[0034] The extraction module is used to perform time-series concatenation of the current multi-valued logic state vector with the historical multi-valued logic state vector within a preset time window to obtain a state transition trajectory sequence representing the process evolution path. Based on the state transition trajectory sequence, the module calculates the comprehensive difference degree in the historical operating condition database and retrieves the N historical trajectory samples most similar to the sequence, and extracts the historical optimal control instruction set associated with the N historical trajectory samples.
[0035] In the controller memory, a sliding time window containing a fixed number of sampling periods is set. The current multi-valued logic state vector that has just been acquired is used as the last element of the sequence. It is then concatenated with multiple historical multi-valued logic state vectors stored in chronological order within the sliding time window to form a state transition trajectory matrix with a dimension equal to the length of the time window plus one and then multiplied by 4. This matrix is the state transition trajectory sequence representing the process evolution path.
[0036] Read the historical operating condition database deployed on the local industrial control host. This database pre-stores a large number of historical state transition trajectory matrices and corresponding historical control command adjustment increment records during safe production periods, which have been screened by process experts.
[0037] The weighted norm distance algorithm is used to calculate the norm distance between the currently constructed state transition trajectory matrix and the logical state vectors of each historical trajectory matrix sample in the database at the same time node, and to obtain the comprehensive difference degree by accumulating the importance weights of the time points.
[0038] All historical trajectory samples are sorted in ascending order of their comprehensive difference values, and the top N samples are selected as the most similar historical trajectory samples. The database association tables of these N historical trajectory samples are traversed to retrieve the actual control command adjustment increment records issued by the system at that historical moment to maintain stable production. These N sets of historical control records, including the adjustment increments of the feed regulating valve opening, heating medium regulating valve opening, cooling water circuit regulating valve opening, pressure replenishing valve opening, pressure stabilizing and releasing valve opening, and catalyst metering pump flow rate, are summarized to form the historical optimal control command set. Trajectory weighted distance calculation and historical optimal command set selection are then performed as follows. Figure 2 As shown.
[0039] In some embodiments, the step of temporally concatenating the current multi-valued logic state vector with historical multi-valued logic state vectors within a preset time window to obtain a state transition trajectory sequence representing the process evolution path includes: Retrieve a data matrix consisting of four-dimensional multi-valued logic state vectors encapsulated by a preset number of historical sampling periods, which is continuously stored in the historical time period, as the front-zone sequence set; Following the chronological order, a new row is added to the end of the data matrix to include the current period's four-dimensional multi-valued logic state vector, which was extracted at the latest time point, and these are combined to form a complete time series dataset representing the state transition trajectory sequence.
[0040] In a specific example, the preset number of historical sampling periods is 60, which, after adding the current period's four-dimensional multi-valued logic state vector, forms 61 sampling time points.
[0041] During the initialization phase, a fixed-size 61-row, 4-column two-dimensional array is set in RAM to store data from the past 120 seconds. At the current time step, the four-dimensional multi-valued logic state vector generated from the first 60 samples from the past 120 seconds to the past 2 seconds is retrieved. For example, the vector [2, 2, 2, 3] corresponding to the 1st sample is stored in the first row of the matrix; the vector [2, 3, 2, 2] corresponding to the 60th sample is stored in the 60th row, thus forming a front-area sequence set of size 60×4.
[0042] The temporal order structure of rows 1 to 60 in the front-end sequence set is preserved. The boundary of this data block is locked at the memory address. At row 61 at the end of the data matrix, the newly generated four-dimensional multi-valued logic state vector [2, 3, 2, 2] is written. After concatenation, a complete state transition trajectory sequence matrix of size 61×4 is formed. In this overall time series dataset, each row represents a sampling point state that progresses at 2-second intervals. The first to fourth columns continuously record the changes in the state levels of four types of process parameters from the past 120 seconds to the current moment. When the next control cycle arrives, the data from rows 2 to 61 is shifted to rows 1 to 60, and the vector of the latest moment is filled into the new row 61 to maintain a constant sliding window size.
[0043] In some embodiments, calculating the overall difference includes: Calculate the difference between the logical state vectors of the state transition trajectory sequence and the historical trajectory samples at each corresponding time point; For each corresponding time point, subtract the four component elements of the corresponding time point in the historical trajectory sample from the four component elements in the state transition trajectory sequence to obtain four distance offset terms, and calculate the norm distance of the corresponding time point based on the four distance offset terms. The absolute difference between each component element in the multi-valued logic state vector at the corresponding time point and the preset ideal level logic value is used as the deviation value of the process state from the ideal state, and the importance weight of the time point is determined based on the deviation value. The norm distance is multiplied by the corresponding importance weight of the time point to obtain the weighted distance value, and the weighted distance values corresponding to a preset number of consecutive sampling time points are accumulated to obtain the comprehensive difference degree.
[0044] Assume the current state transition trajectory sequence matrix and a historical trajectory sample matrix extracted from the historical operating condition database both have a dimension of 61×4. For the i-th consecutive sampling time point, extract the four component elements of the i-th row of the current matrix (e.g., [2, 3, 2, 2]) and the four component elements of the i-th row of the historical matrix (e.g., [2, 2, 2, 2]). First, perform element-wise subtraction to calculate four distance offset terms, resulting in 0, 1, 0, and 0 respectively. Calculate the square value of each of these four distance offset terms, sum the squared values to form a positive result of 1.0, calculate the L2 distance index for that time point, and take the square root to obtain a result of 1.0.
[0045] The importance weight of each time point is assigned based on the degree to which the current process state deviates from the ideal state. If all four component elements are within the normal range, the base weight is set to 1.0; for each deviation component, the weight is increased by a preset penalty coefficient of 0.5. The current vector [2, 3, 2, 2] contains one deviation component, so the importance weight of the time point is calculated to be 1.5. Scalar multiplication is performed, multiplying the L2 distance of 1.0 by the importance weight of 1.5 to obtain a weighted distance value of 1.5. All sampling time points from 1 to 61 are iterated through, and the weighted distance value calculated each time is accumulated into an accumulator register. The sum after 61 iterations is the comprehensive difference between the current state sequence and the historical trajectory. The smaller this value, the higher the spatiotemporal similarity between the two evolution trajectories.
[0046] In some embodiments, retrieving the N historical trajectory samples most similar to the sequence includes: Calculate the overall difference between the state transition trajectory sequence and the 10,000 benchmark historical trajectory data stored in the historical operating condition database; A comprehensive difference ranking list is generated in ascending order of comprehensive difference. Select the historical trajectory samples corresponding to the 1st to Nth place in the comprehensive difference ranking, and include the selected historical trajectory samples in the candidate trajectory sample set.
[0047] 10,000 baseline historical trajectory data segments from the historical operating condition database were preloaded, each segment being a 61-row, 4-column multi-valued logical state vector matrix. A multi-threaded parallel computing core was invoked, initiating 10,000 loops to compare the currently generated 61×4 state transition trajectory sequence with these 10,000 historical trajectory samples, and a distance calculation function was called to obtain the overall difference.
[0048] After the calculation is completed, a one-dimensional data structure array of length 10,000 is generated. Each element of the array contains two key fields: a unique trajectory identifier (ID) and a comprehensive difference value. For example, the difference value corresponding to a historical record ID_4021 is 45.2, and the difference value corresponding to ID_8792 is 32.6.
[0049] After calculation, the sorting module uses either quicksort or min-heapsort algorithms, with the comprehensive difference score as the ascending order sorting criterion, to rearrange the data array containing multiple elements, placing records with smaller difference scores first, thus forming a comprehensive difference score sorting result. In a specific example, N is 5, and the difference scores of the first 5 elements after sorting are assumed to be 32.6, 33.1, 34.0, 34.8, and 35.5, respectively. Array truncation and reading operations are performed to obtain the five data items corresponding to the 1st to 5th positions in the sorting result, and the corresponding historical control sequences are retrieved from the historical operating condition database based on the ID identifier within each data item. The five data items and their corresponding historical control sequences are summarized to construct a candidate trajectory sample set of size 5.
[0050] The control module is used to determine the control target based on the process parameters that deviate from the ideal level in the current multi-valued logic state vector, extract the corresponding control variable adjustment components from the N historical best control instruction sets according to the control target, increase the weight of the control variable adjustment components and decrease the weight of other adjustment components to generate a composite control instruction, and output the composite control instruction to the corresponding control actuator.
[0051] The discrete logic value 2, representing the normal state level of each process parameter, is set as the ideal level. Each of the four discrete logic values in the current multi-valued logic state vector is checked, and the absolute difference between each value and the ideal level value 2 is calculated. The process parameter dimension corresponding to the discrete logic value with the largest absolute difference is determined as the control target. If multiple process parameters have the same absolute difference, the process parameter with the highest priority is selected as the control target according to the preset production safety priority order: reaction temperature, reaction pressure, catalyst activity, and feedstock flow rate.
[0052] A mapping table between process parameters and actuators is established within the control system. This mapping table includes at least the following relationships: the correspondence between raw material flow rate and feed regulating valve; the correspondence between reaction temperature and heating medium regulating valve and cooling water circuit regulating valve; the correspondence between reaction pressure and pressure replenishment valve and pressure stabilizing and releasing valve; and the correspondence between catalyst activity and catalyst metering pump. Specifically, when the reaction temperature is below the ideal level, the heating medium regulating valve increases the heat supply; when the reaction temperature is above the ideal level, the cooling water circuit regulating valve increases the cooling capacity; when the reaction pressure is below the ideal level, the pressure replenishment valve increases the pressure; when the reaction pressure is above the ideal level, the pressure stabilizing and releasing valve decreases the pressure; when the catalyst activity is below the ideal level, the output flow rate of the catalyst metering pump is increased; when the catalyst activity is above the ideal level and the mapping table indicates a correspondence between the catalyst metering pump flow rate and subsequent catalyst activity changes, the output flow rate of the catalyst metering pump is decreased or stopped. The correspondence between catalyst activity and the catalyst metering pump is pre-calibrated based on the correlation between changes in catalyst metering pump flow rate and subsequent changes in catalyst activity in historical production data.
[0053] Based on the selected control target, the target actuator for adjusting the process parameter is determined in the mapping association table, and the adjustment increment data segment corresponding to the target actuator is extracted from the historical control instruction set as the control variable adjustment component.
[0054] When generating composite control commands, the sample similarity weight is first determined based on the comprehensive difference of N historical trajectory samples. Then, the adjustment increments of the same actuator in the N historical control command sets are weighted and fused to obtain the candidate adjustment increments corresponding to each actuator. Next, the channel adjustment weight is determined based on the current control target, the candidate adjustment increments of the target actuator are strengthened, and the candidate adjustment increments of other actuators are reduced or zeroed to obtain composite control commands containing the adjustment increments of each actuator.
[0055] The control system superimposes the composite control command onto the current opening degree or output reference value of the corresponding actuator to form a digital control signal. This signal is then converted into a standard industrial analog current signal of 4 to 20mA by a digital-to-analog converter module and transmitted to the control terminals of the feed regulating valve, heating medium regulating valve, cooling water circuit regulating valve, pressure replenishing valve, pressure stabilizing and venting valve, and catalyst metering pump to drive the corresponding actuators and achieve closed-loop optimized control of the reaction process.
[0056] In some embodiments, the step of extracting corresponding control variable adjustment components from the N historical optimal control instruction sets according to the control objective, increasing the weight of the control variable adjustment components and decreasing the weight of other adjustment components to generate a composite control instruction, and outputting the composite control instruction to the corresponding control actuator includes: Based on the control target and its deviation direction relative to the ideal level, the corresponding target actuator channel is determined, and the adjustment component corresponding to each actuator channel is extracted from the N historical optimal control command sets respectively; The sample similarity weight is determined based on the comprehensive difference of the N historical trajectory samples. The sample similarity weight is then used to perform weighted fusion on the N adjustment components belonging to the same actuator channel to obtain the candidate adjustment components corresponding to each actuator channel. The actuator channel corresponding to the control target is determined as the target control channel. The candidate control components corresponding to the target control channel are amplified according to a preset amplification factor, and the candidate control components corresponding to other actuator channels are set to zero. The processed candidate adjustment components of each actuator channel are superimposed onto the current opening degree or output reference value of the corresponding actuator to generate a composite control command; The front-end PLC converts the control quantities of each actuator channel in the composite control command into corresponding 4 to 20mA analog current signals, and outputs them to the corresponding actuators to complete the closed-loop control of the etherifying agent preparation process.
[0057] Targeted control and command fusion for abnormal operating conditions are jointly executed through a weight configurator and the PLC communication interface. In the current control step, the diagnostic algorithm finds that the logical value of the reaction temperature in the newly generated four-dimensional multi-valued logic state vector is 3, indicating that it is too high, and locks the reaction temperature as the control target. Five sets of historical control commands extracted from the candidate trajectory sample set are analyzed. Based on the control target "reaction temperature too high," the corresponding target actuator is found in the mapping association table between process parameters and actuators. The target actuator is determined to be the cooling water circuit regulating valve, and the opening adjustment increment of the cooling water circuit regulating valve is read from the five sets of historical control commands.
[0058] The comprehensive difference degree corresponding to each historical trajectory sample is read. Each comprehensive difference degree is added to a preset positive smoothing term, and the reciprocal is taken to obtain the initial similarity weight of the corresponding historical trajectory sample. The five initial similarity weights are then added together to obtain a total weight, and each initial similarity weight is divided by this total weight to obtain the normalized sample similarity weight. The cooling water circuit regulating valve opening adjustment increments from the five sets of historical control command sets are read respectively. Each opening adjustment increment is multiplied by the sample similarity weight of the corresponding historical trajectory sample, and the results are summed to obtain the weighted fusion cooling water circuit regulating valve opening adjustment increment. If the calculated weighted fusion result is a positive 4.0%, it indicates that the valve opening is increased to increase the cooling water flow, and this positive 4.0% is used as the control variable adjustment component.
[0059] To suppress the current temperature rise trend, the channel is amplified by applying a scalar multiplication with a constant factor of 1.5, resulting in a corrected adjustment component of 6.0%. Simultaneously, to reduce system oscillations caused by multivariate coupling, the channel adjustment weights of irrelevant variable channels such as the feed control valve, heating medium control valve, pressure replenishment valve, pressure stabilizing and venting valve, and catalyst metering pump, which do not require adjustment at this time, are set to 0. The current basic absolute opening state of the cooling water circuit control valve is read; assuming the current value is 45.0%, the 6.0% adjustment component is added to generate an absolute opening command of 51.0%. The host computer encapsulates 51.0% into a register write message and sends it to the workshop front-end PLC via the industrial Ethernet protocol. After receiving the instruction, the front-end PLC uses its internal analog-to-digital conversion module to perform a linear conversion based on the range of 0% corresponding to 4mA and 100% corresponding to 20mA. It then calculates and outputs a 12.16mA analog current signal to the electrical positioner of the cooling water circuit regulating valve, driving the pneumatic actuator to adjust the valve to 51.0% opening, thus completing the closed-loop control of the cooling water circuit regulating valve.
[0060] One or more embodiments of this specification also provide a method for intelligent optimization control of the etherifying agent preparation process, including the following steps: Real-time data of raw material flow rate, reaction temperature, reaction pressure and catalyst activity during the preparation of etherifying agent are obtained. Based on a pre-established multivariate mapping model, the real-time data is used as input to calculate the interval boundary values used to divide the state of each process parameter. According to the corresponding interval into which the real-time data of each type of process parameter falls, the data is assigned a discrete logic value representing the level. The discrete logic values at the same time are combined to obtain a multi-valued logic state vector representing the current system operating condition. The current multi-valued logic state vector is concatenated with the historical multi-valued logic state vector within a preset time window to obtain a state transition trajectory sequence representing the process evolution path. Based on the state transition trajectory sequence, the comprehensive difference degree is calculated in the historical operating condition database and the N historical trajectory samples most similar to the sequence are retrieved. The historical optimal control instruction set associated with the N historical trajectory samples is extracted. The control target is determined based on the process parameters that deviate from the ideal level in the current multi-valued logic state vector. The corresponding control variable adjustment components are extracted from the N historical optimal control instruction sets according to the control target. By increasing the weight of the control variable adjustment components and decreasing the weight of other adjustment components, a composite control instruction is generated and output to the corresponding control actuator.
[0061] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A smart optimization control system for the preparation process of an etherifying agent, characterized in that, Includes the following modules: The calculation module is used to acquire real-time data of raw material flow rate, reaction temperature, reaction pressure and catalyst activity during the preparation of etherifying agent. Based on the pre-established multivariate mapping model, the real-time data is used as input to calculate the interval boundary values used to divide the state of each process parameter. According to the corresponding interval into which the real-time data of each type of process parameter falls, the data is assigned a discrete logic value representing the level. The discrete logic values at the same time are combined to obtain a multi-valued logic state vector representing the current system operating condition. The extraction module is used to perform time-series concatenation of the current multi-valued logic state vector with the historical multi-valued logic state vector within a preset time window to obtain a state transition trajectory sequence representing the process evolution path. Based on the state transition trajectory sequence, the module calculates the comprehensive difference degree in the historical operating condition database and retrieves the N historical trajectory samples most similar to the sequence, and extracts the historical optimal control instruction set associated with the N historical trajectory samples. The control module is used to determine the control target based on the process parameters that deviate from the ideal level in the current multi-valued logic state vector, extract the corresponding control variable adjustment components from the N historical best control instruction sets according to the control target, increase the weight of the control variable adjustment components and decrease the weight of other adjustment components to generate a composite control instruction, and output the composite control instruction to the corresponding control actuator.
2. The system according to claim 1, characterized in that, The acquisition of real-time data on feed flow rate, reaction temperature, reaction pressure, and catalyst activity during the etherification agent preparation process includes: Raw material flow parameters are collected using a differential pressure flow meter located at the mixer feed line with a sampling period of 100ms. The reaction temperature parameters are collected using a PT100 thermal resistor fixed in the middle of the inner wall of the reactor with a sampling period of 500ms. The reaction pressure parameters are collected at a period of 100ms using a pressure transmitter connected to the condenser interface at the top of the reactor. The raw material conversion rate is calculated by gas chromatography based on the composition of the effluent sampled every 2 minutes, and the ratio of the current conversion rate to the preset benchmark conversion rate is used as the catalyst activity parameter to characterize the effective reaction capability of the catalyst. Zero-order hold interpolation is performed on the process parameters acquired at different frequencies. The processed data is then extracted, packaged, and transmitted in 2-second time slots.
3. The system according to claim 1, characterized in that, The step of combining the discrete logic values at the same time to obtain a multi-valued logic state vector representing the current system operating condition includes: The discrete logic value representing the raw material flow rate is placed in the first dimension of the multi-valued logic state vector as the first component element; The discrete logic value representing the reaction temperature is placed in the second dimension of the vector as the second component element; The discrete logic value representing the reaction pressure is placed in the third dimension of the vector as the third component element; The discrete logic value representing the catalyst activity is placed in the fourth dimension of the vector as the fourth component element, thus completing the encapsulation of the four-element state vector.
4. The system according to claim 3, characterized in that, The step of concatenating the current multi-valued logic state vector with historical multi-valued logic state vectors within a preset time window to obtain a state transition trajectory sequence representing the process evolution path includes: Retrieve a data matrix consisting of four-dimensional multi-valued logic state vectors encapsulated by a preset number of historical sampling periods, which is continuously stored in the historical time period, as the front-zone sequence set; Following the chronological order, a new row is added to the end of the data matrix to include the current period's four-dimensional multi-valued logic state vector, which was extracted at the latest time point, and these are combined to form a complete time series dataset representing the state transition trajectory sequence.
5. The system according to claim 1, characterized in that, The calculation of the overall difference includes: Calculate the difference between the logical state vectors of the state transition trajectory sequence and the historical trajectory samples at each corresponding time point; For each corresponding time point, subtract the four component elements of the corresponding time point in the historical trajectory sample from the four component elements in the state transition trajectory sequence to obtain four distance offset terms, and calculate the norm distance of the corresponding time point based on the four distance offset terms. The absolute difference between each component element in the multi-valued logic state vector at the corresponding time point and the preset ideal level logic value is used as the deviation value of the process state from the ideal state, and the importance weight of the time point is determined based on the deviation value. The norm distance is multiplied by the corresponding importance weight of the time point to obtain the weighted distance value, and the weighted distance values corresponding to a preset number of consecutive sampling time points are accumulated to obtain the comprehensive difference degree.
6. The system according to claim 1, characterized in that, The step of retrieving the N historical trajectory samples most similar to the sequence includes: Calculate the overall difference between the state transition trajectory sequence and the 10,000 benchmark historical trajectory data stored in the historical operating condition database; A comprehensive difference ranking list is generated in ascending order of comprehensive difference. Select the historical trajectory samples corresponding to the 1st to Nth place in the comprehensive difference ranking, and include the selected historical trajectory samples in the candidate trajectory sample set.
7. The system according to claim 1, characterized in that, The step of extracting corresponding control variable adjustment components from the N historical best control instruction sets according to the control target, increasing the weight of the control variable adjustment components and decreasing the weight of other adjustment components to generate a composite control instruction, and outputting the composite control instruction to the corresponding control actuator includes: Based on the control target and its deviation direction relative to the ideal level, the corresponding target actuator channel is determined, and the adjustment component corresponding to each actuator channel is extracted from the N historical optimal control command sets respectively; The sample similarity weight is determined based on the comprehensive difference of the N historical trajectory samples. The sample similarity weight is then used to perform weighted fusion on the N adjustment components belonging to the same actuator channel to obtain the candidate adjustment components corresponding to each actuator channel. The actuator channel corresponding to the control target is determined as the target control channel. The candidate control components corresponding to the target control channel are amplified according to a preset amplification factor, and the candidate control components corresponding to other actuator channels are set to zero. The processed candidate adjustment components of each actuator channel are superimposed onto the current opening degree or output reference value of the corresponding actuator to generate a composite control command; The front-end PLC converts the control quantities of each actuator channel in the composite control command into corresponding 4 to 20mA analog current signals, and outputs them to the corresponding actuators to complete the closed-loop control of the etherifying agent preparation process.
8. A method for intelligent optimization control of the etherifying agent preparation process, characterized in that, Includes the following steps: Real-time data of raw material flow rate, reaction temperature, reaction pressure and catalyst activity during the preparation of etherifying agent are obtained. Based on a pre-established multivariate mapping model, the real-time data is used as input to calculate the interval boundary values used to divide the state of each process parameter. According to the corresponding interval into which the real-time data of each type of process parameter falls, the data is assigned a discrete logic value representing the level. The discrete logic values at the same time are combined to obtain a multi-valued logic state vector representing the current system operating condition. The current multi-valued logic state vector is concatenated with the historical multi-valued logic state vector within a preset time window to obtain a state transition trajectory sequence representing the process evolution path. Based on the state transition trajectory sequence, the comprehensive difference degree is calculated in the historical operating condition database and the N historical trajectory samples most similar to the sequence are retrieved. The historical optimal control instruction set associated with the N historical trajectory samples is extracted. The control target is determined based on the process parameters that deviate from the ideal level in the current multi-valued logic state vector. The corresponding control variable adjustment components are extracted from the N historical optimal control instruction sets according to the control target. By increasing the weight of the control variable adjustment components and decreasing the weight of other adjustment components, a composite control instruction is generated and output to the corresponding control actuator.
9. The method according to claim 8, characterized in that, The acquisition of real-time data on feed flow rate, reaction temperature, reaction pressure, and catalyst activity during the etherification agent preparation process includes: Raw material flow parameters are collected using a differential pressure flow meter located at the mixer feed line with a sampling period of 100ms. The reaction temperature parameters are collected using a PT100 thermal resistor fixed in the middle of the inner wall of the reactor with a sampling period of 500ms. The reaction pressure parameters are collected at a period of 100ms using a pressure transmitter connected to the condenser interface at the top of the reactor. The raw material conversion rate is calculated by gas chromatography based on the composition of the effluent sampled every 2 minutes, and the ratio of the current conversion rate to the preset benchmark conversion rate is used as the catalyst activity parameter to characterize the effective reaction capability of the catalyst. Zero-order hold interpolation is performed on the process parameters acquired at different frequencies. The processed data is then extracted, packaged, and transmitted in 2-second time slots.
10. The method according to claim 8, characterized in that, The step of combining the discrete logic values at the same time to obtain a multi-valued logic state vector representing the current system operating condition includes: The discrete logic value representing the raw material flow rate is placed in the first dimension of the multi-valued logic state vector as the first component element; The discrete logic value representing the reaction temperature is placed in the second dimension of the vector as the second component element; The discrete logic value representing the reaction pressure is placed in the third dimension of the vector as the third component element; The discrete logic value representing the catalyst activity is placed in the fourth dimension of the vector as the fourth component element, thus completing the encapsulation of the four-element state vector.
