Flexibility Index of Black-Box Models with Parameter Uncertainty through Derivative-Free Optimization