{'fraction_non_alphanumeric': 0.013157894736842105, 'fraction_numerical': 0.0, 'mean_word_length': 5.5285714285714285, '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}}
Capturing Discontinuities in Optimal Control Problems

We present a method for automatically capturing discontinuous features when using hp-adaptive pseudo-spectral methods to solve an optimal control problem. The simultaneous reduction of the objective cost and the approximation error at discontinuities is obtained via the use of a flexible mesh, where the end-points of the time intervals are included as decision variables in the optimization problem.