Skip to content

Commit

Permalink
add reset_domain to reset_model (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
Max9294D authored Aug 10, 2023
1 parent 54fc01b commit a68fbe6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CP/core/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ function reset_model!(model::CPModel)
model.statistics.numberOfNodesBeforeRestart = 0
model.statistics.AccumulatedRewardBeforeReset = 0
model.statistics.AccumulatedRewardBeforeRestart = 0
for var in model.variables
reset_domain!(var[2].domain)
end
end
"""
restart_search!(model::CPModel)
Expand Down

0 comments on commit a68fbe6

Please sign in to comment.