Skip to content

Commit 8eaebba

Browse files
committed
do scaling beforehand
1 parent 80ac99d commit 8eaebba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/src/mip_heuristics/diversity/diversity_manager.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ bool diversity_manager_t<i_t, f_t>::run_presolve(f_t time_limit)
177177
raft::common::nvtx::range fun_scope("run_presolve");
178178
CUOPT_LOG_INFO("Running presolve!");
179179
timer_t presolve_timer(time_limit);
180+
if (context.settings.mip_scaling) { context.scaling.scale_problem(); }
180181
auto term_crit = ls.constraint_prop.bounds_update.solve(*problem_ptr);
181182
if (ls.constraint_prop.bounds_update.infeas_constraints_count > 0) {
182183
stats.presolve_time = timer.elapsed_time();
@@ -217,7 +218,6 @@ bool diversity_manager_t<i_t, f_t>::run_presolve(f_t time_limit)
217218
}
218219
}
219220
}
220-
if (context.settings.mip_scaling) { context.scaling.scale_problem(); }
221221
stats.presolve_time = presolve_timer.elapsed_time();
222222
lp_optimal_solution.resize(problem_ptr->n_variables, problem_ptr->handle_ptr->get_stream());
223223
lp_dual_optimal_solution.resize(problem_ptr->n_constraints,

0 commit comments

Comments
 (0)