You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Bridges/bridge_optimizer.jl
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1444,6 +1444,10 @@ function MOI.set(
1444
1444
# mapped through the bridge substitution. This includes moving constants
1445
1445
# into the set.
1446
1446
if Variable.has_bridges(Variable.bridges(b))
1447
+
ifis_bridged(b, ci)
1448
+
# If `ci` is also ConstraintBridged, then we give up as the current code path is known to contain unresolved issues, see https://github.com/jump-dev/MathOptInterface.jl/issues/2452
1449
+
throw(MOI.SetAttributeNotAllowed(attr))
1450
+
end
1447
1451
func = MOI.get(b, MOI.ConstraintFunction(), ci)
1448
1452
# Updating the set will not modify the function, so we don't care about
1449
1453
# the first argument. We only care about the new set.
0 commit comments