Skip to content

Commit 7ba1493

Browse files
committed
model attribute
1 parent 126059c commit 7ba1493

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/MOI_wrapper.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ end
142142
143143
Number of cuts added to the outer approximation model.
144144
"""
145-
struct NumberOfCuts <: MOI.AbstractOptimizerAttribute end
145+
struct NumberOfCuts <: MOI.AbstractModelAttribute end
146+
147+
MOI.attribute_value_type(::NumberOfCuts) = Int64
148+
MOI.is_set_by_optimize(::NumberOfCuts) = true
146149

147150
function MOI.get(opt::Optimizer, ::NumberOfCuts)
148151
return opt.num_cuts

0 commit comments

Comments
 (0)