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 126059c commit 7ba1493Copy full SHA for 7ba1493
src/MOI_wrapper.jl
@@ -142,7 +142,10 @@ end
142
143
Number of cuts added to the outer approximation model.
144
"""
145
-struct NumberOfCuts <: MOI.AbstractOptimizerAttribute end
+struct NumberOfCuts <: MOI.AbstractModelAttribute end
146
+
147
+MOI.attribute_value_type(::NumberOfCuts) = Int64
148
+MOI.is_set_by_optimize(::NumberOfCuts) = true
149
150
function MOI.get(opt::Optimizer, ::NumberOfCuts)
151
return opt.num_cuts
0 commit comments