Abstract:
A real-time operating optimized method of multi-input and multi-output continuous manufacture procedure includes steps as follows: first, using plurality of pivotal operation conditions in the manufacture procedure as optimized variables, and using the technical target associating with the pivotal operation conditions as the objective function, then, calculating on line the grades vector between pivotal operation conditions and the technical target at current time according to historical data of pivotal operation conditions and the technical target, using correlation integral method or other methods, at last, using this grades vector to define the adjustment direction of the operation conditions. When the grades vector is positive or negative, the pivotal operation conditions should be adjusted in order to change the grades vector to zero.

Description:
TECHNICAL FIELD 
       [0001]    This invention relates to the control technique, and specifically, relates to a Real-Time Optimization (RTO) method of Multiple-Input and Multiple-Output (MIMO) continuous production process. 
       BACKGROUND OF THE INVENTION 
       [0002]    A continuous production process with continuous feeds and output products could be illustrated as  FIG. 1 . In  FIG. 1 , A is the upstream unit group of process, and the products of A are the raw material of the process unit B, while the products of B are the raw material of downstream processing unit group C. Because the number of the kinds of products of B may be more than one and these products may be feed to a plurality of downstream production units, these downstream production units are referred to as downstream unit group C. It must be pointed out that these material flows are continuous in cascade. In the unit B, there may be some key manipulating variables U, which are related to the technical objectives J such as the energy consumption, the economic benefits, the yields of the products and so on, the variables U can be referred to the input of the production unit(s), and J could be regarded as the output of the production process of B. The task of real time optimization is to maximize the objective (one or more targets combined, such as the economic benefit and the energy consumption) in a prescribed period of time by manipulating the key variables, as show in  FIG. 2 . It must be noticed that the objective may be switched according to the requirement of the production procedure. 
         [0003]    To describe optimization with single objective function, the following equation can be generally used: 
         [0000]        J*=J ( U *)= U   max   J ( U )  (1-1) 
         [0004]    In the equation, J denotes the objective function, and J* denotes the optimum of the objective function J; while U is the operational variable, or is referred to as the optimized variable. U* is the optimum of the turning variable. 
         [0005]    Generally, the functional relationship J (U) between U and J is an unknown analytically. For getting U*, two methods are commonly used: Mathematical Modeling and Online Search Methods. 
       1. Mathematical Modeling Method 
       [0006]    The principle of the modeling method is to build a mathematical model of the objective function J and the optimized variable U firstly, and then to evaluate U* with nonlinear or linear programming based on the mathematical model and the constraints. 
         [0007]    According to the different model building principles, mathematical modeling could be classified into mechanism modeling and experience modeling. 
         [0008]    Mechanism modeling combines the operation mechanism equations of all parts of the equipment in the system according to the flow structures on the basis of the mass and energy balance principles, which forms a set of mathematical equations adaptable for the real production procedures. Finally, the relationship among the objective function and the optimized variable U is decided according to the systematical input and output, the price, and so on. 
         [0009]    Whereas, if the described procedure is too complex, if the mechanism itself is not clear, or if the basic equation is not accuracy enough, it is often difficult to build the mechanism model. Moreover, the mechanism model of a system is generally not universal; it is even necessary to modify or change completely the model when the product and/or the feed are changed or when the process is slightly modified. 
         [0010]    Experience modeling is to fabricate the experiential relationship between the optimized variable and the objective function based on plenty of data of the experiments and the daily operational report. The advantages of this kind of modeling are simple and universal. No matter how complex and different the procedure or the system is, the same simple method could be used to build the model, and no special process knowledge and pretest equations are needed. 
         [0011]    However, the reliability of this method is not very good. If the operational range departs or oversteps the data sampling range when the model is built during online application, the error of model may be too much to be applied normally. Slight change of the process equipment may cause huge change of the model structure, which results in failure of the modelling works. 
       2. Online Search Method 
       [0012]    Search method is a kind of universal method, the basic principle of the method is to change the value of the optimized variables on line, to observe the changing of the objective function, and then to decide whether the changing direction of the optimized variables is right. In principle, many nonlinear programming methods, such as the golden section method, could be used on line. However, this method is often very sensitive to the disturbance. It is well known that the objective function is not only the function of the optimized variables, but also the function of other uncontrollable variables (environmental variables). Thus, when the objective function is changed, it is difficult for the skilled in the art to judge whether it is caused by changes of the optimized variables or by the disturbance. In the present online search methods, the relationship between the optimized variables and the objective function is generally taken as the sole causation. Therefore, when there is the environmental disturbance, wrong judgment may be made, which could even cause reverse actions. 
         [0013]    It is needed to point out, both of modeling and the direct search method are generally built on the basis of the mathematical descriptions of 1-1. The relationship between the objective function J and U is defined as the algebra map, without the environmental disturbance items. As a result, calculation methods educed therefore is only adaptable to the static and non-disturbance systems in principle. 
         [0014]    In fact, situations are much more complicated. Firstly, there are not only the cause and effect relationship between the turning variables and the objective function logically, but also the dynamic procedures by time. That is, when the turning variables change, the objective function doesn&#39;t change immediately, but has a transition procedure. Secondly, from the view of real conditions of lots of industrial procedures, the objective functions often fluctuate. It is difficult to find a static condition. This is generally caused by those immeasurable and uncontrollable severe disturbances. For example, in the production procedure, the changes of component of feed often are uncontrollable. Due to the difficulties of online component measurement, these variables usually are immeasurable. On the other hand, a lot of procedures are sensitive to the changes of component. As a result, the influence of changes of component on the objective function is often larger, which could be several decade times some time, than that of the controllable factors, such as temperatures, pressures, and so on. Therefore, the fluctuation caused by the variation of the turning variables often is “submerged” in the disturbance of the component on the objective function. In this dynamic disturbance situation, any research task on realizing the turning operation has both practical and academic meanings. 
       SUMMARY OF THE INVENTION 
       [0015]    The object of this invention is to provide a Real-Time Optimization method of MIMO continuous production process to solve the problems such as the complex mechanism, the strong disturbance, many optimized variables, the narrow usable range and the poor effect existed in the traditional RTO technique. This method simplifies the RTO of production process, and has strong adaptive properties and the anti-disturbances capability. 
         [0016]    In this invention, the technique to solve the problems is a special multi-input multi-output continuous real-time optimization method. In the method, the controllable optimized variables in the production process are supposed as the optimized variables, and one or more process parameters related to the optimized variables are considered as the objective functions. Based on the dynamic historical data of the optimized variables and the objective functions, the gradient vectors of the optimized variables and the objective functions are calculated on-line, and then the moving directions of the optimized variables are determined according to the gradient vectors, if the gradient vector is positive or negative, the optimized variables should be turned to the directions to make their gradient approach to zero and maximize the objective functions. These gradients are calculated continuously online, regardless of whether the objective functions have been optimized or not. If zero gradients are not reached, the system will adjust the optimized variables to the direction to make gradients approach to zero to trace the optimum. Because the optimum of the objective function may be changed over time, the optimization procedure has to be done continually. 
         [0017]    The method to online calculate the gradient vectors of the optimized variables with the dynamic historical data could be the Dynamic Correlation Integration (DCI) technique in this invention or other algorithms, such as dynamic model identification. 
         [0018]    The RTO with the DCI technique is based on the dynamic correlation integration theory, which is related to a random process. In the DCI theory, the objective function, disturbance, optimized variable are considered as the random process, and the optimized variables are average controllable. In generally, the objective function {tilde over (J)}(t) which should be calculable or measurable online is determined firstly, thus the objective function can be expressed as: 
         [0000]        {tilde over (J)} ( t )= f ( ũ ( t ), {tilde over (p)} ( t ), t ) 
         [0019]    Wherein, ũ(t) is an m dimension vector of average controllable variables. 
         [0000]    
       
         
           
             
               
                 u 
                 ~ 
               
                
               
                 ( 
                 t 
                 ) 
               
             
             = 
             
               [ 
               
                 
                   
                     
                       
                         
                           u 
                           ~ 
                         
                         1 
                       
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                   
                 
                 
                   
                     
                       
                         
                           u 
                           ~ 
                         
                         2 
                       
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       
                         
                           u 
                           ~ 
                         
                         m 
                       
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                   
                 
               
               ] 
             
           
         
       
     
         [0020]    Wherein, {tilde over (p)}(t) is the disturbance, f means the unknown mapping, the objective function to be optimized is defined as: 
         [0000]    
       
         
           
             
               
                 J 
                 ~ 
               
               * 
               
                 ( 
                 t 
                 ) 
               
             
             = 
             
               
                 max 
                 
                   E 
                    
                   
                     { 
                     
                       
                         u 
                         ~ 
                       
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     } 
                   
                 
               
                
               
                 E 
                  
                 
                   { 
                   
                     f 
                      
                     
                       [ 
                       
                         
                           E 
                            
                           
                             { 
                             
                               
                                 u 
                                 ~ 
                               
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                             } 
                           
                         
                         , 
                         
                           
                             p 
                             ~ 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         , 
                         t 
                       
                       ] 
                     
                   
                   } 
                 
               
             
           
         
       
     
         [0021]    Wherein, E{ũ(t)} means the average value of the optimized variable, which can be the set point of the primary controller or the valve position etc. To this multivariable optimization problem, it can be proved that the gradient 
         [0000]    
       
         
           
             
                
               Ef 
             
             
               
                  
                 E 
               
                
               
                 { 
                 
                   
                     u 
                     ~ 
                   
                    
                   
                     ( 
                     t 
                     ) 
                   
                 
                 } 
               
             
           
         
       
     
         [0000]    of the mean of the objective function to the mean of the optimized variable satisfies the following equation: 
         [0000]    
       
         
           
             
               k 
               uJ 
             
             = 
             
               
                 
                   k 
                   uu 
                 
                  
                 
                   
                      
                     Ef 
                   
                   
                     
                        
                       E 
                     
                      
                     
                       { 
                       
                         
                           u 
                           ~ 
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                       } 
                     
                   
                 
               
               + 
               
                 ɛ 
                  
                 
                   ( 
                   t 
                   ) 
                 
               
             
           
         
       
     
         [0000]    Wherein, ε(t) is the zero mean noise, and then the vector of the DCI of the optimized variable to the objective function is defined as: 
         [0000]    
       
         
           
             
               
                 k 
                 uJ 
               
               = 
               
                 [ 
                 
                   
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           1 
                            
                           J 
                         
                       
                     
                   
                   
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           2 
                            
                           J 
                         
                       
                     
                   
                   
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         k 
                         umJ 
                       
                     
                   
                 
                 ] 
               
             
             , 
             
               
 
             
              
             
               
                 k 
                 uiJ 
               
               = 
               
                 
                   ∫ 
                   
                     - 
                     M 
                   
                   M 
                 
                  
                 
                   
                     1 
                     
                       2 
                        
                       T 
                     
                   
                    
                   
                     
                       ∫ 
                       
                         - 
                         T 
                       
                       T 
                     
                      
                     
                       
                         
                           u 
                           i 
                         
                          
                         
                           ( 
                           
                             t 
                             - 
                             τ 
                           
                           ) 
                         
                       
                        
                       
                         J 
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                        
                       
                           
                       
                        
                       
                          
                         t 
                       
                        
                       
                           
                       
                        
                       
                          
                         τ 
                       
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               i 
               = 
               1 
             
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             m 
           
         
       
     
         [0022]    k uu  is a self DCI matrix of optimized variables, which is defined as 
         [0000]    
       
         
           
             
               
                 k 
                 uu 
               
               = 
               
                 [ 
                 
                   
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           1 
                            
                           u 
                            
                           
                               
                           
                            
                           1 
                         
                       
                     
                     
                       
                         k 
                         
                           1 
                            
                           u 
                            
                           
                               
                           
                            
                           2 
                         
                       
                     
                     
                       … 
                     
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           1 
                            
                           um 
                         
                       
                     
                   
                   
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           2 
                            
                           u 
                            
                           
                               
                           
                            
                           1 
                         
                       
                     
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           2 
                            
                           u 
                            
                           
                               
                           
                            
                           2 
                         
                       
                     
                     
                       … 
                     
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           2 
                            
                           um 
                         
                       
                     
                   
                   
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         k 
                         
                           umu 
                            
                           
                               
                           
                            
                           1 
                         
                       
                     
                     
                       
                         k 
                         
                           umu 
                            
                           
                               
                           
                            
                           2 
                         
                       
                     
                     
                       … 
                     
                     
                       
                         k 
                         umum 
                       
                     
                   
                 
                 ] 
               
             
             , 
             
               
 
             
              
             
               
                 k 
                 uiuj 
               
               = 
               
                 
                   ∫ 
                   
                     - 
                     M 
                   
                   M 
                 
                  
                 
                   
                     1 
                     
                       2 
                        
                       T 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       ∫ 
                       
                         - 
                         T 
                       
                       T 
                     
                      
                     
                       
                         
                           u 
                           i 
                         
                          
                         
                           ( 
                           
                             t 
                             - 
                             τ 
                           
                           ) 
                         
                       
                        
                       
                         
                           u 
                           j 
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                        
                       
                           
                       
                        
                       
                          
                         t 
                       
                        
                       
                          
                         τ 
                       
                     
                   
                 
               
             
             , 
             
               
 
             
              
             i 
             , 
             
               j 
               = 
               1 
             
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             m 
           
         
       
     
         [0023]    According to the equation: 
         [0000]    
       
         
           
             
               k 
               uu 
             
             = 
             
               [ 
               
                 
                   
                     
                       k 
                       
                         u 
                          
                         
                             
                         
                          
                         1 
                          
                         u 
                          
                         
                             
                         
                          
                         1 
                       
                     
                   
                   
                     
                       k 
                       
                         1 
                          
                         u 
                          
                         
                             
                         
                          
                         2 
                       
                     
                   
                   
                     … 
                   
                   
                     
                       k 
                       
                         u 
                          
                         
                             
                         
                          
                         1 
                          
                         um 
                       
                     
                   
                 
                 
                   
                     
                       k 
                       
                         u 
                          
                         
                             
                         
                          
                         2 
                          
                         u 
                          
                         
                             
                         
                          
                         1 
                       
                     
                   
                   
                     
                       k 
                       
                         u 
                          
                         
                             
                         
                          
                         2 
                          
                         u 
                          
                         
                             
                         
                          
                         2 
                       
                     
                   
                   
                     … 
                   
                   
                     
                       k 
                       
                         u 
                          
                         
                             
                         
                          
                         2 
                          
                         um 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       k 
                       
                         umu 
                          
                         
                             
                         
                          
                         1 
                       
                     
                   
                   
                     
                       k 
                       
                         umu 
                          
                         
                             
                         
                          
                         2 
                       
                     
                   
                   
                     … 
                   
                   
                     
                       k 
                       umum 
                     
                   
                 
               
               ] 
             
           
         
       
     
         [0000]    
       
         
           
             
               k 
               uiuj 
             
             = 
             
               
                 ∫ 
                 
                   - 
                   M 
                 
                 M 
               
                
               
                 
                   1 
                   
                     2 
                      
                     T 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∫ 
                     
                       - 
                       T 
                     
                     T 
                   
                    
                   
                     
                       
                         u 
                         i 
                       
                        
                       
                         ( 
                         
                           t 
                           - 
                           τ 
                         
                         ) 
                       
                     
                      
                     
                       
                         u 
                         j 
                       
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                      
                     
                         
                     
                      
                     
                        
                       t 
                     
                      
                     
                        
                       τ 
                     
                   
                 
               
             
           
         
       
     
         [0000]    and the real-time measurement u i (t) (i=1, 2, . . . , m) of the optimized variables calculate the self-correlation integration vector k uu  of the optimized variables wherein, T, M are the integral constants greater than 0. 
         [0024]    According to the equation: 
         [0000]    
       
         
           
             
               k 
               uJ 
             
             = 
             
               [ 
               
                 
                   
                     
                       k 
                       
                         u 
                          
                         
                             
                         
                          
                         1 
                          
                         J 
                       
                     
                   
                 
                 
                   
                     
                       k 
                       
                         u 
                          
                         
                             
                         
                          
                         2 
                          
                         J 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       k 
                       umJ 
                     
                   
                 
               
               ] 
             
           
         
       
     
         [0000]    
       
         
           
             
               
                 k 
                 uiJ 
               
               = 
               
                 
                   ∫ 
                   
                     - 
                     M 
                   
                   M 
                 
                  
                 
                   
                     1 
                     
                       2 
                        
                       T 
                     
                   
                    
                   
                     
                       ∫ 
                       
                         - 
                         T 
                       
                       T 
                     
                      
                     
                       
                         u 
                          
                         
                           ( 
                           
                             t 
                             - 
                             τ 
                           
                           ) 
                         
                       
                        
                       
                         J 
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                        
                       
                           
                       
                        
                       
                          
                         t 
                       
                        
                       
                           
                       
                        
                       
                          
                         τ 
                       
                     
                   
                 
               
             
             , 
             
               ( 
               
                 
                   i 
                   = 
                   1 
                 
                 , 
                 2 
                 , 
                 … 
                  
                 
                     
                 
                 , 
                 m 
               
               ) 
             
           
         
       
     
         [0000]    and the real-time measurement J(t) of the objective function are used to calculate the cross-correlation integration vector k uJ  of the optimized variable to the objective function, wherein, T and M are the integral constants which are greater than 0. 
         [0025]    In above equation: u i (t), (i=1, 2, . . . , m) and J(t) are the measurement of the optimized variable and the objective function, respectively. Clearly, k uJ  and k uu  can be calculated by the observed data of the optimized variable and the objective function. Thus, according to the equation 
         [0000]    
       
         
           
             
               
                 k 
                 uJ 
               
               = 
               
                 
                   
                     k 
                     uu 
                   
                    
                   
                     
                        
                       Ef 
                     
                     
                       
                          
                         E 
                       
                        
                       
                         { 
                         
                           
                             u 
                             ~ 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         } 
                       
                     
                   
                 
                 + 
                 
                   ɛ 
                    
                   
                     ( 
                     t 
                     ) 
                   
                 
               
             
             , 
           
         
       
     
         [0000]    the gradient 
         [0000]    
       
         
           
             
                
               Ef 
             
             
               
                  
                 E 
               
                
               
                 { 
                 
                   
                     u 
                     ~ 
                   
                    
                   
                     ( 
                     t 
                     ) 
                   
                 
                 } 
               
             
           
         
       
     
         [0000]    of the objective function could be calculated (the gradient 
         [0000]    
       
         
           
             
                
               Ef 
             
             
               
                  
                 E 
               
                
               
                 { 
                 
                   
                     u 
                     ~ 
                   
                    
                   
                     ( 
                     t 
                     ) 
                   
                 
                 } 
               
             
           
         
       
     
         [0000]    of the objective function may be estimated by Least Squares) 
         [0026]    After obtaining the gradient of the objective function, the new set point u s (l+1) of the optimized variable can be calculated by the directly iterative method. 
         [0027]    According to the equation 
         [0000]    
       
         
           
             
               
                 
                   u 
                   s 
                 
                  
                 
                   ( 
                   
                     l 
                     + 
                     1 
                   
                   ) 
                 
               
               = 
               
                 
                   
                     u 
                     s 
                   
                    
                   
                     ( 
                     l 
                     ) 
                   
                 
                 + 
                 
                   α 
                    
                   
                     
                        
                       Ef 
                     
                     
                       
                          
                         E 
                       
                        
                       
                         { 
                         
                           
                             u 
                             ~ 
                           
                            
                           
                             ( 
                             l 
                             ) 
                           
                         
                         } 
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    the new set point u s (l+1) of the optimized variable could be calculated, wherein, α is a constant, if the optimization objective is maximized, α is larger than zero, otherwise, if the optimization objective is minimized, α is smaller than zero.
 
This iterative process is continuous until the gradient is zero.
 
In the case of a plurality of objective functions, a similar conclusion also can be obtained.
 
         [0028]    From above, further detailed procedure of this invention could be described as follows: 
         [0029]    1. According to the requirements of the optimized production process, the optimized index, that is, the objective functions J 1 , J 2 , . . . , J n , should be determined; these objective functions must be calculable or measurable online. After that, a virtual integrated objective function J=σ 1 J 1 +σ 2 J 2 +, . . . , +σ n J n  is constructed, wherein α 1 , α 2 , . . . , σ n  are the weights of the objective functions respectively, whose value is between 0 to 1 according to the requirement of the process. It must be noticed that the weights may be changed over time because the objective function in the production may be switched or modified some time. 
         [0030]    According to the process requirements, the controllable optimized variables should be selected as the optimized variables u 1 , u 2 , . . . , u m . 
         [0031]    The optimized variables are controlled by traditional controllers, while the set points of these controllers are calculated by a high-level optimization computer with the DCI technique. According to the process requirements, the set points are adjusted periodically. 
         [0032]    A Distributed Control System (DCS) or the conventional instruments can be used as the traditional controllers, and their set points are calculated by an optimization computer using the DCI technique, and are adjusted periodically (the period depends on the response speed of the optimized process) 
         [0033]    2. Collecting the data of the optimized variables and the objective functions. The method is: based on the specific dynamic characteristics of the process, a real-time data sampling system with moving sampling data window which has some width is established, the width of the window should be three times larger than the transient time from the optimized variable to the objective function, normally 8-18 hours). Usually the system is composed by the DCS to obtain the historical data of the optimized variables and the objective functions of the production process. The system collects the data in every sampling time (the sampling time interval also depends on the process, generally 30-90 seconds). The data in the sampling data window is stored in a database. In each sampling, the sampling data window moves forward by one sampling time interval, that is to say, the oldest data will be discarded, and the latest data will be added to the database. The example of two optimized variables is shown in  FIG. 3 . 
         [0034]    3. After the data has been sampled, the DCI matrix K UU  of the optimized variables could be calculated. Assume there are m optimized variables, then 
         [0000]    
       
         
           
             
               k 
               UU 
             
             = 
             
               { 
               
                 
                   
                     
                       k 
                       11 
                     
                   
                   
                     
                       k 
                       12 
                     
                   
                   
                     … 
                   
                   
                     
                       k 
                       
                         1 
                          
                         m 
                       
                     
                   
                 
                 
                   
                     
                       k 
                       21 
                     
                   
                   
                     
                       k 
                       22 
                     
                   
                   
                     … 
                   
                   
                     
                       k 
                       
                         2 
                          
                         m 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       k 
                       
                         m 
                          
                         
                             
                         
                          
                         1 
                       
                     
                   
                   
                     
                       k 
                       
                         m 
                          
                         
                             
                         
                          
                         2 
                       
                     
                   
                   
                     … 
                   
                   
                     
                       k 
                       
                         m 
                          
                         
                             
                         
                          
                         m 
                       
                     
                   
                 
               
               } 
             
           
         
       
     
         [0035]    Wherein, 
         [0000]    
       
         
           
             
               k 
               ij 
             
             = 
             
               
                 ∫ 
                 
                   - 
                   M 
                 
                 M 
               
                
               
                 
                   1 
                   
                     2 
                      
                     T 
                   
                 
                  
                 
                   
                     ∫ 
                     
                       - 
                       T 
                     
                     T 
                   
                    
                   
                     
                       
                         u 
                         i 
                       
                        
                       
                         ( 
                         λ 
                         ) 
                       
                     
                      
                     
                       
                         u 
                         j 
                       
                        
                       
                         ( 
                         
                           λ 
                           - 
                           τ 
                         
                         ) 
                       
                     
                      
                     
                         
                     
                      
                     
                        
                       λ 
                     
                      
                     
                         
                     
                      
                     
                        
                       τ 
                     
                   
                 
               
             
           
         
       
     
         [0000]    i, j=1, 2, . . . m T and M are integral constants. 
         [0036]    4. The DCI matrix K UJ  of the optimized variables and the objective functions is calculated. Assume there are n objective functions: 
         [0000]    
       
         
           
             
               K 
               UJ 
             
             = 
             
               [ 
               
                 
                   
                     
                       K 
                       
                         UJ 
                          
                         
                             
                         
                          
                         1 
                       
                     
                   
                 
                 
                   
                     
                       K 
                       
                         UJ 
                          
                         
                             
                         
                          
                         2 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       K 
                       
                         UJ 
                          
                         
                             
                         
                          
                         n 
                       
                     
                   
                 
               
               ] 
             
           
         
       
     
         [0037]    Wherein, 
         [0000]    
       
         
           
             
               K 
               
                 UJ 
                  
                 
                     
                 
                  
                 1 
               
             
             = 
             
               
                 
                   [ 
                   
                     
                       
                         
                           k 
                           
                             u 
                              
                             
                                 
                             
                              
                             1 
                              
                             J 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                     
                     
                       
                         
                           k 
                           
                             u 
                              
                             
                                 
                             
                              
                             2 
                              
                             J 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                     
                     
                       
                         ⋮ 
                       
                     
                     
                       
                         
                           k 
                           
                             umJ 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                     
                   
                   ] 
                 
                  
                 
                     
                 
                  
                 … 
                  
                 
                     
                 
                  
                 
                   K 
                   UJn 
                 
               
               = 
               
                 [ 
                 
                   
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           1 
                            
                           Jn 
                         
                       
                     
                   
                   
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           2 
                            
                           Jn 
                         
                       
                     
                   
                   
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         k 
                         umJm 
                       
                     
                   
                 
                 ] 
               
             
           
         
       
       
         
           
             
               k 
               uiJs 
             
             = 
             
               
                 ∫ 
                 
                   - 
                   M 
                 
                 M 
               
                
               
                 
                   1 
                   
                     2 
                      
                     T 
                   
                 
                  
                 
                   
                     ∫ 
                     
                       - 
                       T 
                     
                     T 
                   
                    
                   
                     
                       
                         u 
                         i 
                       
                        
                       
                         ( 
                         λ 
                         ) 
                       
                     
                      
                     
                       
                         J 
                         s 
                       
                        
                       
                         ( 
                         
                           λ 
                           - 
                           τ 
                         
                         ) 
                       
                     
                      
                     
                         
                     
                      
                     
                        
                       λ 
                     
                      
                     
                         
                     
                      
                     
                        
                       τ 
                     
                   
                 
               
             
           
         
       
       
         
           
             (i=1, 2, . . . , m; s=1, 2, . . . , n) T and M are integral constants. 
           
         
       
     
         [0039]    In the DCI theory, M above should be greater than the maximal time constant from the optimized variables to the objective functions, and T is 1-5 times of M. 
         [0040]    5. With K UJ  and K UU , the gradient vector K σ   d  of the optimized variables to the objective functions is calculated. In first, the following linear equation is solved to obtain K d : 
         [0000]      K UJ =K UU K d   
         [0000]    
       
         
           
             
               K 
               UU 
             
             = 
             
               [ 
               
                 
                   
                     
                       k 
                       UU 
                     
                   
                   
                     0 
                   
                   
                     … 
                   
                   
                     0 
                   
                 
                 
                   
                     0 
                   
                   
                     
                       k 
                       UU 
                     
                   
                   
                     0 
                   
                   
                     0 
                   
                 
                 
                   
                     ⋮ 
                   
                   
                     0 
                   
                   
                     ⋱ 
                   
                   
                     ⋮ 
                   
                 
                 
                   
                     0 
                   
                   
                     … 
                   
                   
                     0 
                   
                   
                     
                       k 
                       UU 
                     
                   
                 
               
               ] 
             
           
         
       
     
       And 
       [0041]    
       
         
           
             
               K 
               d 
             
             = 
             
               [ 
               
                 
                   
                     
                       K 
                       
                         J 
                          
                         
                             
                         
                          
                         1 
                       
                       d 
                     
                   
                 
                 
                   
                     
                       K 
                       
                         J 
                          
                         
                             
                         
                          
                         2 
                       
                       d 
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       K 
                       Jn 
                       d 
                     
                   
                 
               
               ] 
             
           
         
       
     
         [0000]    The gradient vector K σ   d  of the integrated objective function to the optimized variables is: 
         [0000]        K   σ   d =σ 1   K   J1   d   +K   J2   d   , . . . , K   Jn   d    
         [0042]    6. According to the gradient vector K σ   d  of the integrated objective function to the optimized variables, the change direction of the optimized variable is calculated, the principle is: if the gradient is zero, then the current values of the optimized variable are in the optimal state, and if they are not zero, the optimized variables are adjusted according to the value and direction of the gradient. For example, the present values of the optimized variables are known, and the values after the adjustment could be calculated in the following way to drive the objective functions to be maximum. 
         [0000]    
       
         
           
             
               [ 
               
                 
                   
                     
                       
                         u 
                         1 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
                 
                   
                     
                       
                         u 
                         2 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       
                         u 
                         m 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
               
               ] 
             
             = 
             
               
                 [ 
                 
                   
                     
                       
                         
                           α 
                           1 
                         
                          
                         
                           k 
                           
                             1 
                              
                             σ 
                           
                           d 
                         
                       
                     
                     
                       0 
                     
                     
                       … 
                     
                     
                       0 
                     
                   
                   
                     
                       0 
                     
                     
                       
                         
                           α 
                           2 
                         
                          
                         
                           k 
                           
                             2 
                              
                             σ 
                           
                           d 
                         
                       
                     
                     
                       0 
                     
                     
                       ⋮ 
                     
                   
                   
                     
                       ⋮ 
                     
                     
                       0 
                     
                     
                       ⋱ 
                     
                     
                       0 
                     
                   
                   
                     
                       0 
                     
                     
                       … 
                     
                     
                       0 
                     
                     
                       
                         
                           α 
                           m 
                         
                          
                         
                           k 
                           
                             m 
                              
                             
                                 
                             
                              
                             σ 
                           
                           d 
                         
                       
                     
                   
                 
                 ] 
               
                
               
                 [ 
                 
                   
                     
                       
                         
                           u 
                           1 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                   
                     
                       
                         
                           u 
                           2 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                   
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         
                           u 
                           m 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                 
                 ] 
               
             
           
         
       
     
         [0043]    Wherein, 
         [0000]    
       
         
           
             
               [ 
               
                 
                   
                     
                       
                         u 
                         1 
                       
                        
                       
                         ( 
                         l 
                         ) 
                       
                     
                   
                 
                 
                   
                     
                       
                         u 
                         2 
                       
                        
                       
                         ( 
                         l 
                         ) 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       
                         u 
                         m 
                       
                        
                       
                         ( 
                         l 
                         ) 
                       
                     
                   
                 
               
               ] 
             
               
           
         
       
     
         [0044]    is the lth step value in the case of m optimized variables, and 
         [0000]    
       
         
           
             
               [ 
               
                 
                   
                     
                       
                         u 
                         1 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
                 
                   
                     
                       
                         u 
                         2 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       
                         u 
                         m 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
               
               ] 
             
               
           
         
       
     
         [0045]    is the (l+1) th step value after the adjustment of the optimized variables. Here, 
         [0000]    
       
         
           
             
               [ 
               
                 
                   
                     
                       k 
                       
                         1 
                          
                         σ 
                       
                       d 
                     
                   
                 
                 
                   
                     
                       k 
                       
                         2 
                          
                         σ 
                       
                       d 
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       k 
                       
                         m 
                          
                         
                             
                         
                          
                         σ 
                       
                       d 
                     
                   
                 
               
               ] 
             
             = 
             
               K 
               σ 
               d 
             
           
         
       
     
         [0000]    α 1 , α 2 , . . . , α m  are m positive constants (if the objective function are maximized). An example is that the RTO with one optimized variable is used to maximize the objective function, and the adjustment procedures are illustrated in  FIG. 4 ,  FIG. 5 , and  FIG. 6 . When the gradient calculated by the DCI method is zero, the objective function has been maximized, and in this case it is not necessary to adjust the optimized variable, as shown in  FIG. 4 . If the gradient is negative, the optimized variable should be reduced to improve the objective function, as illustrated in  FIG. 5 . While in the case of positive gradient, the optimized variable should be increased to improve the objective function. 
         [0046]    Clearly, the length of every adjustment step width is α i k iσ   d  for the ith optimized variable u i . As long as α i  is took an appropriate value, that is, α i  is set to positive if the objective function is maximized, otherwise is set to negative, then the step width and direction can be adjusted correctly. 
         [0047]    After adjustment, the data is sampled again in a sample interval (30-90 seconds), then return to Step 3. 
         [0048]    The procedure of step 3 to 6 is done online in cycle, therefore the optimum of the objective function can be achieved. It is necessary that even the gradient has come to zero, the steps  2  to  5  should be done. Because the mapping function of the optimized variables to the objective functions may change (such as changes in the properties of raw materials, the equipment alteration in the process, etc.), it is necessary to keep observing the gradient constantly whether it is zero or not, and adjustment is made at any time in case of any changes, as shown in  FIG. 7 . When the relationship of the optimized variables and the objective functions change for some reason (such as the raw material change) which makes the current operating point be not optimum, the DCI algorithm will find out that the gradient is not zero and the optimized variable will be turn to approach the optimum again. 
         [0049]    This makes the DCI method can find out whether the production process deviates from the optimum at any time, and then trace the optimum. 
         [0050]    Comparing with the traditional methods mentioned above, the DCI technique has following features:
       In the invention, the DCI method is utilized to calculate the gradient of the objective function, the calculation is based on the dynamic history data of the optimized variables and the objective function in a period of time, that is, in sampling data window. The DCI method is different from the modelling method, when the process is optimised, it is not required that the production process must be in a still state, but can be in dynamic fluctuation state. It also allows the disturbance exists in the optimized variables and the objective functions, although the statistic properties of those fluctuation and disturbance may be unknown.   It is not necessary to build the static and dynamic models in advance, thus the complicated RTO are simplified in great deal. In tradition method, whatever the mechanism modelling or the statistic modelling, the mathematical relationship between the optimized variables and the objective function must be built in advance, then the relationship model are used to find out the maximum of the process. If the process is very complicated, it is difficult to obtain an accurate model or the cost has to be high. However, the DCI method in this invention only uses the information in the vicinity of the current operation point instead of building a large-scale model, which leaves out the complicated modelling work.   The RTO with the DCI in this invention has a strong adaptive property. That is, when the production process deviates from the optimum because of some reasons, the RTO with the DCI technique could find out the deviation and adjust the optimized variable to the new optimum. The function of tracing the optimum automatically is very useful and important in the real production process since the relationship between the operation conditions (the optimized variables) and the objective functions often shifts along with the aging, the alternation, and the modification of the equipment, etc. However, the traditional modelling RTO has to rebuild and/or modify the model.   The method in the invention is a general RTO technique. If only the production process is continues and the optimized indices are measurable or calculable online, it could be applied in the process easily, which shows that the method is independent of the particular process. Contrarily, in the traditional RTO, the model aiming at the special process must be built; and the model for optimization is peculiar to this process and not general for other processes.   The method in the invention uses the natural fluctuation during the normal operation, and no additional test signal is needed. Therefore, the jamming to the process operation is very little.   This technique has the strong anti-disturbance feature. Even in the cases of severe interfering, i.e., the objective function change caused by other factors, such as the material property, is larger than the useful signal (changes in the objective functions caused by the optimized variables), it will still work normally. No RTO has this strong anti-disturbance property in the prior art.       
 
         [0057]    The core of the DCI RTO of this invention is to calculate the gradients of the optimized variables to the objective function with the DCI algorithm, then adjust the optimized variables according to the gradients. The calculation and adjustment of the gradients of the optimized variables are performed continually online. Thus, whatever the method used to calculate the gradients is, the adjustment principle mentioned above could be used to perform RTO, therefore other possible algorithm, such as the identification of the dynamic model, may be used to estimate the gradients, and the RTO of the process could be performed based on them. 
     
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
         [0058]      FIG. 1 : 
           [0059]    A block diagram of continuously feeding and outputting products for the continuous production process. 
           [0060]      FIG. 2 : 
           [0061]    A flowchart of the optimization of the operation of the continuous production process. 
           [0062]      FIG. 3 : 
           [0063]    A diagram showing the moving sampling data window sampling with two optimized variables. 
           [0064]      FIG. 4 : 
           [0065]    A diagram showing the curve of zero gradient of the optimized variables to the objective function. 
           [0066]      FIG. 5 : 
           [0067]    A diagram showing the curve of the minus gradient of the optimized variables to the objective function. 
           [0068]      FIG. 6 : 
           [0069]    A diagram showing the curve of the positive gradient of the optimized variables to the objective function. 
           [0070]      FIG. 7 : 
           [0071]    A diagram showing the gradient varying with the change of the relationship between the optimized variable and the objective function. 
           [0072]      FIG. 8 : 
           [0073]    A diagram showing the structure of a computer control system used to optimize the process. 
           [0074]      FIG. 9 : 
           [0075]    A flowchart of the reactor-regeneration of an ARGG Unit. 
           [0076]    In the FIG.:  1 . riser reactor,  2 . cyclone separator,  3 . settler,  4 . catalyst regenerator,  5  outsourcing thermometers,  6 . fractionation system 
           [0077]      FIG. 10 : 
           [0078]    A flowchart of a joined unit of benzene dewaxing and deoil process. 
       
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
       [0079]    Following embodiments are just used to describe, but not limit, the invention, which requires that the production process is controlled by a computer. A DCS or other conventional instrumentation is used to carry out setpoint control for the optimized variables, and the setpoints are calculated by an optimization control computer using the method of this invention, thus the optimized variables are adjusted in a fixed time interval. The adjustment cycle is determined by the dynamic response speed of the actual process, as shown in  FIG. 8 . 
       Embodiment 1 
     Real Time Optimization of an ARGG Unit with the Dynamic Correlation Integration Technique 
       [0080]    The ARGG (Atmospheric Residue Gas and Gasoline) unit in the petrochemical plants is a device to perform a process to crack the low-value oil into the high-value liquid hydrocarbon, gasoline and diesel, which is a representative continuous process in refinery. The flow chart of reactor regeneration system of the ARGG is shown in  FIG. 9 . 
         [0081]    Vacuum residue and wax oil from the tank farm are mixed with the cycle oil and the slurry oil, after heat exchanging with mass flow of a fractionation system  6 , the mixed oil is sprayed into the riser reactor  1  through an atomization device at the lower part of the riser reactor  1 . 
         [0082]    The atomized raw oil, the sprayed steam and the high-temperature catalyst from the regenerator  4  are mixed at the lower part of the reactor  1 , and then it mounts up along with the riser reactor  1  to joining the catalytic cracking reaction. Reacted oil and gas with the catalyst are sent to the settler  3  from the top of the riser reactor  1 . The oil and gas with the catalyst enter into the cyclone separator  2  to be separated out the catalyst. Finally, the oil and gas leave the separator  2 , and enter into the fractionation system  6  for product separation, and the catalyst returns to the regenerator  4 . 
         [0083]    The separated catalyst enters the regenerator  4 . A layer of carbon produced in cracking reaction has been deposited on the surface of the catalyst. The carbon deposition should be burnt out in the regenerator  4 , this procedure is called coke-burning. Excess heat in coke-burning is taken away by outsourcing thermometers  5 . The regenerated catalyst after coke-burning is transported to the riser reactor  1  to crack the feed. For keeping the activity of the catalyst and compensating the lost catalyst, a flow of fresh catalyst is added into the regenerator  4 . 
         [0084]    The oil and gas from the separator  2  enter into the fractionation system  6 . After separation process of the system, the liquid hydrocarbon is produced. The recycled oil and the slurry oil from the system and the little part of gasoline are returned to the riser reactor  1 . 
         [0085]    In the case of the ARGG, the following operating conditions are taken as online optimized variables:
       Outlet temperature of the riser pipe   Flow of the pre-stripping gas   Feed temperature   Flow of the terminator   Ratio of the cycle gasoline oil   Ratio of the cycle oil   Ratio of the oil slurry   Flow of the fresh catalyst       
 
         [0094]    Five objective functions are:
       Yield of the liquid hydrocarbon   Yield of the gasoline   Yield of the diesel   Liquid yield (liquid hydrocarbon yield+gasoline yield+diesel yield)   Economic benefit of the ARGG unit       
 
         [0100]    The control structure of the real time optimization system is illustrated in  FIG. 8 . 
         [0101]    In this system, the setpoint control is carried out by HONEYWELL TPS3000 systems; and the optimizing control is performed by APP (Application Process Processor) of HONEYWELL TPS3000. According to the current request of the process, one objective function from above five objective functions is selected as the technical index to be optimized, and then is performed in the following steps. 
         [0000]    1. Naming the optimized variables
       u 2 =outlet temperature of the riser pipe   u 2 =flow of the pre-stripping gas   u 3 =feed temperature   u 4 =flow of the terminator   u 5 =ratio of the cycle gasoline   u 6 =ratio of the cycle oil   u 7 =ratio of the slurry oil   u 8 =flow of the fresh catalyst       
 
       Naming the Objective Functions 
       [0000]    
       
         
           
             J1=Yield of the liquid hydrocarbon 
             J2=Yield of the gasoline 
             J3=Yield of the diesel oil 
             J4=Yield of the liquid 
             J5=Economic benefit of the unit
 
2. Establish a data sampling system and a real-time database by using HONEYWELL TPS3000 and OPC in APP computer. The width of the sampling data window is 8 hours, and sampling interval of the optimized variables and the objective (the objective functions) is 60 seconds. The data in the sampling data window is stored in the database. In each sampling, the sampling data window will move forward one sampling interval, that is, the oldest data will be discarded, and the latest data will be added to the database.
 
           
         
       
     
         [0115]    3. When data sampling has been completed, the DCI matrix k UU  of the optimized variables is calculated, now there are 8 optimized variables: 
         [0000]    
       
         
           
             
               k 
               UU 
             
             = 
             
               { 
               
                 
                   
                     
                       k 
                       11 
                     
                   
                   
                     
                       k 
                       12 
                     
                   
                   
                     … 
                   
                   
                     
                       k 
                       18 
                     
                   
                 
                 
                   
                     
                       k 
                       21 
                     
                   
                   
                     
                       k 
                       22 
                     
                   
                   
                     … 
                   
                   
                     
                       k 
                       28 
                     
                   
                 
                 
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       k 
                       81 
                     
                   
                   
                     
                       k 
                       82 
                     
                   
                   
                     … 
                   
                   
                     
                       k 
                       88 
                     
                   
                 
               
               } 
             
           
         
       
     
         [0116]    Wherein: 
         [0000]    
       
         
           
             
               k 
               ij 
             
             = 
             
               
                 ∫ 
                 
                   - 
                   3600 
                 
                 3600 
               
                
               
                 
                   1 
                   
                     2 
                      
                     T 
                   
                 
                  
                 
                   
                     ∫ 
                     
                       - 
                       10800 
                     
                     10800 
                   
                    
                   
                     
                       
                         u 
                         i 
                       
                        
                       
                         ( 
                         λ 
                         ) 
                       
                     
                      
                     
                       
                         u 
                         j 
                       
                        
                       
                         ( 
                         
                           λ 
                           - 
                           τ 
                         
                         ) 
                       
                     
                      
                     
                         
                     
                      
                     
                        
                       λ 
                     
                      
                     
                         
                     
                      
                     
                        
                       τ 
                     
                   
                 
               
             
           
         
       
     
         [0000]    The high and low limits in the integration are 3600, −3600, 10800, −10800, which are determined by the response time spent from the optimized variables to the objective functions in the process.
 
4. Calculate the cross-correlation integral matrix K UJ  of the operating variables to the objective functions, and there are five objective functions:
 
         [0000]    
       
         
           
             
               K 
               UJ 
             
             = 
             
               [ 
               
                 
                   
                     
                       K 
                       
                         UJ 
                          
                         
                             
                         
                          
                         1 
                       
                     
                   
                 
                 
                   
                     
                       K 
                       
                         UJ 
                          
                         
                             
                         
                          
                         2 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       K 
                       
                         UJ 
                          
                         
                             
                         
                          
                         5 
                       
                     
                   
                 
               
               ] 
             
           
         
       
     
         [0117]    Wherein, 
         [0000]    
       
         
           
             
               K 
               
                 UJ 
                  
                 
                     
                 
                  
                 1 
               
             
             = 
             
               
                 
                   [ 
                   
                     
                       
                         
                           k 
                           
                             u 
                              
                             
                                 
                             
                              
                             1 
                              
                             J 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                     
                     
                       
                         
                           k 
                           
                             u 
                              
                             
                                 
                             
                              
                             2 
                              
                             J 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                     
                     
                       
                         ⋮ 
                       
                     
                     
                       
                         
                           k 
                           
                             u 
                              
                             
                                 
                             
                              
                             8 
                              
                             J 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                     
                   
                   ] 
                 
                  
                 
                     
                 
                  
                 … 
                  
                 
                     
                 
                  
                 
                   K 
                   
                     UJ 
                      
                     
                         
                     
                      
                     5 
                   
                 
               
               = 
               
                 [ 
                 
                   
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           1 
                            
                           J 
                            
                           
                               
                           
                            
                           5 
                         
                       
                     
                   
                   
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           2 
                            
                           J 
                            
                           
                               
                           
                            
                           5 
                         
                       
                     
                   
                   
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         k 
                         
                           u 
                            
                           
                               
                           
                            
                           8 
                            
                           J 
                            
                           
                               
                           
                            
                           5 
                         
                       
                     
                   
                 
                 ] 
               
             
           
         
       
       
         
           
             
               k 
               uiJs 
             
             = 
             
               
                 ∫ 
                 
                   - 
                   3600 
                 
                 3600 
               
                
               
                 
                   1 
                   
                     2 
                      
                     T 
                   
                 
                  
                 
                   
                     ∫ 
                     
                       - 
                       10800 
                     
                     10800 
                   
                    
                   
                     
                       
                         u 
                         i 
                       
                        
                       
                         ( 
                         λ 
                         ) 
                       
                     
                      
                     
                       
                         J 
                         s 
                       
                        
                       
                         ( 
                         
                           λ 
                           - 
                           τ 
                         
                         ) 
                       
                     
                      
                     
                         
                     
                      
                     
                        
                       λ 
                     
                      
                     
                         
                     
                      
                     
                        
                       
                         τ 
                          
                         
                           
 
                         
                         ( 
                         
                           
                             i 
                             = 
                             1 
                           
                           , 
                           2 
                           , 
                           … 
                            
                           
                               
                           
                           , 
                           
                             8 
                             ; 
                             
                               s 
                               = 
                               1 
                             
                           
                           , 
                           2 
                           , 
                           … 
                            
                           
                               
                           
                           , 
                           5 
                         
                         ) 
                       
                     
                   
                 
               
             
           
         
       
     
         [0000]    5. According to K UJ  and k UU , the gradient vector K σ   d  of the optimized variables to the integrated objective function is calculated. Firstly, solving the following linear equation to obtain K d : 
         [0000]    
       
         
           
             
               K 
               UJ 
             
             = 
             
               
                 K 
                 UU 
               
                
               
                 K 
                 d 
               
             
           
         
       
       
         
           
             
               K 
               UU 
             
             = 
             
               [ 
               
                 
                   
                     
                       k 
                       UU 
                     
                   
                   
                     0 
                   
                   
                     … 
                   
                   
                     0 
                   
                 
                 
                   
                     0 
                   
                   
                     
                       k 
                       UU 
                     
                   
                   
                     0 
                   
                   
                     0 
                   
                 
                 
                   
                     ⋮ 
                   
                   
                     0 
                   
                   
                     ⋰ 
                   
                   
                     ⋮ 
                   
                 
                 
                   
                     0 
                   
                   
                     … 
                   
                   
                     0 
                   
                   
                     
                       k 
                       UU 
                     
                   
                 
               
               ] 
             
           
         
       
     
       And 
       [0118]    
       
         
           
             
               K 
               d 
             
             = 
             
               [ 
               
                 
                   
                     
                       K 
                       
                         J 
                          
                         
                             
                         
                          
                         1 
                       
                       d 
                     
                   
                 
                 
                   
                     
                       K 
                       
                         J 
                          
                         
                             
                         
                          
                         2 
                       
                       d 
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       K 
                       Jn 
                       d 
                     
                   
                 
               
               ] 
             
           
         
       
     
         [0119]    The gradient vector K σ   d  of the integrated objective function to the optimized variables is: 
         [0000]        K   σ   d =σ 1   K   J1   d +σ 2   K   J2   d , . . . , σ 5   K   J5   d    
         [0000]    Wherein, in accordance with the current optimization objective functions, σ 1 , σ 2 , . . . , σ 5  are five constants, which may be 0 or 1. For example, the current optimal objective is the yield of the liquid hydrocarbon, and σ 1  is 1 and the rest are 0, other cases are deduced by analogy.
 
6. According to the gradient vector K σ   d  of the integrated objective function to the optimized variables, the change direction of the optimized variables is calculated, the regulation rule is: if the gradient is zero, the current optimized variable is in optimal state, and if it is not zero, the optimized variable needs to be adjusted according to the size and direction of the gradient. For example, the current values of the optimized variables (u 1 (l) . . . u 8  (l)) are known, the values of the optimized variables in the next step could be calculated in the following way to drive the objective functions to maximum.
 
         [0000]    
       
         
           
             
               [ 
               
                 
                   
                     
                       
                         u 
                         1 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
                 
                   
                     
                       
                         u 
                         2 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       
                         u 
                         8 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
               
               ] 
             
             = 
             
               
                 [ 
                 
                   
                     
                       
                         
                           α 
                           1 
                         
                          
                         
                           k 
                           
                             1 
                              
                             σ 
                           
                           d 
                         
                       
                     
                     
                       0 
                     
                     
                       ⋯ 
                     
                     
                       0 
                     
                   
                   
                     
                       0 
                     
                     
                       
                         
                           α 
                           2 
                         
                          
                         
                           k 
                           
                             2 
                              
                             σ 
                           
                           d 
                         
                       
                     
                     
                       0 
                     
                     
                       ⋮ 
                     
                   
                   
                     
                       ⋮ 
                     
                     
                       0 
                     
                     
                       ⋱ 
                     
                     
                       0 
                     
                   
                   
                     
                       0 
                     
                     
                       ⋯ 
                     
                     
                       0 
                     
                     
                       
                         
                           α 
                           8 
                         
                          
                         
                           k 
                           
                             8 
                              
                             σ 
                           
                           d 
                         
                       
                     
                   
                 
                 ] 
               
                
               
                 [ 
                 
                   
                     
                       
                         
                           u 
                           1 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                   
                     
                       
                         
                           u 
                           2 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                   
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         
                           u 
                           8 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                 
                 ] 
               
             
           
         
       
     
       Wherein, 
       [0120]    
       
         
           
               
             
                 
               
                 [ 
                 
                   
                     
                       
                         
                           u 
                           1 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                   
                     
                       
                         
                           u 
                           2 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                   
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         
                           u 
                           8 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                 
                 ] 
               
             
           
         
       
     
         [0000]    is the original value of the eight optimized variables, while 
         [0000]    
       
         
           
             [ 
             
               
                 
                   
                     
                       u 
                       1 
                     
                      
                     
                       ( 
                       
                         l 
                         + 
                         1 
                       
                       ) 
                     
                   
                 
               
               
                 
                   
                     
                       u 
                       2 
                     
                      
                     
                       ( 
                       
                         l 
                         + 
                         1 
                       
                       ) 
                     
                   
                 
               
               
                 
                   ⋮ 
                 
               
               
                 
                   
                     
                       u 
                       8 
                     
                      
                     
                       ( 
                       
                         l 
                         + 
                         1 
                       
                       ) 
                     
                   
                 
               
             
             ] 
           
         
       
     
         [0000]    is the next value of the optimized variables. 
         [0000]    
       
         
           
             
               [ 
               
                 
                   
                     
                       k 
                       
                         1 
                          
                         σ 
                       
                       d 
                     
                   
                 
                 
                   
                     
                       k 
                       
                         2 
                          
                         σ 
                       
                       d 
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       k 
                       
                         8 
                          
                         σ 
                       
                       d 
                     
                   
                 
               
               ] 
             
             = 
             
               K 
               σ 
               d 
             
           
         
       
     
         [0121]    α 1 , α 2 , . . . , α 8  are eight positive constants, the values of which are related to the convergence rate of the optimal control, and need to be adjusted on site. In this case, they are all adjusted to 0.001. 
         [0000]    7. Back to step 3.
 
From the comparison test in this case, the data of the liquid hydrocarbon yield, the liquid yield, and the economic benefits are shown in the following table:
 
         [0000]    
       
         
               
             
               
               
               
               
             
               
               
               
               
             
           
               
                   
               
               
                 Contrast of the objective functions before and after optimization 
               
             
          
           
               
                   
                   
                 Optimized 
                   
               
               
                 Objective function 
                 Default value 
                 value 
                 Increment 
               
               
                   
               
             
          
           
               
                 Yield of liquid hydrocarbon (%) 
                 27.05 
                 27.83 
                 +0.77 
               
               
                 Yield of total liquids (%) 
                 85.01 
                 85.97 
                 +0.96 
               
               
                 Economic benefit 
                 153.20 
                 194.46 
                 +41.26 
               
               
                 (Yuan/Ton feed) 
               
               
                   
               
             
          
         
       
     
         [0122]    From the above test results, it could be seen that the system has a better effect. 
       Embodiment 2 
     Real Time Optimization of the Solvent Dewaxing-Deoil Process with the Dynamic Correlation Integration Technique 
       [0123]    The dewaxing-deoil is an important procedure of the lubricating-oil production in the refinery. A dewaxing-deoil unit, which is used to separate the lubricating oil and the paraffin from the raw materials of oil, performs a continuous process. The process is illustrated in  FIG. 10 . 
         [0124]    It could be seen from  FIG. 10  that the raw oil is distributed into 7 branches. There are 3 crystallizers in each branch. Before entering crystallizers, the feed is firstly diluted with the filtrate in each branch, and this operation is called pre-dilution. Then the feed enters the heat exchanger E 101 , at the same time the fresh solvent and the cooling filtrate are added, that operation is called a first (1) dilution. When flowing out of E 101 , the filtrate is added into the feed again, which is called a first (2) dilution. After that, the feed enters the ammonia cooled crystallizers E 102  and E 103 , and then the fresh solvent is injected, which is called a second dilution. The crystallized feed then is transported to the buffer tank D 101  and entered into the dewaxing filters at last. During filtering, a washing solvent is sprayed into the filters. The filtrate from the filters passes through the filtrate buffer tank D 104  and flow into the solvent recovery system. The wax from the filters is transported to the wax tank D 105  and D 106 , and then is send to the first deoil filter. A washing solvent is sprayed in the filter, and the filtrate from the first deoil filter is sent to the tanker D 110 . The wax from the first deoil filter passes through the wax tanker D 112 , in which a fresh solvent is mixed, then enters the second deoil filter and a washing solvent is sprayed in it. The filtrate from the second deoil filter passes through the tanker D 111  and comes into the wax tanker D 105 . The wax from the second deoil filter is mixed with the fresh solvent in D 113  and then flows to the solvent recovery system. 
         [0125]    In the example of this process, the objective function is the yield of the deoiled wax. The following 23 variables are taken as the online optimized variables, there are all the ratios of the solvent to feed flow:
       ratio_of_flow1_pre_dirution   ratio_of_flow2_pre_dirution   ratio_of_flow3_pre_dirution   ratio_of_flow4_pre_dirution   ratio_of_flow5_pre_dirution   ratio_of_flow6_pre_dirution   ratio_of_flow7_pre_dirution   ratio_of_solvent1 — 1_to_flow1   ratio_of_solvent1 — 1_to_flow2   ratio_of_solvent1 — 1_to_flow3   ratio_of_solvent1 — 1_to_flow4   ratio_of_solvent1 — 1_to_flow5   ratio_of_solvent1 — 1_to_flow6   ratio_of_solvent1 — 1_to_flow7   ratio_of_solvent1 — 2_to_flow1   ratio_of_solvent1 — 2_to_flow2   ratio_of_solvent1 — 2_to_flow3   ratio_of_solvent1 — 2_to_flow4   ratio_of_solvent1 — 2_to_flow5   ratio_of_solvent1 — 2_to_flow6   ratio_of_solvent1 — 2_to_flow7   ratio_of_solvent2_to_feed   ratio_of_spray_solvent_to_feed
 
Note: solvent1 — 1 refers to first(1) dilution, solvent1 — 2 refers to first(2) dilution, and solvent2 refers to second dilution, rest can be deduced by analogy
   In this system, the setpoint control is performed by YOKOGAWA Centum CS systems; the optimizing control algorithm is carried out by an operating station. The sampling data window of the DCI optimizer has a width of 13 hours, and the data of 23 optimized variables and the objective function (yield of deoiled wax) are collected every 60 seconds. the control calculation is performed in the following steps.       
 
         [0150]    1. Naming the key operating variables
       u 1 =ratio_of_flow1_pre_dirution   u 2 =ratio_of_flow2_pre_dirution   u 3 =ratio_of_flow3_pre_dirution   u 4 =ratio_of_flow4_pre_dirution   u 5 =ratio_of_flow5_pre_dirution   u 6 =ratio_of_flow6_pre_dirution   u 7 =ratio_of_flow7_pre_dirution   u 8 =ratio_of_solvent1 — 1_to_flow1   u 9 =ratio_of_solvent1 — 1_to_flow2   u 10 =ratio_of_solvent1 — 1_to_flow3   u 11 =ratio_of_solvent1 — 1_to_flow4   u 12 =ratio_of_solvent1 — 1_to_flow5   u 13 =ratio_of_solvent1 — 1_to_flow6   u 14 =ratio_of_solvent1 — 1_to_flow7   u 15 =ratio_of_solvent1 — 2_to_flow1   u 16 =ratio_of_solvent1 — 2_to_flow2   u 17 =ratio_of_solvent1 — 2_to_flow3   u 18 =ratio_of_solvent1 — 2_to_flow4   u 19 =ratio_of_solvent1 — 2_to_flow5   u 20 =ratio_of_solvent1 — 2_to_flow6   u 21 =ratio_of_solvent1 — 2_to_flow7   u 22 =ratio_of_solvent2_to_feed   u 23 =ratio of spray solvent to feed       
 
       Naming the Objective Functions 
       [0000]    
       
         
           
             J1=Yield of the deoiled wax 
           
         
       
     
         [0175]    2. A data sampling system is established by using the YOKOGAWA Centum CS and a real-time database with a sampling data window of a width of 13 hours. The database collects the data of the optimized variables and the objective functions every 60 seconds. The data in the sampling data window is stored in the database. Each one-mining sampling data window will be moved forward to one sampling time interval, that is to say, the oldest data will be discarded, and the latest data will be added to the database. 
         [0176]    3. When the data sampling has been completed, the DCI matrix K UU  of optimized variables is calculated, now there are 23 optimized variables: 
         [0000]    
       
         
           
             
               k 
               UU 
             
             = 
             
               { 
               
                 
                   
                     
                       k 
                       11 
                     
                   
                   
                     
                       k 
                       12 
                     
                   
                   
                     ⋯ 
                   
                   
                     
                       k 
                       
                         1 
                          
                         m 
                       
                     
                   
                 
                 
                   
                     
                       k 
                       21 
                     
                   
                   
                     
                       k 
                       22 
                     
                   
                   
                     ⋯ 
                   
                   
                     
                       k 
                       
                         2 
                          
                         m 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       k 
                       
                         m 
                          
                         
                             
                         
                          
                         1 
                       
                     
                   
                   
                     
                       k 
                       
                         m 
                          
                         
                             
                         
                          
                         2 
                       
                     
                   
                   
                     ⋯ 
                   
                   
                     
                       k 
                       mm 
                     
                   
                 
               
               } 
             
           
         
       
     
         [0177]    wherein, 
         [0000]    
       
         
           
             
               k 
               ij 
             
             = 
             
               
                 ∫ 
                 
                   - 
                   M 
                 
                 M 
               
                
               
                 
                   1 
                   
                     2 
                      
                     T 
                   
                 
                  
                 
                   
                     ∫ 
                     
                       - 
                       T 
                     
                     T 
                   
                    
                   
                     
                       
                         u 
                         i 
                       
                        
                       
                         ( 
                         λ 
                         ) 
                       
                     
                      
                     
                       
                         u 
                         j 
                       
                        
                       
                         ( 
                         
                           λ 
                           - 
                           τ 
                         
                         ) 
                       
                     
                      
                     
                         
                     
                      
                     
                        
                       λ 
                     
                      
                     
                         
                     
                      
                     
                        
                       τ 
                     
                   
                 
               
             
           
         
       
     
         [0178]    i, j=1, 2, . . . m, m=23, T=7200, M=14000 are the integral constants, which are determined by the response time spent from the optimized variables to the objective function in the process. 
         [0179]    4. The DCI matrix K UJ  of the optimized variables to the objective function are calculated: 
         [0000]      K UJ =K UJ1    
         [0180]    Wherein, 
         [0000]    
       
         
           
             
               K 
               
                 UJ 
                  
                 
                     
                 
                  
                 1 
               
             
             = 
             
               [ 
               
                 
                   
                     
                       k 
                       
                         u 
                          
                         
                             
                         
                          
                         1 
                          
                         J 
                          
                         
                             
                         
                          
                         1 
                       
                     
                   
                 
                 
                   
                     
                       k 
                       
                         u 
                          
                         
                             
                         
                          
                         2 
                          
                         J 
                          
                         
                             
                         
                          
                         1 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       k 
                       
                         umJ 
                          
                         
                             
                         
                          
                         1 
                       
                     
                   
                 
               
               ] 
             
           
         
       
       
         
           
             
               k 
               
                 uiJ 
                  
                 
                     
                 
                  
                 1 
               
             
             = 
             
               
                 ∫ 
                 
                   - 
                   M 
                 
                 M 
               
                
               
                 
                   1 
                   
                     2 
                      
                     T 
                   
                 
                  
                 
                   
                     ∫ 
                     
                       - 
                       T 
                     
                     T 
                   
                    
                   
                     
                       
                         u 
                         u 
                       
                        
                       
                         ( 
                         λ 
                         ) 
                       
                     
                      
                     
                       
                         J 
                         1 
                       
                        
                       
                         ( 
                         
                           λ 
                           - 
                           τ 
                         
                         ) 
                       
                     
                      
                     
                         
                     
                      
                     
                        
                       λ 
                     
                      
                     
                         
                     
                      
                     
                        
                       
                         τ 
                          
                         
                           
 
                         
                         ( 
                         
                           
                             i 
                             = 
                             1 
                           
                           , 
                           2 
                           , 
                           … 
                            
                           
                               
                           
                           , 
                           m 
                         
                         ) 
                       
                     
                   
                 
               
             
           
         
       
     
         [0181]    T and Mare the integral constants, m=23, T=7200, M=14000. 
         [0182]    5. According to K UJ  and K UU , the gradient vector K σ   d  of the optimized variables to the objective function is calculated, firstly, the following linear equation could be solved to obtain K d : 
         [0000]    
       
         
           
             
               K 
               UJ 
             
             = 
             
               
                 K 
                 UU 
               
                
               
                 K 
                 d 
               
             
           
         
       
       
         
           
             
               K 
               UU 
             
             = 
             
               [ 
               
                 
                   
                     
                       k 
                       UU 
                     
                   
                   
                     0 
                   
                   
                     ⋯ 
                   
                   
                     0 
                   
                 
                 
                   
                     0 
                   
                   
                     
                       k 
                       UU 
                     
                   
                   
                     0 
                   
                   
                     0 
                   
                 
                 
                   
                     ⋮ 
                   
                   
                     0 
                   
                   
                     ⋰ 
                   
                   
                     ⋮ 
                   
                 
                 
                   
                     0 
                   
                   
                     ⋯ 
                   
                   
                     0 
                   
                   
                     
                       k 
                       UU 
                     
                   
                 
               
               ] 
             
           
         
       
     
         [0000]    and K σ   d =σ 1 K UJ1   d  
 
The gradient vector K σ   d  of the integrated objective function to the optimized variables is:
 
         [0000]      K σ   d &lt;=σ 1 K J1   d    
       Wherein, 
       [0183]    σ 1 =1 
         [0184]    6. According to the gradient vector K σ   d , of the objective function to the optimized variables, the change direction of the optimized variables is calculated, and the principle is: if the gradient is zero, then the current optimized variables are in the optimal state, and if it is not zero, the optimized variables are adjusted according to the size and the direction of the gradient. For example, the current value of the optimized variables is known, the adjusted value of the optimized variables is calculated in following way to make the objective functions be maximum: 
         [0000]    
       
         
           
             
               [ 
               
                 
                   
                     
                       
                         u 
                         1 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
                 
                   
                     
                       
                         u 
                         2 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       
                         u 
                         m 
                       
                        
                       
                         ( 
                         
                           l 
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                 
               
               ] 
             
             = 
             
               
                 [ 
                 
                   
                     
                       
                         
                           α 
                           1 
                         
                          
                         
                           k 
                           
                             1 
                              
                             σ 
                           
                           d 
                         
                       
                     
                     
                       0 
                     
                     
                       ⋯ 
                     
                     
                       0 
                     
                   
                   
                     
                       0 
                     
                     
                       
                         
                           α 
                           2 
                         
                          
                         
                           k 
                           
                             2 
                              
                             σ 
                           
                           d 
                         
                       
                     
                     
                       0 
                     
                     
                       ⋮ 
                     
                   
                   
                     
                       ⋮ 
                     
                     
                       0 
                     
                     
                       ⋱ 
                     
                     
                       0 
                     
                   
                   
                     
                       0 
                     
                     
                       ⋯ 
                     
                     
                       0 
                     
                     
                       
                         
                           α 
                           m 
                         
                          
                         
                           k 
                           
                             m 
                              
                             
                                 
                             
                              
                             σ 
                           
                           d 
                         
                       
                     
                   
                 
                 ] 
               
                
               
                 [ 
                 
                   
                     
                       
                         
                           u 
                           1 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                   
                     
                       
                         
                           u 
                           2 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                   
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         
                           u 
                           m 
                         
                          
                         
                           ( 
                           l 
                           ) 
                         
                       
                     
                   
                 
                 ] 
               
             
           
         
       
     
       Wherein, 
       [0185]    
       
         
           
             [ 
             
               
                 
                   
                     
                       u 
                       1 
                     
                      
                     
                       ( 
                       l 
                       ) 
                     
                   
                 
               
               
                 
                   
                     
                       u 
                       2 
                     
                      
                     
                       ( 
                       l 
                       ) 
                     
                   
                 
               
               
                 
                   ⋮ 
                 
               
               
                 
                   
                     
                       u 
                       m 
                     
                      
                     
                       ( 
                       l 
                       ) 
                     
                   
                 
               
             
             ] 
           
         
       
     
         [0000]    is the original value of the optimized variables, and 
         [0000]    
       
         
           
             [ 
             
               
                 
                   
                     
                       u 
                       1 
                     
                      
                     
                       ( 
                       
                         l 
                         + 
                         1 
                       
                       ) 
                     
                   
                 
               
               
                 
                   
                     
                       u 
                       2 
                     
                      
                     
                       ( 
                       
                         l 
                         + 
                         1 
                       
                       ) 
                     
                   
                 
               
               
                 
                   ⋮ 
                 
               
               
                 
                   
                     
                       u 
                       m 
                     
                      
                     
                       ( 
                       
                         l 
                         + 
                         1 
                       
                       ) 
                     
                   
                 
               
             
             ] 
           
         
       
     
         [0000]    is the new value of the optimized variables. 
         [0000]    
       
         
           
             
               [ 
               
                 
                   
                     
                       k 
                       
                         1 
                          
                         σ 
                       
                       d 
                     
                   
                 
                 
                   
                     
                       k 
                       
                         2 
                          
                         σ 
                       
                       d 
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       k 
                       
                         m 
                          
                         
                             
                         
                          
                         σ 
                       
                       d 
                     
                   
                 
               
               ] 
             
             = 
             
               K 
               σ 
               d 
             
           
         
       
     
         [0186]    α 1 , α 2  . . . , α m  m=23, are m positive constants, they relate to the convergence rate of the optimal control, and need to be adjusted on site. In this case, they are all adjusted to 0.001. 
         [0187]    7. Back to step 3. 
         [0188]    The result of the comparison test is shown in the table below: 
         [0000]    
       
         
               
             
               
               
               
               
             
               
               
               
               
             
           
               
                   
               
               
                 Comparison test data 
               
             
          
           
               
                   
                   
                   
                 WasteWax-Oil 
               
               
                   
                 Oil yield (%) 
                 Wax yield (%) 
                 yield (%) 
               
               
                   
                   
               
             
          
           
               
                 Default yield 
                 50.13 
                 42.64 
                 7.67 
               
               
                 Optimal yield 
                 49.57 
                 43.85 
                 6.9 
               
               
                 Increment 
                 −0.56 
                 +1.21 
                 −0.77 
               
               
                   
               
             
          
         
       
     
         [0189]    From the above results, it could be seen that the wax yield is raised 1.21% after optimization.