In DG placement, it is better to find the location of the DG so that its placement with the fixed injection will lead to the minimum loss than any other position. As long as, optimization techniques are concerted, any non-linear optimization approach including heuristics can be used.
Optimal placement of DG depends on the network under consideration. It is always advisable to place DG near load centers in order to minimize losses. To get hold of such a location, it s best to use probabilistic algorithms as suggested by earlier posts.
Try also Bat algorithm, or hybrid between Bat algorithm and PSO to find the optimal location of DGs, taking into account the network structure and also the technical restrictions.
The most common considerations for DG placement are voltage deviation, current limits, active and reactive power loss, and may be autonomous operation of network also. For techniques, as mentioned above, heuristic techniques are most popular and you may try any analytical method also.