Optimization of MV Distribution Network in presence of Distributed Generation