# Patent

## Title
Method for optimizing the flexible constraints of an electric power system

## Abstract

A method for optimizing the flexible constraints of an electric power system includes a step S1 of expressing the total power generation cost of the electric power system by using the sum of quadratic functions of active power outputs of all generator sets in the system and constructing an objective function, a step S2 of selecting a multi-dimensional flexible optimization model or a flexible power generation cost optimization model according to the practical situation of the electric power system and the practical purpose of optimization, a step S3 of determining the operating conditions of the electric power system, and a step S4 of carrying out load flow calculation.

## Background
BACKGROUND
Technical Field
This disclosure relates to an information processing method of an electric power system, and in particular relates to a method for optimizing flexible constraints of an electric power system. This disclosure may require a certain adjustment margins of the electric power system, which means the system should remain some backup capacity both in real and reactive power. Meanwhile, as the generation costs of the systems is also considered, in some embodiments, the disclosure is suitable for high voltage transmission systems, but not low voltage distribution systems without or with very few generators.
2. Description of Related Art
The optimization of modern electric power systems involves various fields of study and wide study contents; and electric power system load flow analysis, mathematical optimization theory, operational research, system engineering and the like are essential subjects in study, and therefore, the optimization problem of electric power systems becomes a complex and huge problem.
With the development of the smart power grid, modern electric power systems are being developed toward large systems, ultrahigh voltage, long distance, and large capacity. The integration of large scale renewable energy sources has resulted in more complex power grid structure and operation modes, various constraint conditions of system operations are increasingly intensified, and the requirements for the constraint conditions are more detailed and harsher. According to the traditional electric power system optimization analysis, the safety and reliability of system operations is generally guaranteed by virtue of the rigid constraints set for system parameters, but, the setting value of the boundary of the rigid constraints is not flexible enough and often tends to be conservative.
Under the circumstances, many new characteristics and requirements appear in the optimization problem of the electric power systems, and if a traditional optimization model and a conventional optimization method are adopted, the economic efficiency, safety, and reliability of system operation cannot be taken into account easily, and the optimal operation point is difficult to find. For example, the documents Operation Reliability Considering Optimized Dispatching of Wind-Power Systems (Transactions of China Electrotechnical Society, 2013, 28(5): pp. 58-65) and Safety and Economy Considering Coordination Theory of Optimized Dispatching of Electric Power Systems (Automation of Electric Power Systems, 2007, 31(6): pp. 28-33) both fail in taking comprehensive optimization of economic efficiency, safety, and reliability into full account.
SUMMARY
The disclosure can help overcoming the shortcomings of the prior art and provide a method for optimizing flexible constraints of an electric power system by taking comprehensive optimization of economic efficiency, safety, and reliability into full account.
Some embodiments disclose a method for optimizing the flexible constraints of an electric power system including the following steps: S1, the total power generation cost f′ of the electric power system is expressed by using the sum of quadratic functions of active power outputs of all generator sets in the system in a flexible formula as follows:




  
    
      
        
          
            f
            ′
          
          =
          
            
              
                ∑
                
                  i
                  =
                  1
                
                
                  N
                  g
                
              
              ⁢
              
                (
                
                  
                    
                      a
                      i
                    
                    ⁢
                    
                      P
                      Gi
                      2
                    
                  
                  +
                  
                    
                      b
                      i
                    
                    ⁢
                    
                      P
                      Gi
                    
                  
                  +
                  
                    c
                    i
                  
                
                )
              
            
            =
            
              
                f
                0
              
              +
              
                
                  δ
                  f
                
                ⁢
                Δ
                ⁢
                
                  
                
                ⁢
                f
              
            
          
        
        ,
      
    
    
      
        (
        1
        )
      
    
  




wherein Ng represents the total number of the generators of the system, i=1, 2, . . . , Ng; ai, bi and ci are the power generation coefficients of the generator set i; PGi is the active power of the generator i; f0 represents the minimum expected value of the total power generation cost of the system, Δf represents the acceptable maximum increment of the total power generation cost of the system; δf is the flexible index of the power generation cost of the system, and the numerical area of the flexible index is as follows: δfε[0,1]; S2, a multi-dimensional flexible optimization model or a flexible power generation cost optimization model is selected according to the practical situation of the electric power system and the practical purpose of optimization; S3, the operating conditions, including a power grid structure, and voltages and powers of the generators of the electric power system are determined; S4, load flow calculation is carried out based on the operating conditions of the electric power system; and S5, if the load flow calculation is successful, corresponding optimization calculation is carried out according to the flexible multi-dimensional or flexible power generation cost model selected in the step S2 to obtain a comprehensive flexible optimization result or the optimal power generation cost, and if the load flow calculation fails, corresponding optimization calculation is carried out according to an optimal load curtailment model to obtain the optimal load curtailment.

The multi-dimensional flexible optimization model is as follows:




  
    
      
        
          
            min
            ⁢
            
              
            
            ⁢
            
              f
              ⁡
              
                (
                δ
                )
              
            
          
          =
          
            
              δ
              f
              2
            
            +
            
              
                1
                N
              
              ⁢
              
                
                  ∑
                  
                    k
                    =
                    1
                  
                  N
                
                ⁢
                
                  δ
                  Lk
                  2
                
              
            
            -
            
              
                1
                
                  N
                  g
                
              
              ⁢
              
                
                  ∑
                  
                    i
                    =
                    1
                  
                  
                    N
                    g
                  
                
                ⁢
                
                  δ
                  Gi
                  2
                
              
            
            -
            
              
                1
                N
              
              ⁢
              
                
                  ∑
                  
                    k
                    =
                    1
                  
                  N
                
                ⁢
                
                  δ
                  vk
                  2
                
              
            
            -
            
              
                1
                L
              
              ⁢
              
                
                  ∑
                  
                    l
                    =
                    1
                  
                  L
                
                ⁢
                
                  δ
                  Fl
                  2
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            s
            .
            t
            .
            
              
            
            ⁢
            
              
                ∑
                
                  i
                  =
                  1
                
                
                  N
                  g
                
              
              ⁢
              
                (
                
                  
                    
                      a
                      i
                    
                    ⁢
                    
                      P
                      Gi
                      2
                    
                  
                  +
                  
                    
                      b
                      i
                    
                    ⁢
                    
                      P
                      Gi
                    
                  
                  +
                  
                    c
                    i
                  
                
                )
              
            
          
          =
          
            
              f
              0
            
            +
            
              
                δ
                f
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              f
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              P
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      +
                      
                        
                          B
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            
              P
              Lk
            
            -
            
              
                δ
                Lk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                P
                Lk
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              Q
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      -
                      
                        
                          B
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            
              Q
              Lk
            
            -
            
              
                δ
                Lk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                Q
                Lk
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              P
              Gi
              
                m
                ⁢
                
                  
                
                ⁢
                i
                ⁢
                
                  
                
                ⁢
                n
              
            
            +
            
              
                δ
                Gi
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                P
                Gi
                
                  m
                  ⁢
                  
                    
                  
                  ⁢
                  i
                  ⁢
                  
                    
                  
                  ⁢
                  n
                
              
            
          
          ≤
          
            P
            Gi
          
          ≤
          
            
              P
              Gi
              
                ma
                ⁢
                
                  
                
                ⁢
                x
              
            
            -
            
              
                δ
                Gi
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                P
                Gi
                
                  ma
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              Q
              Gi
              
                m
                ⁢
                
                  
                
                ⁢
                i
                ⁢
                
                  
                
                ⁢
                n
              
            
            +
            
              
                δ
                Gi
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                Q
                Gi
                
                  m
                  ⁢
                  
                    
                  
                  ⁢
                  i
                  ⁢
                  
                    
                  
                  ⁢
                  n
                
              
            
          
          ≤
          
            Q
            Gi
          
          ≤
          
            
              Q
              Gi
              
                ma
                ⁢
                
                  
                
                ⁢
                x
              
            
            -
            
              
                δ
                Gi
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                Q
                Gi
                
                  ma
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              V
              k
              
                m
                ⁢
                
                  
                
                ⁢
                i
                ⁢
                
                  
                
                ⁢
                n
              
            
            +
            
              
                δ
                Vk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                V
                k
                
                  m
                  ⁢
                  
                    
                  
                  ⁢
                  i
                  ⁢
                  
                    
                  
                  ⁢
                  n
                
              
            
          
          ≤
          
            V
            k
          
          ≤
          
            
              V
              k
              
                ma
                ⁢
                
                  
                
                ⁢
                x
              
            
            -
            
              
                δ
                Vk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                V
                k
                
                  ma
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            S
            l
          
          ≤
          
            
              S
              l
              
                ma
                ⁢
                
                  
                
                ⁢
                x
              
            
            -
            
              
                δ
                Fl
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                S
                l
                
                  ma
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            0
            ≤
            
              δ
              f
            
          
          ,
          
            δ
            Lk
          
          ,
          
            δ
            Gi
          
          ,
          
            δ
            Vk
          
          ,
          
            
              δ
              Fl
            
            ≤
            1
          
        
        ⁢
        
          

        
        ⁢
        
          
            i
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              N
              g
            
            ;
            k
          
          ,
          
            j
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            N
            ;
            
              l
              =
              1
            
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          L
          ,
        
      
    
    
      
        (
        1
        )
      
    
  




wherein δLk represents the flexible load index of a node k, δGi represents the flexible index of the power output of generator i, δVk represents the flexible voltage index of the node k, δFl represents the flexible load flow index of the line l, N represents the total number of the nodes of the system, L represents the total number of the lines of the system, PGk and QGk represent the active power and the reactive power of the node k, respectively, PLk and QLk represent the active load and the reactive load of the node k, respectively, Vk and Vj represent the voltages of the nodes k and j, respectively, Gkj, Bkj and θkj represent electric conductance, electrical susceptibility, and phase angle difference between the nodes k and j, respectively, ΔPLk and ΔQLk represent the deviations of the active load and the reactive load of the node k, respectively, PGi, PGimax and PGimin represent the active power of the generator i and the upper and lower limits of the active power, respectively, ΔPGimax and ΔPGimin represent the maximum allowable threshold-crossing values of PGimax and PGimin, respectively, QGi, QGimax and QGimin represent the reactive power of the generator i and the upper and lower limits of the reactive power, respectively, ΔQGimax and ΔQGimin represent the maximum allowable threshold-crossing values of QGimax and QGimin, respectively, Vk, Vkmax and Vkmin represent the voltage of the node k and the upper and lower limits of the voltage, respectively, ΔVkmax and ΔVkmin represent the maximum allowable threshold-crossing values of Vkmax and Vkmin, respectively, Sl and Slmax represent the load flow value and the threshold of the line l, respectively, and ΔSlmax represents the maximum allowable threshold-crossing value of Slmax.

Thus, the first constraint refers to the flexible constrain of system generation costs; the second and third refer to real and reactive power balance of the nodes respectively; the fourth and fifth refer to the flexible constraints of the generator real and reactive power outputs respectively; the sixth refers to the flexible voltage constraints of the nodes; the seventh refers to the flexible constraints of the transmission lines; and the eighth refers to the constraints of the flexible indices.

The flexible power generation cost optimization model is as follows:




  
    
      
        
          
            min
            ⁢
            
              
            
            ⁢
            
              f
              ⁡
              
                (
                δ
                )
              
            
          
          =
          
            δ
            f
            2
          
        
        ⁢
        
          

        
        ⁢
        
          
            s
            .
            t
            .
            
              
            
            ⁢
            
              
                ∑
                
                  i
                  =
                  1
                
                
                  N
                  g
                
              
              ⁢
              
                (
                
                  
                    
                      a
                      i
                    
                    ⁢
                    
                      P
                      Gi
                      2
                    
                  
                  +
                  
                    
                      b
                      i
                    
                    ⁢
                    
                      P
                      Gi
                    
                  
                  +
                  
                    c
                    i
                  
                
                )
              
            
          
          =
          
            
              f
              0
            
            +
            
              
                δ
                f
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              f
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              P
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      +
                      
                        
                          B
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            P
            Lk
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              Q
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      -
                      
                        
                          B
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            Q
            Lk
          
        
        ⁢
        
          

        
        ⁢
        
          
            P
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            P
            Gi
          
          ≤
          
            P
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            Q
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            Q
            Gi
          
          ≤
          
            Q
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            V
            k
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            V
            k
          
          ≤
          
            V
            k
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            S
            l
          
          ≤
          
            S
            l
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          0
          ≤
          
            δ
            f
          
          ≤
          1
        
        ⁢
        
          

        
        ⁢
        
          
            i
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              N
              g
            
            ;
            k
          
          ,
          
            j
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            N
            ;
            
              l
              =
              1
            
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          L
          ,
        
      
    
    
      
        (
        3
        )
      
    
  




wherein N represents the total number of the nodes of the system, L represents the total number of the lines of the system, PGk and QGk represent the active power and the reactive power of the node k, respectively, PLk and QLk represent the active load and the reactive load of the node k, respectively, Vk and Vj represent the voltages of the nodes k and j, respectively, Gkj, Bkj and θkj represent electric conductance, electrical susceptibility, and phase angle difference between the nodes k and j, respectively, PGi, PGimax and PGimin represent the active power of the generator i and the upper and lower limits of the active power, respectively, QGi, QGimax and QGimin represent the reactive power of the generator i and the upper and lower limits of the reactive power, respectively, Vk, Vkmax and Vkmin represent the voltage of the node k and the upper and lower limits of the voltage, respectively, and Sl and Slmax represent the load flow value and the threshold of the line l, respectively.

The optimal load curtailment is as follows:




  
    
      
        
          
            
              min
              ⁢
              
                
              
              ⁢
              
                
                  ∑
                  
                    k
                    =
                    1
                  
                  N
                
                ⁢
                
                  
                    δ
                    Lk
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    P
                    Lk
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              s
              .
              t
              .
              
                
              
              ⁢
              
                P
                Gk
              
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      +
                      
                        
                          B
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            
              P
              Lk
            
            -
            
              
                δ
                Lk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                P
                Lk
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              Q
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      -
                      
                        
                          B
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            
              Q
              Lk
            
            -
            
              
                δ
                Lk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                Q
                Lk
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            P
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            P
            Gi
          
          ≤
          
            P
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            Q
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            Q
            Gi
          
          ≤
          
            Q
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            V
            k
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            V
            k
          
          ≤
          
            V
            k
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            S
            l
          
          ≤
          
            S
            l
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            i
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              N
              g
            
            ;
            k
          
          ,
          
            j
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            N
            ;
            
              l
              =
              1
            
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          L
          ,
        
      
    
    
      
        (
        4
        )
      
    
  




wherein δLk represents the flexible load index of a node k, N represents the total number of the nodes of the system, L represents the total number of the lines of the system, PGk and QGk represent the active power and the reactive power of the node k, respectively, PLk and QLk represent the active load and the reactive load of the node k, respectively, Vk and Vj represent the voltages of the nodes k and j, respectively, Gkj, Bkj and θkj represent electric conductance, electrical susceptibility, and phase angle difference between the nodes k and j, respectively, ΔPLk and ΔQLk represent the deviations of the active load and the reactive load of the node k, respectively, PGi, PGimax and PGimin represent the active power of the generator i and the upper and lower limits of the active power, respectively, QGi, QGimax and QGimin represent the reactive power of the generator i and the upper and lower limits of the reactive power, respectively, Vk, Vkmax and Vkmin represent the voltage of the node k and the upper and lower limits of the voltage, respectively, and Sl and Slmax represent the load flow value and the threshold of the line l, respectively.

The corresponding optimization specifically includes the steps of 501, constructing a Lagrange objective function according to the corresponding flexible multi-dimensional, flexible power generation cost, or optimal load curtailment model, 502, obtaining a Kuhn-Tucker condition corresponding to the optimal solution of the Lagrange objective function, and 503, solving by virtue of a Newton method to obtain the optimal solution of the model.
Compared with the prior art, the method for optimizing the flexible constraints of the electric power system has the following advantages that: 1) the disclosure provides a flexible optimization method of the electric power system aimed at the issue of the rigid constraint boundary of the existing method for optimizing the operation of the electric power system being insufficient, and the provided flexible optimization method of the electric power system intends to complement and perfect the existing operation optimization method of the electric power system. The flexible optimization method of the electric power system is capable of expanding the safety constraint boundary of the electric power system by a flexible analysis method by constructing a multi-dimensional flexible optimization model, a flexible power generation cost optimization model and an optimal load curtailment model for the optimal dispatching of the smart grid, and therefore, the restriction of the rigid constraints is effectively improved, the optimal operation point taking the economic efficiency, safety, and reliability of system operation into account in the operation process of the electric power system is found, and the safety and reliability are improved at an economic cost as low as possible. 2) The method takes the calculation of the optimal solution of the load curtailment into account if the load flow calculation fails in the flexible optimization process, and therefore, the safety and reliability of the optimization process are improved. According to the method, when an original optimal load flow problem is insoluble, the optimal load curtailment model can be employed, and the load curtailment measure is adopted to recover the system to a feasible region at the minimum load loss cost without considering the economic efficiency of system operation and the flexibility of inequality constraints.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is the flow chart of the method for optimizing the flexible constraints.



DETAILED DESCRIPTION
The method for optimizing the flexible constraints of the electric power system is explained in detail in combination with the FIGURE and the specific embodiment below. The embodiment is implemented under the premise of the technical scheme of the method for optimizing the flexible constraints of the electric power system, and detailed implementation mode and specific operation process are provided, but the scope of protection of the method for optimizing the flexible constraints of the electric power system is not limited to the following embodiment.
As shown in FIG. 1, a method for optimizing the flexible constraints of an electric power system includes: step S1, generally, the total power generation cost of the system is taken as the standard for evaluating the economic efficiency of system operation in the traditional economical dispatching problem of the electric power system; the total power generation cost f′ of the electric power system is expressed by using the sum of quadratic functions of active power outputs of all generator sets in the system in a flexible formula as follows:




  
    
      
        
          
            f
            ′
          
          =
          
            
              
                ∑
                
                  i
                  =
                  1
                
                
                  N
                  g
                
              
              ⁢
              
                (
                
                  
                    
                      a
                      i
                    
                    ⁢
                    
                      P
                      gi
                      2
                    
                  
                  +
                  
                    
                      b
                      i
                    
                    ⁢
                    
                      P
                      Gi
                    
                  
                  +
                  
                    c
                    i
                  
                
                )
              
            
            =
            
              
                f
                0
              
              +
              
                
                  δ
                  f
                
                ⁢
                Δ
                ⁢
                
                  
                
                ⁢
                f
              
            
          
        
        ,
      
    
    
      
        (
        1
        )
      
    
  




wherein Ng represents the total number of the generators of the system, i=1, 2, . . . , Ng, and ai, bi and ci are the power generation coefficients of the generator set i; PGi is the active power of the generator i; f0 represents the minimum expected value of the total power generation cost of the system, Δf represents the acceptable maximum increment of the total power generation cost of the system; δf is the flexible index of the power generation cost of the system, and the numerical area of the flexible index is as follows: δfε[0,1].

According to the method for optimizing the flexible constraints of the electric power system, starting from the flexibly expressed power generation cost, the safety and reliability of system operation are considered as an invisible electric power source, and the comprehensive optimization of economic efficiency, safety, and reliability is taken as the ultimate purpose.
Step S2, a multi-dimensional flexible optimization model or a flexible power generation cost optimization model is selected according to the practical situation of the electric power system and the practical purpose of optimization; 1) the multi-dimensional flexible optimization model takes the operation cost flexibility, the node voltage flexibility, the generator power output flexibility and the power transmission line capacity flexibility of the electric power system into account simultaneously, and aims at comprehensive optimization of the economic efficiency, safety, and reliability of system operation, and the form of the multi-dimensional flexible optimization model is as follows:




  
    
      
        
          
            
              
                min
                ⁢
                
                  
                
                ⁢
                
                  f
                  ⁡
                  
                    (
                    δ
                    )
                  
                
              
              =
              
                
                  δ
                  f
                  2
                
                +
                
                  
                    1
                    N
                  
                  ⁢
                  
                    
                      ∑
                      
                        k
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      δ
                      Lk
                      2
                    
                  
                
                -
                
                  
                    1
                    
                      N
                      g
                    
                  
                  ⁢
                  
                    
                      ∑
                      
                        i
                        =
                        1
                      
                      
                        N
                        g
                      
                    
                    ⁢
                    
                      δ
                      Gi
                      2
                    
                  
                
                -
                
                  
                    1
                    N
                  
                  ⁢
                  
                    
                      ∑
                      
                        k
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      δ
                      vk
                      2
                    
                  
                
                -
                
                  
                    1
                    L
                  
                  ⁢
                  
                    
                      ∑
                      
                        l
                        =
                        1
                      
                      L
                    
                    ⁢
                    
                      δ
                      Fl
                      2
                    
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                s
                .
                t
                .
                
                  
                
                ⁢
                
                  
                    ∑
                    
                      i
                      =
                      1
                    
                    
                      N
                      g
                    
                  
                  ⁢
                  
                    (
                    
                      
                        
                          a
                          i
                        
                        ⁢
                        
                          P
                          Gi
                          2
                        
                      
                      +
                      
                        
                          b
                          i
                        
                        ⁢
                        
                          P
                          Gi
                        
                      
                      +
                      
                        c
                        i
                      
                    
                    )
                  
                
              
              =
              
                
                  f
                  0
                
                +
                
                  
                    δ
                    f
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  f
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                
                  P
                  Gk
                
                -
                
                  
                    V
                    k
                  
                  ⁢
                  
                    
                      ∑
                      
                        j
                        ∈
                        k
                      
                    
                    ⁢
                    
                      
                        V
                        j
                      
                      ⁡
                      
                        (
                        
                          
                            
                              G
                              kj
                            
                            ⁢
                            cos
                            ⁢
                            
                              
                            
                            ⁢
                            
                              θ
                              kj
                            
                          
                          +
                          
                            
                              B
                              kj
                            
                            ⁢
                            sin
                            ⁢
                            
                              
                            
                            ⁢
                            
                              θ
                              kj
                            
                          
                        
                        )
                      
                    
                  
                
              
              =
              
                
                  P
                  Lk
                
                -
                
                  
                    δ
                    Lk
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    P
                    Lk
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                
                  Q
                  Gk
                
                -
                
                  
                    V
                    k
                  
                  ⁢
                  
                    
                      ∑
                      
                        j
                        ∈
                        k
                      
                    
                    ⁢
                    
                      
                        V
                        j
                      
                      ⁡
                      
                        (
                        
                          
                            
                              G
                              kj
                            
                            ⁢
                            sin
                            ⁢
                            
                              
                            
                            ⁢
                            
                              θ
                              kj
                            
                          
                          -
                          
                            
                              B
                              kj
                            
                            ⁢
                            cos
                            ⁢
                            
                              
                            
                            ⁢
                            
                              θ
                              kj
                            
                          
                        
                        )
                      
                    
                  
                
              
              =
              
                
                  Q
                  Lk
                
                -
                
                  
                    δ
                    Lk
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    Q
                    Lk
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                
                  P
                  Gi
                  
                    m
                    ⁢
                    
                      
                    
                    ⁢
                    i
                    ⁢
                    
                      
                    
                    ⁢
                    n
                  
                
                +
                
                  
                    δ
                    Gi
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    P
                    Gi
                    
                      m
                      ⁢
                      
                        
                      
                      ⁢
                      i
                      ⁢
                      
                        
                      
                      ⁢
                      n
                    
                  
                
              
              ≤
              
                P
                Gi
              
              ≤
              
                
                  P
                  Gi
                  
                    ma
                    ⁢
                    
                      
                    
                    ⁢
                    x
                  
                
                -
                
                  
                    δ
                    Gi
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    P
                    Gi
                    
                      ma
                      ⁢
                      
                        
                      
                      ⁢
                      x
                    
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                
                  Q
                  Gi
                  
                    m
                    ⁢
                    
                      
                    
                    ⁢
                    i
                    ⁢
                    
                      
                    
                    ⁢
                    n
                  
                
                +
                
                  
                    δ
                    Gi
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    Q
                    Gi
                    
                      m
                      ⁢
                      
                        
                      
                      ⁢
                      i
                      ⁢
                      
                        
                      
                      ⁢
                      n
                    
                  
                
              
              ≤
              
                Q
                Gi
              
              ≤
              
                
                  Q
                  Gi
                  
                    ma
                    ⁢
                    
                      
                    
                    ⁢
                    x
                  
                
                -
                
                  
                    δ
                    Gi
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    Q
                    Gi
                    
                      ma
                      ⁢
                      
                        
                      
                      ⁢
                      x
                    
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              V
              k
              
                m
                ⁢
                
                  
                
                ⁢
                i
                ⁢
                
                  
                
                ⁢
                n
              
            
            +
            
              
                δ
                Vk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                V
                k
                
                  m
                  ⁢
                  
                    
                  
                  ⁢
                  i
                  ⁢
                  
                    
                  
                  ⁢
                  n
                
              
            
          
          ≤
          
            V
            k
          
          ≤
          
            
              V
              k
              
                m
                ⁢
                
                  
                
                ⁢
                ax
              
            
            -
            
              
                δ
                Vk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                V
                k
                
                  ma
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            S
            l
          
          ≤
          
            
              S
              l
              
                
                  m
                  ⁢
                  
                    
                  
                  ⁢
                  ax
                
                ⁢
                
                  
                
              
            
            -
            
              
                δ
                Fl
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                S
                l
                
                  ma
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            0
            ≤
            
              δ
              f
            
          
          ,
          
            δ
            Lk
          
          ,
          
            δ
            Gi
          
          ,
          
            δ
            Vk
          
          ,
          
            
              δ
              Fl
            
            ≤
            1
          
        
        ⁢
        
          

        
        ⁢
        
          
            i
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              N
              g
            
            ;
            k
          
          ,
          
            j
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            N
            ;
            
              l
              =
              1
            
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          L
        
      
    
    
      
        (
        2
        )
      
    
  




wherein δLk represents the flexible load index of a node k, δGi represents the flexible index of the power output of generator i, δVk represents the flexible voltage index of the node k, δFl represents the flexible load flow index of the line l, N represents the total number of the nodes of the system, L represents the total number of the lines of the system, PGk and QGk represent the active power and the reactive power of the node k, respectively, PLk and QLk represent the active load and the reactive load of the node k, respectively, Vk and Vj represent the voltages of the nodes k and j, respectively, Gkj, Bkj and θkj represent electric conductance, electrical susceptibility, and phase angle difference between the nodes k and j, respectively, ΔPLk and ΔQLk represent the deviations of the active load and the reactive load of the node k, respectively, PGi, PGimax and PGimin represent the active power of the generator i and the upper and lower limits of the active power, respectively, ΔPGimax and ΔPGimin represent the maximum allowable threshold-crossing values of PGimax and PGimin, respectively, QGi, QGimax and QGimin represent the reactive power of the generator i and the upper and lower limits of the reactive power, respectively, ΔQGimax and ΔQGimin represent the maximum allowable threshold-crossing values of QGimax and QGimin, respectively, Vk, Vkmax and Vkmin represent the voltage of the node k and the upper and lower limits of the voltage, respectively, ΔVkmax and ΔVkmin represent the maximum allowable threshold-crossing values of Vkmax and Vkmin, respectively, Sl and Slmax represent the load flow value and the threshold of the line l, respectively, and ΔSlmax represents the maximum allowable threshold-crossing value of Slmax.

In the practical problem, the flexible optimization model is generally simplified to obtain a new form as follows:




  
    
      
        
          
            
              
                min
                ⁢
                
                  
                
                ⁢
                
                  f
                  ⁡
                  
                    (
                    δ
                    )
                  
                
              
              =
              
                
                  δ
                  f
                  2
                
                -
                
                  δ
                  G
                  2
                
                -
                
                  δ
                  V
                  2
                
                -
                
                  δ
                  F
                  2
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                s
                .
                t
                .
                
                  
                
                ⁢
                
                  
                    ∑
                    
                      i
                      =
                      1
                    
                    
                      N
                      g
                    
                  
                  ⁢
                  
                    (
                    
                      
                        
                          a
                          i
                        
                        ⁢
                        
                          P
                          Gi
                          2
                        
                      
                      +
                      
                        
                          b
                          i
                        
                        ⁢
                        
                          P
                          Gi
                        
                      
                      +
                      
                        c
                        i
                      
                    
                    )
                  
                
              
              =
              
                
                  
                    f
                    0
                  
                  +
                  
                    
                      δ
                      f
                    
                    ⁢
                    Δ
                    ⁢
                    
                      
                    
                    ⁢
                    f
                    ⁢
                    
                      

                    
                    ⁢
                    
                      
                        P
                        Gk
                      
                      -
                      
                        
                          V
                          k
                        
                        ⁢
                        
                          
                            ∑
                            
                              j
                              ∈
                              k
                            
                          
                          ⁢
                          
                            
                              V
                              j
                            
                            ⁡
                            
                              (
                              
                                
                                  
                                    G
                                    kj
                                  
                                  ⁢
                                  cos
                                  ⁢
                                  
                                    
                                  
                                  ⁢
                                  
                                    θ
                                    kj
                                  
                                
                                +
                                
                                  
                                    B
                                    kj
                                  
                                  ⁢
                                  sin
                                  ⁢
                                  
                                    
                                  
                                  ⁢
                                  
                                    θ
                                    kj
                                  
                                
                              
                              )
                            
                          
                        
                      
                    
                  
                
                =
                
                  
                    
                      P
                      Lk
                    
                    ⁢
                    
                      

                    
                    ⁢
                    
                      
                        Q
                        Gk
                      
                      -
                      
                        
                          V
                          k
                        
                        ⁢
                        
                          
                            ∑
                            
                              j
                              ∈
                              k
                            
                          
                          ⁢
                          
                            
                              V
                              j
                            
                            ⁡
                            
                              (
                              
                                
                                  
                                    G
                                    kj
                                  
                                  ⁢
                                  sin
                                  ⁢
                                  
                                    
                                  
                                  ⁢
                                  
                                    θ
                                    kj
                                  
                                
                                -
                                
                                  
                                    B
                                    kj
                                  
                                  ⁢
                                  cos
                                  ⁢
                                  
                                    
                                  
                                  ⁢
                                  
                                    θ
                                    kj
                                  
                                
                              
                              )
                            
                          
                        
                      
                    
                  
                  =
                  
                    Q
                    Lk
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                
                  P
                  Gi
                  
                    m
                    ⁢
                    
                      
                    
                    ⁢
                    i
                    ⁢
                    
                      
                    
                    ⁢
                    n
                  
                
                +
                
                  
                    δ
                    G
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    P
                    Gi
                    
                      m
                      ⁢
                      
                        
                      
                      ⁢
                      i
                      ⁢
                      
                        
                      
                      ⁢
                      n
                    
                  
                
              
              ≤
              
                P
                Gi
              
              ≤
              
                
                  P
                  Gi
                  
                    ma
                    ⁢
                    
                      
                    
                    ⁢
                    x
                  
                
                -
                
                  
                    δ
                    G
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    P
                    Gi
                    
                      ma
                      ⁢
                      
                        
                      
                      ⁢
                      x
                    
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                
                  Q
                  Gi
                  
                    m
                    ⁢
                    
                      
                    
                    ⁢
                    i
                    ⁢
                    
                      
                    
                    ⁢
                    n
                  
                
                +
                
                  
                    δ
                    G
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    Q
                    Gi
                    
                      m
                      ⁢
                      
                        
                      
                      ⁢
                      i
                      ⁢
                      
                        
                      
                      ⁢
                      n
                    
                  
                
              
              ≤
              
                Q
                Gi
              
              ≤
              
                
                  Q
                  Gi
                  
                    ma
                    ⁢
                    
                      
                    
                    ⁢
                    x
                  
                
                -
                
                  
                    δ
                    G
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    Q
                    Gi
                    
                      ma
                      ⁢
                      
                        
                      
                      ⁢
                      x
                    
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              V
              k
              
                m
                ⁢
                
                  
                
                ⁢
                i
                ⁢
                
                  
                
                ⁢
                n
              
            
            +
            
              
                δ
                V
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                V
                k
                
                  m
                  ⁢
                  
                    
                  
                  ⁢
                  i
                  ⁢
                  
                    
                  
                  ⁢
                  n
                
              
            
          
          ≤
          
            V
            k
          
          ≤
          
            
              V
              k
              
                m
                ⁢
                
                  
                
                ⁢
                ax
              
            
            -
            
              
                δ
                V
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                V
                k
                
                  ma
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            S
            l
          
          ≤
          
            
              S
              l
              
                
                  m
                  ⁢
                  
                    
                  
                  ⁢
                  ax
                
                ⁢
                
                  
                
              
            
            -
            
              
                δ
                F
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                S
                l
                
                  ma
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            0
            ≤
            
              δ
              f
            
          
          ,
          
            δ
            G
          
          ,
          
            δ
            V
          
          ,
          
            
              δ
              F
            
            ≤
            1
          
        
        ⁢
        
          

        
        ⁢
        
          
            i
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              N
              g
            
            ;
            k
          
          ,
          
            j
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            N
            ;
            
              l
              =
              1
            
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          L
          ,
        
      
    
    
      
        (
        5
        )
      
    
  




wherein δG represents a generator power output flexible index, δV represents a flexible node voltage index, and δF represents a flexible line load flow index. In the multi-dimensional flexible optimization model, the value of the total power generation cost of the system is associated with the value of the constraint boundary of the system, and the two values restrict each other. In other words, the larger the constraint domain of the system is, the better the economic efficiency of system operation is. However, when the economic efficiency of system operation cannot be improved obviously by virtue of the expansion of the constraint domain of the system, the operation constraint domain of the system is reduced to maintain more system operation safety margin. Meanwhile, the value of each flexible index reflects the operating state of the system: (1) the smaller the system power generation cost flexible index δf is, the smaller the total power generation cost of the system is and also the better economic efficiency of the system is; (2) the smaller the flexible load index δLk is, the smaller the load curtailment power of the system and the lower the influence on power users; (3) the larger the generator power output flexible index δG, the flexible node voltage index δV and the flexible line load flow index δF are, the larger the system operation safety margin is and also the higher the safety and reliability of the system are.

2) The flexible power generation cost optimization model only gives consideration to the power generation cost flexibility of the system, rigid constraints are adopted, and the form of the flexible power generation cost optimization model is as follows:




  
    
      
        
          
            min
            ⁢
            
              
            
            ⁢
            
              f
              ⁡
              
                (
                δ
                )
              
            
          
          =
          
            δ
            f
            2
          
        
        ⁢
        
          

        
        ⁢
        
          
            s
            .
            t
            .
            
              
            
            ⁢
            
              
                ∑
                
                  i
                  =
                  1
                
                
                  N
                  g
                
              
              ⁢
              
                (
                
                  
                    
                      a
                      i
                    
                    ⁢
                    
                      P
                      Gi
                      2
                    
                  
                  +
                  
                    
                      b
                      i
                    
                    ⁢
                    
                      P
                      Gi
                    
                  
                  +
                  
                    c
                    i
                  
                
                )
              
            
          
          =
          
            
              f
              0
            
            +
            
              
                δ
                f
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              f
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              P
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      +
                      
                        
                          B
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            P
            Lk
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              Q
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      -
                      
                        
                          B
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            Q
            Lk
          
        
        ⁢
        
          

        
        ⁢
        
          
            P
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            P
            Gi
          
          ≤
          
            P
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            Q
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            Q
            Gi
          
          ≤
          
            Q
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            V
            k
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            V
            k
          
          ≤
          
            V
            k
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            S
            l
          
          ≤
          
            S
            l
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          0
          ≤
          
            δ
            f
          
          ≤
          1
        
        ⁢
        
          

        
        ⁢
        
          
            i
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              N
              g
            
            ;
            k
          
          ,
          
            j
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            N
            ;
            
              l
              =
              1
            
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            L
            .
          
        
      
    
    
      
        (
        3
        )
      
    
  




The model is equivalent to the traditional optimal load flow model of the electric power system; the traditional optimal load flow model of the electric power system is a special case of a one-dimensional flexible optimization problem. If the traditional optimal load flow model of the electric power system is soluble, the multi-dimensional flexible optimization model is soluble, and furthermore, the flexible power generation cost optimization model is soluble.
3) When the original optimal load flow problem is insoluble, the optimal load curtailment model is utilized so that the system is recovered to the feasible region, and in the form as follows:




  
    
      
        
          min
          ⁢
          
            
          
          ⁢
          
            
              ∑
              
                k
                =
                1
              
              N
            
            ⁢
            
              
                δ
                Lk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                P
                Lk
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              s
              .
              t
              .
              
                
              
              ⁢
              
                P
                Gk
              
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      +
                      
                        
                          B
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            
              P
              Lk
            
            -
            
              
                δ
                Lk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                P
                Lk
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              Q
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      +
                      
                        
                          B
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            
              Q
              Lk
            
            -
            
              
                δ
                Lk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                Q
                Lk
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            P
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            P
            Gi
          
          ≤
          
            P
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            Q
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            Q
            Gi
          
          ≤
          
            Q
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            V
            k
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            V
            k
          
          ≤
          
            V
            k
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            S
            l
          
          ≤
          
            S
            l
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            i
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              N
              g
            
            ;
            k
          
          ,
          
            j
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            N
            ;
            
              l
              =
              1
            
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            L
            .
          
        
      
    
    
      
        (
        4
        )
      
    
  




Under the circumstance where the original optimal load flow problem is insoluble, the flexibility of the load is simply considered instead of the economic efficiency of system operation and the flexibility of the inequality constraints; in other words, the load curtailment measure must be taken so that the system can be recovered to the feasible region at the minimum load loss cost.

Step S3, the operating conditions, including a power grid structure, and voltages and powers of the generators, of the electric power system are determined.
Step S4, load flow calculation is carried out based on the operating conditions of the electric power system to obtain the active power and the reactive power of each bus, the voltages of the nodes, and the electric conductance, the electric susceptibility, and the phase angle difference between nodes.
Step S5, if the load flow calculation is successful, corresponding optimization calculation is carried out according to the flexible multi-dimensional or flexible power generation cost model selected in the step S2 to obtain a comprehensive flexible optimization result or the optimal power generation cost, namely the optimal total power generation cost f′ of the electric power system, and the state controlled power grid operating variables such as the active power, the reactive power and the flexible index when the optimal power generation cost is optimal; if the load flow calculation fails, corresponding optimization calculation is carried out according to the optimal load curtailment model to obtain the optimal load curtailment and the power grid operating state controlled variables such as the active power, the reactive power and the flexible index at this moment, and wherein the optimization calculation of the multi-dimensional flexibility, the power generation cost flexibility or the optimal load curtailment includes the following specific steps of 501, constructing a Lagrange objective function according to the corresponding multi-dimensional flexible, power generation cost flexible or optimal load curtailment model, 502, obtaining a Kuhn-Tucker condition corresponding to the optimal solution of the Lagrange objective function, and 503, solving by virtue of a newton method to obtain the optimal solution of the model.
The concept of electric power system flexibility is introduced into the method for optimizing the flexible constraints of the electric power system, the multi-dimensional flexible, power generation cost flexible and optimal load curtailment models are constructed while the safety and reliability of system operation are guaranteed, the constraint boundary of the system is expanded rationally and the economic efficiency of system operation is improved to an utmost extent, and meanwhile, the bottleneck affecting the economic efficiency of system operation can be found out based on the optimization result, and therefore, reference can be provided for upgrading and modifying the power grid.
The necessary data of an electric power system for the application of this disclosure are as follows.
1) The voltage level of the electric power system.
2) Bus data include; bus number; bus type (namely PQ, PV or slack bus); real and reactive load power; reactive compensation capacity; upper and lower voltage constraints.
3) Generator data include: bus number; upper and lower constraints for both real and reactive power outputs; operating economy parameters.
4) Transmission line data include: from bus and to bus number; resistance, reactance, conductance and susceptance of the line; current constraint.

## Claims

1. A method for optimizing flexible constraints of an electric power system, comprising:
expressing a total power generation cost f′ of the electric power system by a sum of quadratic functions of active power outputs of all generator sets in the system in a flexible formula as follows:





  
    
      
        
          
            f
            ′
          
          =
          
            
              
                ∑
                
                  i
                  =
                  1
                
                
                  N
                  g
                
              
              ⁢
              
                (
                
                  
                    
                      a
                      i
                    
                    ⁢
                    
                      P
                      Gi
                      2
                    
                  
                  +
                  
                    
                      b
                      i
                    
                    ⁢
                    
                      P
                      Gi
                    
                  
                  +
                  
                    c
                    i
                  
                
                )
              
            
            =
            
              
                f
                0
              
              +
              
                
                  δ
                  f
                
                ⁢
                Δ
                ⁢
                
                  
                
                ⁢
                f
              
            
          
        
        ,
      
    
    
      
        (
        1
        )
      
    
  



 wherein Ng represents a total number of generators of the system, i=1, 2, . . . , Ng , and ai, bi and ci are power generation coefficients of a generator set i; PGi is an active power of the generator i; f0 represents a minimum expected value of the total power generation cost of the system, Δf represents an acceptable maximum increment of the total power generation cost of the system; δf is a flexible index of a power generation cost of the system, and a numerical area of the flexible index is as follows: δf ε[0,1];
selecting a multi-dimensional flexible optimization model or a flexible power generation cost optimization model according to a practical situation of the electric power system and a practical purpose of optimization;
determining an operating conditions, including a power grid structure, and voltages and powers of the generators, of the electric power system;
carrying out load flow calculation based on the operating conditions of the electric power system; and
carrying out corresponding optimization calculation according to the flexible multi-dimensional or flexible power generation cost model selected in the selecting step to obtain a comprehensive flexible optimization result or an optimal power generation cost, if the load flow calculation is successful, and if the load flow calculation fails, carrying out corresponding optimization calculation according to an optimal load curtailment model to obtain an optimal load curtailment.

2. The method of claim 1, wherein the multi-dimensional flexible optimization model is as follows:




  
    
      
        
          
            
              
                min
                ⁢
                
                  
                
                ⁢
                
                  f
                  ⁡
                  
                    (
                    δ
                    )
                  
                
              
              =
              
                
                  δ
                  f
                  2
                
                +
                
                  
                    1
                    N
                  
                  ⁢
                  
                    
                      ∑
                      
                        k
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      δ
                      Lk
                      2
                    
                  
                
                -
                
                  
                    1
                    
                      N
                      g
                    
                  
                  ⁢
                  
                    
                      ∑
                      
                        i
                        =
                        1
                      
                      
                        N
                        g
                      
                    
                    ⁢
                    
                      δ
                      Gi
                      2
                    
                  
                
                -
                
                  
                    1
                    N
                  
                  ⁢
                  
                    
                      ∑
                      
                        k
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      δ
                      vk
                      2
                    
                  
                
                -
                
                  
                    1
                    L
                  
                  ⁢
                  
                    
                      ∑
                      
                        l
                        =
                        1
                      
                      L
                    
                    ⁢
                    
                      δ
                      Fl
                      2
                    
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                s
                .
                t
                .
                
                  
                
                ⁢
                
                  
                    ∑
                    
                      i
                      =
                      1
                    
                    
                      N
                      g
                    
                  
                  ⁢
                  
                    (
                    
                      
                        
                          a
                          i
                        
                        ⁢
                        
                          P
                          Gi
                          2
                        
                      
                      +
                      
                        
                          b
                          i
                        
                        ⁢
                        
                          P
                          Gi
                        
                      
                      +
                      
                        c
                        i
                      
                    
                    )
                  
                
              
              =
              
                
                  f
                  0
                
                +
                
                  
                    δ
                    f
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  f
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                
                  P
                  Gk
                
                -
                
                  
                    V
                    k
                  
                  ⁢
                  
                    
                      ∑
                      
                        j
                        ∈
                        k
                      
                    
                    ⁢
                    
                      
                        V
                        j
                      
                      ⁡
                      
                        (
                        
                          
                            
                              G
                              kj
                            
                            ⁢
                            cos
                            ⁢
                            
                              
                            
                            ⁢
                            
                              θ
                              kj
                            
                          
                          +
                          
                            
                              B
                              kj
                            
                            ⁢
                            sin
                            ⁢
                            
                              
                            
                            ⁢
                            
                              θ
                              kj
                            
                          
                        
                        )
                      
                    
                  
                
              
              =
              
                
                  P
                  Lk
                
                -
                
                  δ
                  Lk
                
                -
                
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    P
                    Lk
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                
                  Q
                  Gk
                
                -
                
                  
                    V
                    k
                  
                  ⁢
                  
                    
                      ∑
                      
                        j
                        ∈
                        k
                      
                    
                    ⁢
                    
                      
                        V
                        j
                      
                      ⁡
                      
                        (
                        
                          
                            
                              G
                              kj
                            
                            ⁢
                            sin
                            ⁢
                            
                              
                            
                            ⁢
                            
                              θ
                              kj
                            
                          
                          -
                          
                            
                              B
                              kj
                            
                            ⁢
                            cos
                            ⁢
                            
                              
                            
                            ⁢
                            
                              θ
                              kj
                            
                          
                        
                        )
                      
                    
                  
                
              
              =
              
                
                  Q
                  Lk
                
                -
                
                  
                    δ
                    Lk
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    Q
                    Lk
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                
                  P
                  Gi
                  
                    m
                    ⁢
                    
                      
                    
                    ⁢
                    i
                    ⁢
                    
                      
                    
                    ⁢
                    n
                  
                
                +
                
                  
                    δ
                    Gi
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    P
                    Gi
                    
                      m
                      ⁢
                      
                        
                      
                      ⁢
                      i
                      ⁢
                      
                        
                      
                      ⁢
                      n
                    
                  
                
              
              ≤
              
                P
                Gi
              
              ≤
              
                
                  P
                  Gi
                  
                    ma
                    ⁢
                    
                      
                    
                    ⁢
                    x
                  
                
                -
                
                  
                    δ
                    Gi
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    P
                    Gi
                    
                      ma
                      ⁢
                      
                        
                      
                      ⁢
                      x
                    
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              
                
                  Q
                  Gi
                  
                    m
                    ⁢
                    
                      
                    
                    ⁢
                    i
                    ⁢
                    
                      
                    
                    ⁢
                    n
                  
                
                +
                
                  
                    δ
                    Gi
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    Q
                    Gi
                    
                      m
                      ⁢
                      
                        
                      
                      ⁢
                      i
                      ⁢
                      
                        
                      
                      ⁢
                      n
                    
                  
                
              
              ≤
              
                Q
                Gi
              
              ≤
              
                
                  Q
                  Gi
                  
                    ma
                    ⁢
                    
                      
                    
                    ⁢
                    x
                  
                
                -
                
                  
                    δ
                    Gi
                  
                  ⁢
                  Δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    Q
                    Gi
                    
                      ma
                      ⁢
                      
                        
                      
                      ⁢
                      x
                    
                  
                
              
            
            ⁢
            
              

            
            ⁢
            
              V
              k
              
                m
                ⁢
                
                  
                
                ⁢
                i
                ⁢
                
                  
                
                ⁢
                n
              
            
            +
            
              
                δ
                Vk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                V
                k
                
                  m
                  ⁢
                  
                    
                  
                  ⁢
                  i
                  ⁢
                  
                    
                  
                  ⁢
                  n
                
              
            
          
          ≤
          
            V
            k
          
          ≤
          
            
              V
              k
              
                m
                ⁢
                
                  
                
                ⁢
                ax
              
            
            -
            
              
                δ
                Vk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                V
                k
                
                  ma
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            S
            l
          
          ≤
          
            
              S
              l
              
                
                  m
                  ⁢
                  
                    
                  
                  ⁢
                  ax
                
                ⁢
                
                  
                
              
            
            -
            
              
                δ
                Fl
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                S
                l
                
                  ma
                  ⁢
                  
                    
                  
                  ⁢
                  x
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            0
            ≤
            
              δ
              f
            
          
          ,
          
            δ
            Lk
          
          ,
          
            δ
            Gi
          
          ,
          
            δ
            Vk
          
          ,
          
            
              δ
              Fl
            
            ≤
            1
          
        
        ⁢
        
          

        
        ⁢
        
          
            i
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              N
              g
            
            ;
            k
          
          ,
          
            j
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            N
            ;
            
              l
              =
              1
            
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          L
        
      
    
    
      
        (
        2
        )
      
    
  



wherein δLk represents a flexible load index of a node k, δGi represents a flexible index of a power output of generator i, δVk represents a flexible voltage index of the node k, δFl represents the flexible load flow index of line l, N represents the total number of the nodes of the system, L represents a total number of lines of the system, PGk and QGk represent an active power and a reactive power of the node k, respectively, PLk and QLk, represent an active load and a reactive load of the node k, respectively, Vk and Vj represent voltages of the nodes k and j, respectively, Gkj, Bkj and θkj represent electric conductance, electrical susceptibility, and phase angle difference between the nodes k and j, respectively, ΔPLk and ΔQLk represent deviations of the active load and the reactive load of the node k, respectively, PGi, PGimax and PGimin represent the active power of the generator i and an upper and a lower limits of the active power, respectively, δPGimax and δPGimin represent a maximum allowable threshold-crossing values of PGimax and PGimin, respectively, QGi, QGimax and QGimin represent a reactive power of the generator i and an upper and a lower limits of the reactive power, respectively, δQGimax and δQGimin represent a maximum allowable threshold-crossing values of, QGimax and QGimin, respectively, Vk, Vkmax and Vkmin represent a voltage of the node k and an upper and a lower limits of the voltage, respectively, δVkmax and δVkmin represent a maximum allowable threshold-crossing values of, Vkmax and Vkmin respectively, Sl and Slmax represent a load flow value and a threshold of the line l, respectively, and δSlmax represents a maximum allowable threshold-crossing value of Slmax.

3. The method of claim 1, wherein the flexible power generation cost optimization model is as follows:




  
    
      
        
          
            min
            ⁢
            
              
            
            ⁢
            
              f
              ⁡
              
                (
                δ
                )
              
            
          
          =
          
            δ
            f
            2
          
        
        ⁢
        
          

        
        ⁢
        
          
            s
            .
            t
            .
            
              
            
            ⁢
            
              
                ∑
                
                  i
                  =
                  1
                
                
                  N
                  g
                
              
              ⁢
              
                (
                
                  
                    
                      a
                      i
                    
                    ⁢
                    
                      P
                      Gi
                      2
                    
                  
                  +
                  
                    
                      b
                      i
                    
                    ⁢
                    
                      P
                      Gi
                    
                  
                  +
                  
                    c
                    i
                  
                
                )
              
            
          
          =
          
            
              f
              0
            
            +
            
              
                δ
                f
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              f
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              P
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      +
                      
                        
                          B
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            P
            Lk
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              Q
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      -
                      
                        
                          B
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            Q
            Lk
          
        
        ⁢
        
          

        
        ⁢
        
          
            P
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            P
            Gi
          
          ≤
          
            P
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            Q
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            Q
            Gi
          
          ≤
          
            Q
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            V
            k
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            V
            k
          
          ≤
          
            V
            k
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            S
            l
          
          ≤
          
            S
            l
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          0
          ≤
          
            δ
            f
          
          ≤
          1
        
        ⁢
        
          

        
        ⁢
        
          
            i
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              N
              g
            
            ;
            k
          
          ,
          
            j
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            N
            ;
            
              l
              =
              1
            
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          L
          ,
        
      
    
    
      
        (
        3
        )
      
    
  



wherein N represents a total number of the nodes of the system, L represents a total number of lines of the system, PGk, and QGk, represent an active power and a reactive power of a node k, respectively, PLk and QLk represent an active load and a reactive load of the node k, respectively, Vk and Vj represent voltages of the nodes k and j, respectively, Gkj, Bkj and θkj represent electric conductance, electrical susceptibility, and phase angle difference between the nodes k and j, respectively, PGi, PGimax and PGiminrepresent an active power of the generator i and an upper and a lower limits of the active power, respectively, QGi, QGimax and QGimin represent a reactive power of the generator i and an upper and a lower limits of the reactive power, respectively, Vk, Vkmax and Vkminrepresents a voltage of the node k and an upper and a lower limits of the voltage, respectively, and Sl and Slmax represent a load flow value and a threshold of the line l, respectively.

4. The method of claim 1, wherein the optimal load curtailment is as follows:




  
    
      
        
          min
          ⁢
          
            
          
          ⁢
          
            
              ∑
              
                k
                =
                1
              
              N
            
            ⁢
            
              
                δ
                Lk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                P
                Lk
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              s
              .
              t
              .
              
                
              
              ⁢
              
                P
                Gk
              
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      +
                      
                        
                          B
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            
              P
              Lk
            
            -
            
              
                δ
                Lk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                P
                Lk
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              Q
              Gk
            
            -
            
              
                V
                k
              
              ⁢
              
                
                  ∑
                  
                    j
                    ∈
                    k
                  
                
                ⁢
                
                  
                    V
                    j
                  
                  ⁡
                  
                    (
                    
                      
                        
                          G
                          kj
                        
                        ⁢
                        sin
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                      -
                      
                        
                          B
                          kj
                        
                        ⁢
                        cos
                        ⁢
                        
                          
                        
                        ⁢
                        
                          θ
                          kj
                        
                      
                    
                    )
                  
                
              
            
          
          =
          
            
              Q
              Lk
            
            -
            
              
                δ
                Lk
              
              ⁢
              Δ
              ⁢
              
                
              
              ⁢
              
                Q
                Lk
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            P
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            P
            Gi
          
          ≤
          
            P
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            Q
            Gi
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            Q
            Gi
          
          ≤
          
            Q
            Gi
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            V
            k
            
              m
              ⁢
              
                
              
              ⁢
              i
              ⁢
              
                
              
              ⁢
              n
            
          
          ≤
          
            V
            k
          
          ≤
          
            V
            k
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            S
            l
          
          ≤
          
            S
            l
            
              ma
              ⁢
              
                
              
              ⁢
              x
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            i
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            
              N
              g
            
            ;
            k
          
          ,
          
            j
            =
            1
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          
            N
            ;
            
              l
              =
              1
            
          
          ,
          2
          ,
          ...
          ⁢
          
            
          
          ,
          L
          ,
        
      
    
    
      
        (
        4
        )
      
    
  



wherein δLK represents a flexible load index of a node k, N represents a total number of nodes of the system, L represents a total number of lines of the system, PGk and QGkrepresent an active power and a reactive power of the node k, respectively, PLk and QLkrepresent an active load and a reactive load of the node k, respectively, Vk and Vj represent voltages of the nodes k and j, respectively, and Gkj, Bkj and θkj represent electric conductance, electrical susceptibility and phase angle difference between the nodes k and j, respectively, ΔPLk and ΔQLk represent deviations of the active load and the reactive load of the node k, respectively, PGi, PGimax and PGimin represent an active power of the generator i and an upper and a limits of the active power, respectively, QGi, QGimax and QGimin represent a reactive power of the generator i and an upper and a lower limits of the reactive power, respectively, Vk , Vkmax and Vkmin represent a voltage of the node k and an upper and a lower limits of the voltage, respectively, and Sl and Slmax represent a load flow value and a threshold of the line l, respectively.

5. The method of claim 1, wherein the corresponding optimization specifically comprises:
constructing a Lagrange objective function according to the corresponding multi-dimensional flexible, power generation cost flexible or optimal load curtailment model,
obtaining a Kuhn-Tucker condition corresponding to the optimal solution of the Lagrange objective function, and
solving by virtue of a newton method to obtain the optimal solution of the model.