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 282b455 commit 49df057Copy full SHA for 49df057
src/MOI_wrapper.jl
@@ -142,8 +142,7 @@ end
142
143
Number of cuts added to the outer approximation model.
144
"""
145
-struct NumberOfCuts <: MOI.AbstractOptimizerAttribute
146
-end
+struct NumberOfCuts <: MOI.AbstractOptimizerAttribute end
147
148
function MOI.get(opt::Optimizer, ::NumberOfCuts)
149
return opt.num_cuts
test/JuMP_tests.jl
@@ -76,7 +76,7 @@ end
76
77
function run_cut_test(test_function, opt)
78
MOI.empty!(opt)
79
- @test MOI.get(opt, Pajarito.NumberOfCuts()) == 0
+ @test MOI.get(opt, Pajarito.NumberOfCuts()) == 0
80
test_function(opt)
81
@test MOI.get(opt, Pajarito.NumberOfCuts()) > 0
82
end
0 commit comments