battery range optimization