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

Solve trivial cases without throwing error #45

Open
jmyrberg opened this issue Nov 15, 2022 · 1 comment
Open

Solve trivial cases without throwing error #45

jmyrberg opened this issue Nov 15, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jmyrberg
Copy link
Owner

E.g. if the total weight is smaller than largest knapsack, provide a trivial solution instead of throwing an error.

@jmyrberg jmyrberg added the enhancement New feature or request label Nov 15, 2022
@AlexDuchnowski
Copy link

AlexDuchnowski commented Aug 26, 2024

Similar note: In a 0-1 Single Knapsack instance, if one of the items has weight 0, it would be great to simply have it added to the solution (assuming it has a non-negative profit) rather than throwing an error.

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

No branches or pull requests

2 participants