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

constrain variables to integers #10

Open
wvanderp opened this issue Nov 14, 2024 · 0 comments
Open

constrain variables to integers #10

wvanderp opened this issue Nov 14, 2024 · 0 comments

Comments

@wvanderp
Copy link

Hello,

In my use case, the only solutions that make sense are integers.

Think X plates of 3 kg + Y blocks of 12.5 kg for 27 kg
which would result in either of two solutions:

1 3 + 2 * 12.5 = 28 (1 kg over)
or
0
3 + 2* 12,5 = 25 (2 kg under)

But I currently see no way to do this with the library.

My questions are as follows:

Do you think this can be done with the current lib?
Is it trivial to add? (AKA, do you recommend me to send a PR)
Am I on a totally wrong path and do I need to use a different lib?

looking forward to your thoughts

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