Skip to content

Commit 812322e

Browse files
committed
no cliques
1 parent 3979c72 commit 812322e

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

cpp/src/mip_heuristics/diversity/diversity_manager.cu

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -207,21 +207,21 @@ bool diversity_manager_t<i_t, f_t>::run_presolve(f_t time_limit)
207207
const bool remap_cache_ids = true;
208208
trivial_presolve(*problem_ptr, remap_cache_ids);
209209
if (!problem_ptr->empty && !check_bounds_sanity(*problem_ptr)) { return false; }
210-
if (!context.settings.heuristics_only && !problem_ptr->empty) {
211-
dual_simplex::user_problem_t<i_t, f_t> host_problem(problem_ptr->handle_ptr);
212-
problem_ptr->get_host_user_problem(host_problem);
213-
std::shared_ptr<clique_table_t<i_t, f_t>> clique_table;
214-
find_initial_cliques(host_problem, context.settings.tolerances, presolve_timer);
215-
problem_ptr->set_constraints_from_host_user_problem(host_problem);
216-
cuopt_assert(host_problem.lower.size() == static_cast<size_t>(problem_ptr->n_variables),
217-
"host lower bound size mismatch");
218-
cuopt_assert(host_problem.upper.size() == static_cast<size_t>(problem_ptr->n_variables),
219-
"host upper bound size mismatch");
220-
std::vector<i_t> all_var_indices(problem_ptr->n_variables);
221-
std::iota(all_var_indices.begin(), all_var_indices.end(), 0);
222-
problem_ptr->update_variable_bounds(all_var_indices, host_problem.lower, host_problem.upper);
223-
trivial_presolve(*problem_ptr, remap_cache_ids);
224-
}
210+
// if (!context.settings.heuristics_only && !problem_ptr->empty) {
211+
// dual_simplex::user_problem_t<i_t, f_t> host_problem(problem_ptr->handle_ptr);
212+
// problem_ptr->get_host_user_problem(host_problem);
213+
// std::shared_ptr<clique_table_t<i_t, f_t>> clique_table;
214+
// find_initial_cliques(host_problem, context.settings.tolerances, presolve_timer);
215+
// problem_ptr->set_constraints_from_host_user_problem(host_problem);
216+
// cuopt_assert(host_problem.lower.size() == static_cast<size_t>(problem_ptr->n_variables),
217+
// "host lower bound size mismatch");
218+
// cuopt_assert(host_problem.upper.size() == static_cast<size_t>(problem_ptr->n_variables),
219+
// "host upper bound size mismatch");
220+
// std::vector<i_t> all_var_indices(problem_ptr->n_variables);
221+
// std::iota(all_var_indices.begin(), all_var_indices.end(), 0);
222+
// problem_ptr->update_variable_bounds(all_var_indices, host_problem.lower, host_problem.upper);
223+
// trivial_presolve(*problem_ptr, remap_cache_ids);
224+
// }
225225
// May overconstrain if Papilo presolve has been run before
226226
if (context.settings.presolver == presolver_t::None) {
227227
if (!problem_ptr->empty) {

0 commit comments

Comments
 (0)