apply_bitola_flexible function

Apply a flexible BITOLA-style discovery model without strict type constraints