Skip to content

Commit

Permalink
Merge pull request #71 from MrVPlusOne/improve-search
Browse files Browse the repository at this point in the history
Fix `inform!` for `ScoredScheduler`.
  • Loading branch information
0x0f0f0f authored Aug 31, 2021
2 parents 614e1ee + a585d9e commit 78a42f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EGraphs/Schedulers/scoredscheduler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function inform!(s::ScoredScheduler, rule::AbstractRule, n_matches)

rd = s.data[rule]
treshold = rd.match_limit * (rd.weight^rd.times_banned)
if length(n_matches) > treshold
if n_matches > treshold
ban_length = rd.ban_length * (rd.weight^rd.times_banned)
rd.times_banned += 1
rd.banned_until = s.curr_iter + ban_length
Expand Down

0 comments on commit 78a42f2

Please sign in to comment.