From 6d5d1458a6bb2d506193647a898378d047e55aca Mon Sep 17 00:00:00 2001 From: Hassan Date: Thu, 21 Sep 2023 10:44:56 -0600 Subject: [PATCH] fixed bug in SDP root processing --- src/GurobiProgram.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GurobiProgram.cpp b/src/GurobiProgram.cpp index 94f971a2..da64bbee 100755 --- a/src/GurobiProgram.cpp +++ b/src/GurobiProgram.cpp @@ -75,7 +75,7 @@ class cuts: public GRBCallback // vec_x.push_back(x[i]); // } update_solution(); - m->compute_funcs(); +// m->compute_funcs(); if(add_soc){ auto res= m->cutting_planes_soc(1e-9, soc_found, soc_added); if(res.size()>=1){ @@ -164,7 +164,7 @@ class cuts: public GRBCallback add_bag_iteration=add_bag; add_full_iteration=add_full; update_solution(); - m->compute_funcs(); +// m->compute_funcs(); if(add_soc){ auto res= m->cutting_planes_soc(1e-9, soc_found, soc_added); if(res.size()>=1){ @@ -469,6 +469,7 @@ void GurobiProgram::reset_model(){ bool GurobiProgram::solve(bool relax, double mipgap, double time_limit){ //cout << "\n Presolve = " << grb_env->get(GRB_IntParam_Presolve) << endl; // print_constraints(); + grb_mod->update(); if (relax) relax_model(); else unrelax_model();