mirror of
https://github.com/ANL-CEEESA/MIPLearn.jl.git
synced 2025-12-06 16:38:51 -06:00
BenchmarkRunner: Ensure outputs are discarded
This commit is contained in:
@@ -18,7 +18,7 @@ using Gurobi
|
||||
solver = LearningSolver(Gurobi.Optimizer)
|
||||
solve!(solver, file_instance)
|
||||
|
||||
loaded = load_jump_instance(filename)
|
||||
loaded = load_instance(filename)
|
||||
@test length(loaded.py.samples) == 1
|
||||
end
|
||||
end
|
||||
|
||||
@@ -20,7 +20,7 @@ using MIPLearn
|
||||
@test isfile(filename)
|
||||
|
||||
# Read model from file
|
||||
loaded = load_jump_instance(filename)
|
||||
loaded = load_instance(filename)
|
||||
x = variable_by_name(loaded.model, "x")
|
||||
@test loaded.model.ext[:miplearn][:variable_features][x] == [1.0]
|
||||
@test loaded.model.ext[:miplearn][:variable_categories][x] == "cat1"
|
||||
|
||||
Reference in New Issue
Block a user