Distributed energy resources DERs are electricity-producing resourcesor controllable loads that are directly connected to a local distribution system or connected to a host…