find_optimal_combination