Skip to content

Commit

Permalink
Added debug printing before failed assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jajhall committed Oct 21, 2024
1 parent e60cbb3 commit a652ac9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/simplex/HEkkPrimal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2812,6 +2812,11 @@ void HEkkPrimal::shiftBound(const bool lower, const HighsInt iVar,
shift = infeasibility + feasibility;
bound -= shift;
new_infeasibility = bound - value;
if (new_infeasibility >= 0) {
printf("HEkkPrimal::shiftBound LB = %g; random_value = %g; value = %g; feasibility = %g; infeasibility = %g; shift = %g; bound = %g; new_infeasibility = %g; \n",
old_bound, random_value, value, feasibility, infeasibility, shift, bound, new_infeasibility);
fflush(stdout);
}
assert(new_infeasibility < 0);
} else {
// Bound to shift is upper
Expand Down

0 comments on commit a652ac9

Please sign in to comment.