@@ -1921,15 +1921,14 @@ SatSolver::Status ContinuousProber::Probe() {
19211921
19221922 // Adjust the active_limit.
19231923 if (use_shaving_) {
1924- const double deterministic_time =
1925- parameters_.shaving_search_deterministic_time ();
1924+ const double dtime = parameters_.shaving_search_deterministic_time ();
19261925 const bool something_has_been_detected =
19271926 num_bounds_shaved_ != initial_num_bounds_shaved ||
19281927 prober_->num_new_literals_fixed () != initial_num_literals_fixed;
19291928 if (something_has_been_detected) { // Reset the limit.
1930- active_limit_ = deterministic_time ;
1931- } else if (active_limit_ < 25 * deterministic_time ) { // Bump the limit.
1932- active_limit_ += deterministic_time ;
1929+ active_limit_ = dtime ;
1930+ } else if (active_limit_ <= 128 * dtime ) { // Bump the limit.
1931+ active_limit_ *= 2 ;
19331932 }
19341933 }
19351934
@@ -2047,8 +2046,8 @@ void ContinuousProber::LogStatistics() {
20472046 shared_response_manager_->LogMessageWithThrottling (
20482047 " Probe" ,
20492048 absl::StrCat (
2050- " (iterations=" , iteration_,
2051- " linearization_level =" , parameters_. linearization_level () ,
2049+ " (iterations=" , iteration_, " linearization_level= " ,
2050+ parameters_. linearization_level (), " active_limit =" , active_limit_ ,
20522051 " shaving=" , use_shaving_, " active_bool_vars=" , bool_vars_.size (),
20532052 " active_int_vars=" , integer_trail_->NumIntegerVariables (),
20542053 " literals fixed/probed=" , prober_->num_new_literals_fixed (), " /" ,
0 commit comments