diff --git a/examples/Optimization/MINLP/LABS/LABS.cpp b/examples/Optimization/MINLP/LABS/LABS.cpp index ad50dbaf..dc502865 100644 --- a/examples/Optimization/MINLP/LABS/LABS.cpp +++ b/examples/Optimization/MINLP/LABS/LABS.cpp @@ -21,6 +21,7 @@ int main(int argc, char * argv[]){ if(argc>=2){ n=stoi(argv[1]); } + DebugOn("Optimizing with N = " << n << endl); Model<> M_obj("M_obj_LABS_"+to_string(n)); Model<> M("LABS_"+to_string(n)); var<> s("s", -1, 1); diff --git a/src/GurobiProgram.cpp b/src/GurobiProgram.cpp index 0856a797..575bfbc7 100755 --- a/src/GurobiProgram.cpp +++ b/src/GurobiProgram.cpp @@ -507,16 +507,16 @@ bool GurobiProgram::solve(bool relax, double mipgap, double time_limit){ // grb_mod->set(GRB_DoubleParam_IntFeasTol, 1e-9); // grb_mod->set(GRB_IntParam_NumericFocus,3); // grb_mod->set(GRB_IntParam_PreCrush,0); - // grb_mod->set(GRB_IntParam_MIPFocus,3); +// grb_mod->set(GRB_IntParam_MIPFocus,1); // grb_mod->set(GRB_IntParam_IntegralityFocus,1); //grb_mod->set(GRB_IntParam_MIPFocus,1); // grb_mod->set(GRB_IntParam_PumpPasses,50); // grb_mod->set(GRB_IntParam_RINS,1000); - // grb_mod->set(GRB_IntParam_Cuts,0); + grb_mod->set(GRB_IntParam_Cuts,0); grb_mod->set(GRB_DoubleParam_TimeLimit,time_limit); grb_mod->set(GRB_IntParam_OutputFlag,1); - //grb_mod->set(GRB_DoubleParam_Cutoff,5.33); + grb_mod->set(GRB_DoubleParam_Cutoff,59); // grb_mod->set(GRB_IntParam_MinRelNodes,0); // grb_mod->set(GRB_DoubleParam_Heuristics, 1); // grb_mod->set(GRB_DoubleParam_NoRelHeurTime, 5); @@ -543,10 +543,10 @@ bool GurobiProgram::solve(bool relax, double mipgap, double time_limit){ } else{ //cuts cb(_grb_vars, n, _model, interior); - if(!relax){ - grb_mod->setCallback(&cb); - grb_mod->update(); - } +// if(!relax){ +// grb_mod->setCallback(&cb); +// grb_mod->update(); +// } } //grb_mod->set(GRB_IntParam_RINS,1);