Barbell Calculator now more robust
Minor update to barbell calculator per survey feedback.
A while back one keen visitor noticed that the calculator uses a greedy algorithm to calculate the plates that occasionally fails to find a way to rack the desired weight even when it is possible.
To address this feedback I’ve implemented exhaustive search to find a way to rack the weights. The search attempts to find the minimum number of plates to use to get the desired weight.
Despite being exhaustive, in my testing for common weights it is still quite quick. If you run into issues, please leave survey feedback.