Mixed use of lead-acid batteries and lithium batteries