Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input checking issue #54

Open
jonnymaserati opened this issue Oct 29, 2024 · 0 comments
Open

Input checking issue #54

jonnymaserati opened this issue Oct 29, 2024 · 0 comments

Comments

@jonnymaserati
Copy link

def solve_subset_sum(

I think there might be an issue with the input checking here, since an error is thrown if a weight is equal to the capacity (which should still be solvable) - the ExceptionError states that a weight is greater than the capacity, which is not the case (so perhaps equal to is being interpreted as greater than?).

If the param method_kwargs={'check_inputs': 0} is set, then the code runs fine, so the check inputs function seems to be the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant