Skip to content

Commit

Permalink
fix for bad cut
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Oct 23, 2023
1 parent 42eed7c commit 7dbcb93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CglTwomir/CglTwomir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,11 @@ DGG_generateCutsFromBase( DGG_constraint_t *orig_base,
if (orig_base->sense == 'L') return 0;
if (orig_base->nz == 0) return 0;

#define CGL_TWOMIR_LARGE_RHS 1.0e10
#ifdef CGL_TWOMIR_LARGE_RHS
if (fabs(orig_base->rhs) > CGL_TWOMIR_LARGE_RHS )
return 0;
#endif
rval = DGG_transformConstraint(data, &x, &rc, &isint, orig_base);
double frac = frac_part(orig_base->rhs);
//printf ("frac = %.7f, r %.7f, fr %.7f\n", frac, orig_base->rhs, floor(orig_base->rhs));
Expand Down

0 comments on commit 7dbcb93

Please sign in to comment.