tests/spec/unit/search/test-small1.mzn
raw| 1 | /*** |
| 2 | --- !Test |
| 3 | solvers: [gecode, chuffed] |
| 4 | expected: !Result |
| 5 | solution: !Solution |
| 6 | x: 9 |
| 7 | y: 2 |
| 8 | ***/ |
| 9 | |
| 10 | var 1..10: x; |
| 11 | var 2..10: y; |
| 12 | constraint x = 1 -> y > 10; |
| 13 | constraint x > 1 -> x > 4; |
| 14 | constraint x + y <= 11; |
| 15 | |
| 16 | solve :: int_search([x,y],smallest,indomain_min,complete) |
| 17 | maximize x + y; |