Online Continuous Energy Management