Skip to content

Commit

Permalink
Do not print lp file and less time limit for Gurobi
Browse files Browse the repository at this point in the history
  • Loading branch information
hhijazi committed Sep 20, 2023
1 parent 8849be8 commit ada2e06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/Optimization/MISDP/CBF/misdp_cbf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ using namespace std;
int main(int argc, char * argv[]){

//string fname=string(prj_dir)+"/data_sets/MISDP/2x7_3bars.cbf";
string fname=string(prj_dir)+"/data_sets/MISDP/band50_3.cbf";
string fname=string(prj_dir)+"/data_sets/MISDP/2x3_3bars.cbf";
bool root_refine = false, add_soc=false, add_threed=false, add_bag=false, hierarc=false;
string root_refine_s = "false", add_soc_s="false", add_threed_s="false", add_bag_s="false", hierarc_s="false";
if(argc>=2){
Expand Down
4 changes: 2 additions & 2 deletions src/GurobiProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ bool GurobiProgram::solve(bool relax, double mipgap, double time_limit){
// grb_mod->set(GRB_IntParam_RINS,1000);
// grb_mod->set(GRB_IntParam_Cuts,0);

grb_mod->set(GRB_DoubleParam_TimeLimit,25200);
grb_mod->set(GRB_DoubleParam_TimeLimit,10800);
grb_mod->set(GRB_IntParam_OutputFlag,1);
//grb_mod->set(GRB_DoubleParam_Cutoff,5.33);
// grb_mod->set(GRB_IntParam_MinRelNodes,0);
Expand Down Expand Up @@ -795,7 +795,7 @@ void GurobiProgram::prepare_model(){
fill_in_grb_vmap();
create_grb_constraints();
set_grb_objective();
grb_mod->write("gurobiprint.lp");
// grb_mod->write("gurobiprint.lp");
// print_constraints();
}
void GurobiProgram::update_model(){
Expand Down

0 comments on commit ada2e06

Please sign in to comment.