An application of learning agents to smart energy domains