Skip to content

Commit

Permalink
Changing the default of time limit because the previous default value…
Browse files Browse the repository at this point in the history
… was very large and created memory issues for setting the time limit of required MIPs
  • Loading branch information
Sahar Tahernejad authored and tkralphs committed Sep 21, 2018
1 parent 9ab1a6b commit 3979119
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/MibSModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3242,6 +3242,14 @@ MibSModel::instanceStructure(const CoinPackedMatrix *newMatrix, const double* ro
}
}

//set the default value of time limit if it is not set by user
//Alps sets the default value of this parameter to a very large value
//but it is very large and creats memory issues for setting the time limit
//when an extra mip should be solved. So, we set it to a smaller large value.
if(AlpsPar()->entry(AlpsParams::timeLimit) > 1.0e200){
AlpsPar()->setEntry(AlpsParams::timeLimit, 1.0e200);
}

int paramValue(0);
MibSIntersectionCutType cutType(MibSIntersectionCutTypeNotSet);
//bool isHypercubeOn(false);
Expand Down

0 comments on commit 3979119

Please sign in to comment.