We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8815384 commit 05d7c75Copy full SHA for 05d7c75
1 file changed
src/constraints.jl
@@ -1020,6 +1020,12 @@ function _moi_add_constraint(
1020
return MOI.add_constraint(model, f, s)
1021
end
1022
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
+
1029
function moi_function(f, model)
1030
check_belongs_to_model(f, model)
1031
return moi_function(f)
0 commit comments