-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
Submodule: BridgesAbout the Bridges submoduleAbout the Bridges submodule
Milestone
Description
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
MathOptInterface.jl/src/Bridges/Constraint/map.jl
Lines 321 to 334 in 95a73a0
| # 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
Labels
Submodule: BridgesAbout the Bridges submoduleAbout the Bridges submodule