If a bridge adds a constraint that needs a bridge that need_final_touch then it will modify the needs_final_touch being iterated over
|
# Function barrier to iterate over bridges of the same type in an efficient way. |
|
function _final_touch(bridges, model) |
|
for bridge in bridges |
|
MOI.Bridges.final_touch(bridge, model) |
|
end |
|
return |
|
end |
|
|
|
function MOI.Bridges.final_touch(map::Map, model::MOI.ModelLike) |
|
for bridges in values(map.needs_final_touch) |
|
_final_touch(bridges, model) |
|
end |
|
return |
|
end |
In that case, we might not call
final_touch on that bridge.
If a bridge adds a constraint that needs a bridge that
need_final_touchthen it will modify theneeds_final_touchbeing iterated overMathOptInterface.jl/src/Bridges/Constraint/map.jl
Lines 321 to 334 in 95a73a0
In that case, we might not call
final_touchon that bridge.