Skip to content

Commit

Permalink
Added ceil to Resende & Werneck's branching factor before applying br…
Browse files Browse the repository at this point in the history
…anching factor correction.
  • Loading branch information
autopawn committed Nov 20, 2020
1 parent 9f8fa7c commit f2facad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expand.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ solution **new_expand_solutions(const rundata *run,
branchingf = prob->n_facs-current_size;
}else if(run->branching_factor==0){
// Generate according to Resende & Werneck's formula
branchingf = log2f((float)prob->n_facs/fmaxf(1.0,current_size));
branchingf = ceil(log2f((float)prob->n_facs/fmaxf(1.0,current_size)));
}else{
// Use the branching factor given
branchingf = run->branching_factor;
Expand Down

0 comments on commit f2facad

Please sign in to comment.