* <=> frags < | n / best |
* _ _
* <=> frags <= | n / best | - 1
+ *
+ * But best values from glpk are slightly approximate, so we
+ * subtract a fudge factor from our target.
*/
- n_max_frags = ceil(n / best) - 1;
- m_max_frags = ceil(m / best) - 1;
+ double near_best = best * 0.98 - 0.02;
+ n_max_frags = ceil(n / near_best) - 1;
+ m_max_frags = ceil(m / near_best) - 1;
}
/*----- multicore support -----*/