Abstract:This paper presents an approach to study the problem of automatic continency selection and ranking with the analytic hierarchy process, and takes into consideration the relative importance of transmission lines and the situation that the real and reactive power security constraints are violated as the line outage appears. Thus, the precise information in the real time security analysis and economic dispatch can be provided.