Update Complex function

Back at the Hoover Dam, the technicians are fed up with the all-or-nothing generator switch technique (ANGST). They have decided they want significantly more control of which generators are on and off. So, they’ve asked you to develop a way to adjust the total generated Megawatts upon the switch-on or switch-off of a single, chosen generator.