Skip to content

Commit

Permalink
Fix an issue when restarting
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzaare committed Jun 22, 2024
1 parent 849d7dc commit 3c97850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function _restart!(s, k = 10)
empty_tabu!(s)
δ = ((k - 1) * get_option(s, "tabu_delta")) + get_option(s, "tabu_time") / k
set_option!(s, "tabu_delta", δ)
_compute!(s) ? _optimizing!(s) : _satisfying!(s)
(_compute!(s) && !is_sat(s)) ? _optimizing!(s) : _satisfying!(s)
end

"""
Expand Down
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ const LS = LocalSearchSolvers
@testset "LocalSearchSolvers.jl" begin
include("Aqua.jl")
include("TestItemRunner.jl")
# include("internal.jl")
# include("raw_solver.jl")
include("internal.jl")
include("raw_solver.jl")
end

0 comments on commit 3c97850

Please sign in to comment.