salesman.js icon indicating copy to clipboard operation
salesman.js copied to clipboard

Add a "progress" argument to the callback function.

Open EliteMasterEric opened this issue 3 years ago • 0 comments

Since the simulated annealing temperature has a known start and end value (from 100 * distance from point 0 to point 1 to 1e-6), progress can be represented by the size of the current temperature.

Not sure of the best way to calculate the percentage from that, but the result can be passed to the callback function to be used for progress bars.

EliteMasterEric avatar Dec 09 '20 10:12 EliteMasterEric