Skip to content

Commit

Permalink
fixed bug in SDP root processing
Browse files Browse the repository at this point in the history
  • Loading branch information
hhijazi committed Sep 21, 2023
1 parent ada2e06 commit 6d5d145
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/GurobiProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down Expand Up @@ -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){
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 6d5d145

Please sign in to comment.