jasonrhansen / cut-optimizer-2d

2D Cut Optimizer
Apache License 2.0
21 stars 11 forks source link

Result is non-deterministic for case "pighetti_d" #18

Closed lukepighetti closed 2 years ago

lukepighetti commented 2 years ago

On version 4.0.1, if I run the case pighetti_d described here, half the time it will return Result A, otherwise Result B.

Result A

Result B

jasonrhansen commented 2 years ago

This was caused by using HashSet for unused_cut_pieces, which gives different hashes for different runs.