Multi-Agent Based Model for Studying Electric Grid Transition to Distributed Energy Resources