Make resolve compatible with solve(heuristic=true)

This commit is contained in:
2023-07-26 10:17:37 -05:00
parent 3e54e767c4
commit bc05b49222
2 changed files with 39 additions and 9 deletions

View File

@@ -4,10 +4,17 @@
using RELOG
function model_resolve_test()
@testset "Resolve" begin
@testset "Resolve (exact)" begin
# Shoud not crash
filename = fixture("s1.json")
solution_old, model_old = RELOG.solve(filename, return_model = true)
solution_new = RELOG.resolve(model_old, filename)
end
@testset "Resolve (heuristic)" begin
# Shoud not crash
filename = fixture("s1.json")
solution_old, model_old = RELOG.solve(filename, return_model = true, heuristic = true)
solution_new = RELOG.resolve(model_old, filename)
end
end