## Stopping capacity related self_disch when no energy left

The energy calculation could be rewritten in order for the self_disch (not self_disch_t) to stop when the remaining energy is insufficient. For instance, is self_disch = 1% and e[t]=0.8%, e[t] should be set to 0% at the next time step if the storage was not charged, and remain at this zero value.

At the moment, if no charging power is available AND e[t]<self_disch * capacity + self_disch_t * e[t]+ pd[t] * dt, the model is infeasible.