I had rather hoped that GLPK would always output a min fragment
slightly _less_ than the true rational value, on the basis that some
of its minima would be slightly below the right value and some
slightly above. Sadly, (7,6) consistently guesses high, so I must fall
back to the usual 1e10 bodge to round to rationals.
if (ai[i][j] > 0 && ai[i][j] < imin)
imin = ai[i][j];
- if ((double)imin / d < min)
+ if (abs((double)imin / d - min) > 1e-10)
goto next_d;
/*