Managing Deregulated Energy Markets: an Adaptive and Autonomous Multi-Agent System Application