{'fraction_non_alphanumeric': 0.028008298755186723, 'fraction_numerical': 0.0031120331950207467, 'mean_word_length': 5.146496815286624, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
An Optimal Battery Charging Algorithm in Electric Vehicle-Assisted Battery Swapping Environments

In battery swapping environments, electric vehicles (EVs) can play roles as battery providers as well as consumers. In this paper, we propose an optimal battery charging algorithm (OBCA) where a battery swapping station (BSS) charges batteries in its storage with the consideration of the profile of the electricity price and the arrival rates of EVs. To maximize the net profit of BSS while maintaining the battery changing probability above a certain level (i.e., maintaining high quality of service (QoS) of BSS), we formulate a constraint Markov decision process (CMDP) problem and the optimal charging schedule for batteries in BSS is obtained by a linear programming (LP). Evaluation results demonstrate that OBCA with the optimal policy can improve the net profit of BSS up to 418% compared to an electric price-aware scheme while maintaining high QoS of BSS.