Skip to content

Commit 05d7c75

Browse files
committed
Fix
1 parent 8815384 commit 05d7c75

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/constraints.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,12 @@ function _moi_add_constraint(
10201020
return MOI.add_constraint(model, f, s)
10211021
end
10221022

1023+
function check_belongs_to_model(f::Vector, model)
1024+
for func in f
1025+
check_belongs_to_model(func, model)
1026+
end
1027+
end
1028+
10231029
function moi_function(f, model)
10241030
check_belongs_to_model(f, model)
10251031
return moi_function(f)

0 commit comments

Comments
 (0)