In this paper, a comprehensive algorithm using modified invasive weed optimization is introduced for allocating distribution generation (DG) sources along with considering demand response (DR). Three aspects such as technical, economic and environmental are taken to account to define the optimized size and location for DG or DR. In addition, a new voltage fitness function […]