Abstract
This paper shows that we can make simple modifications to an existing optimal power flow(OPF) algorithm that minimizes generation costs in order to solve the maximization of social welfare objective of the OPF in a competitive electric power market. We have illustrated the potential for the use of OPF in light of the marked impacts on nodal prices and generation/demand allocation levels among competing suppliers. This paper can provide all market players with the transparent information that ensures sufficient control over producers and consumers in case of economic of secure operation with transmission line outage while maximizing the sum of participants social benefit of participating in the electricity energy market.