Skip to content

constrain variables to integers #10

@wvanderp

Description

@wvanderp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions