detect_pattern_in_binding_constraint function

Detect a pattern in a binding constraint coefficient