Skip to content

feat: Adding IntegerVariable for i32#388

Open
ImkoMarijnissen wants to merge 1 commit intomainfrom
feat/i32-as-var
Open

feat: Adding IntegerVariable for i32#388
ImkoMarijnissen wants to merge 1 commit intomainfrom
feat/i32-as-var

Conversation

@ImkoMarijnissen
Copy link
Contributor

Currently, we need to create a separate DomainId for each constant value. In this PR, I implement the IntegerVariable (and related traits) for i32. This 1) allows us to avoid allocating unnecessary memory for constants, and 2) simplifies modelling when using Pumpkin as a library.

One use-case is for a Cumulative in which we allow variable processing times, where we can simply provide a list of constants.

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

Successfully merging this pull request may close these issues.

2 participants