mirror of
https://github.com/ANL-CEEESA/MIPLearn.jl.git
synced 2025-12-06 08:28:52 -06:00
BenchmarkRunner: Ensure outputs are discarded
This commit is contained in:
@@ -35,4 +35,12 @@ using Gurobi
|
||||
loaded = load_solver(filename)
|
||||
@test loaded.py.components == "Placeholder"
|
||||
end
|
||||
|
||||
@testset "Discard output" begin
|
||||
instance = build_knapsack_file_instance()
|
||||
solver = LearningSolver(Gurobi.Optimizer)
|
||||
solve!(solver, instance, discard_output=true)
|
||||
loaded = load_instance(instance.filename)
|
||||
@test length(loaded.py.samples) == 0
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user