Skip to content

Adding a bridge that needs final_touch bridges in the final_touch of another bridge #1980

Open
@blegat

Description

@blegat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions