@@ -256,8 +256,7 @@ BopOptimizerBase::Status BopAdaptiveLNSOptimizer::Optimize(
256256 auto sat_propagator_cleanup =
257257 ::absl::MakeCleanup ([initial_dt, this , &learned_info, &time_limit]() {
258258 if (!sat_propagator_->ModelIsUnsat ()) {
259- sat_propagator_->SetAssumptionLevel (0 );
260- sat_propagator_->RestoreSolverToAssumptionLevel ();
259+ (void )sat_propagator_->ResetToLevelZero ();
261260 ExtractLearnedInfoFromSatSolver (sat_propagator_, learned_info);
262261 }
263262 time_limit->AdvanceDeterministicTime (
@@ -327,14 +326,14 @@ BopOptimizerBase::Status BopAdaptiveLNSOptimizer::Optimize(
327326 // Restore to the assumption level.
328327 // This is call is important since all the fixed variable in the
329328 // propagator_ will be used to construct the local problem below.
330- // Note that calling RestoreSolverToAssumptionLevel () might actually prove
329+ // Note that calling ResetToLevelZero () might actually prove
331330 // the infeasibility. It is important to check the UNSAT status afterward.
332331 if (!sat_propagator_->ModelIsUnsat ()) {
333- sat_propagator_->RestoreSolverToAssumptionLevel ();
332+ ( void ) sat_propagator_->ResetToLevelZero ();
334333 }
335334
336335 // Check if the problem is proved UNSAT, by previous the search or the
337- // RestoreSolverToAssumptionLevel () call above.
336+ // ResetToLevelZero () call above.
338337 if (sat_propagator_->ModelIsUnsat ()) {
339338 return problem_state.solution ().IsFeasible ()
340339 ? BopOptimizerBase::OPTIMAL_SOLUTION_FOUND
0 commit comments