simulation of a smart grid city with software agents