In the following, 10 is just an example number, use whatever you like.
You can use a text editor to change all 'energy -', and 'energy to it -' to '+' and all 'energy to 0' to '10'. Change all 'action_points -' and 'action_points to it -' to '+', and all 'action_points to 0' to 10.
Or
In game, open the console (on pc it's the ` key above tab) and enter (set:$action_points to 10) or (set:$energy to 10) - including the () - at any point. You can also enter more than one command at a time, so you could combine the two above, (just remove the or between them) and get 10AP and energy at the same time.