An automatic load shedding in presence of partial/total limitation on the network power