Skip to content

Commit

Permalink
do not create cuts with large non infinite rhs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Jun 18, 2024
1 parent bbd7247 commit 842782c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CglProbing/CglProbing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ class row_cut {
if (value<1.0e-12||value>1.0e12)
bad=true;
}
// take out if bounds dubious
if (newLb<-1.0e12&&newLb>-1.0e40)
bad = true;
if (newUb>1.0e12&&newUb<1.0e40)
bad = true;
if (bad)
return 1;
OsiRowCut2 newCut(whichRow);
Expand Down

0 comments on commit 842782c

Please sign in to comment.