texlib icon indicating copy to clipboard operation
texlib copied to clipboard

Replace hardcoded infinity value

Open 0x2b3bfa0 opened this issue 4 years ago • 1 comments

1000 != ∞ 😄

0x2b3bfa0 avatar Feb 09 '21 01:02 0x2b3bfa0

I suspect that replacing 1000 with inf would give some negative effects, since the algorithm relies on selecting the fewest total demerits, even if it contains "infinite" penalties.

i.e. INF + 3 would have to be larger than INF + 1

ariebovenberg avatar May 21 '23 06:05 ariebovenberg