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

bandits.mzn adapted to what's in the slides #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dtonhofer
Copy link
Contributor

@dtonhofer dtonhofer commented Jul 21, 2021

Introduced SIZE and POINT as used on the slides.

Changed comments for clarity: "points" <-> "tunnel exits" and "cells" <-> "huts"

Changed i,j, to x,y in forall to correspond to predicate call

Added symmetry-breaking constraint to make the solution canonical.

With Gecode:

Row: [2, 7, 7]
Col: [5, 2, 8]
Cost: 19
----------
Row: [3, 5, 7]
Col: [6, 2, 6]
Cost: 18
----------
==========
Finished in 325msec

Introduced SIZE and POINT as used on the slides.

Changed comments for clarity: "points" ↔ "tunnel exits" and "cells" ↔ "huts"

Changed i,j, to x,y in forall to correspond to predicate call

Added symmetry-breaking constraint to make the solution canonical.

With Gecode:

Row: [2, 7, 7]
Col: [5, 2, 8]
Cost: 19
----------
Row: [3, 5, 7]
Col: [6, 2, 6]
Cost: 18
----------
==========
Finished in 325msec
@dtonhofer
Copy link
Contributor Author

Hi people. What are we going to do with this? Reject? Accept?

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.

None yet

1 participant