The how and why of plant energy management