A Comparison of Two Method for DG Optimizing in Power System