Thesis Title: Closed loop control of dynamic voltage restorers based on minimum energy stored in order to voltage sag compensation Grade Msc