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

Improve handling of bool2int #2

Open
maartenflippo opened this issue Jul 18, 2024 · 1 comment
Open

Improve handling of bool2int #2

maartenflippo opened this issue Jul 18, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@maartenflippo
Copy link
Contributor

The predicate bool2int(var bool: a, var int: b) is specified as b∈{0,1} /\ a↔(b=1). We implement this by creating a fresh solver literal for a and enforcing the bi-implication. However, bool2int occurs frequently in models, and we should use the literal corresponding to the predicate [b = 1] for a directly.

@maartenflippo maartenflippo added the enhancement New feature or request label Jul 18, 2024
@maartenflippo maartenflippo added this to the Version 0.2 milestone Jul 18, 2024
@EmirDe
Copy link
Contributor

EmirDe commented Jul 18, 2024

Good idea to look at special cases!

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