Open Specy opened 6 hours ago
@lovasoa should the f64::INFINITY vs f64::MAX difference be considered a bug?
i think so, yes
Worth to look at this old PR: https://github.com/ztlpn/minilp/pull/4/files#diff-cbd16a2b1fdb7e2f39b676831dfaee5250000b403a9f1fcfcbfede424d7cbf73
For example this gives solution
[2.0, 0.0, 0.0]
while using f64::INFINITY gives[2.0, 6.2, 1.6]
and f32::MAX gives[2.0, 7.0, 0.0]
the correct value is
[2.0, 6.2, 1.6]