Describe the bug
AssertionError: Unexpectedly insufficient funds. is thrown even when cost == available_funds in pypfopt/discrete_allocation.py line 200
Expected behavior
AssertionError should be thrown only when cost < available_funds
Code sample
assert cost < available_funds, "Unexpectedly insufficient funds."
Describe the bug AssertionError: Unexpectedly insufficient funds. is thrown even when cost == available_funds in pypfopt/discrete_allocation.py line 200
Expected behavior AssertionError should be thrown only when cost < available_funds Code sample assert cost < available_funds, "Unexpectedly insufficient funds."
Operating system, python version, PyPortfolioOpt version MacOS 11.6, python 3.7.5, PyPortfolioOpt 1.4.2