Nonlinear droop control for minimum power losses operation in islanded microgrids