{'fraction_non_alphanumeric': 0.009665427509293681, 'fraction_numerical': 0.001486988847583643, 'mean_word_length': 5.202764976958525, '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}}
Optimization of Electric Grids with Stochastic Elements

The paper proposes a methodology for modeling and optimization of electric grids with stochastic elements. The stochastic properties of modern electric grids and electric grids of the near future are associated with the development of Smart Grids. Electric vehicles are especially good at highlighting the problems that arise when modeling smart grids. Therefore, the optimization algorithm is described by the example of a urban electric grid with the presence of charging stations for electric vehicles and storage devices using V2G technology. The author has proposed a two-level optimization algorithm. At the lower level of the algorithm, the problem of optimizing the economic efficiency of the charge and power output in the case of connecting the EV using V2G technology is solved. At the top level, the optimization problem is considered from the point of view of the grid company. Much attention is paid to the problem of dynamic optimization of electric grid with stochastic elements, since this task is relevant for the automatic and automated control of normal modes of EPS. The proposed methodology for modeling and optimization of electric grids with stochastic elements is implemented as embedded software and can be used in automatic optimal and emergency control systems