Assignment defaults to one of two solutions
Opened this issue · 0 comments
ysl208 commented
Hi, I'm new to Clojure and just tried your library and noticed that when I have two solutions that would return the same weights, it always defaults to one, even if I change the order of the values.
The example I used is the following
(def sample-set-a #{[0.575 0.675] [0.575 0.575]})
(def sample-set-b #{[0.575 0.675] [0.575 9.575]})
I'd expect the first two points to be matched as they are the exact same but it returns:
{:assignments {[0.575 0.575] [0.575 0.675], [0.575 0.675] [0.575 9.575]}, :weight 8.999999999999998}
Both solutions have the same weight, so I guess the overall result is the same, but how come the assignments are always the same, even if I use use (reverse sample-set-b)?