File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/Bridges/Constraint/bridges Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,28 @@ function MOI.get(
5151 return bridge
5252end
5353
54+ # Needed to avoid an ambiguity with the getter for MOI.Constraint.AbstractBridge
55+ function MOI. get (
56+ model:: MOI.Bridges.AbstractBridgeOptimizer ,
57+ attr:: MOI.ConstraintConflictStatus ,
58+ bridge:: AbstractFunctionConversionBridge ,
59+ )
60+ ret = MOI. NOT_IN_CONFLICT
61+ for (F, S) in MOI. Bridges. added_constraint_types (typeof (bridge))
62+ for ci in MOI. get (bridge, MOI. ListOfConstraintIndices {F,S} ())
63+ status = MOI. get (model, attr, ci)
64+ if status == MOI. IN_CONFLICT
65+ return status
66+ elseif status == MOI. MAYBE_IN_CONFLICT
67+ ret = status
68+ # elseif status == MOI.NOT_IN_CONFLICT
69+ # Nothing to do here.
70+ end
71+ end
72+ end
73+ return ret
74+ end
75+
5476function MOI. supports (
5577 model:: MOI.ModelLike ,
5678 attr:: MOI.AbstractConstraintAttribute ,
You can’t perform that action at this time.
0 commit comments