Skip to content

Commit 842782c

Browse files
committed
do not create cuts with large non infinite rhs
1 parent bbd7247 commit 842782c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CglProbing/CglProbing.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ class row_cut {
164164
if (value<1.0e-12||value>1.0e12)
165165
bad=true;
166166
}
167+
// take out if bounds dubious
168+
if (newLb<-1.0e12&&newLb>-1.0e40)
169+
bad = true;
170+
if (newUb>1.0e12&&newUb<1.0e40)
171+
bad = true;
167172
if (bad)
168173
return 1;
169174
OsiRowCut2 newCut(whichRow);

0 commit comments

Comments
 (0)