Optimization and Security Challenges in Smart Power Grids (Energy Systems)