Operational And Investment Solutions To Enhance The Transmission And Distribution Systems Of The Electrical Grid