optimal charging conditions