Enhancing Security and Optimization in Smart Grids: A Comprehensive Analysis | IEEE Conference Publication | IEEE Xplore