Distributed Microgrid Model and Its Dynamic Economic Dispatch Algorithm