{'fraction_non_alphanumeric': 0.010958904109589041, 'fraction_numerical': 0.0, 'mean_word_length': 5.436123348017621, '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}}
Reverse and forward engineering of frequency control in power networks

We reverse-engineer the frequency dynamics with general primary frequency control and show that it is a distributed algorithm to solve a well-defined optimization problem. We further investigate the role of deadband in control, and show that if the aggregated uncontrolled load deviation is nonzero the frequencies will be synchronized, and if however it is zero the frequencies may oscillate but within the deadband. The optimization model does not only provide a way to characterize the equilibrium and establish the convergence of the frequency dynamics, but also suggests a principled way to engineer frequency control. By leveraging the optimization problem and insights from reverse engineering, we propose a distributed realtime frequency control scheme that does not only maintain the frequency to the nominal value but also achieves economic efficiency. This is drastically different from the current hierarchical control approach that addresses frequency regulation and economic efficiency at different timescales and with centralized control, and is what is needed for future power system to cope with rapid and large fluctuations in supply/demand and manage a huge number of control points. This work presents a step towards developing a new foundation - network dynamics as optimization algorithms - for distributed realtime control and optimization of future power networks.