This document summarizes research on optimizing the placement and sizing of distributed generation (DG) and distributed energy resources (DER) in a 33-bus distribution system to minimize power losses. Two optimization techniques are evaluated: Grasshopper Optimization Algorithm (GOA) and Moth Flame Optimization (MFO). MFO shows better results, identifying bus 13, 24 and 30 as optimal locations for DG, reducing losses from 0.2027 MW to 0.0715 MW at normal load. For DER, optimal locations are DG at buses 13, 25, 30 and capacitors at buses 7, 13, 30, further reducing losses to 0.0144 MW. Graphs and tables show MFO placement