Skip to content

Commit

Permalink
LABS, n = 30 with cutoff, TTS = 102s
Browse files Browse the repository at this point in the history
  • Loading branch information
hhijazi committed Nov 8, 2023
1 parent e4bc5ca commit 0440f41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions examples/Optimization/MINLP/LABS/LABS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
14 changes: 7 additions & 7 deletions src/GurobiProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 0440f41

Please sign in to comment.