Optimal power flow: a tool for managing the transmission congestion