Multiagent Autonomous Energy Management