Skip to content

Commit

Permalink
reHC*, ensure that the bisection midpoint is passed as integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
yp committed Mar 21, 2016
1 parent 020d4c6 commit 2e90401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rehcstar/reHCstar_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def exec_reHCstar(filenames, solution, chunk, bounds, upper_limit_recombinations
lb, ub)
while lb+1 < ub:
assert lb < ub
mid= math.floor((lb+ub)/2)
mid= int(math.floor((lb+ub)/2))
logging.info("Step 2. Bisecting interval (%d-%d]", lb, ub)
logging.info("Step 2. Trying with at most %d recombinations.", mid)
rehcstar_success= basic_exec_reHCstar(filenames, lb, mid, cmd, time_limit)
Expand Down

0 comments on commit 2e90401

Please sign in to comment.