trevlovett / Python-Ant-Colony-TSP-Solver

Solves the TSP using multithreaded ACO method
BSD 3-Clause "New" or "Revised" License
103 stars 49 forks source link

Exception: sum = 0 #2

Open arjunmehta94 opened 9 years ago

arjunmehta94 commented 9 years ago

For instances of even <= 14, specifically 10 nodes, using this code always returns the above exception. It seems for certain values which are quite small, the sum == 0 check for this exception is triggered even though the value is not 0. This is however not consistent, since I found that values such on the order of 10^-5 and 10^-6 do not trigger this, but values like 0.00017 do. Any suggestions?