{'fraction_non_alphanumeric': 0.017351598173515982, 'fraction_numerical': 0.0, 'mean_word_length': 5.335260115606936, '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}}
Flexibility Index of Black-Box Models with Parameter Uncertainty through Derivative-Free Optimization

The existing methods of flexibility index are mainly based on mixed-integer linear or nonlinear programming methods, making it difficult to readily deal with complex mathematical models. In this article, a novel solution strategy is proposed for finding a reliable upper bound of the flexibility index where the process model is implemented in a black box that can be directly executed by a commercial simulator, and also avoiding the need for calculating derivatives. Then, the flexibility index problem is formulated as a sequence of univariate derivative-free optimization (DFO) models. An external DFO solver based on trust-region methods can be called to solve this model. Finally, after calculating the critical point of the model parameters, the vertex enumeration method and two gradient approximation methods are proposed to evaluate the impact of process parameters and to evaluate the flexibility index. A reaction model is studied to show the efficiency of the proposed algorithm.