Actvie power losses cibstrained optimization in Smart Grids by genetic algorithms