Debian Codegraph @

tests/spec/unit/search/test-ff1.mzn

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