@@ -721,15 +721,25 @@ function print_active_bridges(
721
721
_print_supported (io, " Supported variable: $S \n " )
722
722
return
723
723
end
724
- index = MOI. Bridges. bridge_index (b. graph, b. variable_node[(S,)])
725
- B = b. variable_bridge_types[index]
726
- BT = MOI. Bridges. Variable. concrete_bridge_type (B, S)
727
- print (io, offset, " * " )
728
- _print_unsupported (io, " Unsupported variable: $S \n " )
729
- println (io, offset, " | bridged by:" )
730
- print (io, offset, " | " )
731
- MOI. Utilities. print_with_acronym (io, " $BT \n " )
732
- println (io, offset, " | may introduce:" )
733
- _print_bridge (io, b, BT, offset)
724
+ if MOI. Bridges. is_variable_edge_best (b. graph, b. variable_node[(S,)])
725
+ index = MOI. Bridges. bridge_index (b. graph, b. variable_node[(S,)])
726
+ B = b. variable_bridge_types[index]
727
+ BT = MOI. Bridges. Variable. concrete_bridge_type (B, S)
728
+ print (io, offset, " * " )
729
+ _print_unsupported (io, " Unsupported variable: $S \n " )
730
+ println (io, offset, " | bridged by:" )
731
+ print (io, offset, " | " )
732
+ MOI. Utilities. print_with_acronym (io, " $BT \n " )
733
+ println (io, offset, " | may introduce:" )
734
+ _print_bridge (io, b, BT, offset)
735
+ else
736
+ print (io, offset, " * " )
737
+ _print_unsupported (io, " Unsupported variable: $S \n " )
738
+ println (io, offset, " | adding as constraint:" )
739
+ offset = offset * " | "
740
+ MOI. Bridges. print_active_bridges (io, b, MOI. Reals, offset)
741
+ F = MOI. Utilities. variable_function_type (S)
742
+ MOI. Bridges. print_active_bridges (io, b, F, S, offset)
743
+ end
734
744
return
735
745
end
0 commit comments