Skip to content

Input checking issue #54

@jonnymaserati

Description

@jonnymaserati

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions