This document is a thesis proposal by S. Kaveripriya on optimally allocating distributed energy resources (DERs) in a distribution system considering electric vehicles (EVs). The objectives are to minimize power losses. The methodology uses loss sensitivity factor and grasshopper optimization algorithm to determine optimal DER locations and sizes throughout the day for different EV charging patterns. Various charging patterns are analyzed to find the best approach for minimizing power losses. The results show smart charging EVs along with optimally placed DERs further reduces power losses compared to other cases.