Closed dmcconachie closed 6 years ago
Overall this looks pretty good. There's just a few comments I put inline with the new function.
The original optimization function is much easier to read and it's nice that you've made it clearer to understand what the code is doing. The new function seems very generally useful.
I have no major qualms.
Check function signature and comments for form of optimization.