in order to stay within battery power input or output limits in order to prevent overcharging or battery depletion