Safety and reliability of the electrical system based on optimal FACTS allocation for a research reactor