Míreanna comhchosúla: Distributed Optimization with Application to Power Systems and Control