Optimization Methods In Electric Power Systems: Global Solutions For Optimal Power Flow And Algorithms For Resilient Design Under Geomagnetic Disturbances