Skip to content

Commit 5b0b8f6

Browse files
committed
Fix Indicator constraints in ListOfConstraintTypesPresent
1 parent d5b03a9 commit 5b0b8f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/MOI_wrapper/MOI_wrapper.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3641,6 +3641,12 @@ function MOI.get(model::Optimizer, ::MOI.ListOfConstraintTypesPresent)
36413641
for info in values(model.nl_constraint_info)
36423642
push!(constraints, (MOI.ScalarNonlinearFunction, typeof(info.set)))
36433643
end
3644+
for info in values(model.indicator_constraint_info)
3645+
push!(
3646+
constraints,
3647+
(MOI.VectorAffineFunction{Float64}, typeof(info.set)),
3648+
)
3649+
end
36443650
return collect(constraints)
36453651
end
36463652

0 commit comments

Comments
 (0)